diff --git a/.copywrite.hcl b/.copywrite.hcl index de148843b4..de6339ab4f 100644 --- a/.copywrite.hcl +++ b/.copywrite.hcl @@ -10,6 +10,7 @@ project { header_ignore = [ "helper/pkcs7/**", "ui/node_modules/**", + "ui/api-client/**", "enos/modules/k8s_deploy_vault/raft-config.hcl", "plugins/database/postgresql/scram/**", ] diff --git a/ui/api-client/.gitignore b/ui/api-client/.gitignore new file mode 100644 index 0000000000..149b576547 --- /dev/null +++ b/ui/api-client/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/ui/api-client/.npmignore b/ui/api-client/.npmignore new file mode 100644 index 0000000000..42061c01a1 --- /dev/null +++ b/ui/api-client/.npmignore @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/ui/api-client/.openapi-generator-ignore b/ui/api-client/.openapi-generator-ignore new file mode 100644 index 0000000000..7484ee590a --- /dev/null +++ b/ui/api-client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/ui/api-client/.openapi-generator/FILES b/ui/api-client/.openapi-generator/FILES new file mode 100644 index 0000000000..77977f03da --- /dev/null +++ b/ui/api-client/.openapi-generator/FILES @@ -0,0 +1,769 @@ +.gitignore +.npmignore +README.md +package.json +src/apis/AuthApi.ts +src/apis/IdentityApi.ts +src/apis/SecretsApi.ts +src/apis/SystemApi.ts +src/apis/index.ts +src/index.ts +src/models/AliCloudConfigureRequest.ts +src/models/AliCloudLoginRequest.ts +src/models/AliCloudWriteAuthRoleRequest.ts +src/models/AliCloudWriteRoleRequest.ts +src/models/AliasCreateRequest.ts +src/models/AliasUpdateByIdRequest.ts +src/models/AppRoleDestroySecretIdByAccessorRequest.ts +src/models/AppRoleDestroySecretIdRequest.ts +src/models/AppRoleLoginRequest.ts +src/models/AppRoleLoginResponse.ts +src/models/AppRoleLookUpSecretIdByAccessorRequest.ts +src/models/AppRoleLookUpSecretIdByAccessorResponse.ts +src/models/AppRoleLookUpSecretIdRequest.ts +src/models/AppRoleLookUpSecretIdResponse.ts +src/models/AppRoleReadBindSecretIdResponse.ts +src/models/AppRoleReadBoundCidrListResponse.ts +src/models/AppRoleReadLocalSecretIdsResponse.ts +src/models/AppRoleReadPeriodResponse.ts +src/models/AppRoleReadPoliciesResponse.ts +src/models/AppRoleReadRoleIdResponse.ts +src/models/AppRoleReadRoleResponse.ts +src/models/AppRoleReadSecretIdBoundCidrsResponse.ts +src/models/AppRoleReadSecretIdNumUsesResponse.ts +src/models/AppRoleReadSecretIdTtlResponse.ts +src/models/AppRoleReadTokenBoundCidrsResponse.ts +src/models/AppRoleReadTokenMaxTtlResponse.ts +src/models/AppRoleReadTokenNumUsesResponse.ts +src/models/AppRoleReadTokenTtlResponse.ts +src/models/AppRoleWriteBindSecretIdRequest.ts +src/models/AppRoleWriteBoundCidrListRequest.ts +src/models/AppRoleWriteCustomSecretIdRequest.ts +src/models/AppRoleWriteCustomSecretIdResponse.ts +src/models/AppRoleWritePeriodRequest.ts +src/models/AppRoleWritePoliciesRequest.ts +src/models/AppRoleWriteRoleIdRequest.ts +src/models/AppRoleWriteRoleRequest.ts +src/models/AppRoleWriteSecretIdBoundCidrsRequest.ts +src/models/AppRoleWriteSecretIdNumUsesRequest.ts +src/models/AppRoleWriteSecretIdRequest.ts +src/models/AppRoleWriteSecretIdResponse.ts +src/models/AppRoleWriteSecretIdTtlRequest.ts +src/models/AppRoleWriteTokenBoundCidrsRequest.ts +src/models/AppRoleWriteTokenMaxTtlRequest.ts +src/models/AppRoleWriteTokenNumUsesRequest.ts +src/models/AppRoleWriteTokenTtlRequest.ts +src/models/AuditingCalculateHashRequest.ts +src/models/AuditingCalculateHashResponse.ts +src/models/AuditingEnableDeviceRequest.ts +src/models/AuditingEnableRequestHeaderRequest.ts +src/models/AuditingListRequestHeadersResponse.ts +src/models/AuthEnableMethodRequest.ts +src/models/AuthReadConfigurationResponse.ts +src/models/AuthReadTuningInformationResponse.ts +src/models/AuthTuneConfigurationParametersRequest.ts +src/models/AwsConfigureCertificateRequest.ts +src/models/AwsConfigureClientRequest.ts +src/models/AwsConfigureIdentityAccessListTidyOperationRequest.ts +src/models/AwsConfigureIdentityIntegrationRequest.ts +src/models/AwsConfigureIdentityWhitelistTidyOperationRequest.ts +src/models/AwsConfigureLeaseRequest.ts +src/models/AwsConfigureRoleTagBlacklistTidyOperationRequest.ts +src/models/AwsConfigureRoleTagDenyListTidyOperationRequest.ts +src/models/AwsConfigureRootIamCredentialsRequest.ts +src/models/AwsGenerateCredentialsWithParametersRequest.ts +src/models/AwsGenerateStsCredentialsWithParametersRequest.ts +src/models/AwsLoginRequest.ts +src/models/AwsReadStaticCredsNameResponse.ts +src/models/AwsReadStaticRolesNameResponse.ts +src/models/AwsTidyIdentityAccessListRequest.ts +src/models/AwsTidyIdentityWhitelistRequest.ts +src/models/AwsTidyRoleTagBlacklistRequest.ts +src/models/AwsTidyRoleTagDenyListRequest.ts +src/models/AwsWriteAuthRoleRequest.ts +src/models/AwsWriteRoleRequest.ts +src/models/AwsWriteRoleTagRequest.ts +src/models/AwsWriteStaticRolesNameRequest.ts +src/models/AwsWriteStaticRolesNameResponse.ts +src/models/AwsWriteStsRoleRequest.ts +src/models/AzureConfigureAuthRequest.ts +src/models/AzureConfigureRequest.ts +src/models/AzureLoginRequest.ts +src/models/AzureWriteAuthRoleRequest.ts +src/models/AzureWriteRoleRequest.ts +src/models/CertConfigureRequest.ts +src/models/CertLoginRequest.ts +src/models/CertWriteCertificateRequest.ts +src/models/CertWriteCrlRequest.ts +src/models/CloudFoundryConfigureRequest.ts +src/models/CloudFoundryLoginRequest.ts +src/models/CloudFoundryWriteRoleRequest.ts +src/models/CollectHostInformationResponse.ts +src/models/ConsulConfigureAccessRequest.ts +src/models/ConsulWriteRoleRequest.ts +src/models/CorsConfigureRequest.ts +src/models/CorsReadConfigurationResponse.ts +src/models/CreateCustomMessageRequest.ts +src/models/DatabaseConfigureConnectionRequest.ts +src/models/DatabaseWriteRoleRequest.ts +src/models/DatabaseWriteStaticRoleRequest.ts +src/models/DecodeTokenRequest.ts +src/models/EncryptionKeyConfigureRotationRequest.ts +src/models/EncryptionKeyReadRotationConfigurationResponse.ts +src/models/EntitiesCreateDuplicatesRequest.ts +src/models/EntityAliasCreateDuplicatesRequest.ts +src/models/EntityAliasesCreateDuplicatesRequest.ts +src/models/EntityBatchDeleteRequest.ts +src/models/EntityCreateAliasRequest.ts +src/models/EntityCreateRequest.ts +src/models/EntityLookUpRequest.ts +src/models/EntityMergeRequest.ts +src/models/EntityUpdateAliasByIdRequest.ts +src/models/EntityUpdateByIdRequest.ts +src/models/EntityUpdateByNameRequest.ts +src/models/GenerateHashRequest.ts +src/models/GenerateHashResponse.ts +src/models/GenerateHashWithAlgorithmRequest.ts +src/models/GenerateHashWithAlgorithmResponse.ts +src/models/GenerateRandomRequest.ts +src/models/GenerateRandomResponse.ts +src/models/GenerateRandomWithBytesRequest.ts +src/models/GenerateRandomWithBytesResponse.ts +src/models/GenerateRandomWithSourceAndBytesRequest.ts +src/models/GenerateRandomWithSourceAndBytesResponse.ts +src/models/GenerateRandomWithSourceRequest.ts +src/models/GenerateRandomWithSourceResponse.ts +src/models/GithubConfigureRequest.ts +src/models/GithubLoginRequest.ts +src/models/GithubWriteTeamMappingRequest.ts +src/models/GithubWriteUserMappingRequest.ts +src/models/GoogleCloudConfigureAuthRequest.ts +src/models/GoogleCloudConfigureRequest.ts +src/models/GoogleCloudEditLabelsForRoleRequest.ts +src/models/GoogleCloudEditServiceAccountsForRoleRequest.ts +src/models/GoogleCloudGenerateRolesetKey3Request.ts +src/models/GoogleCloudGenerateRolesetKeyRequest.ts +src/models/GoogleCloudGenerateStaticAccountKeyRequest.ts +src/models/GoogleCloudKmsConfigureKeyRequest.ts +src/models/GoogleCloudKmsConfigureRequest.ts +src/models/GoogleCloudKmsDecryptRequest.ts +src/models/GoogleCloudKmsEncryptRequest.ts +src/models/GoogleCloudKmsReencryptRequest.ts +src/models/GoogleCloudKmsRegisterKeyRequest.ts +src/models/GoogleCloudKmsSignRequest.ts +src/models/GoogleCloudKmsVerifyRequest.ts +src/models/GoogleCloudKmsWriteKeyRequest.ts +src/models/GoogleCloudLoginRequest.ts +src/models/GoogleCloudWriteImpersonatedAccountRequest.ts +src/models/GoogleCloudWriteRoleRequest.ts +src/models/GoogleCloudWriteRolesetRequest.ts +src/models/GoogleCloudWriteStaticAccountRequest.ts +src/models/GroupCreateAliasRequest.ts +src/models/GroupCreateRequest.ts +src/models/GroupLookUpRequest.ts +src/models/GroupUpdateAliasByIdRequest.ts +src/models/GroupUpdateByIdRequest.ts +src/models/GroupUpdateByNameRequest.ts +src/models/GroupsCreateDuplicatesRequest.ts +src/models/HaStatusResponse.ts +src/models/InitializeRequest.ts +src/models/InternalClientActivityConfigureRequest.ts +src/models/InternalCountEntitiesResponse.ts +src/models/InternalCountTokensResponse.ts +src/models/InternalGenerateOpenApiDocumentWithParametersRequest.ts +src/models/InternalUiListEnabledFeatureFlagsResponse.ts +src/models/InternalUiListEnabledVisibleMountsResponse.ts +src/models/InternalUiListNamespacesResponse.ts +src/models/InternalUiReadAuthenticatedActiveCustomMessagesResponse.ts +src/models/InternalUiReadMountInformationResponse.ts +src/models/InternalUiReadResultantAclResponse.ts +src/models/InternalUiReadUnauthenticatedActiveCustomMessagesResponse.ts +src/models/JwtConfigureRequest.ts +src/models/JwtLoginRequest.ts +src/models/JwtOidcCallbackFormPostRequest.ts +src/models/JwtOidcRequestAuthorizationUrlRequest.ts +src/models/JwtWriteRoleRequest.ts +src/models/KerberosConfigureLdapRequest.ts +src/models/KerberosConfigureRequest.ts +src/models/KerberosLoginRequest.ts +src/models/KerberosWriteGroupRequest.ts +src/models/KubernetesConfigureAuthRequest.ts +src/models/KubernetesConfigureRequest.ts +src/models/KubernetesGenerateCredentialsRequest.ts +src/models/KubernetesLoginRequest.ts +src/models/KubernetesWriteAuthRoleRequest.ts +src/models/KubernetesWriteRoleRequest.ts +src/models/KvV2ConfigureRequest.ts +src/models/KvV2DeleteVersionsRequest.ts +src/models/KvV2DestroyVersionsRequest.ts +src/models/KvV2PatchResponse.ts +src/models/KvV2ReadConfigurationResponse.ts +src/models/KvV2ReadMetadataResponse.ts +src/models/KvV2ReadResponse.ts +src/models/KvV2ReadSubkeysResponse.ts +src/models/KvV2UndeleteVersionsRequest.ts +src/models/KvV2WriteMetadataRequest.ts +src/models/KvV2WriteRequest.ts +src/models/KvV2WriteResponse.ts +src/models/LdapConfigureAuthRequest.ts +src/models/LdapConfigureRequest.ts +src/models/LdapLibraryCheckInRequest.ts +src/models/LdapLibraryCheckOutRequest.ts +src/models/LdapLibraryConfigureRequest.ts +src/models/LdapLibraryForceCheckInRequest.ts +src/models/LdapLoginRequest.ts +src/models/LdapRotateStaticRoleRequest.ts +src/models/LdapWriteDynamicRoleRequest.ts +src/models/LdapWriteGroupRequest.ts +src/models/LdapWriteStaticRoleRequest.ts +src/models/LdapWriteUserRequest.ts +src/models/LeaderStatusResponse.ts +src/models/LeasesCountResponse.ts +src/models/LeasesListResponse.ts +src/models/LeasesLookUpResponse.ts +src/models/LeasesReadLeaseRequest.ts +src/models/LeasesReadLeaseResponse.ts +src/models/LeasesRenewLease2Request.ts +src/models/LeasesRenewLeaseRequest.ts +src/models/LeasesRenewLeaseWithId2Request.ts +src/models/LeasesRenewLeaseWithIdRequest.ts +src/models/LeasesRevokeLease2Request.ts +src/models/LeasesRevokeLeaseRequest.ts +src/models/LeasesRevokeLeaseWithId2Request.ts +src/models/LeasesRevokeLeaseWithIdRequest.ts +src/models/LeasesRevokeLeaseWithPrefix2Request.ts +src/models/LeasesRevokeLeaseWithPrefixRequest.ts +src/models/LoggersUpdateVerbosityLevelForRequest.ts +src/models/LoggersUpdateVerbosityLevelRequest.ts +src/models/MfaAdminDestroyTotpSecretRequest.ts +src/models/MfaAdminGenerateTotpSecretRequest.ts +src/models/MfaCreateDuoMethodRequest.ts +src/models/MfaCreateOktaMethodRequest.ts +src/models/MfaCreatePingIdMethodRequest.ts +src/models/MfaCreateTotpMethodRequest.ts +src/models/MfaGenerateTotpSecretRequest.ts +src/models/MfaUpdateDuoMethodRequest.ts +src/models/MfaUpdateOktaMethodRequest.ts +src/models/MfaUpdatePingIdMethodRequest.ts +src/models/MfaUpdateTotpMethodRequest.ts +src/models/MfaValidateRequest.ts +src/models/MfaWriteLoginEnforcementRequest.ts +src/models/MongoDbAtlasConfigureRequest.ts +src/models/MongoDbAtlasWriteRoleRequest.ts +src/models/MountsEnableSecretsEngineRequest.ts +src/models/MountsReadConfigurationResponse.ts +src/models/MountsReadTuningInformationResponse.ts +src/models/MountsTuneConfigurationParametersRequest.ts +src/models/NomadConfigureAccessRequest.ts +src/models/NomadConfigureLeaseRequest.ts +src/models/NomadWriteRoleRequest.ts +src/models/OciConfigureRequest.ts +src/models/OciLoginRequest.ts +src/models/OciWriteRoleRequest.ts +src/models/OidcConfigureRequest.ts +src/models/OidcIntrospectRequest.ts +src/models/OidcProviderAuthorizeWithParametersRequest.ts +src/models/OidcProviderTokenRequest.ts +src/models/OidcRotateKeyRequest.ts +src/models/OidcWriteAssignmentRequest.ts +src/models/OidcWriteClientRequest.ts +src/models/OidcWriteKeyRequest.ts +src/models/OidcWriteProviderRequest.ts +src/models/OidcWriteRoleRequest.ts +src/models/OidcWriteScopeRequest.ts +src/models/OktaConfigureRequest.ts +src/models/OktaLoginRequest.ts +src/models/OktaWriteGroupRequest.ts +src/models/OktaWriteUserRequest.ts +src/models/PersonaCreateRequest.ts +src/models/PersonaUpdateByIdRequest.ts +src/models/PkiConfigureAcmeRequest.ts +src/models/PkiConfigureAutoTidyRequest.ts +src/models/PkiConfigureAutoTidyResponse.ts +src/models/PkiConfigureCaRequest.ts +src/models/PkiConfigureCaResponse.ts +src/models/PkiConfigureClusterRequest.ts +src/models/PkiConfigureClusterResponse.ts +src/models/PkiConfigureCmpRequest.ts +src/models/PkiConfigureCrlRequest.ts +src/models/PkiConfigureCrlResponse.ts +src/models/PkiConfigureEstRequest.ts +src/models/PkiConfigureExternalPolicyRequest.ts +src/models/PkiConfigureExternalPolicyResponse.ts +src/models/PkiConfigureIssuersRequest.ts +src/models/PkiConfigureIssuersResponse.ts +src/models/PkiConfigureKeysRequest.ts +src/models/PkiConfigureKeysResponse.ts +src/models/PkiConfigureScepRequest.ts +src/models/PkiConfigureUrlsRequest.ts +src/models/PkiConfigureUrlsResponse.ts +src/models/PkiCrossSignIntermediateRequest.ts +src/models/PkiCrossSignIntermediateResponse.ts +src/models/PkiGenerateEabKeyForIssuerAndRoleResponse.ts +src/models/PkiGenerateEabKeyForIssuerResponse.ts +src/models/PkiGenerateEabKeyForRoleResponse.ts +src/models/PkiGenerateEabKeyResponse.ts +src/models/PkiGenerateExportedKeyRequest.ts +src/models/PkiGenerateExportedKeyResponse.ts +src/models/PkiGenerateIntermediateRequest.ts +src/models/PkiGenerateIntermediateResponse.ts +src/models/PkiGenerateInternalKeyRequest.ts +src/models/PkiGenerateInternalKeyResponse.ts +src/models/PkiGenerateKmsKeyRequest.ts +src/models/PkiGenerateKmsKeyResponse.ts +src/models/PkiGenerateRootRequest.ts +src/models/PkiGenerateRootResponse.ts +src/models/PkiImportKeyRequest.ts +src/models/PkiImportKeyResponse.ts +src/models/PkiIssueWithRoleRequest.ts +src/models/PkiIssueWithRoleResponse.ts +src/models/PkiIssuerIssueWithRoleRequest.ts +src/models/PkiIssuerIssueWithRoleResponse.ts +src/models/PkiIssuerReadCrlDeltaDerResponse.ts +src/models/PkiIssuerReadCrlDeltaPemResponse.ts +src/models/PkiIssuerReadCrlDeltaResponse.ts +src/models/PkiIssuerReadCrlDerResponse.ts +src/models/PkiIssuerReadCrlPemResponse.ts +src/models/PkiIssuerReadCrlResponse.ts +src/models/PkiIssuerReadUnifiedCrlDeltaDerResponse.ts +src/models/PkiIssuerReadUnifiedCrlDeltaPemResponse.ts +src/models/PkiIssuerReadUnifiedCrlDeltaResponse.ts +src/models/PkiIssuerReadUnifiedCrlDerResponse.ts +src/models/PkiIssuerReadUnifiedCrlPemResponse.ts +src/models/PkiIssuerReadUnifiedCrlResponse.ts +src/models/PkiIssuerResignCrlsRequest.ts +src/models/PkiIssuerResignCrlsResponse.ts +src/models/PkiIssuerSignIntermediateRequest.ts +src/models/PkiIssuerSignIntermediateResponse.ts +src/models/PkiIssuerSignRevocationListRequest.ts +src/models/PkiIssuerSignRevocationListResponse.ts +src/models/PkiIssuerSignSelfIssuedRequest.ts +src/models/PkiIssuerSignSelfIssuedResponse.ts +src/models/PkiIssuerSignVerbatimRequest.ts +src/models/PkiIssuerSignVerbatimResponse.ts +src/models/PkiIssuerSignVerbatimWithRoleRequest.ts +src/models/PkiIssuerSignVerbatimWithRoleResponse.ts +src/models/PkiIssuerSignWithRoleRequest.ts +src/models/PkiIssuerSignWithRoleResponse.ts +src/models/PkiIssuersGenerateIntermediateRequest.ts +src/models/PkiIssuersGenerateIntermediateResponse.ts +src/models/PkiIssuersGenerateRootRequest.ts +src/models/PkiIssuersGenerateRootResponse.ts +src/models/PkiIssuersImportBundleRequest.ts +src/models/PkiIssuersImportBundleResponse.ts +src/models/PkiIssuersImportCertRequest.ts +src/models/PkiIssuersImportCertResponse.ts +src/models/PkiListEabKeysResponse.ts +src/models/PkiListIssuersResponse.ts +src/models/PkiListKeysResponse.ts +src/models/PkiListUnifiedRevokedCertsResponse.ts +src/models/PkiPatchIssuerResponse.ts +src/models/PkiPatchRoleResponse.ts +src/models/PkiReadAutoTidyConfigurationResponse.ts +src/models/PkiReadCaChainPemResponse.ts +src/models/PkiReadCaDerResponse.ts +src/models/PkiReadCaPemResponse.ts +src/models/PkiReadCertCaChainResponse.ts +src/models/PkiReadCertCrlResponse.ts +src/models/PkiReadCertDeltaCrlResponse.ts +src/models/PkiReadCertMetadataResponse.ts +src/models/PkiReadCertRawDerResponse.ts +src/models/PkiReadCertRawPemResponse.ts +src/models/PkiReadCertResponse.ts +src/models/PkiReadCertUnifiedCrlResponse.ts +src/models/PkiReadCertUnifiedDeltaCrlResponse.ts +src/models/PkiReadClusterConfigurationResponse.ts +src/models/PkiReadCrlConfigurationResponse.ts +src/models/PkiReadCrlDeltaPemResponse.ts +src/models/PkiReadCrlDeltaResponse.ts +src/models/PkiReadCrlDerResponse.ts +src/models/PkiReadCrlPemResponse.ts +src/models/PkiReadIssuerDerResponse.ts +src/models/PkiReadIssuerJsonResponse.ts +src/models/PkiReadIssuerPemResponse.ts +src/models/PkiReadIssuerResponse.ts +src/models/PkiReadIssuersConfigurationResponse.ts +src/models/PkiReadKeyResponse.ts +src/models/PkiReadKeysConfigurationResponse.ts +src/models/PkiReadRoleResponse.ts +src/models/PkiReadUrlsConfigurationResponse.ts +src/models/PkiReplaceRootRequest.ts +src/models/PkiReplaceRootResponse.ts +src/models/PkiRevokeIssuerResponse.ts +src/models/PkiRevokeRequest.ts +src/models/PkiRevokeResponse.ts +src/models/PkiRevokeWithKeyRequest.ts +src/models/PkiRevokeWithKeyResponse.ts +src/models/PkiRootSignIntermediateRequest.ts +src/models/PkiRootSignIntermediateResponse.ts +src/models/PkiRootSignSelfIssuedRequest.ts +src/models/PkiRootSignSelfIssuedResponse.ts +src/models/PkiRotateCrlResponse.ts +src/models/PkiRotateDeltaCrlResponse.ts +src/models/PkiRotateRootRequest.ts +src/models/PkiRotateRootResponse.ts +src/models/PkiSetSignedIntermediateRequest.ts +src/models/PkiSetSignedIntermediateResponse.ts +src/models/PkiSignVerbatimRequest.ts +src/models/PkiSignVerbatimResponse.ts +src/models/PkiSignVerbatimWithRoleRequest.ts +src/models/PkiSignVerbatimWithRoleResponse.ts +src/models/PkiSignWithRoleRequest.ts +src/models/PkiSignWithRoleResponse.ts +src/models/PkiTidyCancelResponse.ts +src/models/PkiTidyRequest.ts +src/models/PkiTidyStatusResponse.ts +src/models/PkiWriteAcmeAccountKidRequest.ts +src/models/PkiWriteAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteAcmeKeyIdRequest.ts +src/models/PkiWriteAcmeNewAccountRequest.ts +src/models/PkiWriteAcmeNewOrderRequest.ts +src/models/PkiWriteAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteAcmeOrderOrderIdRequest.ts +src/models/PkiWriteAcmeOrdersRequest.ts +src/models/PkiWriteAcmeRevokeCertRequest.ts +src/models/PkiWriteExternalPolicyAcmeAccountKidRequest.ts +src/models/PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteExternalPolicyAcmeNewAccountRequest.ts +src/models/PkiWriteExternalPolicyAcmeNewOrderRequest.ts +src/models/PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteExternalPolicyAcmeOrderOrderIdRequest.ts +src/models/PkiWriteExternalPolicyAcmeOrdersRequest.ts +src/models/PkiWriteExternalPolicyAcmeRevokeCertRequest.ts +src/models/PkiWriteExternalPolicyIssuePolicyRequest.ts +src/models/PkiWriteExternalPolicyIssuePolicyResponse.ts +src/models/PkiWriteExternalPolicyIssueRequest.ts +src/models/PkiWriteExternalPolicyIssueResponse.ts +src/models/PkiWriteExternalPolicyPolicyAcmeAccountKidRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeNewAccountRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeNewOrderRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeOrdersRequest.ts +src/models/PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest.ts +src/models/PkiWriteExternalPolicySignIntermediatePolicyRequest.ts +src/models/PkiWriteExternalPolicySignIntermediatePolicyResponse.ts +src/models/PkiWriteExternalPolicySignIntermediateRequest.ts +src/models/PkiWriteExternalPolicySignIntermediateResponse.ts +src/models/PkiWriteExternalPolicySignPolicyRequest.ts +src/models/PkiWriteExternalPolicySignPolicyResponse.ts +src/models/PkiWriteExternalPolicySignRequest.ts +src/models/PkiWriteExternalPolicySignResponse.ts +src/models/PkiWriteIssuerIssuerRefAcmeAccountKidRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeNewAccountRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeNewOrderRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeOrdersRequest.ts +src/models/PkiWriteIssuerIssuerRefAcmeRevokeCertRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueResponse.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignRequest.ts +src/models/PkiWriteIssuerIssuerRefExternalPolicySignResponse.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest.ts +src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest.ts +src/models/PkiWriteIssuerRequest.ts +src/models/PkiWriteIssuerResponse.ts +src/models/PkiWriteKeyRequest.ts +src/models/PkiWriteKeyResponse.ts +src/models/PkiWriteRoleRequest.ts +src/models/PkiWriteRoleResponse.ts +src/models/PkiWriteRolesRoleAcmeAccountKidRequest.ts +src/models/PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest.ts +src/models/PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts +src/models/PkiWriteRolesRoleAcmeNewAccountRequest.ts +src/models/PkiWriteRolesRoleAcmeNewOrderRequest.ts +src/models/PkiWriteRolesRoleAcmeOrderOrderIdCertRequest.ts +src/models/PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest.ts +src/models/PkiWriteRolesRoleAcmeOrderOrderIdRequest.ts +src/models/PkiWriteRolesRoleAcmeOrdersRequest.ts +src/models/PkiWriteRolesRoleAcmeRevokeCertRequest.ts +src/models/PluginsCatalogListPluginsResponse.ts +src/models/PluginsCatalogListPluginsWithTypeResponse.ts +src/models/PluginsCatalogPinsCreatePinnedVersionRequest.ts +src/models/PluginsCatalogPinsListPinnedVersionsResponse.ts +src/models/PluginsCatalogPinsReadPinnedVersionResponse.ts +src/models/PluginsCatalogReadPluginConfigurationResponse.ts +src/models/PluginsCatalogReadPluginConfigurationWithTypeResponse.ts +src/models/PluginsCatalogRegisterPluginRequest.ts +src/models/PluginsCatalogRegisterPluginWithTypeRequest.ts +src/models/PluginsReloadBackendsRequest.ts +src/models/PluginsReloadBackendsResponse.ts +src/models/PluginsRuntimesCatalogListPluginsRuntimesResponse.ts +src/models/PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse.ts +src/models/PluginsRuntimesCatalogRegisterPluginRuntimeRequest.ts +src/models/PoliciesGeneratePasswordFromPasswordPolicyResponse.ts +src/models/PoliciesListAclPolicies2Response.ts +src/models/PoliciesListAclPolicies3Response.ts +src/models/PoliciesListAclPoliciesResponse.ts +src/models/PoliciesReadAclPolicy2Response.ts +src/models/PoliciesReadAclPolicyResponse.ts +src/models/PoliciesReadPasswordPolicyResponse.ts +src/models/PoliciesWriteAclPolicy2Request.ts +src/models/PoliciesWriteAclPolicyRequest.ts +src/models/PoliciesWritePasswordPolicyRequest.ts +src/models/QueryTokenAccessorCapabilitiesRequest.ts +src/models/QueryTokenCapabilitiesRequest.ts +src/models/QueryTokenSelfCapabilitiesRequest.ts +src/models/RabbitMqConfigureConnectionRequest.ts +src/models/RabbitMqConfigureLeaseRequest.ts +src/models/RabbitMqWriteRoleRequest.ts +src/models/RadiusConfigureRequest.ts +src/models/RadiusLoginRequest.ts +src/models/RadiusLoginWithUsernameRequest.ts +src/models/RadiusWriteUserRequest.ts +src/models/RateLimitQuotasConfigureRequest.ts +src/models/RateLimitQuotasReadConfigurationResponse.ts +src/models/RateLimitQuotasReadResponse.ts +src/models/RateLimitQuotasWriteRequest.ts +src/models/RawReadResponse.ts +src/models/RawWriteRequest.ts +src/models/ReadWrappingProperties2Response.ts +src/models/ReadWrappingPropertiesRequest.ts +src/models/ReadWrappingPropertiesResponse.ts +src/models/RekeyAttemptInitializeRequest.ts +src/models/RekeyAttemptInitializeResponse.ts +src/models/RekeyAttemptReadProgressResponse.ts +src/models/RekeyAttemptUpdateRequest.ts +src/models/RekeyAttemptUpdateResponse.ts +src/models/RekeyReadBackupKeyResponse.ts +src/models/RekeyReadBackupRecoveryKeyResponse.ts +src/models/RekeyVerificationCancelResponse.ts +src/models/RekeyVerificationReadProgressResponse.ts +src/models/RekeyVerificationUpdateRequest.ts +src/models/RekeyVerificationUpdateResponse.ts +src/models/ReloadPluginsRequest.ts +src/models/ReloadPluginsResponse.ts +src/models/RemountRequest.ts +src/models/RemountResponse.ts +src/models/RemountStatusResponse.ts +src/models/RewrapRequest.ts +src/models/RootTokenGenerationInitialize2Request.ts +src/models/RootTokenGenerationInitialize2Response.ts +src/models/RootTokenGenerationInitializeRequest.ts +src/models/RootTokenGenerationInitializeResponse.ts +src/models/RootTokenGenerationReadProgress2Response.ts +src/models/RootTokenGenerationReadProgressResponse.ts +src/models/RootTokenGenerationUpdateRequest.ts +src/models/RootTokenGenerationUpdateResponse.ts +src/models/SealStatusResponse.ts +src/models/SshConfigureCaRequest.ts +src/models/SshConfigureZeroAddressRequest.ts +src/models/SshGenerateCredentialsRequest.ts +src/models/SshIssueCertificateRequest.ts +src/models/SshListRolesByIpRequest.ts +src/models/SshSignCertificateRequest.ts +src/models/SshVerifyOtpRequest.ts +src/models/SshWriteRoleRequest.ts +src/models/StandardListResponse.ts +src/models/SubscriptionsCreateResponse.ts +src/models/SubscriptionsListEventsSubscriptionsResponse.ts +src/models/SubscriptionsReadEventsSubscriptionsResponse.ts +src/models/SubscriptionsWriteEventsSubscriptionsRequest.ts +src/models/SubscriptionsWriteEventsSubscriptionsResponse.ts +src/models/SystemDeleteSyncConfigResponse.ts +src/models/SystemDeleteSyncGithubAppsNameResponse.ts +src/models/SystemListSyncAssociationsResponse.ts +src/models/SystemListSyncDestinationsResponse.ts +src/models/SystemListSyncDestinationsTypeResponse.ts +src/models/SystemListSyncGithubAppsResponse.ts +src/models/SystemPatchSyncConfigResponse.ts +src/models/SystemPatchSyncDestinationsAwsSmNameResponse.ts +src/models/SystemPatchSyncDestinationsAzureKvNameResponse.ts +src/models/SystemPatchSyncDestinationsGcpSmNameResponse.ts +src/models/SystemPatchSyncDestinationsGhNameResponse.ts +src/models/SystemPatchSyncDestinationsInMemNameResponse.ts +src/models/SystemPatchSyncDestinationsVercelProjectNameResponse.ts +src/models/SystemReadConfigGroupPolicyApplicationResponse.ts +src/models/SystemReadSyncAssociationsDestinationsResponse.ts +src/models/SystemReadSyncAssociationsMountSecretNameResponse.ts +src/models/SystemReadSyncConfigResponse.ts +src/models/SystemReadSyncDestinationsAwsSmNameResponse.ts +src/models/SystemReadSyncDestinationsAzureKvNameResponse.ts +src/models/SystemReadSyncDestinationsGcpSmNameResponse.ts +src/models/SystemReadSyncDestinationsGhNameResponse.ts +src/models/SystemReadSyncDestinationsInMemNameResponse.ts +src/models/SystemReadSyncDestinationsTypeNameAssociationsResponse.ts +src/models/SystemReadSyncDestinationsVercelProjectNameResponse.ts +src/models/SystemReadSyncGithubAppsNameResponse.ts +src/models/SystemWriteConfigControlGroupRequest.ts +src/models/SystemWriteConfigGroupPolicyApplicationRequest.ts +src/models/SystemWriteControlGroupAuthorizeRequest.ts +src/models/SystemWriteControlGroupRequestRequest.ts +src/models/SystemWriteInternalCountersActivityWriteRequest.ts +src/models/SystemWriteManagedKeysTypeNameRequest.ts +src/models/SystemWriteManagedKeysTypeNameTestSignRequest.ts +src/models/SystemWriteMfaMethodDuoNameRequest.ts +src/models/SystemWriteMfaMethodOktaNameRequest.ts +src/models/SystemWriteMfaMethodPingidNameRequest.ts +src/models/SystemWriteMfaMethodTotpNameAdminDestroyRequest.ts +src/models/SystemWriteMfaMethodTotpNameAdminGenerateRequest.ts +src/models/SystemWriteMfaMethodTotpNameRequest.ts +src/models/SystemWriteNamespacesApiLockUnlockPathRequest.ts +src/models/SystemWriteNamespacesApiLockUnlockRequest.ts +src/models/SystemWriteNamespacesPathRequest.ts +src/models/SystemWritePoliciesEgpNameRequest.ts +src/models/SystemWritePoliciesRgpNameRequest.ts +src/models/SystemWriteQuotasLeaseCountNameRequest.ts +src/models/SystemWriteReplicationDrPrimaryEnableRequest.ts +src/models/SystemWriteReplicationDrPrimaryRevokeSecondaryRequest.ts +src/models/SystemWriteReplicationDrPrimarySecondaryTokenRequest.ts +src/models/SystemWriteReplicationDrSecondaryDisableRequest.ts +src/models/SystemWriteReplicationDrSecondaryEnableRequest.ts +src/models/SystemWriteReplicationDrSecondaryMerkleCheckRequest.ts +src/models/SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest.ts +src/models/SystemWriteReplicationDrSecondaryPromoteRequest.ts +src/models/SystemWriteReplicationDrSecondaryRecoverRequest.ts +src/models/SystemWriteReplicationDrSecondaryReindexRequest.ts +src/models/SystemWriteReplicationDrSecondaryUpdatePrimaryRequest.ts +src/models/SystemWriteReplicationForceCorruptionRequest.ts +src/models/SystemWriteReplicationPerformancePrimaryEnableRequest.ts +src/models/SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest.ts +src/models/SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest.ts +src/models/SystemWriteReplicationPerformancePrimarySecondaryTokenRequest.ts +src/models/SystemWriteReplicationPerformanceSecondaryEnableRequest.ts +src/models/SystemWriteReplicationPerformanceSecondaryPromoteRequest.ts +src/models/SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest.ts +src/models/SystemWriteReplicationPrimaryEnableRequest.ts +src/models/SystemWriteReplicationPrimaryRevokeSecondaryRequest.ts +src/models/SystemWriteReplicationPrimarySecondaryTokenRequest.ts +src/models/SystemWriteReplicationReindexRequest.ts +src/models/SystemWriteReplicationSecondaryEnableRequest.ts +src/models/SystemWriteReplicationSecondaryPromoteRequest.ts +src/models/SystemWriteReplicationSecondaryUpdatePrimaryRequest.ts +src/models/SystemWriteStorageRaftSnapshotAutoConfigNameRequest.ts +src/models/SystemWriteSyncDestinationsAwsSmNameRequest.ts +src/models/SystemWriteSyncDestinationsAwsSmNameResponse.ts +src/models/SystemWriteSyncDestinationsAzureKvNameRequest.ts +src/models/SystemWriteSyncDestinationsAzureKvNameResponse.ts +src/models/SystemWriteSyncDestinationsGcpSmNameRequest.ts +src/models/SystemWriteSyncDestinationsGcpSmNameResponse.ts +src/models/SystemWriteSyncDestinationsGhNameRequest.ts +src/models/SystemWriteSyncDestinationsGhNameResponse.ts +src/models/SystemWriteSyncDestinationsInMemNameRequest.ts +src/models/SystemWriteSyncDestinationsInMemNameResponse.ts +src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest.ts +src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse.ts +src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetRequest.ts +src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetResponse.ts +src/models/SystemWriteSyncDestinationsVercelProjectNameRequest.ts +src/models/SystemWriteSyncDestinationsVercelProjectNameResponse.ts +src/models/SystemWriteSyncGithubAppsNameRequest.ts +src/models/SystemWriteSyncGithubAppsNameResponse.ts +src/models/SystemWriteUtilizationRequest.ts +src/models/SystemWriteUtilizationResponse.ts +src/models/TerraformCloudConfigureRequest.ts +src/models/TerraformCloudWriteRoleRequest.ts +src/models/TokenCreateAgainstRoleRequest.ts +src/models/TokenCreateOrphanRequest.ts +src/models/TokenCreateRequest.ts +src/models/TokenLookUpAccessorRequest.ts +src/models/TokenLookUpRequest.ts +src/models/TokenLookUpSelf2Request.ts +src/models/TokenRenewAccessorRequest.ts +src/models/TokenRenewRequest.ts +src/models/TokenRenewSelfRequest.ts +src/models/TokenRevokeAccessorRequest.ts +src/models/TokenRevokeOrphanRequest.ts +src/models/TokenRevokeRequest.ts +src/models/TokenWriteRoleRequest.ts +src/models/TotpCreateKeyRequest.ts +src/models/TotpValidateCodeRequest.ts +src/models/TransitConfigureCacheRequest.ts +src/models/TransitConfigureKeyRequest.ts +src/models/TransitConfigureKeysRequest.ts +src/models/TransitCreateKeyRequest.ts +src/models/TransitDecryptRequest.ts +src/models/TransitEncryptRequest.ts +src/models/TransitGenerateCmacRequest.ts +src/models/TransitGenerateCmacWithMacLengthRequest.ts +src/models/TransitGenerateCsrForKeyRequest.ts +src/models/TransitGenerateDataKeyRequest.ts +src/models/TransitGenerateHmacRequest.ts +src/models/TransitGenerateHmacWithAlgorithmRequest.ts +src/models/TransitGenerateRandomRequest.ts +src/models/TransitGenerateRandomWithBytesRequest.ts +src/models/TransitGenerateRandomWithSourceAndBytesRequest.ts +src/models/TransitGenerateRandomWithSourceRequest.ts +src/models/TransitHashRequest.ts +src/models/TransitHashWithAlgorithmRequest.ts +src/models/TransitImportKeyRequest.ts +src/models/TransitImportKeyVersionRequest.ts +src/models/TransitRestoreAndRenameKeyRequest.ts +src/models/TransitRestoreKeyRequest.ts +src/models/TransitRewrapRequest.ts +src/models/TransitRotateKeyRequest.ts +src/models/TransitSetCertificateForKeyRequest.ts +src/models/TransitSignRequest.ts +src/models/TransitSignWithAlgorithmRequest.ts +src/models/TransitTrimKeyRequest.ts +src/models/TransitVerifyRequest.ts +src/models/TransitVerifyWithAlgorithmRequest.ts +src/models/UiConfigDeleteCustomMessageResponse.ts +src/models/UiConfigReadCustomMessageResponse.ts +src/models/UiConfigUpdateCustomMessageRequest.ts +src/models/UiConfigUpdateCustomMessageResponse.ts +src/models/UiHeadersConfigureRequest.ts +src/models/UiHeadersListResponse.ts +src/models/UiHeadersReadConfigurationResponse.ts +src/models/UnsealRequest.ts +src/models/UnsealResponse.ts +src/models/UnwrapRequest.ts +src/models/UserpassLoginRequest.ts +src/models/UserpassResetPasswordRequest.ts +src/models/UserpassUpdatePoliciesRequest.ts +src/models/UserpassWriteUserRequest.ts +src/models/VersionHistoryResponse.ts +src/models/WellKnownListLabels2Response.ts +src/models/WellKnownListLabelsResponse.ts +src/models/WellKnownReadLabelResponse.ts +src/models/index.ts +src/runtime.ts +tsconfig.esm.json +tsconfig.json diff --git a/ui/api-client/.openapi-generator/VERSION b/ui/api-client/.openapi-generator/VERSION new file mode 100644 index 0000000000..5f84a81db0 --- /dev/null +++ b/ui/api-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.12.0 diff --git a/ui/api-client/README.md b/ui/api-client/README.md new file mode 100644 index 0000000000..9c2dc69c8d --- /dev/null +++ b/ui/api-client/README.md @@ -0,0 +1,46 @@ +## @hashicorp/vault-client-typescript@0.0.0 + +This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: + +Environment +* Node.js +* Webpack +* Browserify + +Language level +* ES5 - you must have a Promises/A+ library installed +* ES6 + +Module system +* CommonJS +* ES6 module system + +It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html)) + +### Building + +To build and compile the typescript sources to javascript use: +``` +npm install +npm run build +``` + +### Publishing + +First build the package then run `npm publish` + +### Consuming + +navigate to the folder of your consuming project and run one of the following commands. + +_published:_ + +``` +npm install @hashicorp/vault-client-typescript@0.0.0 --save +``` + +_unPublished (not recommended):_ + +``` +npm install PATH_TO_GENERATED_PACKAGE --save +``` diff --git a/ui/api-client/openapitools.json b/ui/api-client/openapitools.json new file mode 100644 index 0000000000..6f7db3e8ff --- /dev/null +++ b/ui/api-client/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.12.0" + } +} diff --git a/ui/api-client/package.json b/ui/api-client/package.json new file mode 100644 index 0000000000..46ce712d40 --- /dev/null +++ b/ui/api-client/package.json @@ -0,0 +1,21 @@ +{ + "name": "@hashicorp/vault-client-typescript", + "version": "0.0.0", + "description": "OpenAPI client for @hashicorp/vault-client-typescript", + "author": "OpenAPI-Generator", + "repository": { + "type": "git", + "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" + }, + "main": "./dist/index.js", + "typings": "./dist/index.d.ts", + "module": "./dist/esm/index.js", + "sideEffects": false, + "scripts": { + "build": "tsc && tsc -p tsconfig.esm.json", + "prepare": "npm run build" + }, + "devDependencies": { + "typescript": "^4.0 || ^5.0" + } +} diff --git a/ui/api-client/src/apis/AuthApi.ts b/ui/api-client/src/apis/AuthApi.ts new file mode 100644 index 0000000000..3e9ef27319 --- /dev/null +++ b/ui/api-client/src/apis/AuthApi.ts @@ -0,0 +1,15964 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime'; +import type { + AliCloudLoginRequest, + AliCloudWriteAuthRoleRequest, + AppRoleDestroySecretIdByAccessorRequest, + AppRoleDestroySecretIdRequest, + AppRoleLoginRequest, + AppRoleLookUpSecretIdByAccessorRequest, + AppRoleLookUpSecretIdByAccessorResponse, + AppRoleLookUpSecretIdRequest, + AppRoleLookUpSecretIdResponse, + AppRoleReadBindSecretIdResponse, + AppRoleReadBoundCidrListResponse, + AppRoleReadLocalSecretIdsResponse, + AppRoleReadPeriodResponse, + AppRoleReadPoliciesResponse, + AppRoleReadRoleIdResponse, + AppRoleReadRoleResponse, + AppRoleReadSecretIdBoundCidrsResponse, + AppRoleReadSecretIdNumUsesResponse, + AppRoleReadSecretIdTtlResponse, + AppRoleReadTokenBoundCidrsResponse, + AppRoleReadTokenMaxTtlResponse, + AppRoleReadTokenNumUsesResponse, + AppRoleReadTokenTtlResponse, + AppRoleWriteBindSecretIdRequest, + AppRoleWriteBoundCidrListRequest, + AppRoleWriteCustomSecretIdRequest, + AppRoleWriteCustomSecretIdResponse, + AppRoleWritePeriodRequest, + AppRoleWritePoliciesRequest, + AppRoleWriteRoleIdRequest, + AppRoleWriteRoleRequest, + AppRoleWriteSecretIdBoundCidrsRequest, + AppRoleWriteSecretIdNumUsesRequest, + AppRoleWriteSecretIdRequest, + AppRoleWriteSecretIdResponse, + AppRoleWriteSecretIdTtlRequest, + AppRoleWriteTokenBoundCidrsRequest, + AppRoleWriteTokenMaxTtlRequest, + AppRoleWriteTokenNumUsesRequest, + AppRoleWriteTokenTtlRequest, + AwsConfigureCertificateRequest, + AwsConfigureClientRequest, + AwsConfigureIdentityAccessListTidyOperationRequest, + AwsConfigureIdentityIntegrationRequest, + AwsConfigureIdentityWhitelistTidyOperationRequest, + AwsConfigureRoleTagBlacklistTidyOperationRequest, + AwsConfigureRoleTagDenyListTidyOperationRequest, + AwsLoginRequest, + AwsTidyIdentityAccessListRequest, + AwsTidyIdentityWhitelistRequest, + AwsTidyRoleTagBlacklistRequest, + AwsTidyRoleTagDenyListRequest, + AwsWriteAuthRoleRequest, + AwsWriteRoleTagRequest, + AwsWriteStsRoleRequest, + AzureConfigureAuthRequest, + AzureLoginRequest, + AzureWriteAuthRoleRequest, + CertConfigureRequest, + CertLoginRequest, + CertWriteCertificateRequest, + CertWriteCrlRequest, + CloudFoundryConfigureRequest, + CloudFoundryLoginRequest, + CloudFoundryWriteRoleRequest, + GithubConfigureRequest, + GithubLoginRequest, + GithubWriteTeamMappingRequest, + GithubWriteUserMappingRequest, + GoogleCloudConfigureAuthRequest, + GoogleCloudEditLabelsForRoleRequest, + GoogleCloudEditServiceAccountsForRoleRequest, + GoogleCloudLoginRequest, + GoogleCloudWriteRoleRequest, + JwtConfigureRequest, + JwtLoginRequest, + JwtOidcCallbackFormPostRequest, + JwtOidcRequestAuthorizationUrlRequest, + JwtWriteRoleRequest, + KerberosConfigureLdapRequest, + KerberosConfigureRequest, + KerberosLoginRequest, + KerberosWriteGroupRequest, + KubernetesConfigureAuthRequest, + KubernetesLoginRequest, + KubernetesWriteAuthRoleRequest, + LdapConfigureAuthRequest, + LdapLoginRequest, + LdapWriteGroupRequest, + LdapWriteUserRequest, + OciConfigureRequest, + OciLoginRequest, + OciWriteRoleRequest, + OktaConfigureRequest, + OktaLoginRequest, + OktaWriteGroupRequest, + OktaWriteUserRequest, + RadiusConfigureRequest, + RadiusLoginRequest, + RadiusLoginWithUsernameRequest, + RadiusWriteUserRequest, + StandardListResponse, + TokenCreateAgainstRoleRequest, + TokenCreateOrphanRequest, + TokenCreateRequest, + TokenLookUpAccessorRequest, + TokenLookUpRequest, + TokenLookUpSelf2Request, + TokenRenewAccessorRequest, + TokenRenewRequest, + TokenRenewSelfRequest, + TokenRevokeAccessorRequest, + TokenRevokeOrphanRequest, + TokenRevokeRequest, + TokenWriteRoleRequest, + UserpassLoginRequest, + UserpassResetPasswordRequest, + UserpassUpdatePoliciesRequest, + UserpassWriteUserRequest, +} from '../models/index'; +import { + AliCloudLoginRequestFromJSON, + AliCloudLoginRequestToJSON, + AliCloudWriteAuthRoleRequestFromJSON, + AliCloudWriteAuthRoleRequestToJSON, + AppRoleDestroySecretIdByAccessorRequestFromJSON, + AppRoleDestroySecretIdByAccessorRequestToJSON, + AppRoleDestroySecretIdRequestFromJSON, + AppRoleDestroySecretIdRequestToJSON, + AppRoleLoginRequestFromJSON, + AppRoleLoginRequestToJSON, + AppRoleLookUpSecretIdByAccessorRequestFromJSON, + AppRoleLookUpSecretIdByAccessorRequestToJSON, + AppRoleLookUpSecretIdByAccessorResponseFromJSON, + AppRoleLookUpSecretIdByAccessorResponseToJSON, + AppRoleLookUpSecretIdRequestFromJSON, + AppRoleLookUpSecretIdRequestToJSON, + AppRoleLookUpSecretIdResponseFromJSON, + AppRoleLookUpSecretIdResponseToJSON, + AppRoleReadBindSecretIdResponseFromJSON, + AppRoleReadBindSecretIdResponseToJSON, + AppRoleReadBoundCidrListResponseFromJSON, + AppRoleReadBoundCidrListResponseToJSON, + AppRoleReadLocalSecretIdsResponseFromJSON, + AppRoleReadLocalSecretIdsResponseToJSON, + AppRoleReadPeriodResponseFromJSON, + AppRoleReadPeriodResponseToJSON, + AppRoleReadPoliciesResponseFromJSON, + AppRoleReadPoliciesResponseToJSON, + AppRoleReadRoleIdResponseFromJSON, + AppRoleReadRoleIdResponseToJSON, + AppRoleReadRoleResponseFromJSON, + AppRoleReadRoleResponseToJSON, + AppRoleReadSecretIdBoundCidrsResponseFromJSON, + AppRoleReadSecretIdBoundCidrsResponseToJSON, + AppRoleReadSecretIdNumUsesResponseFromJSON, + AppRoleReadSecretIdNumUsesResponseToJSON, + AppRoleReadSecretIdTtlResponseFromJSON, + AppRoleReadSecretIdTtlResponseToJSON, + AppRoleReadTokenBoundCidrsResponseFromJSON, + AppRoleReadTokenBoundCidrsResponseToJSON, + AppRoleReadTokenMaxTtlResponseFromJSON, + AppRoleReadTokenMaxTtlResponseToJSON, + AppRoleReadTokenNumUsesResponseFromJSON, + AppRoleReadTokenNumUsesResponseToJSON, + AppRoleReadTokenTtlResponseFromJSON, + AppRoleReadTokenTtlResponseToJSON, + AppRoleWriteBindSecretIdRequestFromJSON, + AppRoleWriteBindSecretIdRequestToJSON, + AppRoleWriteBoundCidrListRequestFromJSON, + AppRoleWriteBoundCidrListRequestToJSON, + AppRoleWriteCustomSecretIdRequestFromJSON, + AppRoleWriteCustomSecretIdRequestToJSON, + AppRoleWriteCustomSecretIdResponseFromJSON, + AppRoleWriteCustomSecretIdResponseToJSON, + AppRoleWritePeriodRequestFromJSON, + AppRoleWritePeriodRequestToJSON, + AppRoleWritePoliciesRequestFromJSON, + AppRoleWritePoliciesRequestToJSON, + AppRoleWriteRoleIdRequestFromJSON, + AppRoleWriteRoleIdRequestToJSON, + AppRoleWriteRoleRequestFromJSON, + AppRoleWriteRoleRequestToJSON, + AppRoleWriteSecretIdBoundCidrsRequestFromJSON, + AppRoleWriteSecretIdBoundCidrsRequestToJSON, + AppRoleWriteSecretIdNumUsesRequestFromJSON, + AppRoleWriteSecretIdNumUsesRequestToJSON, + AppRoleWriteSecretIdRequestFromJSON, + AppRoleWriteSecretIdRequestToJSON, + AppRoleWriteSecretIdResponseFromJSON, + AppRoleWriteSecretIdResponseToJSON, + AppRoleWriteSecretIdTtlRequestFromJSON, + AppRoleWriteSecretIdTtlRequestToJSON, + AppRoleWriteTokenBoundCidrsRequestFromJSON, + AppRoleWriteTokenBoundCidrsRequestToJSON, + AppRoleWriteTokenMaxTtlRequestFromJSON, + AppRoleWriteTokenMaxTtlRequestToJSON, + AppRoleWriteTokenNumUsesRequestFromJSON, + AppRoleWriteTokenNumUsesRequestToJSON, + AppRoleWriteTokenTtlRequestFromJSON, + AppRoleWriteTokenTtlRequestToJSON, + AwsConfigureCertificateRequestFromJSON, + AwsConfigureCertificateRequestToJSON, + AwsConfigureClientRequestFromJSON, + AwsConfigureClientRequestToJSON, + AwsConfigureIdentityAccessListTidyOperationRequestFromJSON, + AwsConfigureIdentityAccessListTidyOperationRequestToJSON, + AwsConfigureIdentityIntegrationRequestFromJSON, + AwsConfigureIdentityIntegrationRequestToJSON, + AwsConfigureIdentityWhitelistTidyOperationRequestFromJSON, + AwsConfigureIdentityWhitelistTidyOperationRequestToJSON, + AwsConfigureRoleTagBlacklistTidyOperationRequestFromJSON, + AwsConfigureRoleTagBlacklistTidyOperationRequestToJSON, + AwsConfigureRoleTagDenyListTidyOperationRequestFromJSON, + AwsConfigureRoleTagDenyListTidyOperationRequestToJSON, + AwsLoginRequestFromJSON, + AwsLoginRequestToJSON, + AwsTidyIdentityAccessListRequestFromJSON, + AwsTidyIdentityAccessListRequestToJSON, + AwsTidyIdentityWhitelistRequestFromJSON, + AwsTidyIdentityWhitelistRequestToJSON, + AwsTidyRoleTagBlacklistRequestFromJSON, + AwsTidyRoleTagBlacklistRequestToJSON, + AwsTidyRoleTagDenyListRequestFromJSON, + AwsTidyRoleTagDenyListRequestToJSON, + AwsWriteAuthRoleRequestFromJSON, + AwsWriteAuthRoleRequestToJSON, + AwsWriteRoleTagRequestFromJSON, + AwsWriteRoleTagRequestToJSON, + AwsWriteStsRoleRequestFromJSON, + AwsWriteStsRoleRequestToJSON, + AzureConfigureAuthRequestFromJSON, + AzureConfigureAuthRequestToJSON, + AzureLoginRequestFromJSON, + AzureLoginRequestToJSON, + AzureWriteAuthRoleRequestFromJSON, + AzureWriteAuthRoleRequestToJSON, + CertConfigureRequestFromJSON, + CertConfigureRequestToJSON, + CertLoginRequestFromJSON, + CertLoginRequestToJSON, + CertWriteCertificateRequestFromJSON, + CertWriteCertificateRequestToJSON, + CertWriteCrlRequestFromJSON, + CertWriteCrlRequestToJSON, + CloudFoundryConfigureRequestFromJSON, + CloudFoundryConfigureRequestToJSON, + CloudFoundryLoginRequestFromJSON, + CloudFoundryLoginRequestToJSON, + CloudFoundryWriteRoleRequestFromJSON, + CloudFoundryWriteRoleRequestToJSON, + GithubConfigureRequestFromJSON, + GithubConfigureRequestToJSON, + GithubLoginRequestFromJSON, + GithubLoginRequestToJSON, + GithubWriteTeamMappingRequestFromJSON, + GithubWriteTeamMappingRequestToJSON, + GithubWriteUserMappingRequestFromJSON, + GithubWriteUserMappingRequestToJSON, + GoogleCloudConfigureAuthRequestFromJSON, + GoogleCloudConfigureAuthRequestToJSON, + GoogleCloudEditLabelsForRoleRequestFromJSON, + GoogleCloudEditLabelsForRoleRequestToJSON, + GoogleCloudEditServiceAccountsForRoleRequestFromJSON, + GoogleCloudEditServiceAccountsForRoleRequestToJSON, + GoogleCloudLoginRequestFromJSON, + GoogleCloudLoginRequestToJSON, + GoogleCloudWriteRoleRequestFromJSON, + GoogleCloudWriteRoleRequestToJSON, + JwtConfigureRequestFromJSON, + JwtConfigureRequestToJSON, + JwtLoginRequestFromJSON, + JwtLoginRequestToJSON, + JwtOidcCallbackFormPostRequestFromJSON, + JwtOidcCallbackFormPostRequestToJSON, + JwtOidcRequestAuthorizationUrlRequestFromJSON, + JwtOidcRequestAuthorizationUrlRequestToJSON, + JwtWriteRoleRequestFromJSON, + JwtWriteRoleRequestToJSON, + KerberosConfigureLdapRequestFromJSON, + KerberosConfigureLdapRequestToJSON, + KerberosConfigureRequestFromJSON, + KerberosConfigureRequestToJSON, + KerberosLoginRequestFromJSON, + KerberosLoginRequestToJSON, + KerberosWriteGroupRequestFromJSON, + KerberosWriteGroupRequestToJSON, + KubernetesConfigureAuthRequestFromJSON, + KubernetesConfigureAuthRequestToJSON, + KubernetesLoginRequestFromJSON, + KubernetesLoginRequestToJSON, + KubernetesWriteAuthRoleRequestFromJSON, + KubernetesWriteAuthRoleRequestToJSON, + LdapConfigureAuthRequestFromJSON, + LdapConfigureAuthRequestToJSON, + LdapLoginRequestFromJSON, + LdapLoginRequestToJSON, + LdapWriteGroupRequestFromJSON, + LdapWriteGroupRequestToJSON, + LdapWriteUserRequestFromJSON, + LdapWriteUserRequestToJSON, + OciConfigureRequestFromJSON, + OciConfigureRequestToJSON, + OciLoginRequestFromJSON, + OciLoginRequestToJSON, + OciWriteRoleRequestFromJSON, + OciWriteRoleRequestToJSON, + OktaConfigureRequestFromJSON, + OktaConfigureRequestToJSON, + OktaLoginRequestFromJSON, + OktaLoginRequestToJSON, + OktaWriteGroupRequestFromJSON, + OktaWriteGroupRequestToJSON, + OktaWriteUserRequestFromJSON, + OktaWriteUserRequestToJSON, + RadiusConfigureRequestFromJSON, + RadiusConfigureRequestToJSON, + RadiusLoginRequestFromJSON, + RadiusLoginRequestToJSON, + RadiusLoginWithUsernameRequestFromJSON, + RadiusLoginWithUsernameRequestToJSON, + RadiusWriteUserRequestFromJSON, + RadiusWriteUserRequestToJSON, + StandardListResponseFromJSON, + StandardListResponseToJSON, + TokenCreateAgainstRoleRequestFromJSON, + TokenCreateAgainstRoleRequestToJSON, + TokenCreateOrphanRequestFromJSON, + TokenCreateOrphanRequestToJSON, + TokenCreateRequestFromJSON, + TokenCreateRequestToJSON, + TokenLookUpAccessorRequestFromJSON, + TokenLookUpAccessorRequestToJSON, + TokenLookUpRequestFromJSON, + TokenLookUpRequestToJSON, + TokenLookUpSelf2RequestFromJSON, + TokenLookUpSelf2RequestToJSON, + TokenRenewAccessorRequestFromJSON, + TokenRenewAccessorRequestToJSON, + TokenRenewRequestFromJSON, + TokenRenewRequestToJSON, + TokenRenewSelfRequestFromJSON, + TokenRenewSelfRequestToJSON, + TokenRevokeAccessorRequestFromJSON, + TokenRevokeAccessorRequestToJSON, + TokenRevokeOrphanRequestFromJSON, + TokenRevokeOrphanRequestToJSON, + TokenRevokeRequestFromJSON, + TokenRevokeRequestToJSON, + TokenWriteRoleRequestFromJSON, + TokenWriteRoleRequestToJSON, + UserpassLoginRequestFromJSON, + UserpassLoginRequestToJSON, + UserpassResetPasswordRequestFromJSON, + UserpassResetPasswordRequestToJSON, + UserpassUpdatePoliciesRequestFromJSON, + UserpassUpdatePoliciesRequestToJSON, + UserpassWriteUserRequestFromJSON, + UserpassWriteUserRequestToJSON, +} from '../models/index'; + +export interface AuthApiAliCloudDeleteAuthRoleRequest { + role: string; + alicloudMountPath: string; +} + +export interface AuthApiAliCloudListAuthRolesRequest { + alicloudMountPath: string; + list: AliCloudListAuthRolesListEnum; +} + +export interface AuthApiAliCloudListAuthRoles2Request { + alicloudMountPath: string; + list: AliCloudListAuthRoles2ListEnum; +} + +export interface AuthApiAliCloudLoginOperationRequest { + alicloudMountPath: string; + aliCloudLoginRequest: AliCloudLoginRequest; +} + +export interface AuthApiAliCloudReadAuthRoleRequest { + role: string; + alicloudMountPath: string; +} + +export interface AuthApiAliCloudWriteAuthRoleOperationRequest { + role: string; + alicloudMountPath: string; + aliCloudWriteAuthRoleRequest: AliCloudWriteAuthRoleRequest; +} + +export interface AuthApiAppRoleDeleteBindSecretIdRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteBoundCidrListRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeletePeriodRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeletePoliciesRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteRoleRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteSecretIdBoundCidrsRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteSecretIdNumUsesRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteSecretIdTtlRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteTokenBoundCidrsRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteTokenMaxTtlRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteTokenNumUsesRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDeleteTokenTtlRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleDestroySecretIdOperationRequest { + roleName: string; + approleMountPath: string; + appRoleDestroySecretIdRequest: AppRoleDestroySecretIdRequest; +} + +export interface AuthApiAppRoleDestroySecretId2Request { + roleName: string; + approleMountPath: string; + secretId?: string; +} + +export interface AuthApiAppRoleDestroySecretIdByAccessorOperationRequest { + roleName: string; + approleMountPath: string; + appRoleDestroySecretIdByAccessorRequest: AppRoleDestroySecretIdByAccessorRequest; +} + +export interface AuthApiAppRoleDestroySecretIdByAccessor2Request { + roleName: string; + approleMountPath: string; + secretIdAccessor?: string; +} + +export interface AuthApiAppRoleListRolesRequest { + approleMountPath: string; + list: AppRoleListRolesListEnum; +} + +export interface AuthApiAppRoleListSecretIdsRequest { + roleName: string; + approleMountPath: string; + list: AppRoleListSecretIdsListEnum; +} + +export interface AuthApiAppRoleLoginOperationRequest { + approleMountPath: string; + appRoleLoginRequest: AppRoleLoginRequest; +} + +export interface AuthApiAppRoleLookUpSecretIdOperationRequest { + roleName: string; + approleMountPath: string; + appRoleLookUpSecretIdRequest: AppRoleLookUpSecretIdRequest; +} + +export interface AuthApiAppRoleLookUpSecretIdByAccessorOperationRequest { + roleName: string; + approleMountPath: string; + appRoleLookUpSecretIdByAccessorRequest: AppRoleLookUpSecretIdByAccessorRequest; +} + +export interface AuthApiAppRoleReadBindSecretIdRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadBoundCidrListRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadLocalSecretIdsRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadPeriodRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadPoliciesRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadRoleRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadRoleIdRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadSecretIdBoundCidrsRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadSecretIdNumUsesRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadSecretIdTtlRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadTokenBoundCidrsRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadTokenMaxTtlRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadTokenNumUsesRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleReadTokenTtlRequest { + roleName: string; + approleMountPath: string; +} + +export interface AuthApiAppRoleTidySecretIdRequest { + approleMountPath: string; +} + +export interface AuthApiAppRoleWriteBindSecretIdOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteBindSecretIdRequest: AppRoleWriteBindSecretIdRequest; +} + +export interface AuthApiAppRoleWriteBoundCidrListOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteBoundCidrListRequest: AppRoleWriteBoundCidrListRequest; +} + +export interface AuthApiAppRoleWriteCustomSecretIdOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteCustomSecretIdRequest: AppRoleWriteCustomSecretIdRequest; +} + +export interface AuthApiAppRoleWritePeriodOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWritePeriodRequest: AppRoleWritePeriodRequest; +} + +export interface AuthApiAppRoleWritePoliciesOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWritePoliciesRequest: AppRoleWritePoliciesRequest; +} + +export interface AuthApiAppRoleWriteRoleOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteRoleRequest: AppRoleWriteRoleRequest; +} + +export interface AuthApiAppRoleWriteRoleIdOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteRoleIdRequest: AppRoleWriteRoleIdRequest; +} + +export interface AuthApiAppRoleWriteSecretIdOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteSecretIdRequest: AppRoleWriteSecretIdRequest; +} + +export interface AuthApiAppRoleWriteSecretIdBoundCidrsOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteSecretIdBoundCidrsRequest: AppRoleWriteSecretIdBoundCidrsRequest; +} + +export interface AuthApiAppRoleWriteSecretIdNumUsesOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteSecretIdNumUsesRequest: AppRoleWriteSecretIdNumUsesRequest; +} + +export interface AuthApiAppRoleWriteSecretIdTtlOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteSecretIdTtlRequest: AppRoleWriteSecretIdTtlRequest; +} + +export interface AuthApiAppRoleWriteTokenBoundCidrsOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteTokenBoundCidrsRequest: AppRoleWriteTokenBoundCidrsRequest; +} + +export interface AuthApiAppRoleWriteTokenMaxTtlOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteTokenMaxTtlRequest: AppRoleWriteTokenMaxTtlRequest; +} + +export interface AuthApiAppRoleWriteTokenNumUsesOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteTokenNumUsesRequest: AppRoleWriteTokenNumUsesRequest; +} + +export interface AuthApiAppRoleWriteTokenTtlOperationRequest { + roleName: string; + approleMountPath: string; + appRoleWriteTokenTtlRequest: AppRoleWriteTokenTtlRequest; +} + +export interface AuthApiAwsConfigureCertificateOperationRequest { + certName: string; + awsMountPath: string; + awsConfigureCertificateRequest: AwsConfigureCertificateRequest; +} + +export interface AuthApiAwsConfigureClientOperationRequest { + awsMountPath: string; + awsConfigureClientRequest: AwsConfigureClientRequest; +} + +export interface AuthApiAwsConfigureIdentityAccessListTidyOperationOperationRequest { + awsMountPath: string; + awsConfigureIdentityAccessListTidyOperationRequest: AwsConfigureIdentityAccessListTidyOperationRequest; +} + +export interface AuthApiAwsConfigureIdentityIntegrationOperationRequest { + awsMountPath: string; + awsConfigureIdentityIntegrationRequest: AwsConfigureIdentityIntegrationRequest; +} + +export interface AuthApiAwsConfigureIdentityWhitelistTidyOperationOperationRequest { + awsMountPath: string; + awsConfigureIdentityWhitelistTidyOperationRequest: AwsConfigureIdentityWhitelistTidyOperationRequest; +} + +export interface AuthApiAwsConfigureRoleTagBlacklistTidyOperationOperationRequest { + awsMountPath: string; + awsConfigureRoleTagBlacklistTidyOperationRequest: AwsConfigureRoleTagBlacklistTidyOperationRequest; +} + +export interface AuthApiAwsConfigureRoleTagDenyListTidyOperationOperationRequest { + awsMountPath: string; + awsConfigureRoleTagDenyListTidyOperationRequest: AwsConfigureRoleTagDenyListTidyOperationRequest; +} + +export interface AuthApiAwsDeleteAuthRoleRequest { + role: string; + awsMountPath: string; +} + +export interface AuthApiAwsDeleteCertificateConfigurationRequest { + certName: string; + awsMountPath: string; +} + +export interface AuthApiAwsDeleteClientConfigurationRequest { + awsMountPath: string; +} + +export interface AuthApiAwsDeleteIdentityAccessListRequest { + instanceId: string; + awsMountPath: string; +} + +export interface AuthApiAwsDeleteIdentityAccessListTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsDeleteIdentityWhitelistRequest { + instanceId: string; + awsMountPath: string; +} + +export interface AuthApiAwsDeleteIdentityWhitelistTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsDeleteRoleTagBlacklistRequest { + roleTag: string; + awsMountPath: string; +} + +export interface AuthApiAwsDeleteRoleTagBlacklistTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsDeleteRoleTagDenyListRequest { + roleTag: string; + awsMountPath: string; +} + +export interface AuthApiAwsDeleteRoleTagDenyListTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsDeleteStsRoleRequest { + accountId: string; + awsMountPath: string; +} + +export interface AuthApiAwsListAuthRolesRequest { + awsMountPath: string; + list: AwsListAuthRolesListEnum; +} + +export interface AuthApiAwsListAuthRoles2Request { + awsMountPath: string; + list: AwsListAuthRoles2ListEnum; +} + +export interface AuthApiAwsListCertificateConfigurationsRequest { + awsMountPath: string; + list: AwsListCertificateConfigurationsListEnum; +} + +export interface AuthApiAwsListIdentityAccessListRequest { + awsMountPath: string; + list: AwsListIdentityAccessListListEnum; +} + +export interface AuthApiAwsListIdentityWhitelistRequest { + awsMountPath: string; + list: AwsListIdentityWhitelistListEnum; +} + +export interface AuthApiAwsListRoleTagBlacklistsRequest { + awsMountPath: string; + list: AwsListRoleTagBlacklistsListEnum; +} + +export interface AuthApiAwsListRoleTagDenyListsRequest { + awsMountPath: string; + list: AwsListRoleTagDenyListsListEnum; +} + +export interface AuthApiAwsListStsRoleRelationshipsRequest { + awsMountPath: string; + list: AwsListStsRoleRelationshipsListEnum; +} + +export interface AuthApiAwsLoginOperationRequest { + awsMountPath: string; + awsLoginRequest: AwsLoginRequest; +} + +export interface AuthApiAwsReadAuthRoleRequest { + role: string; + awsMountPath: string; +} + +export interface AuthApiAwsReadCertificateConfigurationRequest { + certName: string; + awsMountPath: string; +} + +export interface AuthApiAwsReadClientConfigurationRequest { + awsMountPath: string; +} + +export interface AuthApiAwsReadIdentityAccessListRequest { + instanceId: string; + awsMountPath: string; +} + +export interface AuthApiAwsReadIdentityAccessListTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsReadIdentityIntegrationConfigurationRequest { + awsMountPath: string; +} + +export interface AuthApiAwsReadIdentityWhitelistRequest { + instanceId: string; + awsMountPath: string; +} + +export interface AuthApiAwsReadIdentityWhitelistTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsReadRoleTagBlacklistRequest { + roleTag: string; + awsMountPath: string; +} + +export interface AuthApiAwsReadRoleTagBlacklistTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsReadRoleTagDenyListRequest { + roleTag: string; + awsMountPath: string; +} + +export interface AuthApiAwsReadRoleTagDenyListTidySettingsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsReadStsRoleRequest { + accountId: string; + awsMountPath: string; +} + +export interface AuthApiAwsRotateRootCredentialsRequest { + awsMountPath: string; +} + +export interface AuthApiAwsTidyIdentityAccessListOperationRequest { + awsMountPath: string; + awsTidyIdentityAccessListRequest: AwsTidyIdentityAccessListRequest; +} + +export interface AuthApiAwsTidyIdentityWhitelistOperationRequest { + awsMountPath: string; + awsTidyIdentityWhitelistRequest: AwsTidyIdentityWhitelistRequest; +} + +export interface AuthApiAwsTidyRoleTagBlacklistOperationRequest { + awsMountPath: string; + awsTidyRoleTagBlacklistRequest: AwsTidyRoleTagBlacklistRequest; +} + +export interface AuthApiAwsTidyRoleTagDenyListOperationRequest { + awsMountPath: string; + awsTidyRoleTagDenyListRequest: AwsTidyRoleTagDenyListRequest; +} + +export interface AuthApiAwsWriteAuthRoleOperationRequest { + role: string; + awsMountPath: string; + awsWriteAuthRoleRequest: AwsWriteAuthRoleRequest; +} + +export interface AuthApiAwsWriteRoleTagOperationRequest { + role: string; + awsMountPath: string; + awsWriteRoleTagRequest: AwsWriteRoleTagRequest; +} + +export interface AuthApiAwsWriteRoleTagBlacklistRequest { + roleTag: string; + awsMountPath: string; +} + +export interface AuthApiAwsWriteRoleTagDenyListRequest { + roleTag: string; + awsMountPath: string; +} + +export interface AuthApiAwsWriteStsRoleOperationRequest { + accountId: string; + awsMountPath: string; + awsWriteStsRoleRequest: AwsWriteStsRoleRequest; +} + +export interface AuthApiAzureConfigureAuthOperationRequest { + azureMountPath: string; + azureConfigureAuthRequest: AzureConfigureAuthRequest; +} + +export interface AuthApiAzureDeleteAuthConfigurationRequest { + azureMountPath: string; +} + +export interface AuthApiAzureDeleteAuthRoleRequest { + name: string; + azureMountPath: string; +} + +export interface AuthApiAzureListAuthRolesRequest { + azureMountPath: string; + list: AzureListAuthRolesListEnum; +} + +export interface AuthApiAzureLoginOperationRequest { + azureMountPath: string; + azureLoginRequest: AzureLoginRequest; +} + +export interface AuthApiAzureReadAuthConfigurationRequest { + azureMountPath: string; +} + +export interface AuthApiAzureReadAuthRoleRequest { + name: string; + azureMountPath: string; +} + +export interface AuthApiAzureRotateRootCredentialsRequest { + azureMountPath: string; +} + +export interface AuthApiAzureWriteAuthRoleOperationRequest { + name: string; + azureMountPath: string; + azureWriteAuthRoleRequest: AzureWriteAuthRoleRequest; +} + +export interface AuthApiCertConfigureOperationRequest { + certMountPath: string; + certConfigureRequest: CertConfigureRequest; +} + +export interface AuthApiCertDeleteCertificateRequest { + name: string; + certMountPath: string; +} + +export interface AuthApiCertDeleteCrlRequest { + name: string; + certMountPath: string; +} + +export interface AuthApiCertListCertificatesRequest { + certMountPath: string; + list: CertListCertificatesListEnum; +} + +export interface AuthApiCertListCrlsRequest { + certMountPath: string; + list: CertListCrlsListEnum; +} + +export interface AuthApiCertLoginOperationRequest { + certMountPath: string; + certLoginRequest: CertLoginRequest; +} + +export interface AuthApiCertReadCertificateRequest { + name: string; + certMountPath: string; +} + +export interface AuthApiCertReadConfigurationRequest { + certMountPath: string; +} + +export interface AuthApiCertReadCrlRequest { + name: string; + certMountPath: string; +} + +export interface AuthApiCertWriteCertificateOperationRequest { + name: string; + certMountPath: string; + certWriteCertificateRequest: CertWriteCertificateRequest; +} + +export interface AuthApiCertWriteCrlOperationRequest { + name: string; + certMountPath: string; + certWriteCrlRequest: CertWriteCrlRequest; +} + +export interface AuthApiCloudFoundryConfigureOperationRequest { + cfMountPath: string; + cloudFoundryConfigureRequest: CloudFoundryConfigureRequest; +} + +export interface AuthApiCloudFoundryDeleteConfigurationRequest { + cfMountPath: string; +} + +export interface AuthApiCloudFoundryDeleteRoleRequest { + role: string; + cfMountPath: string; +} + +export interface AuthApiCloudFoundryListRolesRequest { + cfMountPath: string; + list: CloudFoundryListRolesListEnum; +} + +export interface AuthApiCloudFoundryLoginOperationRequest { + cfMountPath: string; + cloudFoundryLoginRequest: CloudFoundryLoginRequest; +} + +export interface AuthApiCloudFoundryReadConfigurationRequest { + cfMountPath: string; +} + +export interface AuthApiCloudFoundryReadRoleRequest { + role: string; + cfMountPath: string; +} + +export interface AuthApiCloudFoundryWriteRoleOperationRequest { + role: string; + cfMountPath: string; + cloudFoundryWriteRoleRequest: CloudFoundryWriteRoleRequest; +} + +export interface AuthApiGithubConfigureOperationRequest { + githubMountPath: string; + githubConfigureRequest: GithubConfigureRequest; +} + +export interface AuthApiGithubDeleteTeamMappingRequest { + key: string; + githubMountPath: string; +} + +export interface AuthApiGithubDeleteUserMappingRequest { + key: string; + githubMountPath: string; +} + +export interface AuthApiGithubListTeamsRequest { + githubMountPath: string; + list: GithubListTeamsListEnum; +} + +export interface AuthApiGithubListTeams2Request { + githubMountPath: string; +} + +export interface AuthApiGithubListUsersRequest { + githubMountPath: string; + list: GithubListUsersListEnum; +} + +export interface AuthApiGithubListUsers2Request { + githubMountPath: string; +} + +export interface AuthApiGithubLoginOperationRequest { + githubMountPath: string; + githubLoginRequest: GithubLoginRequest; +} + +export interface AuthApiGithubReadConfigurationRequest { + githubMountPath: string; +} + +export interface AuthApiGithubReadTeamMappingRequest { + key: string; + githubMountPath: string; +} + +export interface AuthApiGithubReadUserMappingRequest { + key: string; + githubMountPath: string; +} + +export interface AuthApiGithubWriteTeamMappingOperationRequest { + key: string; + githubMountPath: string; + githubWriteTeamMappingRequest: GithubWriteTeamMappingRequest; +} + +export interface AuthApiGithubWriteUserMappingOperationRequest { + key: string; + githubMountPath: string; + githubWriteUserMappingRequest: GithubWriteUserMappingRequest; +} + +export interface AuthApiGoogleCloudConfigureAuthOperationRequest { + gcpMountPath: string; + googleCloudConfigureAuthRequest: GoogleCloudConfigureAuthRequest; +} + +export interface AuthApiGoogleCloudDeleteRoleRequest { + name: string; + gcpMountPath: string; +} + +export interface AuthApiGoogleCloudEditLabelsForRoleOperationRequest { + name: string; + gcpMountPath: string; + googleCloudEditLabelsForRoleRequest: GoogleCloudEditLabelsForRoleRequest; +} + +export interface AuthApiGoogleCloudEditServiceAccountsForRoleOperationRequest { + name: string; + gcpMountPath: string; + googleCloudEditServiceAccountsForRoleRequest: GoogleCloudEditServiceAccountsForRoleRequest; +} + +export interface AuthApiGoogleCloudListRolesRequest { + gcpMountPath: string; + list: GoogleCloudListRolesListEnum; +} + +export interface AuthApiGoogleCloudListRoles2Request { + gcpMountPath: string; + list: GoogleCloudListRoles2ListEnum; +} + +export interface AuthApiGoogleCloudLoginOperationRequest { + gcpMountPath: string; + googleCloudLoginRequest: GoogleCloudLoginRequest; +} + +export interface AuthApiGoogleCloudReadAuthConfigurationRequest { + gcpMountPath: string; +} + +export interface AuthApiGoogleCloudReadRoleRequest { + name: string; + gcpMountPath: string; +} + +export interface AuthApiGoogleCloudRotateRootCredentialsRequest { + gcpMountPath: string; +} + +export interface AuthApiGoogleCloudWriteRoleOperationRequest { + name: string; + gcpMountPath: string; + googleCloudWriteRoleRequest: GoogleCloudWriteRoleRequest; +} + +export interface AuthApiJwtConfigureOperationRequest { + jwtMountPath: string; + jwtConfigureRequest: JwtConfigureRequest; +} + +export interface AuthApiJwtDeleteRoleRequest { + name: string; + jwtMountPath: string; +} + +export interface AuthApiJwtListRolesRequest { + jwtMountPath: string; + list: JwtListRolesListEnum; +} + +export interface AuthApiJwtLoginOperationRequest { + jwtMountPath: string; + jwtLoginRequest: JwtLoginRequest; +} + +export interface AuthApiJwtOidcCallbackRequest { + jwtMountPath: string; + clientNonce?: string; + code?: string; + state?: string; +} + +export interface AuthApiJwtOidcCallbackFormPostOperationRequest { + jwtMountPath: string; + jwtOidcCallbackFormPostRequest: JwtOidcCallbackFormPostRequest; +} + +export interface AuthApiJwtOidcRequestAuthorizationUrlOperationRequest { + jwtMountPath: string; + jwtOidcRequestAuthorizationUrlRequest: JwtOidcRequestAuthorizationUrlRequest; +} + +export interface AuthApiJwtReadConfigurationRequest { + jwtMountPath: string; +} + +export interface AuthApiJwtReadRoleRequest { + name: string; + jwtMountPath: string; +} + +export interface AuthApiJwtWriteRoleOperationRequest { + name: string; + jwtMountPath: string; + jwtWriteRoleRequest: JwtWriteRoleRequest; +} + +export interface AuthApiKerberosConfigureOperationRequest { + kerberosMountPath: string; + kerberosConfigureRequest: KerberosConfigureRequest; +} + +export interface AuthApiKerberosConfigureLdapOperationRequest { + kerberosMountPath: string; + kerberosConfigureLdapRequest: KerberosConfigureLdapRequest; +} + +export interface AuthApiKerberosDeleteGroupRequest { + name: string; + kerberosMountPath: string; +} + +export interface AuthApiKerberosListGroupsRequest { + kerberosMountPath: string; + list: KerberosListGroupsListEnum; +} + +export interface AuthApiKerberosLoginOperationRequest { + kerberosMountPath: string; + kerberosLoginRequest: KerberosLoginRequest; +} + +export interface AuthApiKerberosLogin2Request { + kerberosMountPath: string; +} + +export interface AuthApiKerberosReadConfigurationRequest { + kerberosMountPath: string; +} + +export interface AuthApiKerberosReadGroupRequest { + name: string; + kerberosMountPath: string; +} + +export interface AuthApiKerberosReadLdapConfigurationRequest { + kerberosMountPath: string; +} + +export interface AuthApiKerberosWriteGroupOperationRequest { + name: string; + kerberosMountPath: string; + kerberosWriteGroupRequest: KerberosWriteGroupRequest; +} + +export interface AuthApiKubernetesConfigureAuthOperationRequest { + kubernetesMountPath: string; + kubernetesConfigureAuthRequest: KubernetesConfigureAuthRequest; +} + +export interface AuthApiKubernetesDeleteAuthRoleRequest { + name: string; + kubernetesMountPath: string; +} + +export interface AuthApiKubernetesListAuthRolesRequest { + kubernetesMountPath: string; + list: KubernetesListAuthRolesListEnum; +} + +export interface AuthApiKubernetesLoginOperationRequest { + kubernetesMountPath: string; + kubernetesLoginRequest: KubernetesLoginRequest; +} + +export interface AuthApiKubernetesReadAuthConfigurationRequest { + kubernetesMountPath: string; +} + +export interface AuthApiKubernetesReadAuthRoleRequest { + name: string; + kubernetesMountPath: string; +} + +export interface AuthApiKubernetesWriteAuthRoleOperationRequest { + name: string; + kubernetesMountPath: string; + kubernetesWriteAuthRoleRequest: KubernetesWriteAuthRoleRequest; +} + +export interface AuthApiLdapConfigureAuthOperationRequest { + ldapMountPath: string; + ldapConfigureAuthRequest: LdapConfigureAuthRequest; +} + +export interface AuthApiLdapDeleteGroupRequest { + name: string; + ldapMountPath: string; +} + +export interface AuthApiLdapDeleteUserRequest { + name: string; + ldapMountPath: string; +} + +export interface AuthApiLdapListGroupsRequest { + ldapMountPath: string; + list: LdapListGroupsListEnum; +} + +export interface AuthApiLdapListUsersRequest { + ldapMountPath: string; + list: LdapListUsersListEnum; +} + +export interface AuthApiLdapLoginOperationRequest { + username: string; + ldapMountPath: string; + ldapLoginRequest: LdapLoginRequest; +} + +export interface AuthApiLdapReadAuthConfigurationRequest { + ldapMountPath: string; +} + +export interface AuthApiLdapReadGroupRequest { + name: string; + ldapMountPath: string; +} + +export interface AuthApiLdapReadUserRequest { + name: string; + ldapMountPath: string; +} + +export interface AuthApiLdapRotateRootCredentialsRequest { + ldapMountPath: string; +} + +export interface AuthApiLdapWriteGroupOperationRequest { + name: string; + ldapMountPath: string; + ldapWriteGroupRequest: LdapWriteGroupRequest; +} + +export interface AuthApiLdapWriteUserOperationRequest { + name: string; + ldapMountPath: string; + ldapWriteUserRequest: LdapWriteUserRequest; +} + +export interface AuthApiOciConfigureOperationRequest { + ociMountPath: string; + ociConfigureRequest: OciConfigureRequest; +} + +export interface AuthApiOciDeleteConfigurationRequest { + ociMountPath: string; +} + +export interface AuthApiOciDeleteRoleRequest { + role: string; + ociMountPath: string; +} + +export interface AuthApiOciListRolesRequest { + ociMountPath: string; + list: OciListRolesListEnum; +} + +export interface AuthApiOciLoginOperationRequest { + role: string; + ociMountPath: string; + ociLoginRequest: OciLoginRequest; +} + +export interface AuthApiOciReadConfigurationRequest { + ociMountPath: string; +} + +export interface AuthApiOciReadRoleRequest { + role: string; + ociMountPath: string; +} + +export interface AuthApiOciWriteRoleOperationRequest { + role: string; + ociMountPath: string; + ociWriteRoleRequest: OciWriteRoleRequest; +} + +export interface AuthApiOktaConfigureOperationRequest { + oktaMountPath: string; + oktaConfigureRequest: OktaConfigureRequest; +} + +export interface AuthApiOktaDeleteGroupRequest { + name: string; + oktaMountPath: string; +} + +export interface AuthApiOktaDeleteUserRequest { + name: string; + oktaMountPath: string; +} + +export interface AuthApiOktaListGroupsRequest { + oktaMountPath: string; + list: OktaListGroupsListEnum; +} + +export interface AuthApiOktaListUsersRequest { + oktaMountPath: string; + list: OktaListUsersListEnum; +} + +export interface AuthApiOktaLoginOperationRequest { + username: string; + oktaMountPath: string; + oktaLoginRequest: OktaLoginRequest; +} + +export interface AuthApiOktaReadConfigurationRequest { + oktaMountPath: string; +} + +export interface AuthApiOktaReadGroupRequest { + name: string; + oktaMountPath: string; +} + +export interface AuthApiOktaReadUserRequest { + name: string; + oktaMountPath: string; +} + +export interface AuthApiOktaVerifyRequest { + nonce: string; + oktaMountPath: string; +} + +export interface AuthApiOktaWriteGroupOperationRequest { + name: string; + oktaMountPath: string; + oktaWriteGroupRequest: OktaWriteGroupRequest; +} + +export interface AuthApiOktaWriteUserOperationRequest { + name: string; + oktaMountPath: string; + oktaWriteUserRequest: OktaWriteUserRequest; +} + +export interface AuthApiRadiusConfigureOperationRequest { + radiusMountPath: string; + radiusConfigureRequest: RadiusConfigureRequest; +} + +export interface AuthApiRadiusDeleteUserRequest { + name: string; + radiusMountPath: string; +} + +export interface AuthApiRadiusListUsersRequest { + radiusMountPath: string; + list: RadiusListUsersListEnum; +} + +export interface AuthApiRadiusLoginOperationRequest { + radiusMountPath: string; + radiusLoginRequest: RadiusLoginRequest; +} + +export interface AuthApiRadiusLoginWithUsernameOperationRequest { + urlusername: string; + radiusMountPath: string; + radiusLoginWithUsernameRequest: RadiusLoginWithUsernameRequest; +} + +export interface AuthApiRadiusReadConfigurationRequest { + radiusMountPath: string; +} + +export interface AuthApiRadiusReadUserRequest { + name: string; + radiusMountPath: string; +} + +export interface AuthApiRadiusWriteUserOperationRequest { + name: string; + radiusMountPath: string; + radiusWriteUserRequest: RadiusWriteUserRequest; +} + +export interface AuthApiTokenCreateOperationRequest { + tokenCreateRequest: TokenCreateRequest; +} + +export interface AuthApiTokenCreateAgainstRoleOperationRequest { + roleName: string; + tokenCreateAgainstRoleRequest: TokenCreateAgainstRoleRequest; +} + +export interface AuthApiTokenCreateOrphanOperationRequest { + tokenCreateOrphanRequest: TokenCreateOrphanRequest; +} + +export interface AuthApiTokenDeleteRoleRequest { + roleName: string; +} + +export interface AuthApiTokenListAccessorsRequest { + list: TokenListAccessorsListEnum; +} + +export interface AuthApiTokenListRolesRequest { + list: TokenListRolesListEnum; +} + +export interface AuthApiTokenLookUpOperationRequest { + tokenLookUpRequest: TokenLookUpRequest; +} + +export interface AuthApiTokenLookUp2Request { + token?: string; +} + +export interface AuthApiTokenLookUpAccessorOperationRequest { + tokenLookUpAccessorRequest: TokenLookUpAccessorRequest; +} + +export interface AuthApiTokenLookUpSelf2OperationRequest { + tokenLookUpSelf2Request: TokenLookUpSelf2Request; +} + +export interface AuthApiTokenReadRoleRequest { + roleName: string; +} + +export interface AuthApiTokenRenewOperationRequest { + tokenRenewRequest: TokenRenewRequest; +} + +export interface AuthApiTokenRenewAccessorOperationRequest { + tokenRenewAccessorRequest: TokenRenewAccessorRequest; +} + +export interface AuthApiTokenRenewSelfOperationRequest { + tokenRenewSelfRequest: TokenRenewSelfRequest; +} + +export interface AuthApiTokenRevokeOperationRequest { + tokenRevokeRequest: TokenRevokeRequest; +} + +export interface AuthApiTokenRevokeAccessorOperationRequest { + tokenRevokeAccessorRequest: TokenRevokeAccessorRequest; +} + +export interface AuthApiTokenRevokeOrphanOperationRequest { + tokenRevokeOrphanRequest: TokenRevokeOrphanRequest; +} + +export interface AuthApiTokenWriteRoleOperationRequest { + roleName: string; + tokenWriteRoleRequest: TokenWriteRoleRequest; +} + +export interface AuthApiUserpassDeleteUserRequest { + username: string; + userpassMountPath: string; +} + +export interface AuthApiUserpassListUsersRequest { + userpassMountPath: string; + list: UserpassListUsersListEnum; +} + +export interface AuthApiUserpassLoginOperationRequest { + username: string; + userpassMountPath: string; + userpassLoginRequest: UserpassLoginRequest; +} + +export interface AuthApiUserpassReadUserRequest { + username: string; + userpassMountPath: string; +} + +export interface AuthApiUserpassResetPasswordOperationRequest { + username: string; + userpassMountPath: string; + userpassResetPasswordRequest: UserpassResetPasswordRequest; +} + +export interface AuthApiUserpassUpdatePoliciesOperationRequest { + username: string; + userpassMountPath: string; + userpassUpdatePoliciesRequest: UserpassUpdatePoliciesRequest; +} + +export interface AuthApiUserpassWriteUserOperationRequest { + username: string; + userpassMountPath: string; + userpassWriteUserRequest: UserpassWriteUserRequest; +} + +/** + * + */ +export class AuthApi extends runtime.BaseAPI { + /** + * Create a role and associate policies to it. + */ + async aliCloudDeleteAuthRoleRaw( + requestParameters: AuthApiAliCloudDeleteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling aliCloudDeleteAuthRole().' + ); + } + + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudDeleteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{alicloud_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a role and associate policies to it. + */ + async aliCloudDeleteAuthRole( + role: string, + alicloudMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudDeleteAuthRoleRaw({ role: role, alicloudMountPath: alicloudMountPath }, initOverrides); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async aliCloudListAuthRolesRaw( + requestParameters: AuthApiAliCloudListAuthRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudListAuthRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling aliCloudListAuthRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{alicloud_mount_path}/role/`.replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async aliCloudListAuthRoles( + alicloudMountPath: string, + list: AliCloudListAuthRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.aliCloudListAuthRolesRaw( + { alicloudMountPath: alicloudMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async aliCloudListAuthRoles2Raw( + requestParameters: AuthApiAliCloudListAuthRoles2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudListAuthRoles2().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling aliCloudListAuthRoles2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{alicloud_mount_path}/roles/`.replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async aliCloudListAuthRoles2( + alicloudMountPath: string, + list: AliCloudListAuthRoles2ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.aliCloudListAuthRoles2Raw( + { alicloudMountPath: alicloudMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Authenticates an RAM entity with Vault. + */ + async aliCloudLoginRaw( + requestParameters: AuthApiAliCloudLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudLogin().' + ); + } + + if (requestParameters['aliCloudLoginRequest'] == null) { + throw new runtime.RequiredError( + 'aliCloudLoginRequest', + 'Required parameter "aliCloudLoginRequest" was null or undefined when calling aliCloudLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{alicloud_mount_path}/login`.replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AliCloudLoginRequestToJSON(requestParameters['aliCloudLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Authenticates an RAM entity with Vault. + */ + async aliCloudLogin( + alicloudMountPath: string, + aliCloudLoginRequest: AliCloudLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudLoginRaw( + { alicloudMountPath: alicloudMountPath, aliCloudLoginRequest: aliCloudLoginRequest }, + initOverrides + ); + } + + /** + * Create a role and associate policies to it. + */ + async aliCloudReadAuthRoleRaw( + requestParameters: AuthApiAliCloudReadAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling aliCloudReadAuthRole().' + ); + } + + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudReadAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{alicloud_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a role and associate policies to it. + */ + async aliCloudReadAuthRole( + role: string, + alicloudMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudReadAuthRoleRaw({ role: role, alicloudMountPath: alicloudMountPath }, initOverrides); + } + + /** + * Create a role and associate policies to it. + */ + async aliCloudWriteAuthRoleRaw( + requestParameters: AuthApiAliCloudWriteAuthRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling aliCloudWriteAuthRole().' + ); + } + + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudWriteAuthRole().' + ); + } + + if (requestParameters['aliCloudWriteAuthRoleRequest'] == null) { + throw new runtime.RequiredError( + 'aliCloudWriteAuthRoleRequest', + 'Required parameter "aliCloudWriteAuthRoleRequest" was null or undefined when calling aliCloudWriteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{alicloud_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AliCloudWriteAuthRoleRequestToJSON(requestParameters['aliCloudWriteAuthRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a role and associate policies to it. + */ + async aliCloudWriteAuthRole( + role: string, + alicloudMountPath: string, + aliCloudWriteAuthRoleRequest: AliCloudWriteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudWriteAuthRoleRaw( + { + role: role, + alicloudMountPath: alicloudMountPath, + aliCloudWriteAuthRoleRequest: aliCloudWriteAuthRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteBindSecretIdRaw( + requestParameters: AuthApiAppRoleDeleteBindSecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteBindSecretId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteBindSecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/bind-secret-id` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteBindSecretId( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteBindSecretIdRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteBoundCidrListRaw( + requestParameters: AuthApiAppRoleDeleteBoundCidrListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteBoundCidrList().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteBoundCidrList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/bound-cidr-list` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteBoundCidrList( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteBoundCidrListRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeletePeriodRaw( + requestParameters: AuthApiAppRoleDeletePeriodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeletePeriod().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeletePeriod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/period` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeletePeriod( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeletePeriodRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeletePoliciesRaw( + requestParameters: AuthApiAppRoleDeletePoliciesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeletePolicies().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeletePolicies().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/policies` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeletePolicies( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeletePoliciesRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteRoleRaw( + requestParameters: AuthApiAppRoleDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteRole().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteRole( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteRoleRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteSecretIdBoundCidrsRaw( + requestParameters: AuthApiAppRoleDeleteSecretIdBoundCidrsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteSecretIdBoundCidrs().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteSecretIdBoundCidrs().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-bound-cidrs` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteSecretIdBoundCidrs( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteSecretIdBoundCidrsRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteSecretIdNumUsesRaw( + requestParameters: AuthApiAppRoleDeleteSecretIdNumUsesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteSecretIdNumUses().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteSecretIdNumUses().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-num-uses` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteSecretIdNumUses( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteSecretIdNumUsesRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteSecretIdTtlRaw( + requestParameters: AuthApiAppRoleDeleteSecretIdTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteSecretIdTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteSecretIdTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteSecretIdTtl( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteSecretIdTtlRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteTokenBoundCidrsRaw( + requestParameters: AuthApiAppRoleDeleteTokenBoundCidrsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteTokenBoundCidrs().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteTokenBoundCidrs().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-bound-cidrs` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteTokenBoundCidrs( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteTokenBoundCidrsRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteTokenMaxTtlRaw( + requestParameters: AuthApiAppRoleDeleteTokenMaxTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteTokenMaxTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteTokenMaxTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-max-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteTokenMaxTtl( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteTokenMaxTtlRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteTokenNumUsesRaw( + requestParameters: AuthApiAppRoleDeleteTokenNumUsesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteTokenNumUses().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteTokenNumUses().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-num-uses` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteTokenNumUses( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteTokenNumUsesRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDeleteTokenTtlRaw( + requestParameters: AuthApiAppRoleDeleteTokenTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDeleteTokenTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDeleteTokenTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDeleteTokenTtl( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDeleteTokenTtlRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + } + + /** + */ + async appRoleDestroySecretIdRaw( + requestParameters: AuthApiAppRoleDestroySecretIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDestroySecretId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDestroySecretId().' + ); + } + + if (requestParameters['appRoleDestroySecretIdRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleDestroySecretIdRequest', + 'Required parameter "appRoleDestroySecretIdRequest" was null or undefined when calling appRoleDestroySecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id/destroy` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleDestroySecretIdRequestToJSON(requestParameters['appRoleDestroySecretIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDestroySecretId( + roleName: string, + approleMountPath: string, + appRoleDestroySecretIdRequest: AppRoleDestroySecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDestroySecretIdRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleDestroySecretIdRequest: appRoleDestroySecretIdRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleDestroySecretId2Raw( + requestParameters: AuthApiAppRoleDestroySecretId2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDestroySecretId2().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDestroySecretId2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['secretId'] != null) { + queryParameters['secret_id'] = requestParameters['secretId']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id/destroy` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDestroySecretId2( + roleName: string, + approleMountPath: string, + secretId?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDestroySecretId2Raw( + { roleName: roleName, approleMountPath: approleMountPath, secretId: secretId }, + initOverrides + ); + } + + /** + */ + async appRoleDestroySecretIdByAccessorRaw( + requestParameters: AuthApiAppRoleDestroySecretIdByAccessorOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDestroySecretIdByAccessor().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDestroySecretIdByAccessor().' + ); + } + + if (requestParameters['appRoleDestroySecretIdByAccessorRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleDestroySecretIdByAccessorRequest', + 'Required parameter "appRoleDestroySecretIdByAccessorRequest" was null or undefined when calling appRoleDestroySecretIdByAccessor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-accessor/destroy` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleDestroySecretIdByAccessorRequestToJSON( + requestParameters['appRoleDestroySecretIdByAccessorRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDestroySecretIdByAccessor( + roleName: string, + approleMountPath: string, + appRoleDestroySecretIdByAccessorRequest: AppRoleDestroySecretIdByAccessorRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDestroySecretIdByAccessorRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleDestroySecretIdByAccessorRequest: appRoleDestroySecretIdByAccessorRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleDestroySecretIdByAccessor2Raw( + requestParameters: AuthApiAppRoleDestroySecretIdByAccessor2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleDestroySecretIdByAccessor2().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleDestroySecretIdByAccessor2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['secretIdAccessor'] != null) { + queryParameters['secret_id_accessor'] = requestParameters['secretIdAccessor']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-accessor/destroy` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleDestroySecretIdByAccessor2( + roleName: string, + approleMountPath: string, + secretIdAccessor?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleDestroySecretIdByAccessor2Raw( + { roleName: roleName, approleMountPath: approleMountPath, secretIdAccessor: secretIdAccessor }, + initOverrides + ); + } + + /** + */ + async appRoleListRolesRaw( + requestParameters: AuthApiAppRoleListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling appRoleListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/`.replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async appRoleListRoles( + approleMountPath: string, + list: AppRoleListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleListRolesRaw( + { approleMountPath: approleMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleListSecretIdsRaw( + requestParameters: AuthApiAppRoleListSecretIdsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleListSecretIds().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleListSecretIds().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling appRoleListSecretIds().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id/` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async appRoleListSecretIds( + roleName: string, + approleMountPath: string, + list: AppRoleListSecretIdsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleListSecretIdsRaw( + { roleName: roleName, approleMountPath: approleMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleLoginRaw( + requestParameters: AuthApiAppRoleLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleLogin().' + ); + } + + if (requestParameters['appRoleLoginRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleLoginRequest', + 'Required parameter "appRoleLoginRequest" was null or undefined when calling appRoleLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/login`.replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleLoginRequestToJSON(requestParameters['appRoleLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleLogin( + approleMountPath: string, + appRoleLoginRequest: AppRoleLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleLoginRaw( + { approleMountPath: approleMountPath, appRoleLoginRequest: appRoleLoginRequest }, + initOverrides + ); + } + + /** + */ + async appRoleLookUpSecretIdRaw( + requestParameters: AuthApiAppRoleLookUpSecretIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleLookUpSecretId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleLookUpSecretId().' + ); + } + + if (requestParameters['appRoleLookUpSecretIdRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleLookUpSecretIdRequest', + 'Required parameter "appRoleLookUpSecretIdRequest" was null or undefined when calling appRoleLookUpSecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id/lookup` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleLookUpSecretIdRequestToJSON(requestParameters['appRoleLookUpSecretIdRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleLookUpSecretIdResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleLookUpSecretId( + roleName: string, + approleMountPath: string, + appRoleLookUpSecretIdRequest: AppRoleLookUpSecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleLookUpSecretIdRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleLookUpSecretIdRequest: appRoleLookUpSecretIdRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleLookUpSecretIdByAccessorRaw( + requestParameters: AuthApiAppRoleLookUpSecretIdByAccessorOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleLookUpSecretIdByAccessor().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleLookUpSecretIdByAccessor().' + ); + } + + if (requestParameters['appRoleLookUpSecretIdByAccessorRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleLookUpSecretIdByAccessorRequest', + 'Required parameter "appRoleLookUpSecretIdByAccessorRequest" was null or undefined when calling appRoleLookUpSecretIdByAccessor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-accessor/lookup` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleLookUpSecretIdByAccessorRequestToJSON( + requestParameters['appRoleLookUpSecretIdByAccessorRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleLookUpSecretIdByAccessorResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleLookUpSecretIdByAccessor( + roleName: string, + approleMountPath: string, + appRoleLookUpSecretIdByAccessorRequest: AppRoleLookUpSecretIdByAccessorRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleLookUpSecretIdByAccessorRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleLookUpSecretIdByAccessorRequest: appRoleLookUpSecretIdByAccessorRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadBindSecretIdRaw( + requestParameters: AuthApiAppRoleReadBindSecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadBindSecretId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadBindSecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/bind-secret-id` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadBindSecretIdResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadBindSecretId( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadBindSecretIdRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadBoundCidrListRaw( + requestParameters: AuthApiAppRoleReadBoundCidrListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadBoundCidrList().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadBoundCidrList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/bound-cidr-list` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadBoundCidrListResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadBoundCidrList( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadBoundCidrListRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadLocalSecretIdsRaw( + requestParameters: AuthApiAppRoleReadLocalSecretIdsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadLocalSecretIds().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadLocalSecretIds().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/local-secret-ids` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadLocalSecretIdsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadLocalSecretIds( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadLocalSecretIdsRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadPeriodRaw( + requestParameters: AuthApiAppRoleReadPeriodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadPeriod().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadPeriod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/period` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppRoleReadPeriodResponseFromJSON(jsonValue)); + } + + /** + */ + async appRoleReadPeriod( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadPeriodRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadPoliciesRaw( + requestParameters: AuthApiAppRoleReadPoliciesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadPolicies().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadPolicies().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/policies` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadPoliciesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadPolicies( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadPoliciesRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadRoleRaw( + requestParameters: AuthApiAppRoleReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadRole().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppRoleReadRoleResponseFromJSON(jsonValue)); + } + + /** + */ + async appRoleReadRole( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadRoleRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadRoleIdRaw( + requestParameters: AuthApiAppRoleReadRoleIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadRoleId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadRoleId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/role-id` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => AppRoleReadRoleIdResponseFromJSON(jsonValue)); + } + + /** + */ + async appRoleReadRoleId( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadRoleIdRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadSecretIdBoundCidrsRaw( + requestParameters: AuthApiAppRoleReadSecretIdBoundCidrsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadSecretIdBoundCidrs().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadSecretIdBoundCidrs().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-bound-cidrs` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadSecretIdBoundCidrsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadSecretIdBoundCidrs( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadSecretIdBoundCidrsRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadSecretIdNumUsesRaw( + requestParameters: AuthApiAppRoleReadSecretIdNumUsesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadSecretIdNumUses().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadSecretIdNumUses().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-num-uses` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadSecretIdNumUsesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadSecretIdNumUses( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadSecretIdNumUsesRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadSecretIdTtlRaw( + requestParameters: AuthApiAppRoleReadSecretIdTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadSecretIdTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadSecretIdTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadSecretIdTtlResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadSecretIdTtl( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadSecretIdTtlRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadTokenBoundCidrsRaw( + requestParameters: AuthApiAppRoleReadTokenBoundCidrsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadTokenBoundCidrs().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadTokenBoundCidrs().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-bound-cidrs` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadTokenBoundCidrsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadTokenBoundCidrs( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadTokenBoundCidrsRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadTokenMaxTtlRaw( + requestParameters: AuthApiAppRoleReadTokenMaxTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadTokenMaxTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadTokenMaxTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-max-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadTokenMaxTtlResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadTokenMaxTtl( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadTokenMaxTtlRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadTokenNumUsesRaw( + requestParameters: AuthApiAppRoleReadTokenNumUsesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadTokenNumUses().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadTokenNumUses().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-num-uses` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadTokenNumUsesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadTokenNumUses( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadTokenNumUsesRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleReadTokenTtlRaw( + requestParameters: AuthApiAppRoleReadTokenTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleReadTokenTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleReadTokenTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleReadTokenTtlResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleReadTokenTtl( + roleName: string, + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleReadTokenTtlRaw( + { roleName: roleName, approleMountPath: approleMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleTidySecretIdRaw( + requestParameters: AuthApiAppRoleTidySecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleTidySecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/tidy/secret-id`.replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleTidySecretId( + approleMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleTidySecretIdRaw({ approleMountPath: approleMountPath }, initOverrides); + } + + /** + */ + async appRoleWriteBindSecretIdRaw( + requestParameters: AuthApiAppRoleWriteBindSecretIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteBindSecretId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteBindSecretId().' + ); + } + + if (requestParameters['appRoleWriteBindSecretIdRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteBindSecretIdRequest', + 'Required parameter "appRoleWriteBindSecretIdRequest" was null or undefined when calling appRoleWriteBindSecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/bind-secret-id` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteBindSecretIdRequestToJSON(requestParameters['appRoleWriteBindSecretIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteBindSecretId( + roleName: string, + approleMountPath: string, + appRoleWriteBindSecretIdRequest: AppRoleWriteBindSecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteBindSecretIdRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteBindSecretIdRequest: appRoleWriteBindSecretIdRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteBoundCidrListRaw( + requestParameters: AuthApiAppRoleWriteBoundCidrListOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteBoundCidrList().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteBoundCidrList().' + ); + } + + if (requestParameters['appRoleWriteBoundCidrListRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteBoundCidrListRequest', + 'Required parameter "appRoleWriteBoundCidrListRequest" was null or undefined when calling appRoleWriteBoundCidrList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/bound-cidr-list` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteBoundCidrListRequestToJSON(requestParameters['appRoleWriteBoundCidrListRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteBoundCidrList( + roleName: string, + approleMountPath: string, + appRoleWriteBoundCidrListRequest: AppRoleWriteBoundCidrListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteBoundCidrListRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteBoundCidrListRequest: appRoleWriteBoundCidrListRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteCustomSecretIdRaw( + requestParameters: AuthApiAppRoleWriteCustomSecretIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteCustomSecretId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteCustomSecretId().' + ); + } + + if (requestParameters['appRoleWriteCustomSecretIdRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteCustomSecretIdRequest', + 'Required parameter "appRoleWriteCustomSecretIdRequest" was null or undefined when calling appRoleWriteCustomSecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/custom-secret-id` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteCustomSecretIdRequestToJSON(requestParameters['appRoleWriteCustomSecretIdRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleWriteCustomSecretIdResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleWriteCustomSecretId( + roleName: string, + approleMountPath: string, + appRoleWriteCustomSecretIdRequest: AppRoleWriteCustomSecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleWriteCustomSecretIdRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteCustomSecretIdRequest: appRoleWriteCustomSecretIdRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleWritePeriodRaw( + requestParameters: AuthApiAppRoleWritePeriodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWritePeriod().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWritePeriod().' + ); + } + + if (requestParameters['appRoleWritePeriodRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWritePeriodRequest', + 'Required parameter "appRoleWritePeriodRequest" was null or undefined when calling appRoleWritePeriod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/period` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWritePeriodRequestToJSON(requestParameters['appRoleWritePeriodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWritePeriod( + roleName: string, + approleMountPath: string, + appRoleWritePeriodRequest: AppRoleWritePeriodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWritePeriodRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWritePeriodRequest: appRoleWritePeriodRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWritePoliciesRaw( + requestParameters: AuthApiAppRoleWritePoliciesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWritePolicies().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWritePolicies().' + ); + } + + if (requestParameters['appRoleWritePoliciesRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWritePoliciesRequest', + 'Required parameter "appRoleWritePoliciesRequest" was null or undefined when calling appRoleWritePolicies().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/policies` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWritePoliciesRequestToJSON(requestParameters['appRoleWritePoliciesRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWritePolicies( + roleName: string, + approleMountPath: string, + appRoleWritePoliciesRequest: AppRoleWritePoliciesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWritePoliciesRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWritePoliciesRequest: appRoleWritePoliciesRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteRoleRaw( + requestParameters: AuthApiAppRoleWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteRole().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteRole().' + ); + } + + if (requestParameters['appRoleWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteRoleRequest', + 'Required parameter "appRoleWriteRoleRequest" was null or undefined when calling appRoleWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteRoleRequestToJSON(requestParameters['appRoleWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteRole( + roleName: string, + approleMountPath: string, + appRoleWriteRoleRequest: AppRoleWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteRoleRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteRoleRequest: appRoleWriteRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteRoleIdRaw( + requestParameters: AuthApiAppRoleWriteRoleIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteRoleId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteRoleId().' + ); + } + + if (requestParameters['appRoleWriteRoleIdRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteRoleIdRequest', + 'Required parameter "appRoleWriteRoleIdRequest" was null or undefined when calling appRoleWriteRoleId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/role-id` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteRoleIdRequestToJSON(requestParameters['appRoleWriteRoleIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteRoleId( + roleName: string, + approleMountPath: string, + appRoleWriteRoleIdRequest: AppRoleWriteRoleIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteRoleIdRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteRoleIdRequest: appRoleWriteRoleIdRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteSecretIdRaw( + requestParameters: AuthApiAppRoleWriteSecretIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteSecretId().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteSecretId().' + ); + } + + if (requestParameters['appRoleWriteSecretIdRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteSecretIdRequest', + 'Required parameter "appRoleWriteSecretIdRequest" was null or undefined when calling appRoleWriteSecretId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteSecretIdRequestToJSON(requestParameters['appRoleWriteSecretIdRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AppRoleWriteSecretIdResponseFromJSON(jsonValue) + ); + } + + /** + */ + async appRoleWriteSecretId( + roleName: string, + approleMountPath: string, + appRoleWriteSecretIdRequest: AppRoleWriteSecretIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.appRoleWriteSecretIdRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteSecretIdRequest: appRoleWriteSecretIdRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async appRoleWriteSecretIdBoundCidrsRaw( + requestParameters: AuthApiAppRoleWriteSecretIdBoundCidrsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteSecretIdBoundCidrs().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteSecretIdBoundCidrs().' + ); + } + + if (requestParameters['appRoleWriteSecretIdBoundCidrsRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteSecretIdBoundCidrsRequest', + 'Required parameter "appRoleWriteSecretIdBoundCidrsRequest" was null or undefined when calling appRoleWriteSecretIdBoundCidrs().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-bound-cidrs` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteSecretIdBoundCidrsRequestToJSON( + requestParameters['appRoleWriteSecretIdBoundCidrsRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteSecretIdBoundCidrs( + roleName: string, + approleMountPath: string, + appRoleWriteSecretIdBoundCidrsRequest: AppRoleWriteSecretIdBoundCidrsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteSecretIdBoundCidrsRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteSecretIdBoundCidrsRequest: appRoleWriteSecretIdBoundCidrsRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteSecretIdNumUsesRaw( + requestParameters: AuthApiAppRoleWriteSecretIdNumUsesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteSecretIdNumUses().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteSecretIdNumUses().' + ); + } + + if (requestParameters['appRoleWriteSecretIdNumUsesRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteSecretIdNumUsesRequest', + 'Required parameter "appRoleWriteSecretIdNumUsesRequest" was null or undefined when calling appRoleWriteSecretIdNumUses().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-num-uses` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteSecretIdNumUsesRequestToJSON( + requestParameters['appRoleWriteSecretIdNumUsesRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteSecretIdNumUses( + roleName: string, + approleMountPath: string, + appRoleWriteSecretIdNumUsesRequest: AppRoleWriteSecretIdNumUsesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteSecretIdNumUsesRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteSecretIdNumUsesRequest: appRoleWriteSecretIdNumUsesRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteSecretIdTtlRaw( + requestParameters: AuthApiAppRoleWriteSecretIdTtlOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteSecretIdTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteSecretIdTtl().' + ); + } + + if (requestParameters['appRoleWriteSecretIdTtlRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteSecretIdTtlRequest', + 'Required parameter "appRoleWriteSecretIdTtlRequest" was null or undefined when calling appRoleWriteSecretIdTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/secret-id-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteSecretIdTtlRequestToJSON(requestParameters['appRoleWriteSecretIdTtlRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteSecretIdTtl( + roleName: string, + approleMountPath: string, + appRoleWriteSecretIdTtlRequest: AppRoleWriteSecretIdTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteSecretIdTtlRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteSecretIdTtlRequest: appRoleWriteSecretIdTtlRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteTokenBoundCidrsRaw( + requestParameters: AuthApiAppRoleWriteTokenBoundCidrsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteTokenBoundCidrs().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteTokenBoundCidrs().' + ); + } + + if (requestParameters['appRoleWriteTokenBoundCidrsRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteTokenBoundCidrsRequest', + 'Required parameter "appRoleWriteTokenBoundCidrsRequest" was null or undefined when calling appRoleWriteTokenBoundCidrs().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-bound-cidrs` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteTokenBoundCidrsRequestToJSON( + requestParameters['appRoleWriteTokenBoundCidrsRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteTokenBoundCidrs( + roleName: string, + approleMountPath: string, + appRoleWriteTokenBoundCidrsRequest: AppRoleWriteTokenBoundCidrsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteTokenBoundCidrsRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteTokenBoundCidrsRequest: appRoleWriteTokenBoundCidrsRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteTokenMaxTtlRaw( + requestParameters: AuthApiAppRoleWriteTokenMaxTtlOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteTokenMaxTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteTokenMaxTtl().' + ); + } + + if (requestParameters['appRoleWriteTokenMaxTtlRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteTokenMaxTtlRequest', + 'Required parameter "appRoleWriteTokenMaxTtlRequest" was null or undefined when calling appRoleWriteTokenMaxTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-max-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteTokenMaxTtlRequestToJSON(requestParameters['appRoleWriteTokenMaxTtlRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteTokenMaxTtl( + roleName: string, + approleMountPath: string, + appRoleWriteTokenMaxTtlRequest: AppRoleWriteTokenMaxTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteTokenMaxTtlRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteTokenMaxTtlRequest: appRoleWriteTokenMaxTtlRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteTokenNumUsesRaw( + requestParameters: AuthApiAppRoleWriteTokenNumUsesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteTokenNumUses().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteTokenNumUses().' + ); + } + + if (requestParameters['appRoleWriteTokenNumUsesRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteTokenNumUsesRequest', + 'Required parameter "appRoleWriteTokenNumUsesRequest" was null or undefined when calling appRoleWriteTokenNumUses().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-num-uses` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteTokenNumUsesRequestToJSON(requestParameters['appRoleWriteTokenNumUsesRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteTokenNumUses( + roleName: string, + approleMountPath: string, + appRoleWriteTokenNumUsesRequest: AppRoleWriteTokenNumUsesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteTokenNumUsesRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteTokenNumUsesRequest: appRoleWriteTokenNumUsesRequest, + }, + initOverrides + ); + } + + /** + */ + async appRoleWriteTokenTtlRaw( + requestParameters: AuthApiAppRoleWriteTokenTtlOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling appRoleWriteTokenTtl().' + ); + } + + if (requestParameters['approleMountPath'] == null) { + throw new runtime.RequiredError( + 'approleMountPath', + 'Required parameter "approleMountPath" was null or undefined when calling appRoleWriteTokenTtl().' + ); + } + + if (requestParameters['appRoleWriteTokenTtlRequest'] == null) { + throw new runtime.RequiredError( + 'appRoleWriteTokenTtlRequest', + 'Required parameter "appRoleWriteTokenTtlRequest" was null or undefined when calling appRoleWriteTokenTtl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{approle_mount_path}/role/{role_name}/token-ttl` + .replace(`{${'role_name'}}`, encodeURIComponent(String(requestParameters['roleName']))) + .replace( + `{${'approle_mount_path'}}`, + encodeURIComponent(String(requestParameters['approleMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AppRoleWriteTokenTtlRequestToJSON(requestParameters['appRoleWriteTokenTtlRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async appRoleWriteTokenTtl( + roleName: string, + approleMountPath: string, + appRoleWriteTokenTtlRequest: AppRoleWriteTokenTtlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.appRoleWriteTokenTtlRaw( + { + roleName: roleName, + approleMountPath: approleMountPath, + appRoleWriteTokenTtlRequest: appRoleWriteTokenTtlRequest, + }, + initOverrides + ); + } + + /** + */ + async awsConfigureCertificateRaw( + requestParameters: AuthApiAwsConfigureCertificateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certName'] == null) { + throw new runtime.RequiredError( + 'certName', + 'Required parameter "certName" was null or undefined when calling awsConfigureCertificate().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureCertificate().' + ); + } + + if (requestParameters['awsConfigureCertificateRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureCertificateRequest', + 'Required parameter "awsConfigureCertificateRequest" was null or undefined when calling awsConfigureCertificate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/certificate/{cert_name}` + .replace(`{${'cert_name'}}`, encodeURIComponent(String(requestParameters['certName']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureCertificateRequestToJSON(requestParameters['awsConfigureCertificateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureCertificate( + certName: string, + awsMountPath: string, + awsConfigureCertificateRequest: AwsConfigureCertificateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureCertificateRaw( + { + certName: certName, + awsMountPath: awsMountPath, + awsConfigureCertificateRequest: awsConfigureCertificateRequest, + }, + initOverrides + ); + } + + /** + */ + async awsConfigureClientRaw( + requestParameters: AuthApiAwsConfigureClientOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureClient().' + ); + } + + if (requestParameters['awsConfigureClientRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureClientRequest', + 'Required parameter "awsConfigureClientRequest" was null or undefined when calling awsConfigureClient().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/client`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureClientRequestToJSON(requestParameters['awsConfigureClientRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureClient( + awsMountPath: string, + awsConfigureClientRequest: AwsConfigureClientRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureClientRaw( + { awsMountPath: awsMountPath, awsConfigureClientRequest: awsConfigureClientRequest }, + initOverrides + ); + } + + /** + */ + async awsConfigureIdentityAccessListTidyOperationRaw( + requestParameters: AuthApiAwsConfigureIdentityAccessListTidyOperationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureIdentityAccessListTidyOperation().' + ); + } + + if (requestParameters['awsConfigureIdentityAccessListTidyOperationRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureIdentityAccessListTidyOperationRequest', + 'Required parameter "awsConfigureIdentityAccessListTidyOperationRequest" was null or undefined when calling awsConfigureIdentityAccessListTidyOperation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/identity-accesslist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureIdentityAccessListTidyOperationRequestToJSON( + requestParameters['awsConfigureIdentityAccessListTidyOperationRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureIdentityAccessListTidyOperation( + awsMountPath: string, + awsConfigureIdentityAccessListTidyOperationRequest: AwsConfigureIdentityAccessListTidyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureIdentityAccessListTidyOperationRaw( + { + awsMountPath: awsMountPath, + awsConfigureIdentityAccessListTidyOperationRequest: + awsConfigureIdentityAccessListTidyOperationRequest, + }, + initOverrides + ); + } + + /** + */ + async awsConfigureIdentityIntegrationRaw( + requestParameters: AuthApiAwsConfigureIdentityIntegrationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureIdentityIntegration().' + ); + } + + if (requestParameters['awsConfigureIdentityIntegrationRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureIdentityIntegrationRequest', + 'Required parameter "awsConfigureIdentityIntegrationRequest" was null or undefined when calling awsConfigureIdentityIntegration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/identity`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureIdentityIntegrationRequestToJSON( + requestParameters['awsConfigureIdentityIntegrationRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureIdentityIntegration( + awsMountPath: string, + awsConfigureIdentityIntegrationRequest: AwsConfigureIdentityIntegrationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureIdentityIntegrationRaw( + { + awsMountPath: awsMountPath, + awsConfigureIdentityIntegrationRequest: awsConfigureIdentityIntegrationRequest, + }, + initOverrides + ); + } + + /** + */ + async awsConfigureIdentityWhitelistTidyOperationRaw( + requestParameters: AuthApiAwsConfigureIdentityWhitelistTidyOperationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureIdentityWhitelistTidyOperation().' + ); + } + + if (requestParameters['awsConfigureIdentityWhitelistTidyOperationRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureIdentityWhitelistTidyOperationRequest', + 'Required parameter "awsConfigureIdentityWhitelistTidyOperationRequest" was null or undefined when calling awsConfigureIdentityWhitelistTidyOperation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/identity-whitelist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureIdentityWhitelistTidyOperationRequestToJSON( + requestParameters['awsConfigureIdentityWhitelistTidyOperationRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureIdentityWhitelistTidyOperation( + awsMountPath: string, + awsConfigureIdentityWhitelistTidyOperationRequest: AwsConfigureIdentityWhitelistTidyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureIdentityWhitelistTidyOperationRaw( + { + awsMountPath: awsMountPath, + awsConfigureIdentityWhitelistTidyOperationRequest: awsConfigureIdentityWhitelistTidyOperationRequest, + }, + initOverrides + ); + } + + /** + */ + async awsConfigureRoleTagBlacklistTidyOperationRaw( + requestParameters: AuthApiAwsConfigureRoleTagBlacklistTidyOperationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureRoleTagBlacklistTidyOperation().' + ); + } + + if (requestParameters['awsConfigureRoleTagBlacklistTidyOperationRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureRoleTagBlacklistTidyOperationRequest', + 'Required parameter "awsConfigureRoleTagBlacklistTidyOperationRequest" was null or undefined when calling awsConfigureRoleTagBlacklistTidyOperation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/roletag-blacklist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureRoleTagBlacklistTidyOperationRequestToJSON( + requestParameters['awsConfigureRoleTagBlacklistTidyOperationRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureRoleTagBlacklistTidyOperation( + awsMountPath: string, + awsConfigureRoleTagBlacklistTidyOperationRequest: AwsConfigureRoleTagBlacklistTidyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureRoleTagBlacklistTidyOperationRaw( + { + awsMountPath: awsMountPath, + awsConfigureRoleTagBlacklistTidyOperationRequest: awsConfigureRoleTagBlacklistTidyOperationRequest, + }, + initOverrides + ); + } + + /** + */ + async awsConfigureRoleTagDenyListTidyOperationRaw( + requestParameters: AuthApiAwsConfigureRoleTagDenyListTidyOperationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureRoleTagDenyListTidyOperation().' + ); + } + + if (requestParameters['awsConfigureRoleTagDenyListTidyOperationRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureRoleTagDenyListTidyOperationRequest', + 'Required parameter "awsConfigureRoleTagDenyListTidyOperationRequest" was null or undefined when calling awsConfigureRoleTagDenyListTidyOperation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/roletag-denylist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureRoleTagDenyListTidyOperationRequestToJSON( + requestParameters['awsConfigureRoleTagDenyListTidyOperationRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureRoleTagDenyListTidyOperation( + awsMountPath: string, + awsConfigureRoleTagDenyListTidyOperationRequest: AwsConfigureRoleTagDenyListTidyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureRoleTagDenyListTidyOperationRaw( + { + awsMountPath: awsMountPath, + awsConfigureRoleTagDenyListTidyOperationRequest: awsConfigureRoleTagDenyListTidyOperationRequest, + }, + initOverrides + ); + } + + /** + */ + async awsDeleteAuthRoleRaw( + requestParameters: AuthApiAwsDeleteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling awsDeleteAuthRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteAuthRole( + role: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteAuthRoleRaw({ role: role, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteCertificateConfigurationRaw( + requestParameters: AuthApiAwsDeleteCertificateConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certName'] == null) { + throw new runtime.RequiredError( + 'certName', + 'Required parameter "certName" was null or undefined when calling awsDeleteCertificateConfiguration().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteCertificateConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/certificate/{cert_name}` + .replace(`{${'cert_name'}}`, encodeURIComponent(String(requestParameters['certName']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteCertificateConfiguration( + certName: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteCertificateConfigurationRaw( + { certName: certName, awsMountPath: awsMountPath }, + initOverrides + ); + } + + /** + */ + async awsDeleteClientConfigurationRaw( + requestParameters: AuthApiAwsDeleteClientConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteClientConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/client`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteClientConfiguration( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteClientConfigurationRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteIdentityAccessListRaw( + requestParameters: AuthApiAwsDeleteIdentityAccessListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['instanceId'] == null) { + throw new runtime.RequiredError( + 'instanceId', + 'Required parameter "instanceId" was null or undefined when calling awsDeleteIdentityAccessList().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteIdentityAccessList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/identity-accesslist/{instance_id}` + .replace(`{${'instance_id'}}`, encodeURIComponent(String(requestParameters['instanceId']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteIdentityAccessList( + instanceId: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteIdentityAccessListRaw( + { instanceId: instanceId, awsMountPath: awsMountPath }, + initOverrides + ); + } + + /** + */ + async awsDeleteIdentityAccessListTidySettingsRaw( + requestParameters: AuthApiAwsDeleteIdentityAccessListTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteIdentityAccessListTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/identity-accesslist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteIdentityAccessListTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteIdentityAccessListTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteIdentityWhitelistRaw( + requestParameters: AuthApiAwsDeleteIdentityWhitelistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['instanceId'] == null) { + throw new runtime.RequiredError( + 'instanceId', + 'Required parameter "instanceId" was null or undefined when calling awsDeleteIdentityWhitelist().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteIdentityWhitelist().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/identity-whitelist/{instance_id}` + .replace(`{${'instance_id'}}`, encodeURIComponent(String(requestParameters['instanceId']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteIdentityWhitelist( + instanceId: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteIdentityWhitelistRaw( + { instanceId: instanceId, awsMountPath: awsMountPath }, + initOverrides + ); + } + + /** + */ + async awsDeleteIdentityWhitelistTidySettingsRaw( + requestParameters: AuthApiAwsDeleteIdentityWhitelistTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteIdentityWhitelistTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/identity-whitelist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteIdentityWhitelistTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteIdentityWhitelistTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteRoleTagBlacklistRaw( + requestParameters: AuthApiAwsDeleteRoleTagBlacklistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleTag'] == null) { + throw new runtime.RequiredError( + 'roleTag', + 'Required parameter "roleTag" was null or undefined when calling awsDeleteRoleTagBlacklist().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteRoleTagBlacklist().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-blacklist/{role_tag}` + .replace(`{${'role_tag'}}`, encodeURIComponent(String(requestParameters['roleTag']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteRoleTagBlacklist( + roleTag: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteRoleTagBlacklistRaw({ roleTag: roleTag, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteRoleTagBlacklistTidySettingsRaw( + requestParameters: AuthApiAwsDeleteRoleTagBlacklistTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteRoleTagBlacklistTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/roletag-blacklist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteRoleTagBlacklistTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteRoleTagBlacklistTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteRoleTagDenyListRaw( + requestParameters: AuthApiAwsDeleteRoleTagDenyListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleTag'] == null) { + throw new runtime.RequiredError( + 'roleTag', + 'Required parameter "roleTag" was null or undefined when calling awsDeleteRoleTagDenyList().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteRoleTagDenyList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-denylist/{role_tag}` + .replace(`{${'role_tag'}}`, encodeURIComponent(String(requestParameters['roleTag']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteRoleTagDenyList( + roleTag: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteRoleTagDenyListRaw({ roleTag: roleTag, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteRoleTagDenyListTidySettingsRaw( + requestParameters: AuthApiAwsDeleteRoleTagDenyListTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteRoleTagDenyListTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/roletag-denylist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteRoleTagDenyListTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteRoleTagDenyListTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteStsRoleRaw( + requestParameters: AuthApiAwsDeleteStsRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['accountId'] == null) { + throw new runtime.RequiredError( + 'accountId', + 'Required parameter "accountId" was null or undefined when calling awsDeleteStsRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteStsRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/sts/{account_id}` + .replace(`{${'account_id'}}`, encodeURIComponent(String(requestParameters['accountId']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteStsRole( + accountId: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteStsRoleRaw({ accountId: accountId, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsListAuthRolesRaw( + requestParameters: AuthApiAwsListAuthRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListAuthRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListAuthRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/role/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListAuthRoles( + awsMountPath: string, + list: AwsListAuthRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListAuthRolesRaw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsListAuthRoles2Raw( + requestParameters: AuthApiAwsListAuthRoles2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListAuthRoles2().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListAuthRoles2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roles/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListAuthRoles2( + awsMountPath: string, + list: AwsListAuthRoles2ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListAuthRoles2Raw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsListCertificateConfigurationsRaw( + requestParameters: AuthApiAwsListCertificateConfigurationsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListCertificateConfigurations().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListCertificateConfigurations().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/certificates/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListCertificateConfigurations( + awsMountPath: string, + list: AwsListCertificateConfigurationsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListCertificateConfigurationsRaw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsListIdentityAccessListRaw( + requestParameters: AuthApiAwsListIdentityAccessListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListIdentityAccessList().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListIdentityAccessList().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/identity-accesslist/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListIdentityAccessList( + awsMountPath: string, + list: AwsListIdentityAccessListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListIdentityAccessListRaw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsListIdentityWhitelistRaw( + requestParameters: AuthApiAwsListIdentityWhitelistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListIdentityWhitelist().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListIdentityWhitelist().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/identity-whitelist/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListIdentityWhitelist( + awsMountPath: string, + list: AwsListIdentityWhitelistListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListIdentityWhitelistRaw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsListRoleTagBlacklistsRaw( + requestParameters: AuthApiAwsListRoleTagBlacklistsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListRoleTagBlacklists().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListRoleTagBlacklists().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-blacklist/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListRoleTagBlacklists( + awsMountPath: string, + list: AwsListRoleTagBlacklistsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListRoleTagBlacklistsRaw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsListRoleTagDenyListsRaw( + requestParameters: AuthApiAwsListRoleTagDenyListsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListRoleTagDenyLists().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListRoleTagDenyLists().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-denylist/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListRoleTagDenyLists( + awsMountPath: string, + list: AwsListRoleTagDenyListsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListRoleTagDenyListsRaw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsListStsRoleRelationshipsRaw( + requestParameters: AuthApiAwsListStsRoleRelationshipsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListStsRoleRelationships().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListStsRoleRelationships().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/sts/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async awsListStsRoleRelationships( + awsMountPath: string, + list: AwsListStsRoleRelationshipsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListStsRoleRelationshipsRaw( + { awsMountPath: awsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsLoginRaw( + requestParameters: AuthApiAwsLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsLogin().' + ); + } + + if (requestParameters['awsLoginRequest'] == null) { + throw new runtime.RequiredError( + 'awsLoginRequest', + 'Required parameter "awsLoginRequest" was null or undefined when calling awsLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/login`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsLoginRequestToJSON(requestParameters['awsLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsLogin( + awsMountPath: string, + awsLoginRequest: AwsLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsLoginRaw({ awsMountPath: awsMountPath, awsLoginRequest: awsLoginRequest }, initOverrides); + } + + /** + */ + async awsReadAuthRoleRaw( + requestParameters: AuthApiAwsReadAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling awsReadAuthRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadAuthRole( + role: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadAuthRoleRaw({ role: role, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadCertificateConfigurationRaw( + requestParameters: AuthApiAwsReadCertificateConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certName'] == null) { + throw new runtime.RequiredError( + 'certName', + 'Required parameter "certName" was null or undefined when calling awsReadCertificateConfiguration().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadCertificateConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/certificate/{cert_name}` + .replace(`{${'cert_name'}}`, encodeURIComponent(String(requestParameters['certName']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadCertificateConfiguration( + certName: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadCertificateConfigurationRaw( + { certName: certName, awsMountPath: awsMountPath }, + initOverrides + ); + } + + /** + */ + async awsReadClientConfigurationRaw( + requestParameters: AuthApiAwsReadClientConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadClientConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/client`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadClientConfiguration( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadClientConfigurationRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadIdentityAccessListRaw( + requestParameters: AuthApiAwsReadIdentityAccessListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['instanceId'] == null) { + throw new runtime.RequiredError( + 'instanceId', + 'Required parameter "instanceId" was null or undefined when calling awsReadIdentityAccessList().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadIdentityAccessList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/identity-accesslist/{instance_id}` + .replace(`{${'instance_id'}}`, encodeURIComponent(String(requestParameters['instanceId']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadIdentityAccessList( + instanceId: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadIdentityAccessListRaw( + { instanceId: instanceId, awsMountPath: awsMountPath }, + initOverrides + ); + } + + /** + */ + async awsReadIdentityAccessListTidySettingsRaw( + requestParameters: AuthApiAwsReadIdentityAccessListTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadIdentityAccessListTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/identity-accesslist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadIdentityAccessListTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadIdentityAccessListTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadIdentityIntegrationConfigurationRaw( + requestParameters: AuthApiAwsReadIdentityIntegrationConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadIdentityIntegrationConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/identity`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadIdentityIntegrationConfiguration( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadIdentityIntegrationConfigurationRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadIdentityWhitelistRaw( + requestParameters: AuthApiAwsReadIdentityWhitelistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['instanceId'] == null) { + throw new runtime.RequiredError( + 'instanceId', + 'Required parameter "instanceId" was null or undefined when calling awsReadIdentityWhitelist().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadIdentityWhitelist().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/identity-whitelist/{instance_id}` + .replace(`{${'instance_id'}}`, encodeURIComponent(String(requestParameters['instanceId']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadIdentityWhitelist( + instanceId: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadIdentityWhitelistRaw( + { instanceId: instanceId, awsMountPath: awsMountPath }, + initOverrides + ); + } + + /** + */ + async awsReadIdentityWhitelistTidySettingsRaw( + requestParameters: AuthApiAwsReadIdentityWhitelistTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadIdentityWhitelistTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/identity-whitelist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadIdentityWhitelistTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadIdentityWhitelistTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadRoleTagBlacklistRaw( + requestParameters: AuthApiAwsReadRoleTagBlacklistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleTag'] == null) { + throw new runtime.RequiredError( + 'roleTag', + 'Required parameter "roleTag" was null or undefined when calling awsReadRoleTagBlacklist().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadRoleTagBlacklist().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-blacklist/{role_tag}` + .replace(`{${'role_tag'}}`, encodeURIComponent(String(requestParameters['roleTag']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadRoleTagBlacklist( + roleTag: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadRoleTagBlacklistRaw({ roleTag: roleTag, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadRoleTagBlacklistTidySettingsRaw( + requestParameters: AuthApiAwsReadRoleTagBlacklistTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadRoleTagBlacklistTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/roletag-blacklist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadRoleTagBlacklistTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadRoleTagBlacklistTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadRoleTagDenyListRaw( + requestParameters: AuthApiAwsReadRoleTagDenyListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleTag'] == null) { + throw new runtime.RequiredError( + 'roleTag', + 'Required parameter "roleTag" was null or undefined when calling awsReadRoleTagDenyList().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadRoleTagDenyList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-denylist/{role_tag}` + .replace(`{${'role_tag'}}`, encodeURIComponent(String(requestParameters['roleTag']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadRoleTagDenyList( + roleTag: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadRoleTagDenyListRaw({ roleTag: roleTag, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadRoleTagDenyListTidySettingsRaw( + requestParameters: AuthApiAwsReadRoleTagDenyListTidySettingsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadRoleTagDenyListTidySettings().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/tidy/roletag-denylist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadRoleTagDenyListTidySettings( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadRoleTagDenyListTidySettingsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadStsRoleRaw( + requestParameters: AuthApiAwsReadStsRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['accountId'] == null) { + throw new runtime.RequiredError( + 'accountId', + 'Required parameter "accountId" was null or undefined when calling awsReadStsRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadStsRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/sts/{account_id}` + .replace(`{${'account_id'}}`, encodeURIComponent(String(requestParameters['accountId']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadStsRole( + accountId: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadStsRoleRaw({ accountId: accountId, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsRotateRootCredentialsRaw( + requestParameters: AuthApiAwsRotateRootCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsRotateRootCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/rotate-root`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsRotateRootCredentials( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsRotateRootCredentialsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsTidyIdentityAccessListRaw( + requestParameters: AuthApiAwsTidyIdentityAccessListOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsTidyIdentityAccessList().' + ); + } + + if (requestParameters['awsTidyIdentityAccessListRequest'] == null) { + throw new runtime.RequiredError( + 'awsTidyIdentityAccessListRequest', + 'Required parameter "awsTidyIdentityAccessListRequest" was null or undefined when calling awsTidyIdentityAccessList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/tidy/identity-accesslist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsTidyIdentityAccessListRequestToJSON(requestParameters['awsTidyIdentityAccessListRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsTidyIdentityAccessList( + awsMountPath: string, + awsTidyIdentityAccessListRequest: AwsTidyIdentityAccessListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsTidyIdentityAccessListRaw( + { awsMountPath: awsMountPath, awsTidyIdentityAccessListRequest: awsTidyIdentityAccessListRequest }, + initOverrides + ); + } + + /** + */ + async awsTidyIdentityWhitelistRaw( + requestParameters: AuthApiAwsTidyIdentityWhitelistOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsTidyIdentityWhitelist().' + ); + } + + if (requestParameters['awsTidyIdentityWhitelistRequest'] == null) { + throw new runtime.RequiredError( + 'awsTidyIdentityWhitelistRequest', + 'Required parameter "awsTidyIdentityWhitelistRequest" was null or undefined when calling awsTidyIdentityWhitelist().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/tidy/identity-whitelist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsTidyIdentityWhitelistRequestToJSON(requestParameters['awsTidyIdentityWhitelistRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsTidyIdentityWhitelist( + awsMountPath: string, + awsTidyIdentityWhitelistRequest: AwsTidyIdentityWhitelistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsTidyIdentityWhitelistRaw( + { awsMountPath: awsMountPath, awsTidyIdentityWhitelistRequest: awsTidyIdentityWhitelistRequest }, + initOverrides + ); + } + + /** + */ + async awsTidyRoleTagBlacklistRaw( + requestParameters: AuthApiAwsTidyRoleTagBlacklistOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsTidyRoleTagBlacklist().' + ); + } + + if (requestParameters['awsTidyRoleTagBlacklistRequest'] == null) { + throw new runtime.RequiredError( + 'awsTidyRoleTagBlacklistRequest', + 'Required parameter "awsTidyRoleTagBlacklistRequest" was null or undefined when calling awsTidyRoleTagBlacklist().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/tidy/roletag-blacklist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsTidyRoleTagBlacklistRequestToJSON(requestParameters['awsTidyRoleTagBlacklistRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsTidyRoleTagBlacklist( + awsMountPath: string, + awsTidyRoleTagBlacklistRequest: AwsTidyRoleTagBlacklistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsTidyRoleTagBlacklistRaw( + { awsMountPath: awsMountPath, awsTidyRoleTagBlacklistRequest: awsTidyRoleTagBlacklistRequest }, + initOverrides + ); + } + + /** + */ + async awsTidyRoleTagDenyListRaw( + requestParameters: AuthApiAwsTidyRoleTagDenyListOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsTidyRoleTagDenyList().' + ); + } + + if (requestParameters['awsTidyRoleTagDenyListRequest'] == null) { + throw new runtime.RequiredError( + 'awsTidyRoleTagDenyListRequest', + 'Required parameter "awsTidyRoleTagDenyListRequest" was null or undefined when calling awsTidyRoleTagDenyList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/tidy/roletag-denylist`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsTidyRoleTagDenyListRequestToJSON(requestParameters['awsTidyRoleTagDenyListRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsTidyRoleTagDenyList( + awsMountPath: string, + awsTidyRoleTagDenyListRequest: AwsTidyRoleTagDenyListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsTidyRoleTagDenyListRaw( + { awsMountPath: awsMountPath, awsTidyRoleTagDenyListRequest: awsTidyRoleTagDenyListRequest }, + initOverrides + ); + } + + /** + */ + async awsWriteAuthRoleRaw( + requestParameters: AuthApiAwsWriteAuthRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling awsWriteAuthRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsWriteAuthRole().' + ); + } + + if (requestParameters['awsWriteAuthRoleRequest'] == null) { + throw new runtime.RequiredError( + 'awsWriteAuthRoleRequest', + 'Required parameter "awsWriteAuthRoleRequest" was null or undefined when calling awsWriteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsWriteAuthRoleRequestToJSON(requestParameters['awsWriteAuthRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsWriteAuthRole( + role: string, + awsMountPath: string, + awsWriteAuthRoleRequest: AwsWriteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsWriteAuthRoleRaw( + { role: role, awsMountPath: awsMountPath, awsWriteAuthRoleRequest: awsWriteAuthRoleRequest }, + initOverrides + ); + } + + /** + */ + async awsWriteRoleTagRaw( + requestParameters: AuthApiAwsWriteRoleTagOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling awsWriteRoleTag().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsWriteRoleTag().' + ); + } + + if (requestParameters['awsWriteRoleTagRequest'] == null) { + throw new runtime.RequiredError( + 'awsWriteRoleTagRequest', + 'Required parameter "awsWriteRoleTagRequest" was null or undefined when calling awsWriteRoleTag().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/role/{role}/tag` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsWriteRoleTagRequestToJSON(requestParameters['awsWriteRoleTagRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsWriteRoleTag( + role: string, + awsMountPath: string, + awsWriteRoleTagRequest: AwsWriteRoleTagRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsWriteRoleTagRaw( + { role: role, awsMountPath: awsMountPath, awsWriteRoleTagRequest: awsWriteRoleTagRequest }, + initOverrides + ); + } + + /** + */ + async awsWriteRoleTagBlacklistRaw( + requestParameters: AuthApiAwsWriteRoleTagBlacklistRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleTag'] == null) { + throw new runtime.RequiredError( + 'roleTag', + 'Required parameter "roleTag" was null or undefined when calling awsWriteRoleTagBlacklist().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsWriteRoleTagBlacklist().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-blacklist/{role_tag}` + .replace(`{${'role_tag'}}`, encodeURIComponent(String(requestParameters['roleTag']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsWriteRoleTagBlacklist( + roleTag: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsWriteRoleTagBlacklistRaw({ roleTag: roleTag, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsWriteRoleTagDenyListRaw( + requestParameters: AuthApiAwsWriteRoleTagDenyListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleTag'] == null) { + throw new runtime.RequiredError( + 'roleTag', + 'Required parameter "roleTag" was null or undefined when calling awsWriteRoleTagDenyList().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsWriteRoleTagDenyList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/roletag-denylist/{role_tag}` + .replace(`{${'role_tag'}}`, encodeURIComponent(String(requestParameters['roleTag']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsWriteRoleTagDenyList( + roleTag: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsWriteRoleTagDenyListRaw({ roleTag: roleTag, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsWriteStsRoleRaw( + requestParameters: AuthApiAwsWriteStsRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['accountId'] == null) { + throw new runtime.RequiredError( + 'accountId', + 'Required parameter "accountId" was null or undefined when calling awsWriteStsRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsWriteStsRole().' + ); + } + + if (requestParameters['awsWriteStsRoleRequest'] == null) { + throw new runtime.RequiredError( + 'awsWriteStsRoleRequest', + 'Required parameter "awsWriteStsRoleRequest" was null or undefined when calling awsWriteStsRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{aws_mount_path}/config/sts/{account_id}` + .replace(`{${'account_id'}}`, encodeURIComponent(String(requestParameters['accountId']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsWriteStsRoleRequestToJSON(requestParameters['awsWriteStsRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsWriteStsRole( + accountId: string, + awsMountPath: string, + awsWriteStsRoleRequest: AwsWriteStsRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsWriteStsRoleRaw( + { accountId: accountId, awsMountPath: awsMountPath, awsWriteStsRoleRequest: awsWriteStsRoleRequest }, + initOverrides + ); + } + + /** + */ + async azureConfigureAuthRaw( + requestParameters: AuthApiAzureConfigureAuthOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureConfigureAuth().' + ); + } + + if (requestParameters['azureConfigureAuthRequest'] == null) { + throw new runtime.RequiredError( + 'azureConfigureAuthRequest', + 'Required parameter "azureConfigureAuthRequest" was null or undefined when calling azureConfigureAuth().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/config`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AzureConfigureAuthRequestToJSON(requestParameters['azureConfigureAuthRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureConfigureAuth( + azureMountPath: string, + azureConfigureAuthRequest: AzureConfigureAuthRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureConfigureAuthRaw( + { azureMountPath: azureMountPath, azureConfigureAuthRequest: azureConfigureAuthRequest }, + initOverrides + ); + } + + /** + */ + async azureDeleteAuthConfigurationRaw( + requestParameters: AuthApiAzureDeleteAuthConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureDeleteAuthConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/config`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureDeleteAuthConfiguration( + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureDeleteAuthConfigurationRaw({ azureMountPath: azureMountPath }, initOverrides); + } + + /** + */ + async azureDeleteAuthRoleRaw( + requestParameters: AuthApiAzureDeleteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling azureDeleteAuthRole().' + ); + } + + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureDeleteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureDeleteAuthRole( + name: string, + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureDeleteAuthRoleRaw({ name: name, azureMountPath: azureMountPath }, initOverrides); + } + + /** + */ + async azureListAuthRolesRaw( + requestParameters: AuthApiAzureListAuthRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureListAuthRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling azureListAuthRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/role/`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async azureListAuthRoles( + azureMountPath: string, + list: AzureListAuthRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.azureListAuthRolesRaw( + { azureMountPath: azureMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async azureLoginRaw( + requestParameters: AuthApiAzureLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureLogin().' + ); + } + + if (requestParameters['azureLoginRequest'] == null) { + throw new runtime.RequiredError( + 'azureLoginRequest', + 'Required parameter "azureLoginRequest" was null or undefined when calling azureLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/login`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AzureLoginRequestToJSON(requestParameters['azureLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureLogin( + azureMountPath: string, + azureLoginRequest: AzureLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureLoginRaw( + { azureMountPath: azureMountPath, azureLoginRequest: azureLoginRequest }, + initOverrides + ); + } + + /** + */ + async azureReadAuthConfigurationRaw( + requestParameters: AuthApiAzureReadAuthConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureReadAuthConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/config`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureReadAuthConfiguration( + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureReadAuthConfigurationRaw({ azureMountPath: azureMountPath }, initOverrides); + } + + /** + */ + async azureReadAuthRoleRaw( + requestParameters: AuthApiAzureReadAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling azureReadAuthRole().' + ); + } + + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureReadAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureReadAuthRole( + name: string, + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureReadAuthRoleRaw({ name: name, azureMountPath: azureMountPath }, initOverrides); + } + + /** + */ + async azureRotateRootCredentialsRaw( + requestParameters: AuthApiAzureRotateRootCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureRotateRootCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/rotate-root`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureRotateRootCredentials( + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureRotateRootCredentialsRaw({ azureMountPath: azureMountPath }, initOverrides); + } + + /** + */ + async azureWriteAuthRoleRaw( + requestParameters: AuthApiAzureWriteAuthRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling azureWriteAuthRole().' + ); + } + + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureWriteAuthRole().' + ); + } + + if (requestParameters['azureWriteAuthRoleRequest'] == null) { + throw new runtime.RequiredError( + 'azureWriteAuthRoleRequest', + 'Required parameter "azureWriteAuthRoleRequest" was null or undefined when calling azureWriteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{azure_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AzureWriteAuthRoleRequestToJSON(requestParameters['azureWriteAuthRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureWriteAuthRole( + name: string, + azureMountPath: string, + azureWriteAuthRoleRequest: AzureWriteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureWriteAuthRoleRaw( + { name: name, azureMountPath: azureMountPath, azureWriteAuthRoleRequest: azureWriteAuthRoleRequest }, + initOverrides + ); + } + + /** + */ + async certConfigureRaw( + requestParameters: AuthApiCertConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certConfigure().' + ); + } + + if (requestParameters['certConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'certConfigureRequest', + 'Required parameter "certConfigureRequest" was null or undefined when calling certConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/config`.replace( + `{${'cert_mount_path'}}`, + encodeURIComponent(String(requestParameters['certMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CertConfigureRequestToJSON(requestParameters['certConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async certConfigure( + certMountPath: string, + certConfigureRequest: CertConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certConfigureRaw( + { certMountPath: certMountPath, certConfigureRequest: certConfigureRequest }, + initOverrides + ); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certDeleteCertificateRaw( + requestParameters: AuthApiCertDeleteCertificateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling certDeleteCertificate().' + ); + } + + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certDeleteCertificate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/certs/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'cert_mount_path'}}`, encodeURIComponent(String(requestParameters['certMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certDeleteCertificate( + name: string, + certMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certDeleteCertificateRaw({ name: name, certMountPath: certMountPath }, initOverrides); + } + + /** + * Manage Certificate Revocation Lists checked during authentication. + */ + async certDeleteCrlRaw( + requestParameters: AuthApiCertDeleteCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling certDeleteCrl().' + ); + } + + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certDeleteCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/crls/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'cert_mount_path'}}`, encodeURIComponent(String(requestParameters['certMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage Certificate Revocation Lists checked during authentication. + */ + async certDeleteCrl( + name: string, + certMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certDeleteCrlRaw({ name: name, certMountPath: certMountPath }, initOverrides); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certListCertificatesRaw( + requestParameters: AuthApiCertListCertificatesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certListCertificates().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling certListCertificates().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/certs/`.replace( + `{${'cert_mount_path'}}`, + encodeURIComponent(String(requestParameters['certMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certListCertificates( + certMountPath: string, + list: CertListCertificatesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.certListCertificatesRaw( + { certMountPath: certMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async certListCrlsRaw( + requestParameters: AuthApiCertListCrlsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certListCrls().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling certListCrls().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/crls/`.replace( + `{${'cert_mount_path'}}`, + encodeURIComponent(String(requestParameters['certMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async certListCrls( + certMountPath: string, + list: CertListCrlsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.certListCrlsRaw({ certMountPath: certMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async certLoginRaw( + requestParameters: AuthApiCertLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certLogin().' + ); + } + + if (requestParameters['certLoginRequest'] == null) { + throw new runtime.RequiredError( + 'certLoginRequest', + 'Required parameter "certLoginRequest" was null or undefined when calling certLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/login`.replace( + `{${'cert_mount_path'}}`, + encodeURIComponent(String(requestParameters['certMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CertLoginRequestToJSON(requestParameters['certLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async certLogin( + certMountPath: string, + certLoginRequest: CertLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certLoginRaw( + { certMountPath: certMountPath, certLoginRequest: certLoginRequest }, + initOverrides + ); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certReadCertificateRaw( + requestParameters: AuthApiCertReadCertificateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling certReadCertificate().' + ); + } + + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certReadCertificate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/certs/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'cert_mount_path'}}`, encodeURIComponent(String(requestParameters['certMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certReadCertificate( + name: string, + certMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certReadCertificateRaw({ name: name, certMountPath: certMountPath }, initOverrides); + } + + /** + */ + async certReadConfigurationRaw( + requestParameters: AuthApiCertReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/config`.replace( + `{${'cert_mount_path'}}`, + encodeURIComponent(String(requestParameters['certMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async certReadConfiguration( + certMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certReadConfigurationRaw({ certMountPath: certMountPath }, initOverrides); + } + + /** + * Manage Certificate Revocation Lists checked during authentication. + */ + async certReadCrlRaw( + requestParameters: AuthApiCertReadCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling certReadCrl().' + ); + } + + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certReadCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/crls/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'cert_mount_path'}}`, encodeURIComponent(String(requestParameters['certMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage Certificate Revocation Lists checked during authentication. + */ + async certReadCrl( + name: string, + certMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certReadCrlRaw({ name: name, certMountPath: certMountPath }, initOverrides); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certWriteCertificateRaw( + requestParameters: AuthApiCertWriteCertificateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling certWriteCertificate().' + ); + } + + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certWriteCertificate().' + ); + } + + if (requestParameters['certWriteCertificateRequest'] == null) { + throw new runtime.RequiredError( + 'certWriteCertificateRequest', + 'Required parameter "certWriteCertificateRequest" was null or undefined when calling certWriteCertificate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/certs/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'cert_mount_path'}}`, encodeURIComponent(String(requestParameters['certMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CertWriteCertificateRequestToJSON(requestParameters['certWriteCertificateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage trusted certificates used for authentication. + */ + async certWriteCertificate( + name: string, + certMountPath: string, + certWriteCertificateRequest: CertWriteCertificateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certWriteCertificateRaw( + { name: name, certMountPath: certMountPath, certWriteCertificateRequest: certWriteCertificateRequest }, + initOverrides + ); + } + + /** + * Manage Certificate Revocation Lists checked during authentication. + */ + async certWriteCrlRaw( + requestParameters: AuthApiCertWriteCrlOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling certWriteCrl().' + ); + } + + if (requestParameters['certMountPath'] == null) { + throw new runtime.RequiredError( + 'certMountPath', + 'Required parameter "certMountPath" was null or undefined when calling certWriteCrl().' + ); + } + + if (requestParameters['certWriteCrlRequest'] == null) { + throw new runtime.RequiredError( + 'certWriteCrlRequest', + 'Required parameter "certWriteCrlRequest" was null or undefined when calling certWriteCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{cert_mount_path}/crls/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'cert_mount_path'}}`, encodeURIComponent(String(requestParameters['certMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CertWriteCrlRequestToJSON(requestParameters['certWriteCrlRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage Certificate Revocation Lists checked during authentication. + */ + async certWriteCrl( + name: string, + certMountPath: string, + certWriteCrlRequest: CertWriteCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.certWriteCrlRaw( + { name: name, certMountPath: certMountPath, certWriteCrlRequest: certWriteCrlRequest }, + initOverrides + ); + } + + /** + */ + async cloudFoundryConfigureRaw( + requestParameters: AuthApiCloudFoundryConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryConfigure().' + ); + } + + if (requestParameters['cloudFoundryConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'cloudFoundryConfigureRequest', + 'Required parameter "cloudFoundryConfigureRequest" was null or undefined when calling cloudFoundryConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/config`.replace( + `{${'cf_mount_path'}}`, + encodeURIComponent(String(requestParameters['cfMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CloudFoundryConfigureRequestToJSON(requestParameters['cloudFoundryConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async cloudFoundryConfigure( + cfMountPath: string, + cloudFoundryConfigureRequest: CloudFoundryConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cloudFoundryConfigureRaw( + { cfMountPath: cfMountPath, cloudFoundryConfigureRequest: cloudFoundryConfigureRequest }, + initOverrides + ); + } + + /** + */ + async cloudFoundryDeleteConfigurationRaw( + requestParameters: AuthApiCloudFoundryDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/config`.replace( + `{${'cf_mount_path'}}`, + encodeURIComponent(String(requestParameters['cfMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async cloudFoundryDeleteConfiguration( + cfMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cloudFoundryDeleteConfigurationRaw({ cfMountPath: cfMountPath }, initOverrides); + } + + /** + */ + async cloudFoundryDeleteRoleRaw( + requestParameters: AuthApiCloudFoundryDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling cloudFoundryDeleteRole().' + ); + } + + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/roles/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'cf_mount_path'}}`, encodeURIComponent(String(requestParameters['cfMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async cloudFoundryDeleteRole( + role: string, + cfMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cloudFoundryDeleteRoleRaw({ role: role, cfMountPath: cfMountPath }, initOverrides); + } + + /** + */ + async cloudFoundryListRolesRaw( + requestParameters: AuthApiCloudFoundryListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling cloudFoundryListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/roles/`.replace( + `{${'cf_mount_path'}}`, + encodeURIComponent(String(requestParameters['cfMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async cloudFoundryListRoles( + cfMountPath: string, + list: CloudFoundryListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.cloudFoundryListRolesRaw( + { cfMountPath: cfMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async cloudFoundryLoginRaw( + requestParameters: AuthApiCloudFoundryLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryLogin().' + ); + } + + if (requestParameters['cloudFoundryLoginRequest'] == null) { + throw new runtime.RequiredError( + 'cloudFoundryLoginRequest', + 'Required parameter "cloudFoundryLoginRequest" was null or undefined when calling cloudFoundryLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/login`.replace( + `{${'cf_mount_path'}}`, + encodeURIComponent(String(requestParameters['cfMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CloudFoundryLoginRequestToJSON(requestParameters['cloudFoundryLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async cloudFoundryLogin( + cfMountPath: string, + cloudFoundryLoginRequest: CloudFoundryLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cloudFoundryLoginRaw( + { cfMountPath: cfMountPath, cloudFoundryLoginRequest: cloudFoundryLoginRequest }, + initOverrides + ); + } + + /** + */ + async cloudFoundryReadConfigurationRaw( + requestParameters: AuthApiCloudFoundryReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/config`.replace( + `{${'cf_mount_path'}}`, + encodeURIComponent(String(requestParameters['cfMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async cloudFoundryReadConfiguration( + cfMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cloudFoundryReadConfigurationRaw({ cfMountPath: cfMountPath }, initOverrides); + } + + /** + */ + async cloudFoundryReadRoleRaw( + requestParameters: AuthApiCloudFoundryReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling cloudFoundryReadRole().' + ); + } + + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/roles/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'cf_mount_path'}}`, encodeURIComponent(String(requestParameters['cfMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async cloudFoundryReadRole( + role: string, + cfMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cloudFoundryReadRoleRaw({ role: role, cfMountPath: cfMountPath }, initOverrides); + } + + /** + */ + async cloudFoundryWriteRoleRaw( + requestParameters: AuthApiCloudFoundryWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling cloudFoundryWriteRole().' + ); + } + + if (requestParameters['cfMountPath'] == null) { + throw new runtime.RequiredError( + 'cfMountPath', + 'Required parameter "cfMountPath" was null or undefined when calling cloudFoundryWriteRole().' + ); + } + + if (requestParameters['cloudFoundryWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'cloudFoundryWriteRoleRequest', + 'Required parameter "cloudFoundryWriteRoleRequest" was null or undefined when calling cloudFoundryWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{cf_mount_path}/roles/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'cf_mount_path'}}`, encodeURIComponent(String(requestParameters['cfMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CloudFoundryWriteRoleRequestToJSON(requestParameters['cloudFoundryWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async cloudFoundryWriteRole( + role: string, + cfMountPath: string, + cloudFoundryWriteRoleRequest: CloudFoundryWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cloudFoundryWriteRoleRaw( + { role: role, cfMountPath: cfMountPath, cloudFoundryWriteRoleRequest: cloudFoundryWriteRoleRequest }, + initOverrides + ); + } + + /** + */ + async githubConfigureRaw( + requestParameters: AuthApiGithubConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubConfigure().' + ); + } + + if (requestParameters['githubConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'githubConfigureRequest', + 'Required parameter "githubConfigureRequest" was null or undefined when calling githubConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/config`.replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GithubConfigureRequestToJSON(requestParameters['githubConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async githubConfigure( + githubMountPath: string, + githubConfigureRequest: GithubConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubConfigureRaw( + { githubMountPath: githubMountPath, githubConfigureRequest: githubConfigureRequest }, + initOverrides + ); + } + + /** + * Read/write/delete a single teams mapping + */ + async githubDeleteTeamMappingRaw( + requestParameters: AuthApiGithubDeleteTeamMappingRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling githubDeleteTeamMapping().' + ); + } + + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubDeleteTeamMapping().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/teams/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read/write/delete a single teams mapping + */ + async githubDeleteTeamMapping( + key: string, + githubMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubDeleteTeamMappingRaw({ key: key, githubMountPath: githubMountPath }, initOverrides); + } + + /** + * Read/write/delete a single users mapping + */ + async githubDeleteUserMappingRaw( + requestParameters: AuthApiGithubDeleteUserMappingRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling githubDeleteUserMapping().' + ); + } + + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubDeleteUserMapping().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/users/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read/write/delete a single users mapping + */ + async githubDeleteUserMapping( + key: string, + githubMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubDeleteUserMappingRaw({ key: key, githubMountPath: githubMountPath }, initOverrides); + } + + /** + * Read mappings for teams + */ + async githubListTeamsRaw( + requestParameters: AuthApiGithubListTeamsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubListTeams().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling githubListTeams().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/teams/`.replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Read mappings for teams + */ + async githubListTeams( + githubMountPath: string, + list: GithubListTeamsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.githubListTeamsRaw( + { githubMountPath: githubMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Read mappings for teams + */ + async githubListTeams2Raw( + requestParameters: AuthApiGithubListTeams2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubListTeams2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/teams`.replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read mappings for teams + */ + async githubListTeams2( + githubMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubListTeams2Raw({ githubMountPath: githubMountPath }, initOverrides); + } + + /** + * Read mappings for users + */ + async githubListUsersRaw( + requestParameters: AuthApiGithubListUsersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubListUsers().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling githubListUsers().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/users/`.replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Read mappings for users + */ + async githubListUsers( + githubMountPath: string, + list: GithubListUsersListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.githubListUsersRaw( + { githubMountPath: githubMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Read mappings for users + */ + async githubListUsers2Raw( + requestParameters: AuthApiGithubListUsers2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubListUsers2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/users`.replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read mappings for users + */ + async githubListUsers2( + githubMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubListUsers2Raw({ githubMountPath: githubMountPath }, initOverrides); + } + + /** + */ + async githubLoginRaw( + requestParameters: AuthApiGithubLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubLogin().' + ); + } + + if (requestParameters['githubLoginRequest'] == null) { + throw new runtime.RequiredError( + 'githubLoginRequest', + 'Required parameter "githubLoginRequest" was null or undefined when calling githubLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/login`.replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GithubLoginRequestToJSON(requestParameters['githubLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async githubLogin( + githubMountPath: string, + githubLoginRequest: GithubLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubLoginRaw( + { githubMountPath: githubMountPath, githubLoginRequest: githubLoginRequest }, + initOverrides + ); + } + + /** + */ + async githubReadConfigurationRaw( + requestParameters: AuthApiGithubReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/config`.replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async githubReadConfiguration( + githubMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubReadConfigurationRaw({ githubMountPath: githubMountPath }, initOverrides); + } + + /** + * Read/write/delete a single teams mapping + */ + async githubReadTeamMappingRaw( + requestParameters: AuthApiGithubReadTeamMappingRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling githubReadTeamMapping().' + ); + } + + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubReadTeamMapping().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/teams/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read/write/delete a single teams mapping + */ + async githubReadTeamMapping( + key: string, + githubMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubReadTeamMappingRaw({ key: key, githubMountPath: githubMountPath }, initOverrides); + } + + /** + * Read/write/delete a single users mapping + */ + async githubReadUserMappingRaw( + requestParameters: AuthApiGithubReadUserMappingRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling githubReadUserMapping().' + ); + } + + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubReadUserMapping().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/users/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read/write/delete a single users mapping + */ + async githubReadUserMapping( + key: string, + githubMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubReadUserMappingRaw({ key: key, githubMountPath: githubMountPath }, initOverrides); + } + + /** + * Read/write/delete a single teams mapping + */ + async githubWriteTeamMappingRaw( + requestParameters: AuthApiGithubWriteTeamMappingOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling githubWriteTeamMapping().' + ); + } + + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubWriteTeamMapping().' + ); + } + + if (requestParameters['githubWriteTeamMappingRequest'] == null) { + throw new runtime.RequiredError( + 'githubWriteTeamMappingRequest', + 'Required parameter "githubWriteTeamMappingRequest" was null or undefined when calling githubWriteTeamMapping().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/teams/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GithubWriteTeamMappingRequestToJSON(requestParameters['githubWriteTeamMappingRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read/write/delete a single teams mapping + */ + async githubWriteTeamMapping( + key: string, + githubMountPath: string, + githubWriteTeamMappingRequest: GithubWriteTeamMappingRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubWriteTeamMappingRaw( + { + key: key, + githubMountPath: githubMountPath, + githubWriteTeamMappingRequest: githubWriteTeamMappingRequest, + }, + initOverrides + ); + } + + /** + * Read/write/delete a single users mapping + */ + async githubWriteUserMappingRaw( + requestParameters: AuthApiGithubWriteUserMappingOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling githubWriteUserMapping().' + ); + } + + if (requestParameters['githubMountPath'] == null) { + throw new runtime.RequiredError( + 'githubMountPath', + 'Required parameter "githubMountPath" was null or undefined when calling githubWriteUserMapping().' + ); + } + + if (requestParameters['githubWriteUserMappingRequest'] == null) { + throw new runtime.RequiredError( + 'githubWriteUserMappingRequest', + 'Required parameter "githubWriteUserMappingRequest" was null or undefined when calling githubWriteUserMapping().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{github_mount_path}/map/users/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'github_mount_path'}}`, + encodeURIComponent(String(requestParameters['githubMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GithubWriteUserMappingRequestToJSON(requestParameters['githubWriteUserMappingRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read/write/delete a single users mapping + */ + async githubWriteUserMapping( + key: string, + githubMountPath: string, + githubWriteUserMappingRequest: GithubWriteUserMappingRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.githubWriteUserMappingRaw( + { + key: key, + githubMountPath: githubMountPath, + githubWriteUserMappingRequest: githubWriteUserMappingRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudConfigureAuthRaw( + requestParameters: AuthApiGoogleCloudConfigureAuthOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudConfigureAuth().' + ); + } + + if (requestParameters['googleCloudConfigureAuthRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudConfigureAuthRequest', + 'Required parameter "googleCloudConfigureAuthRequest" was null or undefined when calling googleCloudConfigureAuth().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/config`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudConfigureAuthRequestToJSON(requestParameters['googleCloudConfigureAuthRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudConfigureAuth( + gcpMountPath: string, + googleCloudConfigureAuthRequest: GoogleCloudConfigureAuthRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudConfigureAuthRaw( + { gcpMountPath: gcpMountPath, googleCloudConfigureAuthRequest: googleCloudConfigureAuthRequest }, + initOverrides + ); + } + + /** + * Create a GCP role with associated policies and required attributes. + */ + async googleCloudDeleteRoleRaw( + requestParameters: AuthApiGoogleCloudDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudDeleteRole().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a GCP role with associated policies and required attributes. + */ + async googleCloudDeleteRole( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudDeleteRoleRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + * Add or remove labels for an existing \'gce\' role + */ + async googleCloudEditLabelsForRoleRaw( + requestParameters: AuthApiGoogleCloudEditLabelsForRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudEditLabelsForRole().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudEditLabelsForRole().' + ); + } + + if (requestParameters['googleCloudEditLabelsForRoleRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudEditLabelsForRoleRequest', + 'Required parameter "googleCloudEditLabelsForRoleRequest" was null or undefined when calling googleCloudEditLabelsForRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/role/{name}/labels` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudEditLabelsForRoleRequestToJSON( + requestParameters['googleCloudEditLabelsForRoleRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Add or remove labels for an existing \'gce\' role + */ + async googleCloudEditLabelsForRole( + name: string, + gcpMountPath: string, + googleCloudEditLabelsForRoleRequest: GoogleCloudEditLabelsForRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudEditLabelsForRoleRaw( + { + name: name, + gcpMountPath: gcpMountPath, + googleCloudEditLabelsForRoleRequest: googleCloudEditLabelsForRoleRequest, + }, + initOverrides + ); + } + + /** + * Add or remove service accounts for an existing `iam` role + */ + async googleCloudEditServiceAccountsForRoleRaw( + requestParameters: AuthApiGoogleCloudEditServiceAccountsForRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudEditServiceAccountsForRole().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudEditServiceAccountsForRole().' + ); + } + + if (requestParameters['googleCloudEditServiceAccountsForRoleRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudEditServiceAccountsForRoleRequest', + 'Required parameter "googleCloudEditServiceAccountsForRoleRequest" was null or undefined when calling googleCloudEditServiceAccountsForRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/role/{name}/service-accounts` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudEditServiceAccountsForRoleRequestToJSON( + requestParameters['googleCloudEditServiceAccountsForRoleRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Add or remove service accounts for an existing `iam` role + */ + async googleCloudEditServiceAccountsForRole( + name: string, + gcpMountPath: string, + googleCloudEditServiceAccountsForRoleRequest: GoogleCloudEditServiceAccountsForRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudEditServiceAccountsForRoleRaw( + { + name: name, + gcpMountPath: gcpMountPath, + googleCloudEditServiceAccountsForRoleRequest: googleCloudEditServiceAccountsForRoleRequest, + }, + initOverrides + ); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async googleCloudListRolesRaw( + requestParameters: AuthApiGoogleCloudListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/role/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async googleCloudListRoles( + gcpMountPath: string, + list: GoogleCloudListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListRolesRaw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async googleCloudListRoles2Raw( + requestParameters: AuthApiGoogleCloudListRoles2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListRoles2().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListRoles2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/roles/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async googleCloudListRoles2( + gcpMountPath: string, + list: GoogleCloudListRoles2ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListRoles2Raw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudLoginRaw( + requestParameters: AuthApiGoogleCloudLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudLogin().' + ); + } + + if (requestParameters['googleCloudLoginRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudLoginRequest', + 'Required parameter "googleCloudLoginRequest" was null or undefined when calling googleCloudLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/login`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudLoginRequestToJSON(requestParameters['googleCloudLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudLogin( + gcpMountPath: string, + googleCloudLoginRequest: GoogleCloudLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudLoginRaw( + { gcpMountPath: gcpMountPath, googleCloudLoginRequest: googleCloudLoginRequest }, + initOverrides + ); + } + + /** + */ + async googleCloudReadAuthConfigurationRaw( + requestParameters: AuthApiGoogleCloudReadAuthConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudReadAuthConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/config`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudReadAuthConfiguration( + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudReadAuthConfigurationRaw({ gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + * Create a GCP role with associated policies and required attributes. + */ + async googleCloudReadRoleRaw( + requestParameters: AuthApiGoogleCloudReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudReadRole().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a GCP role with associated policies and required attributes. + */ + async googleCloudReadRole( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudReadRoleRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudRotateRootCredentialsRaw( + requestParameters: AuthApiGoogleCloudRotateRootCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudRotateRootCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/config/rotate-root`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudRotateRootCredentials( + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudRotateRootCredentialsRaw({ gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + * Create a GCP role with associated policies and required attributes. + */ + async googleCloudWriteRoleRaw( + requestParameters: AuthApiGoogleCloudWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudWriteRole().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudWriteRole().' + ); + } + + if (requestParameters['googleCloudWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudWriteRoleRequest', + 'Required parameter "googleCloudWriteRoleRequest" was null or undefined when calling googleCloudWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{gcp_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudWriteRoleRequestToJSON(requestParameters['googleCloudWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a GCP role with associated policies and required attributes. + */ + async googleCloudWriteRole( + name: string, + gcpMountPath: string, + googleCloudWriteRoleRequest: GoogleCloudWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudWriteRoleRaw( + { name: name, gcpMountPath: gcpMountPath, googleCloudWriteRoleRequest: googleCloudWriteRoleRequest }, + initOverrides + ); + } + + /** + * The JWT authentication backend validates JWTs (or OIDC) using the configured credentials. If using OIDC Discovery, the URL must be provided, along with (optionally) the CA cert to use for the connection. If performing JWT validation locally, a set of public keys must be provided. + * Configure the JWT authentication backend. + */ + async jwtConfigureRaw( + requestParameters: AuthApiJwtConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtConfigure().' + ); + } + + if (requestParameters['jwtConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'jwtConfigureRequest', + 'Required parameter "jwtConfigureRequest" was null or undefined when calling jwtConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/config`.replace( + `{${'jwt_mount_path'}}`, + encodeURIComponent(String(requestParameters['jwtMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: JwtConfigureRequestToJSON(requestParameters['jwtConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The JWT authentication backend validates JWTs (or OIDC) using the configured credentials. If using OIDC Discovery, the URL must be provided, along with (optionally) the CA cert to use for the connection. If performing JWT validation locally, a set of public keys must be provided. + * Configure the JWT authentication backend. + */ + async jwtConfigure( + jwtMountPath: string, + jwtConfigureRequest: JwtConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtConfigureRaw( + { jwtMountPath: jwtMountPath, jwtConfigureRequest: jwtConfigureRequest }, + initOverrides + ); + } + + /** + * Delete an existing role. + */ + async jwtDeleteRoleRaw( + requestParameters: AuthApiJwtDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling jwtDeleteRole().' + ); + } + + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'jwt_mount_path'}}`, encodeURIComponent(String(requestParameters['jwtMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete an existing role. + */ + async jwtDeleteRole( + name: string, + jwtMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtDeleteRoleRaw({ name: name, jwtMountPath: jwtMountPath }, initOverrides); + } + + /** + * The list will contain the names of the roles. + * Lists all the roles registered with the backend. + */ + async jwtListRolesRaw( + requestParameters: AuthApiJwtListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling jwtListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/role/`.replace( + `{${'jwt_mount_path'}}`, + encodeURIComponent(String(requestParameters['jwtMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * The list will contain the names of the roles. + * Lists all the roles registered with the backend. + */ + async jwtListRoles( + jwtMountPath: string, + list: JwtListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.jwtListRolesRaw({ jwtMountPath: jwtMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + * Authenticates to Vault using a JWT (or OIDC) token. + */ + async jwtLoginRaw( + requestParameters: AuthApiJwtLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtLogin().' + ); + } + + if (requestParameters['jwtLoginRequest'] == null) { + throw new runtime.RequiredError( + 'jwtLoginRequest', + 'Required parameter "jwtLoginRequest" was null or undefined when calling jwtLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/login`.replace( + `{${'jwt_mount_path'}}`, + encodeURIComponent(String(requestParameters['jwtMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: JwtLoginRequestToJSON(requestParameters['jwtLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Authenticates to Vault using a JWT (or OIDC) token. + */ + async jwtLogin( + jwtMountPath: string, + jwtLoginRequest: JwtLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtLoginRaw({ jwtMountPath: jwtMountPath, jwtLoginRequest: jwtLoginRequest }, initOverrides); + } + + /** + * Callback endpoint to complete an OIDC login. + */ + async jwtOidcCallbackRaw( + requestParameters: AuthApiJwtOidcCallbackRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtOidcCallback().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['clientNonce'] != null) { + queryParameters['client_nonce'] = requestParameters['clientNonce']; + } + + if (requestParameters['code'] != null) { + queryParameters['code'] = requestParameters['code']; + } + + if (requestParameters['state'] != null) { + queryParameters['state'] = requestParameters['state']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/oidc/callback`.replace( + `{${'jwt_mount_path'}}`, + encodeURIComponent(String(requestParameters['jwtMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Callback endpoint to complete an OIDC login. + */ + async jwtOidcCallback( + jwtMountPath: string, + clientNonce?: string, + code?: string, + state?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtOidcCallbackRaw( + { jwtMountPath: jwtMountPath, clientNonce: clientNonce, code: code, state: state }, + initOverrides + ); + } + + /** + * Callback endpoint to handle form_posts. + */ + async jwtOidcCallbackFormPostRaw( + requestParameters: AuthApiJwtOidcCallbackFormPostOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtOidcCallbackFormPost().' + ); + } + + if (requestParameters['jwtOidcCallbackFormPostRequest'] == null) { + throw new runtime.RequiredError( + 'jwtOidcCallbackFormPostRequest', + 'Required parameter "jwtOidcCallbackFormPostRequest" was null or undefined when calling jwtOidcCallbackFormPost().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/oidc/callback`.replace( + `{${'jwt_mount_path'}}`, + encodeURIComponent(String(requestParameters['jwtMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: JwtOidcCallbackFormPostRequestToJSON(requestParameters['jwtOidcCallbackFormPostRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Callback endpoint to handle form_posts. + */ + async jwtOidcCallbackFormPost( + jwtMountPath: string, + jwtOidcCallbackFormPostRequest: JwtOidcCallbackFormPostRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtOidcCallbackFormPostRaw( + { jwtMountPath: jwtMountPath, jwtOidcCallbackFormPostRequest: jwtOidcCallbackFormPostRequest }, + initOverrides + ); + } + + /** + * Request an authorization URL to start an OIDC login flow. + */ + async jwtOidcRequestAuthorizationUrlRaw( + requestParameters: AuthApiJwtOidcRequestAuthorizationUrlOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtOidcRequestAuthorizationUrl().' + ); + } + + if (requestParameters['jwtOidcRequestAuthorizationUrlRequest'] == null) { + throw new runtime.RequiredError( + 'jwtOidcRequestAuthorizationUrlRequest', + 'Required parameter "jwtOidcRequestAuthorizationUrlRequest" was null or undefined when calling jwtOidcRequestAuthorizationUrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/oidc/auth_url`.replace( + `{${'jwt_mount_path'}}`, + encodeURIComponent(String(requestParameters['jwtMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: JwtOidcRequestAuthorizationUrlRequestToJSON( + requestParameters['jwtOidcRequestAuthorizationUrlRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Request an authorization URL to start an OIDC login flow. + */ + async jwtOidcRequestAuthorizationUrl( + jwtMountPath: string, + jwtOidcRequestAuthorizationUrlRequest: JwtOidcRequestAuthorizationUrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtOidcRequestAuthorizationUrlRaw( + { + jwtMountPath: jwtMountPath, + jwtOidcRequestAuthorizationUrlRequest: jwtOidcRequestAuthorizationUrlRequest, + }, + initOverrides + ); + } + + /** + * Read the current JWT authentication backend configuration. + */ + async jwtReadConfigurationRaw( + requestParameters: AuthApiJwtReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/config`.replace( + `{${'jwt_mount_path'}}`, + encodeURIComponent(String(requestParameters['jwtMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current JWT authentication backend configuration. + */ + async jwtReadConfiguration( + jwtMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtReadConfigurationRaw({ jwtMountPath: jwtMountPath }, initOverrides); + } + + /** + * Read an existing role. + */ + async jwtReadRoleRaw( + requestParameters: AuthApiJwtReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling jwtReadRole().' + ); + } + + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'jwt_mount_path'}}`, encodeURIComponent(String(requestParameters['jwtMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read an existing role. + */ + async jwtReadRole( + name: string, + jwtMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtReadRoleRaw({ name: name, jwtMountPath: jwtMountPath }, initOverrides); + } + + /** + * A role is required to authenticate with this backend. The role binds JWT token information with token policies and settings. The bindings, token polices and token settings can all be configured using this endpoint + * Register an role with the backend. + */ + async jwtWriteRoleRaw( + requestParameters: AuthApiJwtWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling jwtWriteRole().' + ); + } + + if (requestParameters['jwtMountPath'] == null) { + throw new runtime.RequiredError( + 'jwtMountPath', + 'Required parameter "jwtMountPath" was null or undefined when calling jwtWriteRole().' + ); + } + + if (requestParameters['jwtWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'jwtWriteRoleRequest', + 'Required parameter "jwtWriteRoleRequest" was null or undefined when calling jwtWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{jwt_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'jwt_mount_path'}}`, encodeURIComponent(String(requestParameters['jwtMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: JwtWriteRoleRequestToJSON(requestParameters['jwtWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * A role is required to authenticate with this backend. The role binds JWT token information with token policies and settings. The bindings, token polices and token settings can all be configured using this endpoint + * Register an role with the backend. + */ + async jwtWriteRole( + name: string, + jwtMountPath: string, + jwtWriteRoleRequest: JwtWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.jwtWriteRoleRaw( + { name: name, jwtMountPath: jwtMountPath, jwtWriteRoleRequest: jwtWriteRoleRequest }, + initOverrides + ); + } + + /** + */ + async kerberosConfigureRaw( + requestParameters: AuthApiKerberosConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosConfigure().' + ); + } + + if (requestParameters['kerberosConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'kerberosConfigureRequest', + 'Required parameter "kerberosConfigureRequest" was null or undefined when calling kerberosConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/config`.replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KerberosConfigureRequestToJSON(requestParameters['kerberosConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosConfigure( + kerberosMountPath: string, + kerberosConfigureRequest: KerberosConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosConfigureRaw( + { kerberosMountPath: kerberosMountPath, kerberosConfigureRequest: kerberosConfigureRequest }, + initOverrides + ); + } + + /** + */ + async kerberosConfigureLdapRaw( + requestParameters: AuthApiKerberosConfigureLdapOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosConfigureLdap().' + ); + } + + if (requestParameters['kerberosConfigureLdapRequest'] == null) { + throw new runtime.RequiredError( + 'kerberosConfigureLdapRequest', + 'Required parameter "kerberosConfigureLdapRequest" was null or undefined when calling kerberosConfigureLdap().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/config/ldap`.replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KerberosConfigureLdapRequestToJSON(requestParameters['kerberosConfigureLdapRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosConfigureLdap( + kerberosMountPath: string, + kerberosConfigureLdapRequest: KerberosConfigureLdapRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosConfigureLdapRaw( + { kerberosMountPath: kerberosMountPath, kerberosConfigureLdapRequest: kerberosConfigureLdapRequest }, + initOverrides + ); + } + + /** + */ + async kerberosDeleteGroupRaw( + requestParameters: AuthApiKerberosDeleteGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kerberosDeleteGroup().' + ); + } + + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosDeleteGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosDeleteGroup( + name: string, + kerberosMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosDeleteGroupRaw({ name: name, kerberosMountPath: kerberosMountPath }, initOverrides); + } + + /** + */ + async kerberosListGroupsRaw( + requestParameters: AuthApiKerberosListGroupsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosListGroups().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling kerberosListGroups().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/groups/`.replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async kerberosListGroups( + kerberosMountPath: string, + list: KerberosListGroupsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kerberosListGroupsRaw( + { kerberosMountPath: kerberosMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async kerberosLoginRaw( + requestParameters: AuthApiKerberosLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosLogin().' + ); + } + + if (requestParameters['kerberosLoginRequest'] == null) { + throw new runtime.RequiredError( + 'kerberosLoginRequest', + 'Required parameter "kerberosLoginRequest" was null or undefined when calling kerberosLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/login`.replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KerberosLoginRequestToJSON(requestParameters['kerberosLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosLogin( + kerberosMountPath: string, + kerberosLoginRequest: KerberosLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosLoginRaw( + { kerberosMountPath: kerberosMountPath, kerberosLoginRequest: kerberosLoginRequest }, + initOverrides + ); + } + + /** + */ + async kerberosLogin2Raw( + requestParameters: AuthApiKerberosLogin2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosLogin2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/login`.replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosLogin2( + kerberosMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosLogin2Raw({ kerberosMountPath: kerberosMountPath }, initOverrides); + } + + /** + */ + async kerberosReadConfigurationRaw( + requestParameters: AuthApiKerberosReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/config`.replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosReadConfiguration( + kerberosMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosReadConfigurationRaw({ kerberosMountPath: kerberosMountPath }, initOverrides); + } + + /** + */ + async kerberosReadGroupRaw( + requestParameters: AuthApiKerberosReadGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kerberosReadGroup().' + ); + } + + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosReadGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosReadGroup( + name: string, + kerberosMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosReadGroupRaw({ name: name, kerberosMountPath: kerberosMountPath }, initOverrides); + } + + /** + */ + async kerberosReadLdapConfigurationRaw( + requestParameters: AuthApiKerberosReadLdapConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosReadLdapConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/config/ldap`.replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosReadLdapConfiguration( + kerberosMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosReadLdapConfigurationRaw({ kerberosMountPath: kerberosMountPath }, initOverrides); + } + + /** + */ + async kerberosWriteGroupRaw( + requestParameters: AuthApiKerberosWriteGroupOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kerberosWriteGroup().' + ); + } + + if (requestParameters['kerberosMountPath'] == null) { + throw new runtime.RequiredError( + 'kerberosMountPath', + 'Required parameter "kerberosMountPath" was null or undefined when calling kerberosWriteGroup().' + ); + } + + if (requestParameters['kerberosWriteGroupRequest'] == null) { + throw new runtime.RequiredError( + 'kerberosWriteGroupRequest', + 'Required parameter "kerberosWriteGroupRequest" was null or undefined when calling kerberosWriteGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{kerberos_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kerberos_mount_path'}}`, + encodeURIComponent(String(requestParameters['kerberosMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KerberosWriteGroupRequestToJSON(requestParameters['kerberosWriteGroupRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kerberosWriteGroup( + name: string, + kerberosMountPath: string, + kerberosWriteGroupRequest: KerberosWriteGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kerberosWriteGroupRaw( + { + name: name, + kerberosMountPath: kerberosMountPath, + kerberosWriteGroupRequest: kerberosWriteGroupRequest, + }, + initOverrides + ); + } + + /** + */ + async kubernetesConfigureAuthRaw( + requestParameters: AuthApiKubernetesConfigureAuthOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesConfigureAuth().' + ); + } + + if (requestParameters['kubernetesConfigureAuthRequest'] == null) { + throw new runtime.RequiredError( + 'kubernetesConfigureAuthRequest', + 'Required parameter "kubernetesConfigureAuthRequest" was null or undefined when calling kubernetesConfigureAuth().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{kubernetes_mount_path}/config`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KubernetesConfigureAuthRequestToJSON(requestParameters['kubernetesConfigureAuthRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesConfigureAuth( + kubernetesMountPath: string, + kubernetesConfigureAuthRequest: KubernetesConfigureAuthRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesConfigureAuthRaw( + { + kubernetesMountPath: kubernetesMountPath, + kubernetesConfigureAuthRequest: kubernetesConfigureAuthRequest, + }, + initOverrides + ); + } + + /** + * Register an role with the backend. + */ + async kubernetesDeleteAuthRoleRaw( + requestParameters: AuthApiKubernetesDeleteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kubernetesDeleteAuthRole().' + ); + } + + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesDeleteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kubernetes_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Register an role with the backend. + */ + async kubernetesDeleteAuthRole( + name: string, + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesDeleteAuthRoleRaw( + { name: name, kubernetesMountPath: kubernetesMountPath }, + initOverrides + ); + } + + /** + * Lists all the roles registered with the backend. + */ + async kubernetesListAuthRolesRaw( + requestParameters: AuthApiKubernetesListAuthRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesListAuthRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling kubernetesListAuthRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kubernetes_mount_path}/role/`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Lists all the roles registered with the backend. + */ + async kubernetesListAuthRoles( + kubernetesMountPath: string, + list: KubernetesListAuthRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kubernetesListAuthRolesRaw( + { kubernetesMountPath: kubernetesMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Authenticates Kubernetes service accounts with Vault. + */ + async kubernetesLoginRaw( + requestParameters: AuthApiKubernetesLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesLogin().' + ); + } + + if (requestParameters['kubernetesLoginRequest'] == null) { + throw new runtime.RequiredError( + 'kubernetesLoginRequest', + 'Required parameter "kubernetesLoginRequest" was null or undefined when calling kubernetesLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{kubernetes_mount_path}/login`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KubernetesLoginRequestToJSON(requestParameters['kubernetesLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Authenticates Kubernetes service accounts with Vault. + */ + async kubernetesLogin( + kubernetesMountPath: string, + kubernetesLoginRequest: KubernetesLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesLoginRaw( + { kubernetesMountPath: kubernetesMountPath, kubernetesLoginRequest: kubernetesLoginRequest }, + initOverrides + ); + } + + /** + */ + async kubernetesReadAuthConfigurationRaw( + requestParameters: AuthApiKubernetesReadAuthConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesReadAuthConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kubernetes_mount_path}/config`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesReadAuthConfiguration( + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesReadAuthConfigurationRaw( + { kubernetesMountPath: kubernetesMountPath }, + initOverrides + ); + } + + /** + * Register an role with the backend. + */ + async kubernetesReadAuthRoleRaw( + requestParameters: AuthApiKubernetesReadAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kubernetesReadAuthRole().' + ); + } + + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesReadAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{kubernetes_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Register an role with the backend. + */ + async kubernetesReadAuthRole( + name: string, + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesReadAuthRoleRaw( + { name: name, kubernetesMountPath: kubernetesMountPath }, + initOverrides + ); + } + + /** + * Register an role with the backend. + */ + async kubernetesWriteAuthRoleRaw( + requestParameters: AuthApiKubernetesWriteAuthRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kubernetesWriteAuthRole().' + ); + } + + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesWriteAuthRole().' + ); + } + + if (requestParameters['kubernetesWriteAuthRoleRequest'] == null) { + throw new runtime.RequiredError( + 'kubernetesWriteAuthRoleRequest', + 'Required parameter "kubernetesWriteAuthRoleRequest" was null or undefined when calling kubernetesWriteAuthRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{kubernetes_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KubernetesWriteAuthRoleRequestToJSON(requestParameters['kubernetesWriteAuthRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Register an role with the backend. + */ + async kubernetesWriteAuthRole( + name: string, + kubernetesMountPath: string, + kubernetesWriteAuthRoleRequest: KubernetesWriteAuthRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesWriteAuthRoleRaw( + { + name: name, + kubernetesMountPath: kubernetesMountPath, + kubernetesWriteAuthRoleRequest: kubernetesWriteAuthRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async ldapConfigureAuthRaw( + requestParameters: AuthApiLdapConfigureAuthOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapConfigureAuth().' + ); + } + + if (requestParameters['ldapConfigureAuthRequest'] == null) { + throw new runtime.RequiredError( + 'ldapConfigureAuthRequest', + 'Required parameter "ldapConfigureAuthRequest" was null or undefined when calling ldapConfigureAuth().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/config`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapConfigureAuthRequestToJSON(requestParameters['ldapConfigureAuthRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapConfigureAuth( + ldapMountPath: string, + ldapConfigureAuthRequest: LdapConfigureAuthRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapConfigureAuthRaw( + { ldapMountPath: ldapMountPath, ldapConfigureAuthRequest: ldapConfigureAuthRequest }, + initOverrides + ); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapDeleteGroupRaw( + requestParameters: AuthApiLdapDeleteGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapDeleteGroup().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapDeleteGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapDeleteGroup( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapDeleteGroupRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapDeleteUserRaw( + requestParameters: AuthApiLdapDeleteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapDeleteUser().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapDeleteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapDeleteUser( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapDeleteUserRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapListGroupsRaw( + requestParameters: AuthApiLdapListGroupsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListGroups().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListGroups().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/groups/`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapListGroups( + ldapMountPath: string, + list: LdapListGroupsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListGroupsRaw( + { ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapListUsersRaw( + requestParameters: AuthApiLdapListUsersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListUsers().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListUsers().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/users/`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapListUsers( + ldapMountPath: string, + list: LdapListUsersListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListUsersRaw({ ldapMountPath: ldapMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + * Log in with a username and password. + */ + async ldapLoginRaw( + requestParameters: AuthApiLdapLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling ldapLogin().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLogin().' + ); + } + + if (requestParameters['ldapLoginRequest'] == null) { + throw new runtime.RequiredError( + 'ldapLoginRequest', + 'Required parameter "ldapLoginRequest" was null or undefined when calling ldapLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/login/{username}` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapLoginRequestToJSON(requestParameters['ldapLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Log in with a username and password. + */ + async ldapLogin( + username: string, + ldapMountPath: string, + ldapLoginRequest: LdapLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLoginRaw( + { username: username, ldapMountPath: ldapMountPath, ldapLoginRequest: ldapLoginRequest }, + initOverrides + ); + } + + /** + */ + async ldapReadAuthConfigurationRaw( + requestParameters: AuthApiLdapReadAuthConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapReadAuthConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/config`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapReadAuthConfiguration( + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapReadAuthConfigurationRaw({ ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapReadGroupRaw( + requestParameters: AuthApiLdapReadGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapReadGroup().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapReadGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapReadGroup( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapReadGroupRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapReadUserRaw( + requestParameters: AuthApiLdapReadUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapReadUser().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapReadUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapReadUser( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapReadUserRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapRotateRootCredentialsRaw( + requestParameters: AuthApiLdapRotateRootCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapRotateRootCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/config/rotate-root`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapRotateRootCredentials( + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapRotateRootCredentialsRaw({ ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapWriteGroupRaw( + requestParameters: AuthApiLdapWriteGroupOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapWriteGroup().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapWriteGroup().' + ); + } + + if (requestParameters['ldapWriteGroupRequest'] == null) { + throw new runtime.RequiredError( + 'ldapWriteGroupRequest', + 'Required parameter "ldapWriteGroupRequest" was null or undefined when calling ldapWriteGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapWriteGroupRequestToJSON(requestParameters['ldapWriteGroupRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async ldapWriteGroup( + name: string, + ldapMountPath: string, + ldapWriteGroupRequest: LdapWriteGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapWriteGroupRaw( + { name: name, ldapMountPath: ldapMountPath, ldapWriteGroupRequest: ldapWriteGroupRequest }, + initOverrides + ); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapWriteUserRaw( + requestParameters: AuthApiLdapWriteUserOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapWriteUser().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapWriteUser().' + ); + } + + if (requestParameters['ldapWriteUserRequest'] == null) { + throw new runtime.RequiredError( + 'ldapWriteUserRequest', + 'Required parameter "ldapWriteUserRequest" was null or undefined when calling ldapWriteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{ldap_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapWriteUserRequestToJSON(requestParameters['ldapWriteUserRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async ldapWriteUser( + name: string, + ldapMountPath: string, + ldapWriteUserRequest: LdapWriteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapWriteUserRaw( + { name: name, ldapMountPath: ldapMountPath, ldapWriteUserRequest: ldapWriteUserRequest }, + initOverrides + ); + } + + /** + */ + async ociConfigureRaw( + requestParameters: AuthApiOciConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociConfigure().' + ); + } + + if (requestParameters['ociConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'ociConfigureRequest', + 'Required parameter "ociConfigureRequest" was null or undefined when calling ociConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/config`.replace( + `{${'oci_mount_path'}}`, + encodeURIComponent(String(requestParameters['ociMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OciConfigureRequestToJSON(requestParameters['ociConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ociConfigure( + ociMountPath: string, + ociConfigureRequest: OciConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ociConfigureRaw( + { ociMountPath: ociMountPath, ociConfigureRequest: ociConfigureRequest }, + initOverrides + ); + } + + /** + */ + async ociDeleteConfigurationRaw( + requestParameters: AuthApiOciDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/config`.replace( + `{${'oci_mount_path'}}`, + encodeURIComponent(String(requestParameters['ociMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ociDeleteConfiguration( + ociMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ociDeleteConfigurationRaw({ ociMountPath: ociMountPath }, initOverrides); + } + + /** + * Create a role and associate policies to it. + */ + async ociDeleteRoleRaw( + requestParameters: AuthApiOciDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling ociDeleteRole().' + ); + } + + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'oci_mount_path'}}`, encodeURIComponent(String(requestParameters['ociMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a role and associate policies to it. + */ + async ociDeleteRole( + role: string, + ociMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ociDeleteRoleRaw({ role: role, ociMountPath: ociMountPath }, initOverrides); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async ociListRolesRaw( + requestParameters: AuthApiOciListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ociListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/role/`.replace( + `{${'oci_mount_path'}}`, + encodeURIComponent(String(requestParameters['ociMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Lists all the roles that are registered with Vault. + */ + async ociListRoles( + ociMountPath: string, + list: OciListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ociListRolesRaw({ ociMountPath: ociMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + * Authenticates to Vault using OCI credentials + */ + async ociLoginRaw( + requestParameters: AuthApiOciLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling ociLogin().' + ); + } + + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociLogin().' + ); + } + + if (requestParameters['ociLoginRequest'] == null) { + throw new runtime.RequiredError( + 'ociLoginRequest', + 'Required parameter "ociLoginRequest" was null or undefined when calling ociLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/login/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'oci_mount_path'}}`, encodeURIComponent(String(requestParameters['ociMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OciLoginRequestToJSON(requestParameters['ociLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Authenticates to Vault using OCI credentials + */ + async ociLogin( + role: string, + ociMountPath: string, + ociLoginRequest: OciLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ociLoginRaw( + { role: role, ociMountPath: ociMountPath, ociLoginRequest: ociLoginRequest }, + initOverrides + ); + } + + /** + */ + async ociReadConfigurationRaw( + requestParameters: AuthApiOciReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/config`.replace( + `{${'oci_mount_path'}}`, + encodeURIComponent(String(requestParameters['ociMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ociReadConfiguration( + ociMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ociReadConfigurationRaw({ ociMountPath: ociMountPath }, initOverrides); + } + + /** + * Create a role and associate policies to it. + */ + async ociReadRoleRaw( + requestParameters: AuthApiOciReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling ociReadRole().' + ); + } + + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'oci_mount_path'}}`, encodeURIComponent(String(requestParameters['ociMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a role and associate policies to it. + */ + async ociReadRole( + role: string, + ociMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ociReadRoleRaw({ role: role, ociMountPath: ociMountPath }, initOverrides); + } + + /** + * Create a role and associate policies to it. + */ + async ociWriteRoleRaw( + requestParameters: AuthApiOciWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling ociWriteRole().' + ); + } + + if (requestParameters['ociMountPath'] == null) { + throw new runtime.RequiredError( + 'ociMountPath', + 'Required parameter "ociMountPath" was null or undefined when calling ociWriteRole().' + ); + } + + if (requestParameters['ociWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'ociWriteRoleRequest', + 'Required parameter "ociWriteRoleRequest" was null or undefined when calling ociWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{oci_mount_path}/role/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'oci_mount_path'}}`, encodeURIComponent(String(requestParameters['ociMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OciWriteRoleRequestToJSON(requestParameters['ociWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a role and associate policies to it. + */ + async ociWriteRole( + role: string, + ociMountPath: string, + ociWriteRoleRequest: OciWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ociWriteRoleRaw( + { role: role, ociMountPath: ociMountPath, ociWriteRoleRequest: ociWriteRoleRequest }, + initOverrides + ); + } + + /** + */ + async oktaConfigureRaw( + requestParameters: AuthApiOktaConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaConfigure().' + ); + } + + if (requestParameters['oktaConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'oktaConfigureRequest', + 'Required parameter "oktaConfigureRequest" was null or undefined when calling oktaConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/config`.replace( + `{${'okta_mount_path'}}`, + encodeURIComponent(String(requestParameters['oktaMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OktaConfigureRequestToJSON(requestParameters['oktaConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oktaConfigure( + oktaMountPath: string, + oktaConfigureRequest: OktaConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaConfigureRaw( + { oktaMountPath: oktaMountPath, oktaConfigureRequest: oktaConfigureRequest }, + initOverrides + ); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaDeleteGroupRaw( + requestParameters: AuthApiOktaDeleteGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oktaDeleteGroup().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaDeleteGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaDeleteGroup( + name: string, + oktaMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaDeleteGroupRaw({ name: name, oktaMountPath: oktaMountPath }, initOverrides); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaDeleteUserRaw( + requestParameters: AuthApiOktaDeleteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oktaDeleteUser().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaDeleteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaDeleteUser( + name: string, + oktaMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaDeleteUserRaw({ name: name, oktaMountPath: oktaMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaListGroupsRaw( + requestParameters: AuthApiOktaListGroupsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaListGroups().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oktaListGroups().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/groups/`.replace( + `{${'okta_mount_path'}}`, + encodeURIComponent(String(requestParameters['oktaMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaListGroups( + oktaMountPath: string, + list: OktaListGroupsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oktaListGroupsRaw( + { oktaMountPath: oktaMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaListUsersRaw( + requestParameters: AuthApiOktaListUsersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaListUsers().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oktaListUsers().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/users/`.replace( + `{${'okta_mount_path'}}`, + encodeURIComponent(String(requestParameters['oktaMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaListUsers( + oktaMountPath: string, + list: OktaListUsersListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oktaListUsersRaw({ oktaMountPath: oktaMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + * Log in with a username and password. + */ + async oktaLoginRaw( + requestParameters: AuthApiOktaLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling oktaLogin().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaLogin().' + ); + } + + if (requestParameters['oktaLoginRequest'] == null) { + throw new runtime.RequiredError( + 'oktaLoginRequest', + 'Required parameter "oktaLoginRequest" was null or undefined when calling oktaLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/login/{username}` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OktaLoginRequestToJSON(requestParameters['oktaLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Log in with a username and password. + */ + async oktaLogin( + username: string, + oktaMountPath: string, + oktaLoginRequest: OktaLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaLoginRaw( + { username: username, oktaMountPath: oktaMountPath, oktaLoginRequest: oktaLoginRequest }, + initOverrides + ); + } + + /** + */ + async oktaReadConfigurationRaw( + requestParameters: AuthApiOktaReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/config`.replace( + `{${'okta_mount_path'}}`, + encodeURIComponent(String(requestParameters['oktaMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oktaReadConfiguration( + oktaMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaReadConfigurationRaw({ oktaMountPath: oktaMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaReadGroupRaw( + requestParameters: AuthApiOktaReadGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oktaReadGroup().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaReadGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaReadGroup( + name: string, + oktaMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaReadGroupRaw({ name: name, oktaMountPath: oktaMountPath }, initOverrides); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaReadUserRaw( + requestParameters: AuthApiOktaReadUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oktaReadUser().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaReadUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaReadUser( + name: string, + oktaMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaReadUserRaw({ name: name, oktaMountPath: oktaMountPath }, initOverrides); + } + + /** + */ + async oktaVerifyRaw( + requestParameters: AuthApiOktaVerifyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nonce'] == null) { + throw new runtime.RequiredError( + 'nonce', + 'Required parameter "nonce" was null or undefined when calling oktaVerify().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaVerify().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/verify/{nonce}` + .replace(`{${'nonce'}}`, encodeURIComponent(String(requestParameters['nonce']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oktaVerify( + nonce: string, + oktaMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaVerifyRaw({ nonce: nonce, oktaMountPath: oktaMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaWriteGroupRaw( + requestParameters: AuthApiOktaWriteGroupOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oktaWriteGroup().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaWriteGroup().' + ); + } + + if (requestParameters['oktaWriteGroupRequest'] == null) { + throw new runtime.RequiredError( + 'oktaWriteGroupRequest', + 'Required parameter "oktaWriteGroupRequest" was null or undefined when calling oktaWriteGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/groups/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OktaWriteGroupRequestToJSON(requestParameters['oktaWriteGroupRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async oktaWriteGroup( + name: string, + oktaMountPath: string, + oktaWriteGroupRequest: OktaWriteGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaWriteGroupRaw( + { name: name, oktaMountPath: oktaMountPath, oktaWriteGroupRequest: oktaWriteGroupRequest }, + initOverrides + ); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaWriteUserRaw( + requestParameters: AuthApiOktaWriteUserOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oktaWriteUser().' + ); + } + + if (requestParameters['oktaMountPath'] == null) { + throw new runtime.RequiredError( + 'oktaMountPath', + 'Required parameter "oktaMountPath" was null or undefined when calling oktaWriteUser().' + ); + } + + if (requestParameters['oktaWriteUserRequest'] == null) { + throw new runtime.RequiredError( + 'oktaWriteUserRequest', + 'Required parameter "oktaWriteUserRequest" was null or undefined when calling oktaWriteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{okta_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'okta_mount_path'}}`, encodeURIComponent(String(requestParameters['oktaMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OktaWriteUserRequestToJSON(requestParameters['oktaWriteUserRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage additional groups for users allowed to authenticate. + */ + async oktaWriteUser( + name: string, + oktaMountPath: string, + oktaWriteUserRequest: OktaWriteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oktaWriteUserRaw( + { name: name, oktaMountPath: oktaMountPath, oktaWriteUserRequest: oktaWriteUserRequest }, + initOverrides + ); + } + + /** + */ + async radiusConfigureRaw( + requestParameters: AuthApiRadiusConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusConfigure().' + ); + } + + if (requestParameters['radiusConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'radiusConfigureRequest', + 'Required parameter "radiusConfigureRequest" was null or undefined when calling radiusConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/config`.replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RadiusConfigureRequestToJSON(requestParameters['radiusConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async radiusConfigure( + radiusMountPath: string, + radiusConfigureRequest: RadiusConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.radiusConfigureRaw( + { radiusMountPath: radiusMountPath, radiusConfigureRequest: radiusConfigureRequest }, + initOverrides + ); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusDeleteUserRaw( + requestParameters: AuthApiRadiusDeleteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling radiusDeleteUser().' + ); + } + + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusDeleteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusDeleteUser( + name: string, + radiusMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.radiusDeleteUserRaw({ name: name, radiusMountPath: radiusMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusListUsersRaw( + requestParameters: AuthApiRadiusListUsersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusListUsers().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling radiusListUsers().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/users/`.replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusListUsers( + radiusMountPath: string, + list: RadiusListUsersListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.radiusListUsersRaw( + { radiusMountPath: radiusMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Log in with a username and password. + */ + async radiusLoginRaw( + requestParameters: AuthApiRadiusLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusLogin().' + ); + } + + if (requestParameters['radiusLoginRequest'] == null) { + throw new runtime.RequiredError( + 'radiusLoginRequest', + 'Required parameter "radiusLoginRequest" was null or undefined when calling radiusLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/login`.replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RadiusLoginRequestToJSON(requestParameters['radiusLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Log in with a username and password. + */ + async radiusLogin( + radiusMountPath: string, + radiusLoginRequest: RadiusLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.radiusLoginRaw( + { radiusMountPath: radiusMountPath, radiusLoginRequest: radiusLoginRequest }, + initOverrides + ); + } + + /** + * Log in with a username and password. + */ + async radiusLoginWithUsernameRaw( + requestParameters: AuthApiRadiusLoginWithUsernameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlusername'] == null) { + throw new runtime.RequiredError( + 'urlusername', + 'Required parameter "urlusername" was null or undefined when calling radiusLoginWithUsername().' + ); + } + + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusLoginWithUsername().' + ); + } + + if (requestParameters['radiusLoginWithUsernameRequest'] == null) { + throw new runtime.RequiredError( + 'radiusLoginWithUsernameRequest', + 'Required parameter "radiusLoginWithUsernameRequest" was null or undefined when calling radiusLoginWithUsername().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/login/{urlusername}` + .replace(`{${'urlusername'}}`, encodeURIComponent(String(requestParameters['urlusername']))) + .replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RadiusLoginWithUsernameRequestToJSON(requestParameters['radiusLoginWithUsernameRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Log in with a username and password. + */ + async radiusLoginWithUsername( + urlusername: string, + radiusMountPath: string, + radiusLoginWithUsernameRequest: RadiusLoginWithUsernameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.radiusLoginWithUsernameRaw( + { + urlusername: urlusername, + radiusMountPath: radiusMountPath, + radiusLoginWithUsernameRequest: radiusLoginWithUsernameRequest, + }, + initOverrides + ); + } + + /** + */ + async radiusReadConfigurationRaw( + requestParameters: AuthApiRadiusReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/config`.replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async radiusReadConfiguration( + radiusMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.radiusReadConfigurationRaw({ radiusMountPath: radiusMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusReadUserRaw( + requestParameters: AuthApiRadiusReadUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling radiusReadUser().' + ); + } + + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusReadUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusReadUser( + name: string, + radiusMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.radiusReadUserRaw({ name: name, radiusMountPath: radiusMountPath }, initOverrides); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusWriteUserRaw( + requestParameters: AuthApiRadiusWriteUserOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling radiusWriteUser().' + ); + } + + if (requestParameters['radiusMountPath'] == null) { + throw new runtime.RequiredError( + 'radiusMountPath', + 'Required parameter "radiusMountPath" was null or undefined when calling radiusWriteUser().' + ); + } + + if (requestParameters['radiusWriteUserRequest'] == null) { + throw new runtime.RequiredError( + 'radiusWriteUserRequest', + 'Required parameter "radiusWriteUserRequest" was null or undefined when calling radiusWriteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{radius_mount_path}/users/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'radius_mount_path'}}`, + encodeURIComponent(String(requestParameters['radiusMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RadiusWriteUserRequestToJSON(requestParameters['radiusWriteUserRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async radiusWriteUser( + name: string, + radiusMountPath: string, + radiusWriteUserRequest: RadiusWriteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.radiusWriteUserRaw( + { name: name, radiusMountPath: radiusMountPath, radiusWriteUserRequest: radiusWriteUserRequest }, + initOverrides + ); + } + + /** + * The token create path is used to create new tokens. + */ + async tokenCreateRaw( + requestParameters: AuthApiTokenCreateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenCreateRequest'] == null) { + throw new runtime.RequiredError( + 'tokenCreateRequest', + 'Required parameter "tokenCreateRequest" was null or undefined when calling tokenCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenCreateRequestToJSON(requestParameters['tokenCreateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The token create path is used to create new tokens. + */ + async tokenCreate( + tokenCreateRequest: TokenCreateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenCreateRaw({ tokenCreateRequest: tokenCreateRequest }, initOverrides); + } + + /** + * This token create path is used to create new tokens adhering to the given role. + */ + async tokenCreateAgainstRoleRaw( + requestParameters: AuthApiTokenCreateAgainstRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling tokenCreateAgainstRole().' + ); + } + + if (requestParameters['tokenCreateAgainstRoleRequest'] == null) { + throw new runtime.RequiredError( + 'tokenCreateAgainstRoleRequest', + 'Required parameter "tokenCreateAgainstRoleRequest" was null or undefined when calling tokenCreateAgainstRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/create/{role_name}`.replace( + `{${'role_name'}}`, + encodeURIComponent(String(requestParameters['roleName'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenCreateAgainstRoleRequestToJSON(requestParameters['tokenCreateAgainstRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This token create path is used to create new tokens adhering to the given role. + */ + async tokenCreateAgainstRole( + roleName: string, + tokenCreateAgainstRoleRequest: TokenCreateAgainstRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenCreateAgainstRoleRaw( + { roleName: roleName, tokenCreateAgainstRoleRequest: tokenCreateAgainstRoleRequest }, + initOverrides + ); + } + + /** + * The token create path is used to create new orphan tokens. + */ + async tokenCreateOrphanRaw( + requestParameters: AuthApiTokenCreateOrphanOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenCreateOrphanRequest'] == null) { + throw new runtime.RequiredError( + 'tokenCreateOrphanRequest', + 'Required parameter "tokenCreateOrphanRequest" was null or undefined when calling tokenCreateOrphan().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/create-orphan`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenCreateOrphanRequestToJSON(requestParameters['tokenCreateOrphanRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The token create path is used to create new orphan tokens. + */ + async tokenCreateOrphan( + tokenCreateOrphanRequest: TokenCreateOrphanRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenCreateOrphanRaw({ tokenCreateOrphanRequest: tokenCreateOrphanRequest }, initOverrides); + } + + /** + */ + async tokenDeleteRoleRaw( + requestParameters: AuthApiTokenDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling tokenDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/roles/{role_name}`.replace( + `{${'role_name'}}`, + encodeURIComponent(String(requestParameters['roleName'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async tokenDeleteRole( + roleName: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenDeleteRoleRaw({ roleName: roleName }, initOverrides); + } + + /** + * List token accessors, which can then be be used to iterate and discover their properties or revoke them. Because this can be used to cause a denial of service, this endpoint requires \'sudo\' capability in addition to \'list\'. + */ + async tokenListAccessorsRaw( + requestParameters: AuthApiTokenListAccessorsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling tokenListAccessors().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/accessors/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List token accessors, which can then be be used to iterate and discover their properties or revoke them. Because this can be used to cause a denial of service, this endpoint requires \'sudo\' capability in addition to \'list\'. + */ + async tokenListAccessors( + list: TokenListAccessorsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.tokenListAccessorsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * This endpoint lists configured roles. + */ + async tokenListRolesRaw( + requestParameters: AuthApiTokenListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling tokenListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/roles/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * This endpoint lists configured roles. + */ + async tokenListRoles( + list: TokenListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.tokenListRolesRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async tokenLookUpRaw( + requestParameters: AuthApiTokenLookUpOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenLookUpRequest'] == null) { + throw new runtime.RequiredError( + 'tokenLookUpRequest', + 'Required parameter "tokenLookUpRequest" was null or undefined when calling tokenLookUp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/lookup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenLookUpRequestToJSON(requestParameters['tokenLookUpRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async tokenLookUp( + tokenLookUpRequest: TokenLookUpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenLookUpRaw({ tokenLookUpRequest: tokenLookUpRequest }, initOverrides); + } + + /** + */ + async tokenLookUp2Raw( + requestParameters: AuthApiTokenLookUp2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + if (requestParameters['token'] != null) { + queryParameters['token'] = requestParameters['token']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/lookup`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async tokenLookUp2( + token?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenLookUp2Raw({ token: token }, initOverrides); + } + + /** + * This endpoint will lookup a token associated with the given accessor and its properties. Response will not contain the token ID. + */ + async tokenLookUpAccessorRaw( + requestParameters: AuthApiTokenLookUpAccessorOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenLookUpAccessorRequest'] == null) { + throw new runtime.RequiredError( + 'tokenLookUpAccessorRequest', + 'Required parameter "tokenLookUpAccessorRequest" was null or undefined when calling tokenLookUpAccessor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/lookup-accessor`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenLookUpAccessorRequestToJSON(requestParameters['tokenLookUpAccessorRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will lookup a token associated with the given accessor and its properties. Response will not contain the token ID. + */ + async tokenLookUpAccessor( + tokenLookUpAccessorRequest: TokenLookUpAccessorRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenLookUpAccessorRaw( + { tokenLookUpAccessorRequest: tokenLookUpAccessorRequest }, + initOverrides + ); + } + + /** + */ + async tokenLookUpSelfRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/lookup-self`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async tokenLookUpSelf(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.tokenLookUpSelfRaw(initOverrides); + } + + /** + */ + async tokenLookUpSelf2Raw( + requestParameters: AuthApiTokenLookUpSelf2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenLookUpSelf2Request'] == null) { + throw new runtime.RequiredError( + 'tokenLookUpSelf2Request', + 'Required parameter "tokenLookUpSelf2Request" was null or undefined when calling tokenLookUpSelf2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/lookup-self`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenLookUpSelf2RequestToJSON(requestParameters['tokenLookUpSelf2Request']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async tokenLookUpSelf2( + tokenLookUpSelf2Request: TokenLookUpSelf2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenLookUpSelf2Raw({ tokenLookUpSelf2Request: tokenLookUpSelf2Request }, initOverrides); + } + + /** + */ + async tokenReadRoleRaw( + requestParameters: AuthApiTokenReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling tokenReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/roles/{role_name}`.replace( + `{${'role_name'}}`, + encodeURIComponent(String(requestParameters['roleName'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async tokenReadRole( + roleName: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenReadRoleRaw({ roleName: roleName }, initOverrides); + } + + /** + * This endpoint will renew the given token and prevent expiration. + */ + async tokenRenewRaw( + requestParameters: AuthApiTokenRenewOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenRenewRequest'] == null) { + throw new runtime.RequiredError( + 'tokenRenewRequest', + 'Required parameter "tokenRenewRequest" was null or undefined when calling tokenRenew().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/renew`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenRenewRequestToJSON(requestParameters['tokenRenewRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will renew the given token and prevent expiration. + */ + async tokenRenew( + tokenRenewRequest: TokenRenewRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenRenewRaw({ tokenRenewRequest: tokenRenewRequest }, initOverrides); + } + + /** + * This endpoint will renew a token associated with the given accessor and its properties. Response will not contain the token ID. + */ + async tokenRenewAccessorRaw( + requestParameters: AuthApiTokenRenewAccessorOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenRenewAccessorRequest'] == null) { + throw new runtime.RequiredError( + 'tokenRenewAccessorRequest', + 'Required parameter "tokenRenewAccessorRequest" was null or undefined when calling tokenRenewAccessor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/renew-accessor`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenRenewAccessorRequestToJSON(requestParameters['tokenRenewAccessorRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will renew a token associated with the given accessor and its properties. Response will not contain the token ID. + */ + async tokenRenewAccessor( + tokenRenewAccessorRequest: TokenRenewAccessorRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenRenewAccessorRaw({ tokenRenewAccessorRequest: tokenRenewAccessorRequest }, initOverrides); + } + + /** + * This endpoint will renew the token used to call it and prevent expiration. + */ + async tokenRenewSelfRaw( + requestParameters: AuthApiTokenRenewSelfOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenRenewSelfRequest'] == null) { + throw new runtime.RequiredError( + 'tokenRenewSelfRequest', + 'Required parameter "tokenRenewSelfRequest" was null or undefined when calling tokenRenewSelf().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/renew-self`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenRenewSelfRequestToJSON(requestParameters['tokenRenewSelfRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will renew the token used to call it and prevent expiration. + */ + async tokenRenewSelf( + tokenRenewSelfRequest: TokenRenewSelfRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenRenewSelfRaw({ tokenRenewSelfRequest: tokenRenewSelfRequest }, initOverrides); + } + + /** + * This endpoint will delete the given token and all of its child tokens. + */ + async tokenRevokeRaw( + requestParameters: AuthApiTokenRevokeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenRevokeRequest'] == null) { + throw new runtime.RequiredError( + 'tokenRevokeRequest', + 'Required parameter "tokenRevokeRequest" was null or undefined when calling tokenRevoke().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/revoke`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenRevokeRequestToJSON(requestParameters['tokenRevokeRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will delete the given token and all of its child tokens. + */ + async tokenRevoke( + tokenRevokeRequest: TokenRevokeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenRevokeRaw({ tokenRevokeRequest: tokenRevokeRequest }, initOverrides); + } + + /** + * This endpoint will delete the token associated with the accessor and all of its child tokens. + */ + async tokenRevokeAccessorRaw( + requestParameters: AuthApiTokenRevokeAccessorOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenRevokeAccessorRequest'] == null) { + throw new runtime.RequiredError( + 'tokenRevokeAccessorRequest', + 'Required parameter "tokenRevokeAccessorRequest" was null or undefined when calling tokenRevokeAccessor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/revoke-accessor`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenRevokeAccessorRequestToJSON(requestParameters['tokenRevokeAccessorRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will delete the token associated with the accessor and all of its child tokens. + */ + async tokenRevokeAccessor( + tokenRevokeAccessorRequest: TokenRevokeAccessorRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenRevokeAccessorRaw( + { tokenRevokeAccessorRequest: tokenRevokeAccessorRequest }, + initOverrides + ); + } + + /** + * This endpoint will delete the token and orphan its child tokens. + */ + async tokenRevokeOrphanRaw( + requestParameters: AuthApiTokenRevokeOrphanOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tokenRevokeOrphanRequest'] == null) { + throw new runtime.RequiredError( + 'tokenRevokeOrphanRequest', + 'Required parameter "tokenRevokeOrphanRequest" was null or undefined when calling tokenRevokeOrphan().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/revoke-orphan`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenRevokeOrphanRequestToJSON(requestParameters['tokenRevokeOrphanRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will delete the token and orphan its child tokens. + */ + async tokenRevokeOrphan( + tokenRevokeOrphanRequest: TokenRevokeOrphanRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenRevokeOrphanRaw({ tokenRevokeOrphanRequest: tokenRevokeOrphanRequest }, initOverrides); + } + + /** + * This endpoint will delete the token used to call it and all of its child tokens. + */ + async tokenRevokeSelfRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/revoke-self`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint will delete the token used to call it and all of its child tokens. + */ + async tokenRevokeSelf(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.tokenRevokeSelfRaw(initOverrides); + } + + /** + * This endpoint performs cleanup tasks that can be run if certain error conditions have occurred. + */ + async tokenTidyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/token/tidy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint performs cleanup tasks that can be run if certain error conditions have occurred. + */ + async tokenTidy(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.tokenTidyRaw(initOverrides); + } + + /** + */ + async tokenWriteRoleRaw( + requestParameters: AuthApiTokenWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleName'] == null) { + throw new runtime.RequiredError( + 'roleName', + 'Required parameter "roleName" was null or undefined when calling tokenWriteRole().' + ); + } + + if (requestParameters['tokenWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'tokenWriteRoleRequest', + 'Required parameter "tokenWriteRoleRequest" was null or undefined when calling tokenWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/token/roles/{role_name}`.replace( + `{${'role_name'}}`, + encodeURIComponent(String(requestParameters['roleName'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TokenWriteRoleRequestToJSON(requestParameters['tokenWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async tokenWriteRole( + roleName: string, + tokenWriteRoleRequest: TokenWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.tokenWriteRoleRaw( + { roleName: roleName, tokenWriteRoleRequest: tokenWriteRoleRequest }, + initOverrides + ); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassDeleteUserRaw( + requestParameters: AuthApiUserpassDeleteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling userpassDeleteUser().' + ); + } + + if (requestParameters['userpassMountPath'] == null) { + throw new runtime.RequiredError( + 'userpassMountPath', + 'Required parameter "userpassMountPath" was null or undefined when calling userpassDeleteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{userpass_mount_path}/users/{username}` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace( + `{${'userpass_mount_path'}}`, + encodeURIComponent(String(requestParameters['userpassMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassDeleteUser( + username: string, + userpassMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.userpassDeleteUserRaw( + { username: username, userpassMountPath: userpassMountPath }, + initOverrides + ); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassListUsersRaw( + requestParameters: AuthApiUserpassListUsersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['userpassMountPath'] == null) { + throw new runtime.RequiredError( + 'userpassMountPath', + 'Required parameter "userpassMountPath" was null or undefined when calling userpassListUsers().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling userpassListUsers().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{userpass_mount_path}/users/`.replace( + `{${'userpass_mount_path'}}`, + encodeURIComponent(String(requestParameters['userpassMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassListUsers( + userpassMountPath: string, + list: UserpassListUsersListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.userpassListUsersRaw( + { userpassMountPath: userpassMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Log in with a username and password. + */ + async userpassLoginRaw( + requestParameters: AuthApiUserpassLoginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling userpassLogin().' + ); + } + + if (requestParameters['userpassMountPath'] == null) { + throw new runtime.RequiredError( + 'userpassMountPath', + 'Required parameter "userpassMountPath" was null or undefined when calling userpassLogin().' + ); + } + + if (requestParameters['userpassLoginRequest'] == null) { + throw new runtime.RequiredError( + 'userpassLoginRequest', + 'Required parameter "userpassLoginRequest" was null or undefined when calling userpassLogin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{userpass_mount_path}/login/{username}` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace( + `{${'userpass_mount_path'}}`, + encodeURIComponent(String(requestParameters['userpassMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UserpassLoginRequestToJSON(requestParameters['userpassLoginRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Log in with a username and password. + */ + async userpassLogin( + username: string, + userpassMountPath: string, + userpassLoginRequest: UserpassLoginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.userpassLoginRaw( + { + username: username, + userpassMountPath: userpassMountPath, + userpassLoginRequest: userpassLoginRequest, + }, + initOverrides + ); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassReadUserRaw( + requestParameters: AuthApiUserpassReadUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling userpassReadUser().' + ); + } + + if (requestParameters['userpassMountPath'] == null) { + throw new runtime.RequiredError( + 'userpassMountPath', + 'Required parameter "userpassMountPath" was null or undefined when calling userpassReadUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/auth/{userpass_mount_path}/users/{username}` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace( + `{${'userpass_mount_path'}}`, + encodeURIComponent(String(requestParameters['userpassMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassReadUser( + username: string, + userpassMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.userpassReadUserRaw( + { username: username, userpassMountPath: userpassMountPath }, + initOverrides + ); + } + + /** + * Reset user\'s password. + */ + async userpassResetPasswordRaw( + requestParameters: AuthApiUserpassResetPasswordOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling userpassResetPassword().' + ); + } + + if (requestParameters['userpassMountPath'] == null) { + throw new runtime.RequiredError( + 'userpassMountPath', + 'Required parameter "userpassMountPath" was null or undefined when calling userpassResetPassword().' + ); + } + + if (requestParameters['userpassResetPasswordRequest'] == null) { + throw new runtime.RequiredError( + 'userpassResetPasswordRequest', + 'Required parameter "userpassResetPasswordRequest" was null or undefined when calling userpassResetPassword().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{userpass_mount_path}/users/{username}/password` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace( + `{${'userpass_mount_path'}}`, + encodeURIComponent(String(requestParameters['userpassMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UserpassResetPasswordRequestToJSON(requestParameters['userpassResetPasswordRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Reset user\'s password. + */ + async userpassResetPassword( + username: string, + userpassMountPath: string, + userpassResetPasswordRequest: UserpassResetPasswordRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.userpassResetPasswordRaw( + { + username: username, + userpassMountPath: userpassMountPath, + userpassResetPasswordRequest: userpassResetPasswordRequest, + }, + initOverrides + ); + } + + /** + * Update the policies associated with the username. + */ + async userpassUpdatePoliciesRaw( + requestParameters: AuthApiUserpassUpdatePoliciesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling userpassUpdatePolicies().' + ); + } + + if (requestParameters['userpassMountPath'] == null) { + throw new runtime.RequiredError( + 'userpassMountPath', + 'Required parameter "userpassMountPath" was null or undefined when calling userpassUpdatePolicies().' + ); + } + + if (requestParameters['userpassUpdatePoliciesRequest'] == null) { + throw new runtime.RequiredError( + 'userpassUpdatePoliciesRequest', + 'Required parameter "userpassUpdatePoliciesRequest" was null or undefined when calling userpassUpdatePolicies().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{userpass_mount_path}/users/{username}/policies` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace( + `{${'userpass_mount_path'}}`, + encodeURIComponent(String(requestParameters['userpassMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UserpassUpdatePoliciesRequestToJSON(requestParameters['userpassUpdatePoliciesRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the policies associated with the username. + */ + async userpassUpdatePolicies( + username: string, + userpassMountPath: string, + userpassUpdatePoliciesRequest: UserpassUpdatePoliciesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.userpassUpdatePoliciesRaw( + { + username: username, + userpassMountPath: userpassMountPath, + userpassUpdatePoliciesRequest: userpassUpdatePoliciesRequest, + }, + initOverrides + ); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassWriteUserRaw( + requestParameters: AuthApiUserpassWriteUserOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['username'] == null) { + throw new runtime.RequiredError( + 'username', + 'Required parameter "username" was null or undefined when calling userpassWriteUser().' + ); + } + + if (requestParameters['userpassMountPath'] == null) { + throw new runtime.RequiredError( + 'userpassMountPath', + 'Required parameter "userpassMountPath" was null or undefined when calling userpassWriteUser().' + ); + } + + if (requestParameters['userpassWriteUserRequest'] == null) { + throw new runtime.RequiredError( + 'userpassWriteUserRequest', + 'Required parameter "userpassWriteUserRequest" was null or undefined when calling userpassWriteUser().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/auth/{userpass_mount_path}/users/{username}` + .replace(`{${'username'}}`, encodeURIComponent(String(requestParameters['username']))) + .replace( + `{${'userpass_mount_path'}}`, + encodeURIComponent(String(requestParameters['userpassMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UserpassWriteUserRequestToJSON(requestParameters['userpassWriteUserRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage users allowed to authenticate. + */ + async userpassWriteUser( + username: string, + userpassMountPath: string, + userpassWriteUserRequest: UserpassWriteUserRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.userpassWriteUserRaw( + { + username: username, + userpassMountPath: userpassMountPath, + userpassWriteUserRequest: userpassWriteUserRequest, + }, + initOverrides + ); + } +} + +/** + * @export + * @enum {string} + */ +export enum AliCloudListAuthRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AliCloudListAuthRoles2ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AppRoleListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AppRoleListSecretIdsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListAuthRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListAuthRoles2ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListCertificateConfigurationsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListIdentityAccessListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListIdentityWhitelistListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListRoleTagBlacklistsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListRoleTagDenyListsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListStsRoleRelationshipsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AzureListAuthRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum CertListCertificatesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum CertListCrlsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum CloudFoundryListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GithubListTeamsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GithubListUsersListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListRoles2ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum JwtListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum KerberosListGroupsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum KubernetesListAuthRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListGroupsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListUsersListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OciListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OktaListGroupsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OktaListUsersListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum RadiusListUsersListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum TokenListAccessorsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum TokenListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum UserpassListUsersListEnum { + TRUE = 'true', +} diff --git a/ui/api-client/src/apis/IdentityApi.ts b/ui/api-client/src/apis/IdentityApi.ts new file mode 100644 index 0000000000..03ea73ed15 --- /dev/null +++ b/ui/api-client/src/apis/IdentityApi.ts @@ -0,0 +1,6215 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime'; +import type { + AliasCreateRequest, + AliasUpdateByIdRequest, + EntitiesCreateDuplicatesRequest, + EntityAliasCreateDuplicatesRequest, + EntityAliasesCreateDuplicatesRequest, + EntityBatchDeleteRequest, + EntityCreateAliasRequest, + EntityCreateRequest, + EntityLookUpRequest, + EntityMergeRequest, + EntityUpdateAliasByIdRequest, + EntityUpdateByIdRequest, + EntityUpdateByNameRequest, + GroupCreateAliasRequest, + GroupCreateRequest, + GroupLookUpRequest, + GroupUpdateAliasByIdRequest, + GroupUpdateByIdRequest, + GroupUpdateByNameRequest, + GroupsCreateDuplicatesRequest, + MfaAdminDestroyTotpSecretRequest, + MfaAdminGenerateTotpSecretRequest, + MfaCreateDuoMethodRequest, + MfaCreateOktaMethodRequest, + MfaCreatePingIdMethodRequest, + MfaCreateTotpMethodRequest, + MfaGenerateTotpSecretRequest, + MfaUpdateDuoMethodRequest, + MfaUpdateOktaMethodRequest, + MfaUpdatePingIdMethodRequest, + MfaUpdateTotpMethodRequest, + MfaWriteLoginEnforcementRequest, + OidcConfigureRequest, + OidcIntrospectRequest, + OidcProviderAuthorizeWithParametersRequest, + OidcProviderTokenRequest, + OidcRotateKeyRequest, + OidcWriteAssignmentRequest, + OidcWriteClientRequest, + OidcWriteKeyRequest, + OidcWriteProviderRequest, + OidcWriteRoleRequest, + OidcWriteScopeRequest, + PersonaCreateRequest, + PersonaUpdateByIdRequest, + StandardListResponse, +} from '../models/index'; +import { + AliasCreateRequestFromJSON, + AliasCreateRequestToJSON, + AliasUpdateByIdRequestFromJSON, + AliasUpdateByIdRequestToJSON, + EntitiesCreateDuplicatesRequestFromJSON, + EntitiesCreateDuplicatesRequestToJSON, + EntityAliasCreateDuplicatesRequestFromJSON, + EntityAliasCreateDuplicatesRequestToJSON, + EntityAliasesCreateDuplicatesRequestFromJSON, + EntityAliasesCreateDuplicatesRequestToJSON, + EntityBatchDeleteRequestFromJSON, + EntityBatchDeleteRequestToJSON, + EntityCreateAliasRequestFromJSON, + EntityCreateAliasRequestToJSON, + EntityCreateRequestFromJSON, + EntityCreateRequestToJSON, + EntityLookUpRequestFromJSON, + EntityLookUpRequestToJSON, + EntityMergeRequestFromJSON, + EntityMergeRequestToJSON, + EntityUpdateAliasByIdRequestFromJSON, + EntityUpdateAliasByIdRequestToJSON, + EntityUpdateByIdRequestFromJSON, + EntityUpdateByIdRequestToJSON, + EntityUpdateByNameRequestFromJSON, + EntityUpdateByNameRequestToJSON, + GroupCreateAliasRequestFromJSON, + GroupCreateAliasRequestToJSON, + GroupCreateRequestFromJSON, + GroupCreateRequestToJSON, + GroupLookUpRequestFromJSON, + GroupLookUpRequestToJSON, + GroupUpdateAliasByIdRequestFromJSON, + GroupUpdateAliasByIdRequestToJSON, + GroupUpdateByIdRequestFromJSON, + GroupUpdateByIdRequestToJSON, + GroupUpdateByNameRequestFromJSON, + GroupUpdateByNameRequestToJSON, + GroupsCreateDuplicatesRequestFromJSON, + GroupsCreateDuplicatesRequestToJSON, + MfaAdminDestroyTotpSecretRequestFromJSON, + MfaAdminDestroyTotpSecretRequestToJSON, + MfaAdminGenerateTotpSecretRequestFromJSON, + MfaAdminGenerateTotpSecretRequestToJSON, + MfaCreateDuoMethodRequestFromJSON, + MfaCreateDuoMethodRequestToJSON, + MfaCreateOktaMethodRequestFromJSON, + MfaCreateOktaMethodRequestToJSON, + MfaCreatePingIdMethodRequestFromJSON, + MfaCreatePingIdMethodRequestToJSON, + MfaCreateTotpMethodRequestFromJSON, + MfaCreateTotpMethodRequestToJSON, + MfaGenerateTotpSecretRequestFromJSON, + MfaGenerateTotpSecretRequestToJSON, + MfaUpdateDuoMethodRequestFromJSON, + MfaUpdateDuoMethodRequestToJSON, + MfaUpdateOktaMethodRequestFromJSON, + MfaUpdateOktaMethodRequestToJSON, + MfaUpdatePingIdMethodRequestFromJSON, + MfaUpdatePingIdMethodRequestToJSON, + MfaUpdateTotpMethodRequestFromJSON, + MfaUpdateTotpMethodRequestToJSON, + MfaWriteLoginEnforcementRequestFromJSON, + MfaWriteLoginEnforcementRequestToJSON, + OidcConfigureRequestFromJSON, + OidcConfigureRequestToJSON, + OidcIntrospectRequestFromJSON, + OidcIntrospectRequestToJSON, + OidcProviderAuthorizeWithParametersRequestFromJSON, + OidcProviderAuthorizeWithParametersRequestToJSON, + OidcProviderTokenRequestFromJSON, + OidcProviderTokenRequestToJSON, + OidcRotateKeyRequestFromJSON, + OidcRotateKeyRequestToJSON, + OidcWriteAssignmentRequestFromJSON, + OidcWriteAssignmentRequestToJSON, + OidcWriteClientRequestFromJSON, + OidcWriteClientRequestToJSON, + OidcWriteKeyRequestFromJSON, + OidcWriteKeyRequestToJSON, + OidcWriteProviderRequestFromJSON, + OidcWriteProviderRequestToJSON, + OidcWriteRoleRequestFromJSON, + OidcWriteRoleRequestToJSON, + OidcWriteScopeRequestFromJSON, + OidcWriteScopeRequestToJSON, + PersonaCreateRequestFromJSON, + PersonaCreateRequestToJSON, + PersonaUpdateByIdRequestFromJSON, + PersonaUpdateByIdRequestToJSON, + StandardListResponseFromJSON, + StandardListResponseToJSON, +} from '../models/index'; + +export interface IdentityApiAliasCreateOperationRequest { + aliasCreateRequest: AliasCreateRequest; +} + +export interface IdentityApiAliasDeleteByIdRequest { + id: string; +} + +export interface IdentityApiAliasListByIdRequest { + list: AliasListByIdListEnum; +} + +export interface IdentityApiAliasReadByIdRequest { + id: string; +} + +export interface IdentityApiAliasUpdateByIdOperationRequest { + id: string; + aliasUpdateByIdRequest: AliasUpdateByIdRequest; +} + +export interface IdentityApiEntitiesCreateDuplicatesOperationRequest { + entitiesCreateDuplicatesRequest: EntitiesCreateDuplicatesRequest; +} + +export interface IdentityApiEntityAliasCreateDuplicatesOperationRequest { + entityAliasCreateDuplicatesRequest: EntityAliasCreateDuplicatesRequest; +} + +export interface IdentityApiEntityAliasesCreateDuplicatesOperationRequest { + entityAliasesCreateDuplicatesRequest: EntityAliasesCreateDuplicatesRequest; +} + +export interface IdentityApiEntityBatchDeleteOperationRequest { + entityBatchDeleteRequest: EntityBatchDeleteRequest; +} + +export interface IdentityApiEntityCreateOperationRequest { + entityCreateRequest: EntityCreateRequest; +} + +export interface IdentityApiEntityCreateAliasOperationRequest { + entityCreateAliasRequest: EntityCreateAliasRequest; +} + +export interface IdentityApiEntityDeleteAliasByIdRequest { + id: string; +} + +export interface IdentityApiEntityDeleteByIdRequest { + id: string; +} + +export interface IdentityApiEntityDeleteByNameRequest { + name: string; +} + +export interface IdentityApiEntityListAliasesByIdRequest { + list: EntityListAliasesByIdListEnum; +} + +export interface IdentityApiEntityListByIdRequest { + list: EntityListByIdListEnum; +} + +export interface IdentityApiEntityListByNameRequest { + list: EntityListByNameListEnum; +} + +export interface IdentityApiEntityListFromStorageRequest { + list: EntityListFromStorageListEnum; +} + +export interface IdentityApiEntityLookUpOperationRequest { + entityLookUpRequest: EntityLookUpRequest; +} + +export interface IdentityApiEntityMergeOperationRequest { + entityMergeRequest: EntityMergeRequest; +} + +export interface IdentityApiEntityReadAliasByIdRequest { + id: string; +} + +export interface IdentityApiEntityReadByIdRequest { + id: string; +} + +export interface IdentityApiEntityReadByNameRequest { + name: string; +} + +export interface IdentityApiEntityUpdateAliasByIdOperationRequest { + id: string; + entityUpdateAliasByIdRequest: EntityUpdateAliasByIdRequest; +} + +export interface IdentityApiEntityUpdateByIdOperationRequest { + id: string; + entityUpdateByIdRequest: EntityUpdateByIdRequest; +} + +export interface IdentityApiEntityUpdateByNameOperationRequest { + name: string; + entityUpdateByNameRequest: EntityUpdateByNameRequest; +} + +export interface IdentityApiGroupCreateOperationRequest { + groupCreateRequest: GroupCreateRequest; +} + +export interface IdentityApiGroupCreateAliasOperationRequest { + groupCreateAliasRequest: GroupCreateAliasRequest; +} + +export interface IdentityApiGroupDeleteAliasByIdRequest { + id: string; +} + +export interface IdentityApiGroupDeleteByIdRequest { + id: string; +} + +export interface IdentityApiGroupDeleteByNameRequest { + name: string; +} + +export interface IdentityApiGroupListAliasesByIdRequest { + list: GroupListAliasesByIdListEnum; +} + +export interface IdentityApiGroupListByIdRequest { + list: GroupListByIdListEnum; +} + +export interface IdentityApiGroupListByNameRequest { + list: GroupListByNameListEnum; +} + +export interface IdentityApiGroupListFromStorageRequest { + list: GroupListFromStorageListEnum; +} + +export interface IdentityApiGroupLookUpOperationRequest { + groupLookUpRequest: GroupLookUpRequest; +} + +export interface IdentityApiGroupReadAliasByIdRequest { + id: string; +} + +export interface IdentityApiGroupReadByIdRequest { + id: string; +} + +export interface IdentityApiGroupReadByNameRequest { + name: string; +} + +export interface IdentityApiGroupUpdateAliasByIdOperationRequest { + id: string; + groupUpdateAliasByIdRequest: GroupUpdateAliasByIdRequest; +} + +export interface IdentityApiGroupUpdateByIdOperationRequest { + id: string; + groupUpdateByIdRequest: GroupUpdateByIdRequest; +} + +export interface IdentityApiGroupUpdateByNameOperationRequest { + name: string; + groupUpdateByNameRequest: GroupUpdateByNameRequest; +} + +export interface IdentityApiGroupsCreateDuplicatesOperationRequest { + groupsCreateDuplicatesRequest: GroupsCreateDuplicatesRequest; +} + +export interface IdentityApiMfaAdminDestroyTotpSecretOperationRequest { + mfaAdminDestroyTotpSecretRequest: MfaAdminDestroyTotpSecretRequest; +} + +export interface IdentityApiMfaAdminGenerateTotpSecretOperationRequest { + mfaAdminGenerateTotpSecretRequest: MfaAdminGenerateTotpSecretRequest; +} + +export interface IdentityApiMfaCreateDuoMethodOperationRequest { + mfaCreateDuoMethodRequest: MfaCreateDuoMethodRequest; +} + +export interface IdentityApiMfaCreateOktaMethodOperationRequest { + mfaCreateOktaMethodRequest: MfaCreateOktaMethodRequest; +} + +export interface IdentityApiMfaCreatePingIdMethodOperationRequest { + mfaCreatePingIdMethodRequest: MfaCreatePingIdMethodRequest; +} + +export interface IdentityApiMfaCreateTotpMethodOperationRequest { + mfaCreateTotpMethodRequest: MfaCreateTotpMethodRequest; +} + +export interface IdentityApiMfaDeleteDuoMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaDeleteLoginEnforcementRequest { + name: string; +} + +export interface IdentityApiMfaDeleteOktaMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaDeletePingIdMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaDeleteTotpMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaGenerateTotpSecretOperationRequest { + mfaGenerateTotpSecretRequest: MfaGenerateTotpSecretRequest; +} + +export interface IdentityApiMfaListDuoMethodsRequest { + list: MfaListDuoMethodsListEnum; +} + +export interface IdentityApiMfaListLoginEnforcementsRequest { + list: MfaListLoginEnforcementsListEnum; +} + +export interface IdentityApiMfaListMethodsRequest { + list: MfaListMethodsListEnum; +} + +export interface IdentityApiMfaListOktaMethodsRequest { + list: MfaListOktaMethodsListEnum; +} + +export interface IdentityApiMfaListPingIdMethodsRequest { + list: MfaListPingIdMethodsListEnum; +} + +export interface IdentityApiMfaListTotpMethodsRequest { + list: MfaListTotpMethodsListEnum; +} + +export interface IdentityApiMfaReadDuoMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaReadLoginEnforcementRequest { + name: string; +} + +export interface IdentityApiMfaReadMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaReadOktaMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaReadPingIdMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaReadTotpMethodRequest { + methodId: string; +} + +export interface IdentityApiMfaUpdateDuoMethodOperationRequest { + methodId: string; + mfaUpdateDuoMethodRequest: MfaUpdateDuoMethodRequest; +} + +export interface IdentityApiMfaUpdateOktaMethodOperationRequest { + methodId: string; + mfaUpdateOktaMethodRequest: MfaUpdateOktaMethodRequest; +} + +export interface IdentityApiMfaUpdatePingIdMethodOperationRequest { + methodId: string; + mfaUpdatePingIdMethodRequest: MfaUpdatePingIdMethodRequest; +} + +export interface IdentityApiMfaUpdateTotpMethodOperationRequest { + methodId: string; + mfaUpdateTotpMethodRequest: MfaUpdateTotpMethodRequest; +} + +export interface IdentityApiMfaWriteLoginEnforcementOperationRequest { + name: string; + mfaWriteLoginEnforcementRequest: MfaWriteLoginEnforcementRequest; +} + +export interface IdentityApiOidcConfigureOperationRequest { + oidcConfigureRequest: OidcConfigureRequest; +} + +export interface IdentityApiOidcDeleteAssignmentRequest { + name: string; +} + +export interface IdentityApiOidcDeleteClientRequest { + name: string; +} + +export interface IdentityApiOidcDeleteKeyRequest { + name: string; +} + +export interface IdentityApiOidcDeleteProviderRequest { + name: string; +} + +export interface IdentityApiOidcDeleteRoleRequest { + name: string; +} + +export interface IdentityApiOidcDeleteScopeRequest { + name: string; +} + +export interface IdentityApiOidcGenerateTokenRequest { + name: string; +} + +export interface IdentityApiOidcIntrospectOperationRequest { + oidcIntrospectRequest: OidcIntrospectRequest; +} + +export interface IdentityApiOidcListAssignmentsRequest { + list: OidcListAssignmentsListEnum; +} + +export interface IdentityApiOidcListClientsRequest { + list: OidcListClientsListEnum; +} + +export interface IdentityApiOidcListKeysRequest { + list: OidcListKeysListEnum; +} + +export interface IdentityApiOidcListProvidersRequest { + list: OidcListProvidersListEnum; + allowedClientId?: string; +} + +export interface IdentityApiOidcListRolesRequest { + list: OidcListRolesListEnum; +} + +export interface IdentityApiOidcListScopesRequest { + list: OidcListScopesListEnum; +} + +export interface IdentityApiOidcProviderAuthorizeRequest { + name: string; + clientId?: string; + codeChallenge?: string; + codeChallengeMethod?: string; + maxAge?: number; + nonce?: string; + redirectUri?: string; + responseType?: string; + scope?: string; + state?: string; +} + +export interface IdentityApiOidcProviderAuthorizeWithParametersOperationRequest { + name: string; + oidcProviderAuthorizeWithParametersRequest: OidcProviderAuthorizeWithParametersRequest; +} + +export interface IdentityApiOidcProviderTokenOperationRequest { + name: string; + oidcProviderTokenRequest: OidcProviderTokenRequest; +} + +export interface IdentityApiOidcProviderUserInfoRequest { + name: string; +} + +export interface IdentityApiOidcProviderUserInfo2Request { + name: string; +} + +export interface IdentityApiOidcReadAssignmentRequest { + name: string; +} + +export interface IdentityApiOidcReadClientRequest { + name: string; +} + +export interface IdentityApiOidcReadKeyRequest { + name: string; +} + +export interface IdentityApiOidcReadOidcChildWellKnownKeysRequest { + child: string; +} + +export interface IdentityApiOidcReadOidcChildWellKnownOpenidConfigurationRequest { + child: string; +} + +export interface IdentityApiOidcReadProviderRequest { + name: string; +} + +export interface IdentityApiOidcReadProviderOpenIdConfigurationRequest { + name: string; +} + +export interface IdentityApiOidcReadProviderPublicKeysRequest { + name: string; +} + +export interface IdentityApiOidcReadRoleRequest { + name: string; +} + +export interface IdentityApiOidcReadScopeRequest { + name: string; +} + +export interface IdentityApiOidcRotateKeyOperationRequest { + name: string; + oidcRotateKeyRequest: OidcRotateKeyRequest; +} + +export interface IdentityApiOidcWriteAssignmentOperationRequest { + name: string; + oidcWriteAssignmentRequest: OidcWriteAssignmentRequest; +} + +export interface IdentityApiOidcWriteClientOperationRequest { + name: string; + oidcWriteClientRequest: OidcWriteClientRequest; +} + +export interface IdentityApiOidcWriteKeyOperationRequest { + name: string; + oidcWriteKeyRequest: OidcWriteKeyRequest; +} + +export interface IdentityApiOidcWriteProviderOperationRequest { + name: string; + oidcWriteProviderRequest: OidcWriteProviderRequest; +} + +export interface IdentityApiOidcWriteRoleOperationRequest { + name: string; + oidcWriteRoleRequest: OidcWriteRoleRequest; +} + +export interface IdentityApiOidcWriteScopeOperationRequest { + name: string; + oidcWriteScopeRequest: OidcWriteScopeRequest; +} + +export interface IdentityApiPersonaCreateOperationRequest { + personaCreateRequest: PersonaCreateRequest; +} + +export interface IdentityApiPersonaDeleteByIdRequest { + id: string; +} + +export interface IdentityApiPersonaListByIdRequest { + list: PersonaListByIdListEnum; +} + +export interface IdentityApiPersonaReadByIdRequest { + id: string; +} + +export interface IdentityApiPersonaUpdateByIdOperationRequest { + id: string; + personaUpdateByIdRequest: PersonaUpdateByIdRequest; +} + +/** + * + */ +export class IdentityApi extends runtime.BaseAPI { + /** + * Create a new alias. + */ + async aliasCreateRaw( + requestParameters: IdentityApiAliasCreateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['aliasCreateRequest'] == null) { + throw new runtime.RequiredError( + 'aliasCreateRequest', + 'Required parameter "aliasCreateRequest" was null or undefined when calling aliasCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/alias`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AliasCreateRequestToJSON(requestParameters['aliasCreateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a new alias. + */ + async aliasCreate( + aliasCreateRequest: AliasCreateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliasCreateRaw({ aliasCreateRequest: aliasCreateRequest }, initOverrides); + } + + /** + */ + async aliasDeleteByIdRaw( + requestParameters: IdentityApiAliasDeleteByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling aliasDeleteById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async aliasDeleteById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliasDeleteByIdRaw({ id: id }, initOverrides); + } + + /** + * List all the alias IDs. + */ + async aliasListByIdRaw( + requestParameters: IdentityApiAliasListByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling aliasListById().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/alias/id/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List all the alias IDs. + */ + async aliasListById( + list: AliasListByIdListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.aliasListByIdRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async aliasReadByIdRaw( + requestParameters: IdentityApiAliasReadByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling aliasReadById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async aliasReadById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.aliasReadByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async aliasUpdateByIdRaw( + requestParameters: IdentityApiAliasUpdateByIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling aliasUpdateById().' + ); + } + + if (requestParameters['aliasUpdateByIdRequest'] == null) { + throw new runtime.RequiredError( + 'aliasUpdateByIdRequest', + 'Required parameter "aliasUpdateByIdRequest" was null or undefined when calling aliasUpdateById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AliasUpdateByIdRequestToJSON(requestParameters['aliasUpdateByIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async aliasUpdateById( + id: string, + aliasUpdateByIdRequest: AliasUpdateByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliasUpdateByIdRaw({ id: id, aliasUpdateByIdRequest: aliasUpdateByIdRequest }, initOverrides); + } + + /** + */ + async entitiesCreateDuplicatesRaw( + requestParameters: IdentityApiEntitiesCreateDuplicatesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entitiesCreateDuplicatesRequest'] == null) { + throw new runtime.RequiredError( + 'entitiesCreateDuplicatesRequest', + 'Required parameter "entitiesCreateDuplicatesRequest" was null or undefined when calling entitiesCreateDuplicates().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/duplicate/entities`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntitiesCreateDuplicatesRequestToJSON(requestParameters['entitiesCreateDuplicatesRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entitiesCreateDuplicates( + entitiesCreateDuplicatesRequest: EntitiesCreateDuplicatesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entitiesCreateDuplicatesRaw( + { entitiesCreateDuplicatesRequest: entitiesCreateDuplicatesRequest }, + initOverrides + ); + } + + /** + */ + async entityAliasCreateDuplicatesRaw( + requestParameters: IdentityApiEntityAliasCreateDuplicatesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entityAliasCreateDuplicatesRequest'] == null) { + throw new runtime.RequiredError( + 'entityAliasCreateDuplicatesRequest', + 'Required parameter "entityAliasCreateDuplicatesRequest" was null or undefined when calling entityAliasCreateDuplicates().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/duplicate/local-entity-alias`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityAliasCreateDuplicatesRequestToJSON( + requestParameters['entityAliasCreateDuplicatesRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityAliasCreateDuplicates( + entityAliasCreateDuplicatesRequest: EntityAliasCreateDuplicatesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityAliasCreateDuplicatesRaw( + { entityAliasCreateDuplicatesRequest: entityAliasCreateDuplicatesRequest }, + initOverrides + ); + } + + /** + */ + async entityAliasesCreateDuplicatesRaw( + requestParameters: IdentityApiEntityAliasesCreateDuplicatesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entityAliasesCreateDuplicatesRequest'] == null) { + throw new runtime.RequiredError( + 'entityAliasesCreateDuplicatesRequest', + 'Required parameter "entityAliasesCreateDuplicatesRequest" was null or undefined when calling entityAliasesCreateDuplicates().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/duplicate/entity-aliases`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityAliasesCreateDuplicatesRequestToJSON( + requestParameters['entityAliasesCreateDuplicatesRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityAliasesCreateDuplicates( + entityAliasesCreateDuplicatesRequest: EntityAliasesCreateDuplicatesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityAliasesCreateDuplicatesRaw( + { entityAliasesCreateDuplicatesRequest: entityAliasesCreateDuplicatesRequest }, + initOverrides + ); + } + + /** + */ + async entityBatchDeleteRaw( + requestParameters: IdentityApiEntityBatchDeleteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entityBatchDeleteRequest'] == null) { + throw new runtime.RequiredError( + 'entityBatchDeleteRequest', + 'Required parameter "entityBatchDeleteRequest" was null or undefined when calling entityBatchDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/entity/batch-delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityBatchDeleteRequestToJSON(requestParameters['entityBatchDeleteRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityBatchDelete( + entityBatchDeleteRequest: EntityBatchDeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityBatchDeleteRaw({ entityBatchDeleteRequest: entityBatchDeleteRequest }, initOverrides); + } + + /** + */ + async entityCreateRaw( + requestParameters: IdentityApiEntityCreateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entityCreateRequest'] == null) { + throw new runtime.RequiredError( + 'entityCreateRequest', + 'Required parameter "entityCreateRequest" was null or undefined when calling entityCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/entity`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityCreateRequestToJSON(requestParameters['entityCreateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityCreate( + entityCreateRequest: EntityCreateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityCreateRaw({ entityCreateRequest: entityCreateRequest }, initOverrides); + } + + /** + * Create a new alias. + */ + async entityCreateAliasRaw( + requestParameters: IdentityApiEntityCreateAliasOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entityCreateAliasRequest'] == null) { + throw new runtime.RequiredError( + 'entityCreateAliasRequest', + 'Required parameter "entityCreateAliasRequest" was null or undefined when calling entityCreateAlias().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/entity-alias`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityCreateAliasRequestToJSON(requestParameters['entityCreateAliasRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a new alias. + */ + async entityCreateAlias( + entityCreateAliasRequest: EntityCreateAliasRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityCreateAliasRaw({ entityCreateAliasRequest: entityCreateAliasRequest }, initOverrides); + } + + /** + */ + async entityDeleteAliasByIdRaw( + requestParameters: IdentityApiEntityDeleteAliasByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling entityDeleteAliasById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity-alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityDeleteAliasById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityDeleteAliasByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async entityDeleteByIdRaw( + requestParameters: IdentityApiEntityDeleteByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling entityDeleteById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityDeleteById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityDeleteByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async entityDeleteByNameRaw( + requestParameters: IdentityApiEntityDeleteByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling entityDeleteByName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity/name/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityDeleteByName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityDeleteByNameRaw({ name: name }, initOverrides); + } + + /** + * List all the alias IDs. + */ + async entityListAliasesByIdRaw( + requestParameters: IdentityApiEntityListAliasesByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling entityListAliasesById().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity-alias/id/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List all the alias IDs. + */ + async entityListAliasesById( + list: EntityListAliasesByIdListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.entityListAliasesByIdRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async entityListByIdRaw( + requestParameters: IdentityApiEntityListByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling entityListById().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity/id/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async entityListById( + list: EntityListByIdListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.entityListByIdRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async entityListByNameRaw( + requestParameters: IdentityApiEntityListByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling entityListByName().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity/name/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async entityListByName( + list: EntityListByNameListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.entityListByNameRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async entityListFromStorageRaw( + requestParameters: IdentityApiEntityListFromStorageRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling entityListFromStorage().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity/from-storage/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async entityListFromStorage( + list: EntityListFromStorageListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.entityListFromStorageRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Query entities based on various properties. + */ + async entityLookUpRaw( + requestParameters: IdentityApiEntityLookUpOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entityLookUpRequest'] == null) { + throw new runtime.RequiredError( + 'entityLookUpRequest', + 'Required parameter "entityLookUpRequest" was null or undefined when calling entityLookUp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/lookup/entity`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityLookUpRequestToJSON(requestParameters['entityLookUpRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Query entities based on various properties. + */ + async entityLookUp( + entityLookUpRequest: EntityLookUpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityLookUpRaw({ entityLookUpRequest: entityLookUpRequest }, initOverrides); + } + + /** + */ + async entityMergeRaw( + requestParameters: IdentityApiEntityMergeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['entityMergeRequest'] == null) { + throw new runtime.RequiredError( + 'entityMergeRequest', + 'Required parameter "entityMergeRequest" was null or undefined when calling entityMerge().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/entity/merge`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityMergeRequestToJSON(requestParameters['entityMergeRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityMerge( + entityMergeRequest: EntityMergeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityMergeRaw({ entityMergeRequest: entityMergeRequest }, initOverrides); + } + + /** + */ + async entityReadAliasByIdRaw( + requestParameters: IdentityApiEntityReadAliasByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling entityReadAliasById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity-alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityReadAliasById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityReadAliasByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async entityReadByIdRaw( + requestParameters: IdentityApiEntityReadByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling entityReadById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityReadById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityReadByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async entityReadByNameRaw( + requestParameters: IdentityApiEntityReadByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling entityReadByName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/entity/name/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityReadByName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityReadByNameRaw({ name: name }, initOverrides); + } + + /** + */ + async entityUpdateAliasByIdRaw( + requestParameters: IdentityApiEntityUpdateAliasByIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling entityUpdateAliasById().' + ); + } + + if (requestParameters['entityUpdateAliasByIdRequest'] == null) { + throw new runtime.RequiredError( + 'entityUpdateAliasByIdRequest', + 'Required parameter "entityUpdateAliasByIdRequest" was null or undefined when calling entityUpdateAliasById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/entity-alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityUpdateAliasByIdRequestToJSON(requestParameters['entityUpdateAliasByIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityUpdateAliasById( + id: string, + entityUpdateAliasByIdRequest: EntityUpdateAliasByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityUpdateAliasByIdRaw( + { id: id, entityUpdateAliasByIdRequest: entityUpdateAliasByIdRequest }, + initOverrides + ); + } + + /** + */ + async entityUpdateByIdRaw( + requestParameters: IdentityApiEntityUpdateByIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling entityUpdateById().' + ); + } + + if (requestParameters['entityUpdateByIdRequest'] == null) { + throw new runtime.RequiredError( + 'entityUpdateByIdRequest', + 'Required parameter "entityUpdateByIdRequest" was null or undefined when calling entityUpdateById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/entity/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityUpdateByIdRequestToJSON(requestParameters['entityUpdateByIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityUpdateById( + id: string, + entityUpdateByIdRequest: EntityUpdateByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityUpdateByIdRaw( + { id: id, entityUpdateByIdRequest: entityUpdateByIdRequest }, + initOverrides + ); + } + + /** + */ + async entityUpdateByNameRaw( + requestParameters: IdentityApiEntityUpdateByNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling entityUpdateByName().' + ); + } + + if (requestParameters['entityUpdateByNameRequest'] == null) { + throw new runtime.RequiredError( + 'entityUpdateByNameRequest', + 'Required parameter "entityUpdateByNameRequest" was null or undefined when calling entityUpdateByName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/entity/name/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EntityUpdateByNameRequestToJSON(requestParameters['entityUpdateByNameRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async entityUpdateByName( + name: string, + entityUpdateByNameRequest: EntityUpdateByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.entityUpdateByNameRaw( + { name: name, entityUpdateByNameRequest: entityUpdateByNameRequest }, + initOverrides + ); + } + + /** + */ + async groupCreateRaw( + requestParameters: IdentityApiGroupCreateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['groupCreateRequest'] == null) { + throw new runtime.RequiredError( + 'groupCreateRequest', + 'Required parameter "groupCreateRequest" was null or undefined when calling groupCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/group`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GroupCreateRequestToJSON(requestParameters['groupCreateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupCreate( + groupCreateRequest: GroupCreateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupCreateRaw({ groupCreateRequest: groupCreateRequest }, initOverrides); + } + + /** + */ + async groupCreateAliasRaw( + requestParameters: IdentityApiGroupCreateAliasOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['groupCreateAliasRequest'] == null) { + throw new runtime.RequiredError( + 'groupCreateAliasRequest', + 'Required parameter "groupCreateAliasRequest" was null or undefined when calling groupCreateAlias().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/group-alias`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GroupCreateAliasRequestToJSON(requestParameters['groupCreateAliasRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupCreateAlias( + groupCreateAliasRequest: GroupCreateAliasRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupCreateAliasRaw({ groupCreateAliasRequest: groupCreateAliasRequest }, initOverrides); + } + + /** + */ + async groupDeleteAliasByIdRaw( + requestParameters: IdentityApiGroupDeleteAliasByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling groupDeleteAliasById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group-alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupDeleteAliasById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupDeleteAliasByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async groupDeleteByIdRaw( + requestParameters: IdentityApiGroupDeleteByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling groupDeleteById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupDeleteById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupDeleteByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async groupDeleteByNameRaw( + requestParameters: IdentityApiGroupDeleteByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling groupDeleteByName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group/name/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupDeleteByName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupDeleteByNameRaw({ name: name }, initOverrides); + } + + /** + * List all the group alias IDs. + */ + async groupListAliasesByIdRaw( + requestParameters: IdentityApiGroupListAliasesByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling groupListAliasesById().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group-alias/id/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List all the group alias IDs. + */ + async groupListAliasesById( + list: GroupListAliasesByIdListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.groupListAliasesByIdRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List all the group IDs. + */ + async groupListByIdRaw( + requestParameters: IdentityApiGroupListByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling groupListById().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group/id/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List all the group IDs. + */ + async groupListById( + list: GroupListByIdListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.groupListByIdRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async groupListByNameRaw( + requestParameters: IdentityApiGroupListByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling groupListByName().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group/name/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async groupListByName( + list: GroupListByNameListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.groupListByNameRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async groupListFromStorageRaw( + requestParameters: IdentityApiGroupListFromStorageRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling groupListFromStorage().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group/from-storage/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async groupListFromStorage( + list: GroupListFromStorageListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.groupListFromStorageRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Query groups based on various properties. + */ + async groupLookUpRaw( + requestParameters: IdentityApiGroupLookUpOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['groupLookUpRequest'] == null) { + throw new runtime.RequiredError( + 'groupLookUpRequest', + 'Required parameter "groupLookUpRequest" was null or undefined when calling groupLookUp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/lookup/group`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GroupLookUpRequestToJSON(requestParameters['groupLookUpRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Query groups based on various properties. + */ + async groupLookUp( + groupLookUpRequest: GroupLookUpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupLookUpRaw({ groupLookUpRequest: groupLookUpRequest }, initOverrides); + } + + /** + */ + async groupReadAliasByIdRaw( + requestParameters: IdentityApiGroupReadAliasByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling groupReadAliasById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group-alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupReadAliasById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupReadAliasByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async groupReadByIdRaw( + requestParameters: IdentityApiGroupReadByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling groupReadById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupReadById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.groupReadByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async groupReadByNameRaw( + requestParameters: IdentityApiGroupReadByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling groupReadByName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/group/name/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupReadByName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupReadByNameRaw({ name: name }, initOverrides); + } + + /** + */ + async groupUpdateAliasByIdRaw( + requestParameters: IdentityApiGroupUpdateAliasByIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling groupUpdateAliasById().' + ); + } + + if (requestParameters['groupUpdateAliasByIdRequest'] == null) { + throw new runtime.RequiredError( + 'groupUpdateAliasByIdRequest', + 'Required parameter "groupUpdateAliasByIdRequest" was null or undefined when calling groupUpdateAliasById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/group-alias/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GroupUpdateAliasByIdRequestToJSON(requestParameters['groupUpdateAliasByIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupUpdateAliasById( + id: string, + groupUpdateAliasByIdRequest: GroupUpdateAliasByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupUpdateAliasByIdRaw( + { id: id, groupUpdateAliasByIdRequest: groupUpdateAliasByIdRequest }, + initOverrides + ); + } + + /** + */ + async groupUpdateByIdRaw( + requestParameters: IdentityApiGroupUpdateByIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling groupUpdateById().' + ); + } + + if (requestParameters['groupUpdateByIdRequest'] == null) { + throw new runtime.RequiredError( + 'groupUpdateByIdRequest', + 'Required parameter "groupUpdateByIdRequest" was null or undefined when calling groupUpdateById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/group/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GroupUpdateByIdRequestToJSON(requestParameters['groupUpdateByIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupUpdateById( + id: string, + groupUpdateByIdRequest: GroupUpdateByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupUpdateByIdRaw({ id: id, groupUpdateByIdRequest: groupUpdateByIdRequest }, initOverrides); + } + + /** + */ + async groupUpdateByNameRaw( + requestParameters: IdentityApiGroupUpdateByNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling groupUpdateByName().' + ); + } + + if (requestParameters['groupUpdateByNameRequest'] == null) { + throw new runtime.RequiredError( + 'groupUpdateByNameRequest', + 'Required parameter "groupUpdateByNameRequest" was null or undefined when calling groupUpdateByName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/group/name/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GroupUpdateByNameRequestToJSON(requestParameters['groupUpdateByNameRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupUpdateByName( + name: string, + groupUpdateByNameRequest: GroupUpdateByNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupUpdateByNameRaw( + { name: name, groupUpdateByNameRequest: groupUpdateByNameRequest }, + initOverrides + ); + } + + /** + */ + async groupsCreateDuplicatesRaw( + requestParameters: IdentityApiGroupsCreateDuplicatesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['groupsCreateDuplicatesRequest'] == null) { + throw new runtime.RequiredError( + 'groupsCreateDuplicatesRequest', + 'Required parameter "groupsCreateDuplicatesRequest" was null or undefined when calling groupsCreateDuplicates().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/duplicate/groups`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GroupsCreateDuplicatesRequestToJSON(requestParameters['groupsCreateDuplicatesRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async groupsCreateDuplicates( + groupsCreateDuplicatesRequest: GroupsCreateDuplicatesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.groupsCreateDuplicatesRaw( + { groupsCreateDuplicatesRequest: groupsCreateDuplicatesRequest }, + initOverrides + ); + } + + /** + * Destroys a TOTP secret for the given MFA method ID on the given entity + */ + async mfaAdminDestroyTotpSecretRaw( + requestParameters: IdentityApiMfaAdminDestroyTotpSecretOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaAdminDestroyTotpSecretRequest'] == null) { + throw new runtime.RequiredError( + 'mfaAdminDestroyTotpSecretRequest', + 'Required parameter "mfaAdminDestroyTotpSecretRequest" was null or undefined when calling mfaAdminDestroyTotpSecret().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/totp/admin-destroy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaAdminDestroyTotpSecretRequestToJSON(requestParameters['mfaAdminDestroyTotpSecretRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Destroys a TOTP secret for the given MFA method ID on the given entity + */ + async mfaAdminDestroyTotpSecret( + mfaAdminDestroyTotpSecretRequest: MfaAdminDestroyTotpSecretRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaAdminDestroyTotpSecretRaw( + { mfaAdminDestroyTotpSecretRequest: mfaAdminDestroyTotpSecretRequest }, + initOverrides + ); + } + + /** + * Update or create TOTP secret for the given method ID on the given entity. + */ + async mfaAdminGenerateTotpSecretRaw( + requestParameters: IdentityApiMfaAdminGenerateTotpSecretOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaAdminGenerateTotpSecretRequest'] == null) { + throw new runtime.RequiredError( + 'mfaAdminGenerateTotpSecretRequest', + 'Required parameter "mfaAdminGenerateTotpSecretRequest" was null or undefined when calling mfaAdminGenerateTotpSecret().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/totp/admin-generate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaAdminGenerateTotpSecretRequestToJSON(requestParameters['mfaAdminGenerateTotpSecretRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update or create TOTP secret for the given method ID on the given entity. + */ + async mfaAdminGenerateTotpSecret( + mfaAdminGenerateTotpSecretRequest: MfaAdminGenerateTotpSecretRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaAdminGenerateTotpSecretRaw( + { mfaAdminGenerateTotpSecretRequest: mfaAdminGenerateTotpSecretRequest }, + initOverrides + ); + } + + /** + * Create the given MFA method + */ + async mfaCreateDuoMethodRaw( + requestParameters: IdentityApiMfaCreateDuoMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaCreateDuoMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaCreateDuoMethodRequest', + 'Required parameter "mfaCreateDuoMethodRequest" was null or undefined when calling mfaCreateDuoMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/duo`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaCreateDuoMethodRequestToJSON(requestParameters['mfaCreateDuoMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create the given MFA method + */ + async mfaCreateDuoMethod( + mfaCreateDuoMethodRequest: MfaCreateDuoMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaCreateDuoMethodRaw({ mfaCreateDuoMethodRequest: mfaCreateDuoMethodRequest }, initOverrides); + } + + /** + * Create the given MFA method + */ + async mfaCreateOktaMethodRaw( + requestParameters: IdentityApiMfaCreateOktaMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaCreateOktaMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaCreateOktaMethodRequest', + 'Required parameter "mfaCreateOktaMethodRequest" was null or undefined when calling mfaCreateOktaMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/okta`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaCreateOktaMethodRequestToJSON(requestParameters['mfaCreateOktaMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create the given MFA method + */ + async mfaCreateOktaMethod( + mfaCreateOktaMethodRequest: MfaCreateOktaMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaCreateOktaMethodRaw( + { mfaCreateOktaMethodRequest: mfaCreateOktaMethodRequest }, + initOverrides + ); + } + + /** + * Create the given MFA method + */ + async mfaCreatePingIdMethodRaw( + requestParameters: IdentityApiMfaCreatePingIdMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaCreatePingIdMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaCreatePingIdMethodRequest', + 'Required parameter "mfaCreatePingIdMethodRequest" was null or undefined when calling mfaCreatePingIdMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/pingid`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaCreatePingIdMethodRequestToJSON(requestParameters['mfaCreatePingIdMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create the given MFA method + */ + async mfaCreatePingIdMethod( + mfaCreatePingIdMethodRequest: MfaCreatePingIdMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaCreatePingIdMethodRaw( + { mfaCreatePingIdMethodRequest: mfaCreatePingIdMethodRequest }, + initOverrides + ); + } + + /** + * Create the given MFA method + */ + async mfaCreateTotpMethodRaw( + requestParameters: IdentityApiMfaCreateTotpMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaCreateTotpMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaCreateTotpMethodRequest', + 'Required parameter "mfaCreateTotpMethodRequest" was null or undefined when calling mfaCreateTotpMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/totp`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaCreateTotpMethodRequestToJSON(requestParameters['mfaCreateTotpMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create the given MFA method + */ + async mfaCreateTotpMethod( + mfaCreateTotpMethodRequest: MfaCreateTotpMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaCreateTotpMethodRaw( + { mfaCreateTotpMethodRequest: mfaCreateTotpMethodRequest }, + initOverrides + ); + } + + /** + * Delete the given MFA method + */ + async mfaDeleteDuoMethodRaw( + requestParameters: IdentityApiMfaDeleteDuoMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaDeleteDuoMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/duo/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the given MFA method + */ + async mfaDeleteDuoMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaDeleteDuoMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Delete a login enforcement + */ + async mfaDeleteLoginEnforcementRaw( + requestParameters: IdentityApiMfaDeleteLoginEnforcementRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mfaDeleteLoginEnforcement().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/login-enforcement/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a login enforcement + */ + async mfaDeleteLoginEnforcement( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaDeleteLoginEnforcementRaw({ name: name }, initOverrides); + } + + /** + * Delete the given MFA method + */ + async mfaDeleteOktaMethodRaw( + requestParameters: IdentityApiMfaDeleteOktaMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaDeleteOktaMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/okta/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the given MFA method + */ + async mfaDeleteOktaMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaDeleteOktaMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Delete the given MFA method + */ + async mfaDeletePingIdMethodRaw( + requestParameters: IdentityApiMfaDeletePingIdMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaDeletePingIdMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/pingid/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the given MFA method + */ + async mfaDeletePingIdMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaDeletePingIdMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Delete the given MFA method + */ + async mfaDeleteTotpMethodRaw( + requestParameters: IdentityApiMfaDeleteTotpMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaDeleteTotpMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/totp/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the given MFA method + */ + async mfaDeleteTotpMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaDeleteTotpMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Update or create TOTP secret for the given method ID on the given entity. + */ + async mfaGenerateTotpSecretRaw( + requestParameters: IdentityApiMfaGenerateTotpSecretOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaGenerateTotpSecretRequest'] == null) { + throw new runtime.RequiredError( + 'mfaGenerateTotpSecretRequest', + 'Required parameter "mfaGenerateTotpSecretRequest" was null or undefined when calling mfaGenerateTotpSecret().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/totp/generate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaGenerateTotpSecretRequestToJSON(requestParameters['mfaGenerateTotpSecretRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update or create TOTP secret for the given method ID on the given entity. + */ + async mfaGenerateTotpSecret( + mfaGenerateTotpSecretRequest: MfaGenerateTotpSecretRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaGenerateTotpSecretRaw( + { mfaGenerateTotpSecretRequest: mfaGenerateTotpSecretRequest }, + initOverrides + ); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListDuoMethodsRaw( + requestParameters: IdentityApiMfaListDuoMethodsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling mfaListDuoMethods().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/duo/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListDuoMethods( + list: MfaListDuoMethodsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mfaListDuoMethodsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List login enforcements + */ + async mfaListLoginEnforcementsRaw( + requestParameters: IdentityApiMfaListLoginEnforcementsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling mfaListLoginEnforcements().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/login-enforcement/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List login enforcements + */ + async mfaListLoginEnforcements( + list: MfaListLoginEnforcementsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mfaListLoginEnforcementsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List MFA method configurations for all MFA methods + */ + async mfaListMethodsRaw( + requestParameters: IdentityApiMfaListMethodsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling mfaListMethods().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List MFA method configurations for all MFA methods + */ + async mfaListMethods( + list: MfaListMethodsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mfaListMethodsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListOktaMethodsRaw( + requestParameters: IdentityApiMfaListOktaMethodsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling mfaListOktaMethods().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/okta/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListOktaMethods( + list: MfaListOktaMethodsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mfaListOktaMethodsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListPingIdMethodsRaw( + requestParameters: IdentityApiMfaListPingIdMethodsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling mfaListPingIdMethods().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/pingid/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListPingIdMethods( + list: MfaListPingIdMethodsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mfaListPingIdMethodsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListTotpMethodsRaw( + requestParameters: IdentityApiMfaListTotpMethodsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling mfaListTotpMethods().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/totp/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List MFA method configurations for the given MFA method + */ + async mfaListTotpMethods( + list: MfaListTotpMethodsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mfaListTotpMethodsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadDuoMethodRaw( + requestParameters: IdentityApiMfaReadDuoMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaReadDuoMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/duo/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadDuoMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaReadDuoMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Read the current login enforcement + */ + async mfaReadLoginEnforcementRaw( + requestParameters: IdentityApiMfaReadLoginEnforcementRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mfaReadLoginEnforcement().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/login-enforcement/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current login enforcement + */ + async mfaReadLoginEnforcement( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaReadLoginEnforcementRaw({ name: name }, initOverrides); + } + + /** + * Read the current configuration for the given ID regardless of the MFA method type + */ + async mfaReadMethodRaw( + requestParameters: IdentityApiMfaReadMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaReadMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current configuration for the given ID regardless of the MFA method type + */ + async mfaReadMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaReadMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadOktaMethodRaw( + requestParameters: IdentityApiMfaReadOktaMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaReadOktaMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/okta/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadOktaMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaReadOktaMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadPingIdMethodRaw( + requestParameters: IdentityApiMfaReadPingIdMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaReadPingIdMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/pingid/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadPingIdMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaReadPingIdMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadTotpMethodRaw( + requestParameters: IdentityApiMfaReadTotpMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaReadTotpMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/mfa/method/totp/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current configuration for the given MFA method + */ + async mfaReadTotpMethod( + methodId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaReadTotpMethodRaw({ methodId: methodId }, initOverrides); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdateDuoMethodRaw( + requestParameters: IdentityApiMfaUpdateDuoMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaUpdateDuoMethod().' + ); + } + + if (requestParameters['mfaUpdateDuoMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaUpdateDuoMethodRequest', + 'Required parameter "mfaUpdateDuoMethodRequest" was null or undefined when calling mfaUpdateDuoMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/duo/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaUpdateDuoMethodRequestToJSON(requestParameters['mfaUpdateDuoMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdateDuoMethod( + methodId: string, + mfaUpdateDuoMethodRequest: MfaUpdateDuoMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaUpdateDuoMethodRaw( + { methodId: methodId, mfaUpdateDuoMethodRequest: mfaUpdateDuoMethodRequest }, + initOverrides + ); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdateOktaMethodRaw( + requestParameters: IdentityApiMfaUpdateOktaMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaUpdateOktaMethod().' + ); + } + + if (requestParameters['mfaUpdateOktaMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaUpdateOktaMethodRequest', + 'Required parameter "mfaUpdateOktaMethodRequest" was null or undefined when calling mfaUpdateOktaMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/okta/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaUpdateOktaMethodRequestToJSON(requestParameters['mfaUpdateOktaMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdateOktaMethod( + methodId: string, + mfaUpdateOktaMethodRequest: MfaUpdateOktaMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaUpdateOktaMethodRaw( + { methodId: methodId, mfaUpdateOktaMethodRequest: mfaUpdateOktaMethodRequest }, + initOverrides + ); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdatePingIdMethodRaw( + requestParameters: IdentityApiMfaUpdatePingIdMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaUpdatePingIdMethod().' + ); + } + + if (requestParameters['mfaUpdatePingIdMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaUpdatePingIdMethodRequest', + 'Required parameter "mfaUpdatePingIdMethodRequest" was null or undefined when calling mfaUpdatePingIdMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/pingid/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaUpdatePingIdMethodRequestToJSON(requestParameters['mfaUpdatePingIdMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdatePingIdMethod( + methodId: string, + mfaUpdatePingIdMethodRequest: MfaUpdatePingIdMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaUpdatePingIdMethodRaw( + { methodId: methodId, mfaUpdatePingIdMethodRequest: mfaUpdatePingIdMethodRequest }, + initOverrides + ); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdateTotpMethodRaw( + requestParameters: IdentityApiMfaUpdateTotpMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['methodId'] == null) { + throw new runtime.RequiredError( + 'methodId', + 'Required parameter "methodId" was null or undefined when calling mfaUpdateTotpMethod().' + ); + } + + if (requestParameters['mfaUpdateTotpMethodRequest'] == null) { + throw new runtime.RequiredError( + 'mfaUpdateTotpMethodRequest', + 'Required parameter "mfaUpdateTotpMethodRequest" was null or undefined when calling mfaUpdateTotpMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/method/totp/{method_id}`.replace( + `{${'method_id'}}`, + encodeURIComponent(String(requestParameters['methodId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaUpdateTotpMethodRequestToJSON(requestParameters['mfaUpdateTotpMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the configuration for the given MFA method + */ + async mfaUpdateTotpMethod( + methodId: string, + mfaUpdateTotpMethodRequest: MfaUpdateTotpMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaUpdateTotpMethodRaw( + { methodId: methodId, mfaUpdateTotpMethodRequest: mfaUpdateTotpMethodRequest }, + initOverrides + ); + } + + /** + * Create or update a login enforcement + */ + async mfaWriteLoginEnforcementRaw( + requestParameters: IdentityApiMfaWriteLoginEnforcementOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mfaWriteLoginEnforcement().' + ); + } + + if (requestParameters['mfaWriteLoginEnforcementRequest'] == null) { + throw new runtime.RequiredError( + 'mfaWriteLoginEnforcementRequest', + 'Required parameter "mfaWriteLoginEnforcementRequest" was null or undefined when calling mfaWriteLoginEnforcement().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/mfa/login-enforcement/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaWriteLoginEnforcementRequestToJSON(requestParameters['mfaWriteLoginEnforcementRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create or update a login enforcement + */ + async mfaWriteLoginEnforcement( + name: string, + mfaWriteLoginEnforcementRequest: MfaWriteLoginEnforcementRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaWriteLoginEnforcementRaw( + { name: name, mfaWriteLoginEnforcementRequest: mfaWriteLoginEnforcementRequest }, + initOverrides + ); + } + + /** + */ + async oidcConfigureRaw( + requestParameters: IdentityApiOidcConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['oidcConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'oidcConfigureRequest', + 'Required parameter "oidcConfigureRequest" was null or undefined when calling oidcConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/config`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcConfigureRequestToJSON(requestParameters['oidcConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcConfigure( + oidcConfigureRequest: OidcConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcConfigureRaw({ oidcConfigureRequest: oidcConfigureRequest }, initOverrides); + } + + /** + */ + async oidcDeleteAssignmentRaw( + requestParameters: IdentityApiOidcDeleteAssignmentRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcDeleteAssignment().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/assignment/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcDeleteAssignment( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcDeleteAssignmentRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcDeleteClientRaw( + requestParameters: IdentityApiOidcDeleteClientRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcDeleteClient().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/client/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcDeleteClient( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcDeleteClientRaw({ name: name }, initOverrides); + } + + /** + * CRUD operations for OIDC keys. + */ + async oidcDeleteKeyRaw( + requestParameters: IdentityApiOidcDeleteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcDeleteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/key/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * CRUD operations for OIDC keys. + */ + async oidcDeleteKey( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcDeleteKeyRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcDeleteProviderRaw( + requestParameters: IdentityApiOidcDeleteProviderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcDeleteProvider().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcDeleteProvider( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcDeleteProviderRaw({ name: name }, initOverrides); + } + + /** + * CRUD operations on OIDC Roles + */ + async oidcDeleteRoleRaw( + requestParameters: IdentityApiOidcDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/role/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * CRUD operations on OIDC Roles + */ + async oidcDeleteRole( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcDeleteRoleRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcDeleteScopeRaw( + requestParameters: IdentityApiOidcDeleteScopeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcDeleteScope().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/scope/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcDeleteScope( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcDeleteScopeRaw({ name: name }, initOverrides); + } + + /** + * Generate an OIDC token + */ + async oidcGenerateTokenRaw( + requestParameters: IdentityApiOidcGenerateTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcGenerateToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/token/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate an OIDC token + */ + async oidcGenerateToken( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcGenerateTokenRaw({ name: name }, initOverrides); + } + + /** + * Verify the authenticity of an OIDC token + */ + async oidcIntrospectRaw( + requestParameters: IdentityApiOidcIntrospectOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['oidcIntrospectRequest'] == null) { + throw new runtime.RequiredError( + 'oidcIntrospectRequest', + 'Required parameter "oidcIntrospectRequest" was null or undefined when calling oidcIntrospect().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/introspect`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcIntrospectRequestToJSON(requestParameters['oidcIntrospectRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Verify the authenticity of an OIDC token + */ + async oidcIntrospect( + oidcIntrospectRequest: OidcIntrospectRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcIntrospectRaw({ oidcIntrospectRequest: oidcIntrospectRequest }, initOverrides); + } + + /** + */ + async oidcListAssignmentsRaw( + requestParameters: IdentityApiOidcListAssignmentsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oidcListAssignments().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/assignment/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async oidcListAssignments( + list: OidcListAssignmentsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oidcListAssignmentsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async oidcListClientsRaw( + requestParameters: IdentityApiOidcListClientsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oidcListClients().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/client/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async oidcListClients( + list: OidcListClientsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oidcListClientsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List OIDC keys + */ + async oidcListKeysRaw( + requestParameters: IdentityApiOidcListKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oidcListKeys().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/key/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List OIDC keys + */ + async oidcListKeys( + list: OidcListKeysListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oidcListKeysRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async oidcListProvidersRaw( + requestParameters: IdentityApiOidcListProvidersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oidcListProviders().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['allowedClientId'] != null) { + queryParameters['allowed_client_id'] = requestParameters['allowedClientId']; + } + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async oidcListProviders( + list: OidcListProvidersListEnum, + allowedClientId?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oidcListProvidersRaw( + { list: list, allowedClientId: allowedClientId }, + initOverrides + ); + return await response.value(); + } + + /** + * List configured OIDC roles + */ + async oidcListRolesRaw( + requestParameters: IdentityApiOidcListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oidcListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/role/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List configured OIDC roles + */ + async oidcListRoles( + list: OidcListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oidcListRolesRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async oidcListScopesRaw( + requestParameters: IdentityApiOidcListScopesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling oidcListScopes().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/scope/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async oidcListScopes( + list: OidcListScopesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.oidcListScopesRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async oidcProviderAuthorizeRaw( + requestParameters: IdentityApiOidcProviderAuthorizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcProviderAuthorize().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['clientId'] != null) { + queryParameters['client_id'] = requestParameters['clientId']; + } + + if (requestParameters['codeChallenge'] != null) { + queryParameters['code_challenge'] = requestParameters['codeChallenge']; + } + + if (requestParameters['codeChallengeMethod'] != null) { + queryParameters['code_challenge_method'] = requestParameters['codeChallengeMethod']; + } + + if (requestParameters['maxAge'] != null) { + queryParameters['max_age'] = requestParameters['maxAge']; + } + + if (requestParameters['nonce'] != null) { + queryParameters['nonce'] = requestParameters['nonce']; + } + + if (requestParameters['redirectUri'] != null) { + queryParameters['redirect_uri'] = requestParameters['redirectUri']; + } + + if (requestParameters['responseType'] != null) { + queryParameters['response_type'] = requestParameters['responseType']; + } + + if (requestParameters['scope'] != null) { + queryParameters['scope'] = requestParameters['scope']; + } + + if (requestParameters['state'] != null) { + queryParameters['state'] = requestParameters['state']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}/authorize`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcProviderAuthorize( + name: string, + clientId?: string, + codeChallenge?: string, + codeChallengeMethod?: string, + maxAge?: number, + nonce?: string, + redirectUri?: string, + responseType?: string, + scope?: string, + state?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcProviderAuthorizeRaw( + { + name: name, + clientId: clientId, + codeChallenge: codeChallenge, + codeChallengeMethod: codeChallengeMethod, + maxAge: maxAge, + nonce: nonce, + redirectUri: redirectUri, + responseType: responseType, + scope: scope, + state: state, + }, + initOverrides + ); + } + + /** + */ + async oidcProviderAuthorizeWithParametersRaw( + requestParameters: IdentityApiOidcProviderAuthorizeWithParametersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcProviderAuthorizeWithParameters().' + ); + } + + if (requestParameters['oidcProviderAuthorizeWithParametersRequest'] == null) { + throw new runtime.RequiredError( + 'oidcProviderAuthorizeWithParametersRequest', + 'Required parameter "oidcProviderAuthorizeWithParametersRequest" was null or undefined when calling oidcProviderAuthorizeWithParameters().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}/authorize`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcProviderAuthorizeWithParametersRequestToJSON( + requestParameters['oidcProviderAuthorizeWithParametersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcProviderAuthorizeWithParameters( + name: string, + oidcProviderAuthorizeWithParametersRequest: OidcProviderAuthorizeWithParametersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcProviderAuthorizeWithParametersRaw( + { name: name, oidcProviderAuthorizeWithParametersRequest: oidcProviderAuthorizeWithParametersRequest }, + initOverrides + ); + } + + /** + */ + async oidcProviderTokenRaw( + requestParameters: IdentityApiOidcProviderTokenOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcProviderToken().' + ); + } + + if (requestParameters['oidcProviderTokenRequest'] == null) { + throw new runtime.RequiredError( + 'oidcProviderTokenRequest', + 'Required parameter "oidcProviderTokenRequest" was null or undefined when calling oidcProviderToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}/token`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcProviderTokenRequestToJSON(requestParameters['oidcProviderTokenRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcProviderToken( + name: string, + oidcProviderTokenRequest: OidcProviderTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcProviderTokenRaw( + { name: name, oidcProviderTokenRequest: oidcProviderTokenRequest }, + initOverrides + ); + } + + /** + */ + async oidcProviderUserInfoRaw( + requestParameters: IdentityApiOidcProviderUserInfoRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcProviderUserInfo().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}/userinfo`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcProviderUserInfo( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcProviderUserInfoRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcProviderUserInfo2Raw( + requestParameters: IdentityApiOidcProviderUserInfo2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcProviderUserInfo2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}/userinfo`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcProviderUserInfo2( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcProviderUserInfo2Raw({ name: name }, initOverrides); + } + + /** + */ + async oidcReadAssignmentRaw( + requestParameters: IdentityApiOidcReadAssignmentRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadAssignment().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/assignment/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcReadAssignment( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadAssignmentRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcReadClientRaw( + requestParameters: IdentityApiOidcReadClientRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadClient().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/client/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcReadClient( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadClientRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcReadConfigurationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/config`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcReadConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.oidcReadConfigurationRaw(initOverrides); + } + + /** + * CRUD operations for OIDC keys. + */ + async oidcReadKeyRaw( + requestParameters: IdentityApiOidcReadKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/key/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * CRUD operations for OIDC keys. + */ + async oidcReadKey(name: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.oidcReadKeyRaw({ name: name }, initOverrides); + } + + /** + * Retrieve public keys + */ + async oidcReadOidcChildWellKnownKeysRaw( + requestParameters: IdentityApiOidcReadOidcChildWellKnownKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['child'] == null) { + throw new runtime.RequiredError( + 'child', + 'Required parameter "child" was null or undefined when calling oidcReadOidcChildWellKnownKeys().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/{child}/.well-known/keys`.replace( + `{${'child'}}`, + encodeURIComponent(String(requestParameters['child'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Retrieve public keys + */ + async oidcReadOidcChildWellKnownKeys( + child: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadOidcChildWellKnownKeysRaw({ child: child }, initOverrides); + } + + /** + * Query OIDC configurations + */ + async oidcReadOidcChildWellKnownOpenidConfigurationRaw( + requestParameters: IdentityApiOidcReadOidcChildWellKnownOpenidConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['child'] == null) { + throw new runtime.RequiredError( + 'child', + 'Required parameter "child" was null or undefined when calling oidcReadOidcChildWellKnownOpenidConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/{child}/.well-known/openid-configuration`.replace( + `{${'child'}}`, + encodeURIComponent(String(requestParameters['child'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Query OIDC configurations + */ + async oidcReadOidcChildWellKnownOpenidConfiguration( + child: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadOidcChildWellKnownOpenidConfigurationRaw({ child: child }, initOverrides); + } + + /** + * Query OIDC configurations + */ + async oidcReadOpenIdConfigurationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/.well-known/openid-configuration`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Query OIDC configurations + */ + async oidcReadOpenIdConfiguration( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadOpenIdConfigurationRaw(initOverrides); + } + + /** + */ + async oidcReadProviderRaw( + requestParameters: IdentityApiOidcReadProviderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadProvider().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcReadProvider( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadProviderRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcReadProviderOpenIdConfigurationRaw( + requestParameters: IdentityApiOidcReadProviderOpenIdConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadProviderOpenIdConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}/.well-known/openid-configuration`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcReadProviderOpenIdConfiguration( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadProviderOpenIdConfigurationRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcReadProviderPublicKeysRaw( + requestParameters: IdentityApiOidcReadProviderPublicKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadProviderPublicKeys().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}/.well-known/keys`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcReadProviderPublicKeys( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadProviderPublicKeysRaw({ name: name }, initOverrides); + } + + /** + * Retrieve public keys + */ + async oidcReadPublicKeysRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/.well-known/keys`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Retrieve public keys + */ + async oidcReadPublicKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.oidcReadPublicKeysRaw(initOverrides); + } + + /** + * CRUD operations on OIDC Roles + */ + async oidcReadRoleRaw( + requestParameters: IdentityApiOidcReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/role/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * CRUD operations on OIDC Roles + */ + async oidcReadRole( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadRoleRaw({ name: name }, initOverrides); + } + + /** + */ + async oidcReadScopeRaw( + requestParameters: IdentityApiOidcReadScopeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcReadScope().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/oidc/scope/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcReadScope( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcReadScopeRaw({ name: name }, initOverrides); + } + + /** + * Rotate a named OIDC key. + */ + async oidcRotateKeyRaw( + requestParameters: IdentityApiOidcRotateKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcRotateKey().' + ); + } + + if (requestParameters['oidcRotateKeyRequest'] == null) { + throw new runtime.RequiredError( + 'oidcRotateKeyRequest', + 'Required parameter "oidcRotateKeyRequest" was null or undefined when calling oidcRotateKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/key/{name}/rotate`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcRotateKeyRequestToJSON(requestParameters['oidcRotateKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Rotate a named OIDC key. + */ + async oidcRotateKey( + name: string, + oidcRotateKeyRequest: OidcRotateKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcRotateKeyRaw({ name: name, oidcRotateKeyRequest: oidcRotateKeyRequest }, initOverrides); + } + + /** + */ + async oidcWriteAssignmentRaw( + requestParameters: IdentityApiOidcWriteAssignmentOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcWriteAssignment().' + ); + } + + if (requestParameters['oidcWriteAssignmentRequest'] == null) { + throw new runtime.RequiredError( + 'oidcWriteAssignmentRequest', + 'Required parameter "oidcWriteAssignmentRequest" was null or undefined when calling oidcWriteAssignment().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/assignment/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcWriteAssignmentRequestToJSON(requestParameters['oidcWriteAssignmentRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcWriteAssignment( + name: string, + oidcWriteAssignmentRequest: OidcWriteAssignmentRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcWriteAssignmentRaw( + { name: name, oidcWriteAssignmentRequest: oidcWriteAssignmentRequest }, + initOverrides + ); + } + + /** + */ + async oidcWriteClientRaw( + requestParameters: IdentityApiOidcWriteClientOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcWriteClient().' + ); + } + + if (requestParameters['oidcWriteClientRequest'] == null) { + throw new runtime.RequiredError( + 'oidcWriteClientRequest', + 'Required parameter "oidcWriteClientRequest" was null or undefined when calling oidcWriteClient().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/client/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcWriteClientRequestToJSON(requestParameters['oidcWriteClientRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcWriteClient( + name: string, + oidcWriteClientRequest: OidcWriteClientRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcWriteClientRaw( + { name: name, oidcWriteClientRequest: oidcWriteClientRequest }, + initOverrides + ); + } + + /** + * CRUD operations for OIDC keys. + */ + async oidcWriteKeyRaw( + requestParameters: IdentityApiOidcWriteKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcWriteKey().' + ); + } + + if (requestParameters['oidcWriteKeyRequest'] == null) { + throw new runtime.RequiredError( + 'oidcWriteKeyRequest', + 'Required parameter "oidcWriteKeyRequest" was null or undefined when calling oidcWriteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/key/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcWriteKeyRequestToJSON(requestParameters['oidcWriteKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * CRUD operations for OIDC keys. + */ + async oidcWriteKey( + name: string, + oidcWriteKeyRequest: OidcWriteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcWriteKeyRaw({ name: name, oidcWriteKeyRequest: oidcWriteKeyRequest }, initOverrides); + } + + /** + */ + async oidcWriteProviderRaw( + requestParameters: IdentityApiOidcWriteProviderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcWriteProvider().' + ); + } + + if (requestParameters['oidcWriteProviderRequest'] == null) { + throw new runtime.RequiredError( + 'oidcWriteProviderRequest', + 'Required parameter "oidcWriteProviderRequest" was null or undefined when calling oidcWriteProvider().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/provider/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcWriteProviderRequestToJSON(requestParameters['oidcWriteProviderRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcWriteProvider( + name: string, + oidcWriteProviderRequest: OidcWriteProviderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcWriteProviderRaw( + { name: name, oidcWriteProviderRequest: oidcWriteProviderRequest }, + initOverrides + ); + } + + /** + * CRUD operations on OIDC Roles + */ + async oidcWriteRoleRaw( + requestParameters: IdentityApiOidcWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcWriteRole().' + ); + } + + if (requestParameters['oidcWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'oidcWriteRoleRequest', + 'Required parameter "oidcWriteRoleRequest" was null or undefined when calling oidcWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/role/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcWriteRoleRequestToJSON(requestParameters['oidcWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * CRUD operations on OIDC Roles + */ + async oidcWriteRole( + name: string, + oidcWriteRoleRequest: OidcWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcWriteRoleRaw({ name: name, oidcWriteRoleRequest: oidcWriteRoleRequest }, initOverrides); + } + + /** + */ + async oidcWriteScopeRaw( + requestParameters: IdentityApiOidcWriteScopeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling oidcWriteScope().' + ); + } + + if (requestParameters['oidcWriteScopeRequest'] == null) { + throw new runtime.RequiredError( + 'oidcWriteScopeRequest', + 'Required parameter "oidcWriteScopeRequest" was null or undefined when calling oidcWriteScope().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/oidc/scope/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: OidcWriteScopeRequestToJSON(requestParameters['oidcWriteScopeRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async oidcWriteScope( + name: string, + oidcWriteScopeRequest: OidcWriteScopeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.oidcWriteScopeRaw({ name: name, oidcWriteScopeRequest: oidcWriteScopeRequest }, initOverrides); + } + + /** + * Create a new alias. + */ + async personaCreateRaw( + requestParameters: IdentityApiPersonaCreateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['personaCreateRequest'] == null) { + throw new runtime.RequiredError( + 'personaCreateRequest', + 'Required parameter "personaCreateRequest" was null or undefined when calling personaCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/persona`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PersonaCreateRequestToJSON(requestParameters['personaCreateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create a new alias. + */ + async personaCreate( + personaCreateRequest: PersonaCreateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.personaCreateRaw({ personaCreateRequest: personaCreateRequest }, initOverrides); + } + + /** + */ + async personaDeleteByIdRaw( + requestParameters: IdentityApiPersonaDeleteByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling personaDeleteById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/persona/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async personaDeleteById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.personaDeleteByIdRaw({ id: id }, initOverrides); + } + + /** + * List all the alias IDs. + */ + async personaListByIdRaw( + requestParameters: IdentityApiPersonaListByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling personaListById().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/persona/id/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List all the alias IDs. + */ + async personaListById( + list: PersonaListByIdListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.personaListByIdRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async personaReadByIdRaw( + requestParameters: IdentityApiPersonaReadByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling personaReadById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/identity/persona/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async personaReadById( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.personaReadByIdRaw({ id: id }, initOverrides); + } + + /** + */ + async personaUpdateByIdRaw( + requestParameters: IdentityApiPersonaUpdateByIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling personaUpdateById().' + ); + } + + if (requestParameters['personaUpdateByIdRequest'] == null) { + throw new runtime.RequiredError( + 'personaUpdateByIdRequest', + 'Required parameter "personaUpdateByIdRequest" was null or undefined when calling personaUpdateById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/identity/persona/id/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PersonaUpdateByIdRequestToJSON(requestParameters['personaUpdateByIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async personaUpdateById( + id: string, + personaUpdateByIdRequest: PersonaUpdateByIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.personaUpdateByIdRaw( + { id: id, personaUpdateByIdRequest: personaUpdateByIdRequest }, + initOverrides + ); + } +} + +/** + * @export + * @enum {string} + */ +export enum AliasListByIdListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum EntityListAliasesByIdListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum EntityListByIdListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum EntityListByNameListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum EntityListFromStorageListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GroupListAliasesByIdListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GroupListByIdListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GroupListByNameListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GroupListFromStorageListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum MfaListDuoMethodsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum MfaListLoginEnforcementsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum MfaListMethodsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum MfaListOktaMethodsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum MfaListPingIdMethodsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum MfaListTotpMethodsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OidcListAssignmentsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OidcListClientsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OidcListKeysListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OidcListProvidersListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OidcListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum OidcListScopesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PersonaListByIdListEnum { + TRUE = 'true', +} diff --git a/ui/api-client/src/apis/SecretsApi.ts b/ui/api-client/src/apis/SecretsApi.ts new file mode 100644 index 0000000000..e58268e2dd --- /dev/null +++ b/ui/api-client/src/apis/SecretsApi.ts @@ -0,0 +1,35497 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime'; +import type { + AliCloudConfigureRequest, + AliCloudWriteRoleRequest, + AwsConfigureLeaseRequest, + AwsConfigureRootIamCredentialsRequest, + AwsGenerateCredentialsWithParametersRequest, + AwsGenerateStsCredentialsWithParametersRequest, + AwsReadStaticCredsNameResponse, + AwsReadStaticRolesNameResponse, + AwsWriteRoleRequest, + AwsWriteStaticRolesNameRequest, + AwsWriteStaticRolesNameResponse, + AzureConfigureRequest, + AzureWriteRoleRequest, + ConsulConfigureAccessRequest, + ConsulWriteRoleRequest, + DatabaseConfigureConnectionRequest, + DatabaseWriteRoleRequest, + DatabaseWriteStaticRoleRequest, + GoogleCloudConfigureRequest, + GoogleCloudGenerateRolesetKey3Request, + GoogleCloudGenerateRolesetKeyRequest, + GoogleCloudGenerateStaticAccountKeyRequest, + GoogleCloudKmsConfigureKeyRequest, + GoogleCloudKmsConfigureRequest, + GoogleCloudKmsDecryptRequest, + GoogleCloudKmsEncryptRequest, + GoogleCloudKmsReencryptRequest, + GoogleCloudKmsRegisterKeyRequest, + GoogleCloudKmsSignRequest, + GoogleCloudKmsVerifyRequest, + GoogleCloudKmsWriteKeyRequest, + GoogleCloudWriteImpersonatedAccountRequest, + GoogleCloudWriteRolesetRequest, + GoogleCloudWriteStaticAccountRequest, + KubernetesConfigureRequest, + KubernetesGenerateCredentialsRequest, + KubernetesWriteRoleRequest, + KvV2ConfigureRequest, + KvV2DeleteVersionsRequest, + KvV2DestroyVersionsRequest, + KvV2ReadConfigurationResponse, + KvV2ReadMetadataResponse, + KvV2ReadResponse, + KvV2ReadSubkeysResponse, + KvV2UndeleteVersionsRequest, + KvV2WriteMetadataRequest, + KvV2WriteRequest, + KvV2WriteResponse, + LdapConfigureRequest, + LdapLibraryCheckInRequest, + LdapLibraryCheckOutRequest, + LdapLibraryConfigureRequest, + LdapLibraryForceCheckInRequest, + LdapRotateStaticRoleRequest, + LdapWriteDynamicRoleRequest, + LdapWriteStaticRoleRequest, + MongoDbAtlasConfigureRequest, + MongoDbAtlasWriteRoleRequest, + NomadConfigureAccessRequest, + NomadConfigureLeaseRequest, + NomadWriteRoleRequest, + PkiConfigureAcmeRequest, + PkiConfigureAutoTidyRequest, + PkiConfigureAutoTidyResponse, + PkiConfigureCaRequest, + PkiConfigureCaResponse, + PkiConfigureClusterRequest, + PkiConfigureClusterResponse, + PkiConfigureCmpRequest, + PkiConfigureCrlRequest, + PkiConfigureCrlResponse, + PkiConfigureEstRequest, + PkiConfigureExternalPolicyRequest, + PkiConfigureExternalPolicyResponse, + PkiConfigureIssuersRequest, + PkiConfigureIssuersResponse, + PkiConfigureKeysRequest, + PkiConfigureKeysResponse, + PkiConfigureScepRequest, + PkiConfigureUrlsRequest, + PkiConfigureUrlsResponse, + PkiCrossSignIntermediateRequest, + PkiCrossSignIntermediateResponse, + PkiGenerateEabKeyForIssuerAndRoleResponse, + PkiGenerateEabKeyForIssuerResponse, + PkiGenerateEabKeyForRoleResponse, + PkiGenerateEabKeyResponse, + PkiGenerateExportedKeyRequest, + PkiGenerateExportedKeyResponse, + PkiGenerateIntermediateRequest, + PkiGenerateIntermediateResponse, + PkiGenerateInternalKeyRequest, + PkiGenerateInternalKeyResponse, + PkiGenerateKmsKeyRequest, + PkiGenerateKmsKeyResponse, + PkiGenerateRootRequest, + PkiGenerateRootResponse, + PkiImportKeyRequest, + PkiImportKeyResponse, + PkiIssueWithRoleRequest, + PkiIssueWithRoleResponse, + PkiIssuerIssueWithRoleRequest, + PkiIssuerIssueWithRoleResponse, + PkiIssuerReadCrlDeltaDerResponse, + PkiIssuerReadCrlDeltaPemResponse, + PkiIssuerReadCrlDeltaResponse, + PkiIssuerReadCrlDerResponse, + PkiIssuerReadCrlPemResponse, + PkiIssuerReadCrlResponse, + PkiIssuerReadUnifiedCrlDeltaDerResponse, + PkiIssuerReadUnifiedCrlDeltaPemResponse, + PkiIssuerReadUnifiedCrlDeltaResponse, + PkiIssuerReadUnifiedCrlDerResponse, + PkiIssuerReadUnifiedCrlPemResponse, + PkiIssuerReadUnifiedCrlResponse, + PkiIssuerResignCrlsRequest, + PkiIssuerResignCrlsResponse, + PkiIssuerSignIntermediateRequest, + PkiIssuerSignIntermediateResponse, + PkiIssuerSignRevocationListRequest, + PkiIssuerSignRevocationListResponse, + PkiIssuerSignSelfIssuedRequest, + PkiIssuerSignSelfIssuedResponse, + PkiIssuerSignVerbatimRequest, + PkiIssuerSignVerbatimResponse, + PkiIssuerSignVerbatimWithRoleRequest, + PkiIssuerSignVerbatimWithRoleResponse, + PkiIssuerSignWithRoleRequest, + PkiIssuerSignWithRoleResponse, + PkiIssuersGenerateIntermediateRequest, + PkiIssuersGenerateIntermediateResponse, + PkiIssuersGenerateRootRequest, + PkiIssuersGenerateRootResponse, + PkiIssuersImportBundleRequest, + PkiIssuersImportBundleResponse, + PkiIssuersImportCertRequest, + PkiIssuersImportCertResponse, + PkiListEabKeysResponse, + PkiListIssuersResponse, + PkiListKeysResponse, + PkiListUnifiedRevokedCertsResponse, + PkiReadAutoTidyConfigurationResponse, + PkiReadCaChainPemResponse, + PkiReadCaDerResponse, + PkiReadCaPemResponse, + PkiReadCertCaChainResponse, + PkiReadCertCrlResponse, + PkiReadCertDeltaCrlResponse, + PkiReadCertMetadataResponse, + PkiReadCertRawDerResponse, + PkiReadCertRawPemResponse, + PkiReadCertResponse, + PkiReadCertUnifiedCrlResponse, + PkiReadCertUnifiedDeltaCrlResponse, + PkiReadClusterConfigurationResponse, + PkiReadCrlConfigurationResponse, + PkiReadCrlDeltaPemResponse, + PkiReadCrlDeltaResponse, + PkiReadCrlDerResponse, + PkiReadCrlPemResponse, + PkiReadIssuerDerResponse, + PkiReadIssuerJsonResponse, + PkiReadIssuerPemResponse, + PkiReadIssuerResponse, + PkiReadIssuersConfigurationResponse, + PkiReadKeyResponse, + PkiReadKeysConfigurationResponse, + PkiReadRoleResponse, + PkiReadUrlsConfigurationResponse, + PkiReplaceRootRequest, + PkiReplaceRootResponse, + PkiRevokeIssuerResponse, + PkiRevokeRequest, + PkiRevokeResponse, + PkiRevokeWithKeyRequest, + PkiRevokeWithKeyResponse, + PkiRootSignIntermediateRequest, + PkiRootSignIntermediateResponse, + PkiRootSignSelfIssuedRequest, + PkiRootSignSelfIssuedResponse, + PkiRotateCrlResponse, + PkiRotateDeltaCrlResponse, + PkiRotateRootRequest, + PkiRotateRootResponse, + PkiSetSignedIntermediateRequest, + PkiSetSignedIntermediateResponse, + PkiSignVerbatimRequest, + PkiSignVerbatimResponse, + PkiSignVerbatimWithRoleRequest, + PkiSignVerbatimWithRoleResponse, + PkiSignWithRoleRequest, + PkiSignWithRoleResponse, + PkiTidyCancelResponse, + PkiTidyRequest, + PkiTidyStatusResponse, + PkiWriteAcmeAccountKidRequest, + PkiWriteAcmeAuthorizationAuthIdRequest, + PkiWriteAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteAcmeKeyIdRequest, + PkiWriteAcmeNewAccountRequest, + PkiWriteAcmeNewOrderRequest, + PkiWriteAcmeOrderOrderIdCertRequest, + PkiWriteAcmeOrderOrderIdFinalizeRequest, + PkiWriteAcmeOrderOrderIdRequest, + PkiWriteAcmeOrdersRequest, + PkiWriteAcmeRevokeCertRequest, + PkiWriteExternalPolicyAcmeAccountKidRequest, + PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest, + PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteExternalPolicyAcmeNewAccountRequest, + PkiWriteExternalPolicyAcmeNewOrderRequest, + PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest, + PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest, + PkiWriteExternalPolicyAcmeOrderOrderIdRequest, + PkiWriteExternalPolicyAcmeOrdersRequest, + PkiWriteExternalPolicyAcmeRevokeCertRequest, + PkiWriteExternalPolicyIssuePolicyRequest, + PkiWriteExternalPolicyIssuePolicyResponse, + PkiWriteExternalPolicyIssueRequest, + PkiWriteExternalPolicyIssueResponse, + PkiWriteExternalPolicyPolicyAcmeAccountKidRequest, + PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest, + PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteExternalPolicyPolicyAcmeNewAccountRequest, + PkiWriteExternalPolicyPolicyAcmeNewOrderRequest, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest, + PkiWriteExternalPolicyPolicyAcmeOrdersRequest, + PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest, + PkiWriteExternalPolicySignIntermediatePolicyRequest, + PkiWriteExternalPolicySignIntermediatePolicyResponse, + PkiWriteExternalPolicySignIntermediateRequest, + PkiWriteExternalPolicySignIntermediateResponse, + PkiWriteExternalPolicySignPolicyRequest, + PkiWriteExternalPolicySignPolicyResponse, + PkiWriteExternalPolicySignRequest, + PkiWriteExternalPolicySignResponse, + PkiWriteIssuerIssuerRefAcmeAccountKidRequest, + PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest, + PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteIssuerIssuerRefAcmeNewAccountRequest, + PkiWriteIssuerIssuerRefAcmeNewOrderRequest, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest, + PkiWriteIssuerIssuerRefAcmeOrdersRequest, + PkiWriteIssuerIssuerRefAcmeRevokeCertRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest, + PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest, + PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest, + PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse, + PkiWriteIssuerIssuerRefExternalPolicyIssueRequest, + PkiWriteIssuerIssuerRefExternalPolicyIssueResponse, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse, + PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest, + PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse, + PkiWriteIssuerIssuerRefExternalPolicySignRequest, + PkiWriteIssuerIssuerRefExternalPolicySignResponse, + PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest, + PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest, + PkiWriteIssuerRequest, + PkiWriteIssuerResponse, + PkiWriteKeyRequest, + PkiWriteKeyResponse, + PkiWriteRoleRequest, + PkiWriteRoleResponse, + PkiWriteRolesRoleAcmeAccountKidRequest, + PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest, + PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest, + PkiWriteRolesRoleAcmeNewAccountRequest, + PkiWriteRolesRoleAcmeNewOrderRequest, + PkiWriteRolesRoleAcmeOrderOrderIdCertRequest, + PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest, + PkiWriteRolesRoleAcmeOrderOrderIdRequest, + PkiWriteRolesRoleAcmeOrdersRequest, + PkiWriteRolesRoleAcmeRevokeCertRequest, + RabbitMqConfigureConnectionRequest, + RabbitMqConfigureLeaseRequest, + RabbitMqWriteRoleRequest, + SshConfigureCaRequest, + SshConfigureZeroAddressRequest, + SshGenerateCredentialsRequest, + SshIssueCertificateRequest, + SshListRolesByIpRequest, + SshSignCertificateRequest, + SshVerifyOtpRequest, + SshWriteRoleRequest, + StandardListResponse, + TerraformCloudConfigureRequest, + TerraformCloudWriteRoleRequest, + TotpCreateKeyRequest, + TotpValidateCodeRequest, + TransitConfigureCacheRequest, + TransitConfigureKeyRequest, + TransitConfigureKeysRequest, + TransitCreateKeyRequest, + TransitDecryptRequest, + TransitEncryptRequest, + TransitGenerateCmacRequest, + TransitGenerateCmacWithMacLengthRequest, + TransitGenerateCsrForKeyRequest, + TransitGenerateDataKeyRequest, + TransitGenerateHmacRequest, + TransitGenerateHmacWithAlgorithmRequest, + TransitGenerateRandomRequest, + TransitGenerateRandomWithBytesRequest, + TransitGenerateRandomWithSourceAndBytesRequest, + TransitGenerateRandomWithSourceRequest, + TransitHashRequest, + TransitHashWithAlgorithmRequest, + TransitImportKeyRequest, + TransitImportKeyVersionRequest, + TransitRestoreAndRenameKeyRequest, + TransitRestoreKeyRequest, + TransitRewrapRequest, + TransitRotateKeyRequest, + TransitSetCertificateForKeyRequest, + TransitSignRequest, + TransitSignWithAlgorithmRequest, + TransitTrimKeyRequest, + TransitVerifyRequest, + TransitVerifyWithAlgorithmRequest, +} from '../models/index'; +import { + AliCloudConfigureRequestFromJSON, + AliCloudConfigureRequestToJSON, + AliCloudWriteRoleRequestFromJSON, + AliCloudWriteRoleRequestToJSON, + AwsConfigureLeaseRequestFromJSON, + AwsConfigureLeaseRequestToJSON, + AwsConfigureRootIamCredentialsRequestFromJSON, + AwsConfigureRootIamCredentialsRequestToJSON, + AwsGenerateCredentialsWithParametersRequestFromJSON, + AwsGenerateCredentialsWithParametersRequestToJSON, + AwsGenerateStsCredentialsWithParametersRequestFromJSON, + AwsGenerateStsCredentialsWithParametersRequestToJSON, + AwsReadStaticCredsNameResponseFromJSON, + AwsReadStaticCredsNameResponseToJSON, + AwsReadStaticRolesNameResponseFromJSON, + AwsReadStaticRolesNameResponseToJSON, + AwsWriteRoleRequestFromJSON, + AwsWriteRoleRequestToJSON, + AwsWriteStaticRolesNameRequestFromJSON, + AwsWriteStaticRolesNameRequestToJSON, + AwsWriteStaticRolesNameResponseFromJSON, + AwsWriteStaticRolesNameResponseToJSON, + AzureConfigureRequestFromJSON, + AzureConfigureRequestToJSON, + AzureWriteRoleRequestFromJSON, + AzureWriteRoleRequestToJSON, + ConsulConfigureAccessRequestFromJSON, + ConsulConfigureAccessRequestToJSON, + ConsulWriteRoleRequestFromJSON, + ConsulWriteRoleRequestToJSON, + DatabaseConfigureConnectionRequestFromJSON, + DatabaseConfigureConnectionRequestToJSON, + DatabaseWriteRoleRequestFromJSON, + DatabaseWriteRoleRequestToJSON, + DatabaseWriteStaticRoleRequestFromJSON, + DatabaseWriteStaticRoleRequestToJSON, + GoogleCloudConfigureRequestFromJSON, + GoogleCloudConfigureRequestToJSON, + GoogleCloudGenerateRolesetKey3RequestFromJSON, + GoogleCloudGenerateRolesetKey3RequestToJSON, + GoogleCloudGenerateRolesetKeyRequestFromJSON, + GoogleCloudGenerateRolesetKeyRequestToJSON, + GoogleCloudGenerateStaticAccountKeyRequestFromJSON, + GoogleCloudGenerateStaticAccountKeyRequestToJSON, + GoogleCloudKmsConfigureKeyRequestFromJSON, + GoogleCloudKmsConfigureKeyRequestToJSON, + GoogleCloudKmsConfigureRequestFromJSON, + GoogleCloudKmsConfigureRequestToJSON, + GoogleCloudKmsDecryptRequestFromJSON, + GoogleCloudKmsDecryptRequestToJSON, + GoogleCloudKmsEncryptRequestFromJSON, + GoogleCloudKmsEncryptRequestToJSON, + GoogleCloudKmsReencryptRequestFromJSON, + GoogleCloudKmsReencryptRequestToJSON, + GoogleCloudKmsRegisterKeyRequestFromJSON, + GoogleCloudKmsRegisterKeyRequestToJSON, + GoogleCloudKmsSignRequestFromJSON, + GoogleCloudKmsSignRequestToJSON, + GoogleCloudKmsVerifyRequestFromJSON, + GoogleCloudKmsVerifyRequestToJSON, + GoogleCloudKmsWriteKeyRequestFromJSON, + GoogleCloudKmsWriteKeyRequestToJSON, + GoogleCloudWriteImpersonatedAccountRequestFromJSON, + GoogleCloudWriteImpersonatedAccountRequestToJSON, + GoogleCloudWriteRolesetRequestFromJSON, + GoogleCloudWriteRolesetRequestToJSON, + GoogleCloudWriteStaticAccountRequestFromJSON, + GoogleCloudWriteStaticAccountRequestToJSON, + KubernetesConfigureRequestFromJSON, + KubernetesConfigureRequestToJSON, + KubernetesGenerateCredentialsRequestFromJSON, + KubernetesGenerateCredentialsRequestToJSON, + KubernetesWriteRoleRequestFromJSON, + KubernetesWriteRoleRequestToJSON, + KvV2ConfigureRequestFromJSON, + KvV2ConfigureRequestToJSON, + KvV2DeleteVersionsRequestFromJSON, + KvV2DeleteVersionsRequestToJSON, + KvV2DestroyVersionsRequestFromJSON, + KvV2DestroyVersionsRequestToJSON, + KvV2ReadConfigurationResponseFromJSON, + KvV2ReadConfigurationResponseToJSON, + KvV2ReadMetadataResponseFromJSON, + KvV2ReadMetadataResponseToJSON, + KvV2ReadResponseFromJSON, + KvV2ReadResponseToJSON, + KvV2ReadSubkeysResponseFromJSON, + KvV2ReadSubkeysResponseToJSON, + KvV2UndeleteVersionsRequestFromJSON, + KvV2UndeleteVersionsRequestToJSON, + KvV2WriteMetadataRequestFromJSON, + KvV2WriteMetadataRequestToJSON, + KvV2WriteRequestFromJSON, + KvV2WriteRequestToJSON, + KvV2WriteResponseFromJSON, + KvV2WriteResponseToJSON, + LdapConfigureRequestFromJSON, + LdapConfigureRequestToJSON, + LdapLibraryCheckInRequestFromJSON, + LdapLibraryCheckInRequestToJSON, + LdapLibraryCheckOutRequestFromJSON, + LdapLibraryCheckOutRequestToJSON, + LdapLibraryConfigureRequestFromJSON, + LdapLibraryConfigureRequestToJSON, + LdapLibraryForceCheckInRequestFromJSON, + LdapLibraryForceCheckInRequestToJSON, + LdapRotateStaticRoleRequestFromJSON, + LdapRotateStaticRoleRequestToJSON, + LdapWriteDynamicRoleRequestFromJSON, + LdapWriteDynamicRoleRequestToJSON, + LdapWriteStaticRoleRequestFromJSON, + LdapWriteStaticRoleRequestToJSON, + MongoDbAtlasConfigureRequestFromJSON, + MongoDbAtlasConfigureRequestToJSON, + MongoDbAtlasWriteRoleRequestFromJSON, + MongoDbAtlasWriteRoleRequestToJSON, + NomadConfigureAccessRequestFromJSON, + NomadConfigureAccessRequestToJSON, + NomadConfigureLeaseRequestFromJSON, + NomadConfigureLeaseRequestToJSON, + NomadWriteRoleRequestFromJSON, + NomadWriteRoleRequestToJSON, + PkiConfigureAcmeRequestFromJSON, + PkiConfigureAcmeRequestToJSON, + PkiConfigureAutoTidyRequestFromJSON, + PkiConfigureAutoTidyRequestToJSON, + PkiConfigureAutoTidyResponseFromJSON, + PkiConfigureAutoTidyResponseToJSON, + PkiConfigureCaRequestFromJSON, + PkiConfigureCaRequestToJSON, + PkiConfigureCaResponseFromJSON, + PkiConfigureCaResponseToJSON, + PkiConfigureClusterRequestFromJSON, + PkiConfigureClusterRequestToJSON, + PkiConfigureClusterResponseFromJSON, + PkiConfigureClusterResponseToJSON, + PkiConfigureCmpRequestFromJSON, + PkiConfigureCmpRequestToJSON, + PkiConfigureCrlRequestFromJSON, + PkiConfigureCrlRequestToJSON, + PkiConfigureCrlResponseFromJSON, + PkiConfigureCrlResponseToJSON, + PkiConfigureEstRequestFromJSON, + PkiConfigureEstRequestToJSON, + PkiConfigureExternalPolicyRequestFromJSON, + PkiConfigureExternalPolicyRequestToJSON, + PkiConfigureExternalPolicyResponseFromJSON, + PkiConfigureExternalPolicyResponseToJSON, + PkiConfigureIssuersRequestFromJSON, + PkiConfigureIssuersRequestToJSON, + PkiConfigureIssuersResponseFromJSON, + PkiConfigureIssuersResponseToJSON, + PkiConfigureKeysRequestFromJSON, + PkiConfigureKeysRequestToJSON, + PkiConfigureKeysResponseFromJSON, + PkiConfigureKeysResponseToJSON, + PkiConfigureScepRequestFromJSON, + PkiConfigureScepRequestToJSON, + PkiConfigureUrlsRequestFromJSON, + PkiConfigureUrlsRequestToJSON, + PkiConfigureUrlsResponseFromJSON, + PkiConfigureUrlsResponseToJSON, + PkiCrossSignIntermediateRequestFromJSON, + PkiCrossSignIntermediateRequestToJSON, + PkiCrossSignIntermediateResponseFromJSON, + PkiCrossSignIntermediateResponseToJSON, + PkiGenerateEabKeyForIssuerAndRoleResponseFromJSON, + PkiGenerateEabKeyForIssuerAndRoleResponseToJSON, + PkiGenerateEabKeyForIssuerResponseFromJSON, + PkiGenerateEabKeyForIssuerResponseToJSON, + PkiGenerateEabKeyForRoleResponseFromJSON, + PkiGenerateEabKeyForRoleResponseToJSON, + PkiGenerateEabKeyResponseFromJSON, + PkiGenerateEabKeyResponseToJSON, + PkiGenerateExportedKeyRequestFromJSON, + PkiGenerateExportedKeyRequestToJSON, + PkiGenerateExportedKeyResponseFromJSON, + PkiGenerateExportedKeyResponseToJSON, + PkiGenerateIntermediateRequestFromJSON, + PkiGenerateIntermediateRequestToJSON, + PkiGenerateIntermediateResponseFromJSON, + PkiGenerateIntermediateResponseToJSON, + PkiGenerateInternalKeyRequestFromJSON, + PkiGenerateInternalKeyRequestToJSON, + PkiGenerateInternalKeyResponseFromJSON, + PkiGenerateInternalKeyResponseToJSON, + PkiGenerateKmsKeyRequestFromJSON, + PkiGenerateKmsKeyRequestToJSON, + PkiGenerateKmsKeyResponseFromJSON, + PkiGenerateKmsKeyResponseToJSON, + PkiGenerateRootRequestFromJSON, + PkiGenerateRootRequestToJSON, + PkiGenerateRootResponseFromJSON, + PkiGenerateRootResponseToJSON, + PkiImportKeyRequestFromJSON, + PkiImportKeyRequestToJSON, + PkiImportKeyResponseFromJSON, + PkiImportKeyResponseToJSON, + PkiIssueWithRoleRequestFromJSON, + PkiIssueWithRoleRequestToJSON, + PkiIssueWithRoleResponseFromJSON, + PkiIssueWithRoleResponseToJSON, + PkiIssuerIssueWithRoleRequestFromJSON, + PkiIssuerIssueWithRoleRequestToJSON, + PkiIssuerIssueWithRoleResponseFromJSON, + PkiIssuerIssueWithRoleResponseToJSON, + PkiIssuerReadCrlDeltaDerResponseFromJSON, + PkiIssuerReadCrlDeltaDerResponseToJSON, + PkiIssuerReadCrlDeltaPemResponseFromJSON, + PkiIssuerReadCrlDeltaPemResponseToJSON, + PkiIssuerReadCrlDeltaResponseFromJSON, + PkiIssuerReadCrlDeltaResponseToJSON, + PkiIssuerReadCrlDerResponseFromJSON, + PkiIssuerReadCrlDerResponseToJSON, + PkiIssuerReadCrlPemResponseFromJSON, + PkiIssuerReadCrlPemResponseToJSON, + PkiIssuerReadCrlResponseFromJSON, + PkiIssuerReadCrlResponseToJSON, + PkiIssuerReadUnifiedCrlDeltaDerResponseFromJSON, + PkiIssuerReadUnifiedCrlDeltaDerResponseToJSON, + PkiIssuerReadUnifiedCrlDeltaPemResponseFromJSON, + PkiIssuerReadUnifiedCrlDeltaPemResponseToJSON, + PkiIssuerReadUnifiedCrlDeltaResponseFromJSON, + PkiIssuerReadUnifiedCrlDeltaResponseToJSON, + PkiIssuerReadUnifiedCrlDerResponseFromJSON, + PkiIssuerReadUnifiedCrlDerResponseToJSON, + PkiIssuerReadUnifiedCrlPemResponseFromJSON, + PkiIssuerReadUnifiedCrlPemResponseToJSON, + PkiIssuerReadUnifiedCrlResponseFromJSON, + PkiIssuerReadUnifiedCrlResponseToJSON, + PkiIssuerResignCrlsRequestFromJSON, + PkiIssuerResignCrlsRequestToJSON, + PkiIssuerResignCrlsResponseFromJSON, + PkiIssuerResignCrlsResponseToJSON, + PkiIssuerSignIntermediateRequestFromJSON, + PkiIssuerSignIntermediateRequestToJSON, + PkiIssuerSignIntermediateResponseFromJSON, + PkiIssuerSignIntermediateResponseToJSON, + PkiIssuerSignRevocationListRequestFromJSON, + PkiIssuerSignRevocationListRequestToJSON, + PkiIssuerSignRevocationListResponseFromJSON, + PkiIssuerSignRevocationListResponseToJSON, + PkiIssuerSignSelfIssuedRequestFromJSON, + PkiIssuerSignSelfIssuedRequestToJSON, + PkiIssuerSignSelfIssuedResponseFromJSON, + PkiIssuerSignSelfIssuedResponseToJSON, + PkiIssuerSignVerbatimRequestFromJSON, + PkiIssuerSignVerbatimRequestToJSON, + PkiIssuerSignVerbatimResponseFromJSON, + PkiIssuerSignVerbatimResponseToJSON, + PkiIssuerSignVerbatimWithRoleRequestFromJSON, + PkiIssuerSignVerbatimWithRoleRequestToJSON, + PkiIssuerSignVerbatimWithRoleResponseFromJSON, + PkiIssuerSignVerbatimWithRoleResponseToJSON, + PkiIssuerSignWithRoleRequestFromJSON, + PkiIssuerSignWithRoleRequestToJSON, + PkiIssuerSignWithRoleResponseFromJSON, + PkiIssuerSignWithRoleResponseToJSON, + PkiIssuersGenerateIntermediateRequestFromJSON, + PkiIssuersGenerateIntermediateRequestToJSON, + PkiIssuersGenerateIntermediateResponseFromJSON, + PkiIssuersGenerateIntermediateResponseToJSON, + PkiIssuersGenerateRootRequestFromJSON, + PkiIssuersGenerateRootRequestToJSON, + PkiIssuersGenerateRootResponseFromJSON, + PkiIssuersGenerateRootResponseToJSON, + PkiIssuersImportBundleRequestFromJSON, + PkiIssuersImportBundleRequestToJSON, + PkiIssuersImportBundleResponseFromJSON, + PkiIssuersImportBundleResponseToJSON, + PkiIssuersImportCertRequestFromJSON, + PkiIssuersImportCertRequestToJSON, + PkiIssuersImportCertResponseFromJSON, + PkiIssuersImportCertResponseToJSON, + PkiListEabKeysResponseFromJSON, + PkiListEabKeysResponseToJSON, + PkiListIssuersResponseFromJSON, + PkiListIssuersResponseToJSON, + PkiListKeysResponseFromJSON, + PkiListKeysResponseToJSON, + PkiListUnifiedRevokedCertsResponseFromJSON, + PkiListUnifiedRevokedCertsResponseToJSON, + PkiReadAutoTidyConfigurationResponseFromJSON, + PkiReadAutoTidyConfigurationResponseToJSON, + PkiReadCaChainPemResponseFromJSON, + PkiReadCaChainPemResponseToJSON, + PkiReadCaDerResponseFromJSON, + PkiReadCaDerResponseToJSON, + PkiReadCaPemResponseFromJSON, + PkiReadCaPemResponseToJSON, + PkiReadCertCaChainResponseFromJSON, + PkiReadCertCaChainResponseToJSON, + PkiReadCertCrlResponseFromJSON, + PkiReadCertCrlResponseToJSON, + PkiReadCertDeltaCrlResponseFromJSON, + PkiReadCertDeltaCrlResponseToJSON, + PkiReadCertMetadataResponseFromJSON, + PkiReadCertMetadataResponseToJSON, + PkiReadCertRawDerResponseFromJSON, + PkiReadCertRawDerResponseToJSON, + PkiReadCertRawPemResponseFromJSON, + PkiReadCertRawPemResponseToJSON, + PkiReadCertResponseFromJSON, + PkiReadCertResponseToJSON, + PkiReadCertUnifiedCrlResponseFromJSON, + PkiReadCertUnifiedCrlResponseToJSON, + PkiReadCertUnifiedDeltaCrlResponseFromJSON, + PkiReadCertUnifiedDeltaCrlResponseToJSON, + PkiReadClusterConfigurationResponseFromJSON, + PkiReadClusterConfigurationResponseToJSON, + PkiReadCrlConfigurationResponseFromJSON, + PkiReadCrlConfigurationResponseToJSON, + PkiReadCrlDeltaPemResponseFromJSON, + PkiReadCrlDeltaPemResponseToJSON, + PkiReadCrlDeltaResponseFromJSON, + PkiReadCrlDeltaResponseToJSON, + PkiReadCrlDerResponseFromJSON, + PkiReadCrlDerResponseToJSON, + PkiReadCrlPemResponseFromJSON, + PkiReadCrlPemResponseToJSON, + PkiReadIssuerDerResponseFromJSON, + PkiReadIssuerDerResponseToJSON, + PkiReadIssuerJsonResponseFromJSON, + PkiReadIssuerJsonResponseToJSON, + PkiReadIssuerPemResponseFromJSON, + PkiReadIssuerPemResponseToJSON, + PkiReadIssuerResponseFromJSON, + PkiReadIssuerResponseToJSON, + PkiReadIssuersConfigurationResponseFromJSON, + PkiReadIssuersConfigurationResponseToJSON, + PkiReadKeyResponseFromJSON, + PkiReadKeyResponseToJSON, + PkiReadKeysConfigurationResponseFromJSON, + PkiReadKeysConfigurationResponseToJSON, + PkiReadRoleResponseFromJSON, + PkiReadRoleResponseToJSON, + PkiReadUrlsConfigurationResponseFromJSON, + PkiReadUrlsConfigurationResponseToJSON, + PkiReplaceRootRequestFromJSON, + PkiReplaceRootRequestToJSON, + PkiReplaceRootResponseFromJSON, + PkiReplaceRootResponseToJSON, + PkiRevokeIssuerResponseFromJSON, + PkiRevokeIssuerResponseToJSON, + PkiRevokeRequestFromJSON, + PkiRevokeRequestToJSON, + PkiRevokeResponseFromJSON, + PkiRevokeResponseToJSON, + PkiRevokeWithKeyRequestFromJSON, + PkiRevokeWithKeyRequestToJSON, + PkiRevokeWithKeyResponseFromJSON, + PkiRevokeWithKeyResponseToJSON, + PkiRootSignIntermediateRequestFromJSON, + PkiRootSignIntermediateRequestToJSON, + PkiRootSignIntermediateResponseFromJSON, + PkiRootSignIntermediateResponseToJSON, + PkiRootSignSelfIssuedRequestFromJSON, + PkiRootSignSelfIssuedRequestToJSON, + PkiRootSignSelfIssuedResponseFromJSON, + PkiRootSignSelfIssuedResponseToJSON, + PkiRotateCrlResponseFromJSON, + PkiRotateCrlResponseToJSON, + PkiRotateDeltaCrlResponseFromJSON, + PkiRotateDeltaCrlResponseToJSON, + PkiRotateRootRequestFromJSON, + PkiRotateRootRequestToJSON, + PkiRotateRootResponseFromJSON, + PkiRotateRootResponseToJSON, + PkiSetSignedIntermediateRequestFromJSON, + PkiSetSignedIntermediateRequestToJSON, + PkiSetSignedIntermediateResponseFromJSON, + PkiSetSignedIntermediateResponseToJSON, + PkiSignVerbatimRequestFromJSON, + PkiSignVerbatimRequestToJSON, + PkiSignVerbatimResponseFromJSON, + PkiSignVerbatimResponseToJSON, + PkiSignVerbatimWithRoleRequestFromJSON, + PkiSignVerbatimWithRoleRequestToJSON, + PkiSignVerbatimWithRoleResponseFromJSON, + PkiSignVerbatimWithRoleResponseToJSON, + PkiSignWithRoleRequestFromJSON, + PkiSignWithRoleRequestToJSON, + PkiSignWithRoleResponseFromJSON, + PkiSignWithRoleResponseToJSON, + PkiTidyCancelResponseFromJSON, + PkiTidyCancelResponseToJSON, + PkiTidyRequestFromJSON, + PkiTidyRequestToJSON, + PkiTidyStatusResponseFromJSON, + PkiTidyStatusResponseToJSON, + PkiWriteAcmeAccountKidRequestFromJSON, + PkiWriteAcmeAccountKidRequestToJSON, + PkiWriteAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteAcmeKeyIdRequestFromJSON, + PkiWriteAcmeKeyIdRequestToJSON, + PkiWriteAcmeNewAccountRequestFromJSON, + PkiWriteAcmeNewAccountRequestToJSON, + PkiWriteAcmeNewOrderRequestFromJSON, + PkiWriteAcmeNewOrderRequestToJSON, + PkiWriteAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteAcmeOrderOrderIdCertRequestToJSON, + PkiWriteAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteAcmeOrderOrderIdRequestFromJSON, + PkiWriteAcmeOrderOrderIdRequestToJSON, + PkiWriteAcmeOrdersRequestFromJSON, + PkiWriteAcmeOrdersRequestToJSON, + PkiWriteAcmeRevokeCertRequestFromJSON, + PkiWriteAcmeRevokeCertRequestToJSON, + PkiWriteExternalPolicyAcmeAccountKidRequestFromJSON, + PkiWriteExternalPolicyAcmeAccountKidRequestToJSON, + PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteExternalPolicyAcmeNewAccountRequestFromJSON, + PkiWriteExternalPolicyAcmeNewAccountRequestToJSON, + PkiWriteExternalPolicyAcmeNewOrderRequestFromJSON, + PkiWriteExternalPolicyAcmeNewOrderRequestToJSON, + PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestToJSON, + PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteExternalPolicyAcmeOrderOrderIdRequestFromJSON, + PkiWriteExternalPolicyAcmeOrderOrderIdRequestToJSON, + PkiWriteExternalPolicyAcmeOrdersRequestFromJSON, + PkiWriteExternalPolicyAcmeOrdersRequestToJSON, + PkiWriteExternalPolicyAcmeRevokeCertRequestFromJSON, + PkiWriteExternalPolicyAcmeRevokeCertRequestToJSON, + PkiWriteExternalPolicyIssuePolicyRequestFromJSON, + PkiWriteExternalPolicyIssuePolicyRequestToJSON, + PkiWriteExternalPolicyIssuePolicyResponseFromJSON, + PkiWriteExternalPolicyIssuePolicyResponseToJSON, + PkiWriteExternalPolicyIssueRequestFromJSON, + PkiWriteExternalPolicyIssueRequestToJSON, + PkiWriteExternalPolicyIssueResponseFromJSON, + PkiWriteExternalPolicyIssueResponseToJSON, + PkiWriteExternalPolicyPolicyAcmeAccountKidRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeAccountKidRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeNewAccountRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeNewAccountRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeNewOrderRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeNewOrderRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeOrdersRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeOrdersRequestToJSON, + PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestFromJSON, + PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestToJSON, + PkiWriteExternalPolicySignIntermediatePolicyRequestFromJSON, + PkiWriteExternalPolicySignIntermediatePolicyRequestToJSON, + PkiWriteExternalPolicySignIntermediatePolicyResponseFromJSON, + PkiWriteExternalPolicySignIntermediatePolicyResponseToJSON, + PkiWriteExternalPolicySignIntermediateRequestFromJSON, + PkiWriteExternalPolicySignIntermediateRequestToJSON, + PkiWriteExternalPolicySignIntermediateResponseFromJSON, + PkiWriteExternalPolicySignIntermediateResponseToJSON, + PkiWriteExternalPolicySignPolicyRequestFromJSON, + PkiWriteExternalPolicySignPolicyRequestToJSON, + PkiWriteExternalPolicySignPolicyResponseFromJSON, + PkiWriteExternalPolicySignPolicyResponseToJSON, + PkiWriteExternalPolicySignRequestFromJSON, + PkiWriteExternalPolicySignRequestToJSON, + PkiWriteExternalPolicySignResponseFromJSON, + PkiWriteExternalPolicySignResponseToJSON, + PkiWriteIssuerIssuerRefAcmeAccountKidRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeAccountKidRequestToJSON, + PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteIssuerIssuerRefAcmeNewAccountRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeNewAccountRequestToJSON, + PkiWriteIssuerIssuerRefAcmeNewOrderRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeNewOrderRequestToJSON, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestToJSON, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestToJSON, + PkiWriteIssuerIssuerRefAcmeOrdersRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeOrdersRequestToJSON, + PkiWriteIssuerIssuerRefAcmeRevokeCertRequestFromJSON, + PkiWriteIssuerIssuerRefAcmeRevokeCertRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseToJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssueResponseFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyIssueResponseToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignRequestFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignRequestToJSON, + PkiWriteIssuerIssuerRefExternalPolicySignResponseFromJSON, + PkiWriteIssuerIssuerRefExternalPolicySignResponseToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestToJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestFromJSON, + PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestToJSON, + PkiWriteIssuerRequestFromJSON, + PkiWriteIssuerRequestToJSON, + PkiWriteIssuerResponseFromJSON, + PkiWriteIssuerResponseToJSON, + PkiWriteKeyRequestFromJSON, + PkiWriteKeyRequestToJSON, + PkiWriteKeyResponseFromJSON, + PkiWriteKeyResponseToJSON, + PkiWriteRoleRequestFromJSON, + PkiWriteRoleRequestToJSON, + PkiWriteRoleResponseFromJSON, + PkiWriteRoleResponseToJSON, + PkiWriteRolesRoleAcmeAccountKidRequestFromJSON, + PkiWriteRolesRoleAcmeAccountKidRequestToJSON, + PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestFromJSON, + PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestToJSON, + PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSON, + PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSON, + PkiWriteRolesRoleAcmeNewAccountRequestFromJSON, + PkiWriteRolesRoleAcmeNewAccountRequestToJSON, + PkiWriteRolesRoleAcmeNewOrderRequestFromJSON, + PkiWriteRolesRoleAcmeNewOrderRequestToJSON, + PkiWriteRolesRoleAcmeOrderOrderIdCertRequestFromJSON, + PkiWriteRolesRoleAcmeOrderOrderIdCertRequestToJSON, + PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSON, + PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestToJSON, + PkiWriteRolesRoleAcmeOrderOrderIdRequestFromJSON, + PkiWriteRolesRoleAcmeOrderOrderIdRequestToJSON, + PkiWriteRolesRoleAcmeOrdersRequestFromJSON, + PkiWriteRolesRoleAcmeOrdersRequestToJSON, + PkiWriteRolesRoleAcmeRevokeCertRequestFromJSON, + PkiWriteRolesRoleAcmeRevokeCertRequestToJSON, + RabbitMqConfigureConnectionRequestFromJSON, + RabbitMqConfigureConnectionRequestToJSON, + RabbitMqConfigureLeaseRequestFromJSON, + RabbitMqConfigureLeaseRequestToJSON, + RabbitMqWriteRoleRequestFromJSON, + RabbitMqWriteRoleRequestToJSON, + SshConfigureCaRequestFromJSON, + SshConfigureCaRequestToJSON, + SshConfigureZeroAddressRequestFromJSON, + SshConfigureZeroAddressRequestToJSON, + SshGenerateCredentialsRequestFromJSON, + SshGenerateCredentialsRequestToJSON, + SshIssueCertificateRequestFromJSON, + SshIssueCertificateRequestToJSON, + SshListRolesByIpRequestFromJSON, + SshListRolesByIpRequestToJSON, + SshSignCertificateRequestFromJSON, + SshSignCertificateRequestToJSON, + SshVerifyOtpRequestFromJSON, + SshVerifyOtpRequestToJSON, + SshWriteRoleRequestFromJSON, + SshWriteRoleRequestToJSON, + StandardListResponseFromJSON, + StandardListResponseToJSON, + TerraformCloudConfigureRequestFromJSON, + TerraformCloudConfigureRequestToJSON, + TerraformCloudWriteRoleRequestFromJSON, + TerraformCloudWriteRoleRequestToJSON, + TotpCreateKeyRequestFromJSON, + TotpCreateKeyRequestToJSON, + TotpValidateCodeRequestFromJSON, + TotpValidateCodeRequestToJSON, + TransitConfigureCacheRequestFromJSON, + TransitConfigureCacheRequestToJSON, + TransitConfigureKeyRequestFromJSON, + TransitConfigureKeyRequestToJSON, + TransitConfigureKeysRequestFromJSON, + TransitConfigureKeysRequestToJSON, + TransitCreateKeyRequestFromJSON, + TransitCreateKeyRequestToJSON, + TransitDecryptRequestFromJSON, + TransitDecryptRequestToJSON, + TransitEncryptRequestFromJSON, + TransitEncryptRequestToJSON, + TransitGenerateCmacRequestFromJSON, + TransitGenerateCmacRequestToJSON, + TransitGenerateCmacWithMacLengthRequestFromJSON, + TransitGenerateCmacWithMacLengthRequestToJSON, + TransitGenerateCsrForKeyRequestFromJSON, + TransitGenerateCsrForKeyRequestToJSON, + TransitGenerateDataKeyRequestFromJSON, + TransitGenerateDataKeyRequestToJSON, + TransitGenerateHmacRequestFromJSON, + TransitGenerateHmacRequestToJSON, + TransitGenerateHmacWithAlgorithmRequestFromJSON, + TransitGenerateHmacWithAlgorithmRequestToJSON, + TransitGenerateRandomRequestFromJSON, + TransitGenerateRandomRequestToJSON, + TransitGenerateRandomWithBytesRequestFromJSON, + TransitGenerateRandomWithBytesRequestToJSON, + TransitGenerateRandomWithSourceAndBytesRequestFromJSON, + TransitGenerateRandomWithSourceAndBytesRequestToJSON, + TransitGenerateRandomWithSourceRequestFromJSON, + TransitGenerateRandomWithSourceRequestToJSON, + TransitHashRequestFromJSON, + TransitHashRequestToJSON, + TransitHashWithAlgorithmRequestFromJSON, + TransitHashWithAlgorithmRequestToJSON, + TransitImportKeyRequestFromJSON, + TransitImportKeyRequestToJSON, + TransitImportKeyVersionRequestFromJSON, + TransitImportKeyVersionRequestToJSON, + TransitRestoreAndRenameKeyRequestFromJSON, + TransitRestoreAndRenameKeyRequestToJSON, + TransitRestoreKeyRequestFromJSON, + TransitRestoreKeyRequestToJSON, + TransitRewrapRequestFromJSON, + TransitRewrapRequestToJSON, + TransitRotateKeyRequestFromJSON, + TransitRotateKeyRequestToJSON, + TransitSetCertificateForKeyRequestFromJSON, + TransitSetCertificateForKeyRequestToJSON, + TransitSignRequestFromJSON, + TransitSignRequestToJSON, + TransitSignWithAlgorithmRequestFromJSON, + TransitSignWithAlgorithmRequestToJSON, + TransitTrimKeyRequestFromJSON, + TransitTrimKeyRequestToJSON, + TransitVerifyRequestFromJSON, + TransitVerifyRequestToJSON, + TransitVerifyWithAlgorithmRequestFromJSON, + TransitVerifyWithAlgorithmRequestToJSON, +} from '../models/index'; + +export interface SecretsApiAliCloudConfigureOperationRequest { + alicloudMountPath: string; + aliCloudConfigureRequest: AliCloudConfigureRequest; +} + +export interface SecretsApiAliCloudDeleteConfigurationRequest { + alicloudMountPath: string; +} + +export interface SecretsApiAliCloudDeleteRoleRequest { + name: string; + alicloudMountPath: string; +} + +export interface SecretsApiAliCloudGenerateCredentialsRequest { + name: string; + alicloudMountPath: string; +} + +export interface SecretsApiAliCloudListRolesRequest { + alicloudMountPath: string; + list: AliCloudListRolesListEnum; +} + +export interface SecretsApiAliCloudReadConfigurationRequest { + alicloudMountPath: string; +} + +export interface SecretsApiAliCloudReadRoleRequest { + name: string; + alicloudMountPath: string; +} + +export interface SecretsApiAliCloudWriteRoleOperationRequest { + name: string; + alicloudMountPath: string; + aliCloudWriteRoleRequest: AliCloudWriteRoleRequest; +} + +export interface SecretsApiAwsConfigureLeaseOperationRequest { + awsMountPath: string; + awsConfigureLeaseRequest: AwsConfigureLeaseRequest; +} + +export interface SecretsApiAwsConfigureRootIamCredentialsOperationRequest { + awsMountPath: string; + awsConfigureRootIamCredentialsRequest: AwsConfigureRootIamCredentialsRequest; +} + +export interface SecretsApiAwsDeleteRoleRequest { + name: string; + awsMountPath: string; +} + +export interface SecretsApiAwsDeleteStaticRolesNameRequest { + name: string; + awsMountPath: string; +} + +export interface SecretsApiAwsGenerateCredentialsRequest { + name: string; + awsMountPath: string; + roleArn?: string; + roleSessionName?: string; + ttl?: string; +} + +export interface SecretsApiAwsGenerateCredentialsWithParametersOperationRequest { + name: string; + awsMountPath: string; + awsGenerateCredentialsWithParametersRequest: AwsGenerateCredentialsWithParametersRequest; +} + +export interface SecretsApiAwsGenerateStsCredentialsRequest { + name: string; + awsMountPath: string; + roleArn?: string; + roleSessionName?: string; + ttl?: string; +} + +export interface SecretsApiAwsGenerateStsCredentialsWithParametersOperationRequest { + name: string; + awsMountPath: string; + awsGenerateStsCredentialsWithParametersRequest: AwsGenerateStsCredentialsWithParametersRequest; +} + +export interface SecretsApiAwsListRolesRequest { + awsMountPath: string; + list: AwsListRolesListEnum; +} + +export interface SecretsApiAwsReadLeaseConfigurationRequest { + awsMountPath: string; +} + +export interface SecretsApiAwsReadRoleRequest { + name: string; + awsMountPath: string; +} + +export interface SecretsApiAwsReadRootIamCredentialsConfigurationRequest { + awsMountPath: string; +} + +export interface SecretsApiAwsReadStaticCredsNameRequest { + name: string; + awsMountPath: string; +} + +export interface SecretsApiAwsReadStaticRolesNameRequest { + name: string; + awsMountPath: string; +} + +export interface SecretsApiAwsRotateRootIamCredentialsRequest { + awsMountPath: string; +} + +export interface SecretsApiAwsWriteRoleOperationRequest { + name: string; + awsMountPath: string; + awsWriteRoleRequest: AwsWriteRoleRequest; +} + +export interface SecretsApiAwsWriteStaticRolesNameOperationRequest { + name: string; + awsMountPath: string; + awsWriteStaticRolesNameRequest: AwsWriteStaticRolesNameRequest; +} + +export interface SecretsApiAzureConfigureOperationRequest { + azureMountPath: string; + azureConfigureRequest: AzureConfigureRequest; +} + +export interface SecretsApiAzureDeleteConfigurationRequest { + azureMountPath: string; +} + +export interface SecretsApiAzureDeleteRoleRequest { + name: string; + azureMountPath: string; +} + +export interface SecretsApiAzureListRolesRequest { + azureMountPath: string; + list: AzureListRolesListEnum; +} + +export interface SecretsApiAzureReadConfigurationRequest { + azureMountPath: string; +} + +export interface SecretsApiAzureReadRoleRequest { + name: string; + azureMountPath: string; +} + +export interface SecretsApiAzureRequestServicePrincipalCredentialsRequest { + role: string; + azureMountPath: string; +} + +export interface SecretsApiAzureRotateRootRequest { + azureMountPath: string; +} + +export interface SecretsApiAzureWriteRoleOperationRequest { + name: string; + azureMountPath: string; + azureWriteRoleRequest: AzureWriteRoleRequest; +} + +export interface SecretsApiConsulConfigureAccessOperationRequest { + consulMountPath: string; + consulConfigureAccessRequest: ConsulConfigureAccessRequest; +} + +export interface SecretsApiConsulDeleteRoleRequest { + name: string; + consulMountPath: string; +} + +export interface SecretsApiConsulGenerateCredentialsRequest { + role: string; + consulMountPath: string; +} + +export interface SecretsApiConsulListRolesRequest { + consulMountPath: string; + list: ConsulListRolesListEnum; +} + +export interface SecretsApiConsulReadAccessConfigurationRequest { + consulMountPath: string; +} + +export interface SecretsApiConsulReadRoleRequest { + name: string; + consulMountPath: string; +} + +export interface SecretsApiConsulWriteRoleOperationRequest { + name: string; + consulMountPath: string; + consulWriteRoleRequest: ConsulWriteRoleRequest; +} + +export interface SecretsApiCubbyholeDeleteRequest { + path: string; +} + +export interface SecretsApiCubbyholeListRequest { + path: string; + list: CubbyholeListListEnum; +} + +export interface SecretsApiCubbyholeReadRequest { + path: string; +} + +export interface SecretsApiCubbyholeWriteRequest { + path: string; + requestBody: { [key: string]: any }; +} + +export interface SecretsApiDatabaseConfigureConnectionOperationRequest { + name: string; + databaseMountPath: string; + databaseConfigureConnectionRequest: DatabaseConfigureConnectionRequest; +} + +export interface SecretsApiDatabaseDeleteConnectionConfigurationRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseDeleteRoleRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseDeleteStaticRoleRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseGenerateCredentialsRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseListConnectionsRequest { + databaseMountPath: string; + list: DatabaseListConnectionsListEnum; +} + +export interface SecretsApiDatabaseListRolesRequest { + databaseMountPath: string; + list: DatabaseListRolesListEnum; +} + +export interface SecretsApiDatabaseListStaticRolesRequest { + databaseMountPath: string; + list: DatabaseListStaticRolesListEnum; +} + +export interface SecretsApiDatabaseReadConnectionConfigurationRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseReadRoleRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseReadStaticRoleRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseReadStaticRoleCredentialsRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseReloadPluginRequest { + pluginName: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseResetConnectionRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseRotateRootCredentialsRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseRotateStaticRoleCredentialsRequest { + name: string; + databaseMountPath: string; +} + +export interface SecretsApiDatabaseWriteRoleOperationRequest { + name: string; + databaseMountPath: string; + databaseWriteRoleRequest: DatabaseWriteRoleRequest; +} + +export interface SecretsApiDatabaseWriteStaticRoleOperationRequest { + name: string; + databaseMountPath: string; + databaseWriteStaticRoleRequest: DatabaseWriteStaticRoleRequest; +} + +export interface SecretsApiGoogleCloudConfigureOperationRequest { + gcpMountPath: string; + googleCloudConfigureRequest: GoogleCloudConfigureRequest; +} + +export interface SecretsApiGoogleCloudDeleteImpersonatedAccountRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudDeleteRolesetRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudDeleteStaticAccountRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateImpersonatedAccountAccessTokenRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateImpersonatedAccountAccessToken2Request { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateRolesetAccessTokenRequest { + roleset: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateRolesetAccessToken2Request { + roleset: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateRolesetAccessToken3Request { + roleset: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateRolesetAccessToken4Request { + roleset: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateRolesetKeyOperationRequest { + roleset: string; + gcpMountPath: string; + googleCloudGenerateRolesetKeyRequest: GoogleCloudGenerateRolesetKeyRequest; +} + +export interface SecretsApiGoogleCloudGenerateRolesetKey2Request { + roleset: string; + gcpMountPath: string; + keyAlgorithm?: string; + keyType?: string; + ttl?: string; +} + +export interface SecretsApiGoogleCloudGenerateRolesetKey3OperationRequest { + roleset: string; + gcpMountPath: string; + googleCloudGenerateRolesetKey3Request: GoogleCloudGenerateRolesetKey3Request; +} + +export interface SecretsApiGoogleCloudGenerateRolesetKey4Request { + roleset: string; + gcpMountPath: string; + keyAlgorithm?: string; + keyType?: string; + ttl?: string; +} + +export interface SecretsApiGoogleCloudGenerateStaticAccountAccessTokenRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateStaticAccountAccessToken2Request { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudGenerateStaticAccountKeyOperationRequest { + name: string; + gcpMountPath: string; + googleCloudGenerateStaticAccountKeyRequest: GoogleCloudGenerateStaticAccountKeyRequest; +} + +export interface SecretsApiGoogleCloudGenerateStaticAccountKey2Request { + name: string; + gcpMountPath: string; + keyAlgorithm?: string; + keyType?: string; + ttl?: string; +} + +export interface SecretsApiGoogleCloudKmsConfigureOperationRequest { + gcpkmsMountPath: string; + googleCloudKmsConfigureRequest: GoogleCloudKmsConfigureRequest; +} + +export interface SecretsApiGoogleCloudKmsConfigureKeyOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsConfigureKeyRequest: GoogleCloudKmsConfigureKeyRequest; +} + +export interface SecretsApiGoogleCloudKmsDecryptOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsDecryptRequest: GoogleCloudKmsDecryptRequest; +} + +export interface SecretsApiGoogleCloudKmsDeleteConfigurationRequest { + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsDeleteKeyRequest { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsDeregisterKeyRequest { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsDeregisterKey2Request { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsEncryptOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsEncryptRequest: GoogleCloudKmsEncryptRequest; +} + +export interface SecretsApiGoogleCloudKmsListKeysRequest { + gcpkmsMountPath: string; + list: GoogleCloudKmsListKeysListEnum; +} + +export interface SecretsApiGoogleCloudKmsReadConfigurationRequest { + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsReadKeyRequest { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsReadKeyConfigurationRequest { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsReencryptOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsReencryptRequest: GoogleCloudKmsReencryptRequest; +} + +export interface SecretsApiGoogleCloudKmsRegisterKeyOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsRegisterKeyRequest: GoogleCloudKmsRegisterKeyRequest; +} + +export interface SecretsApiGoogleCloudKmsRetrievePublicKeyRequest { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsRotateKeyRequest { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsSignOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsSignRequest: GoogleCloudKmsSignRequest; +} + +export interface SecretsApiGoogleCloudKmsTrimKeyVersionsRequest { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsTrimKeyVersions2Request { + key: string; + gcpkmsMountPath: string; +} + +export interface SecretsApiGoogleCloudKmsVerifyOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsVerifyRequest: GoogleCloudKmsVerifyRequest; +} + +export interface SecretsApiGoogleCloudKmsWriteKeyOperationRequest { + key: string; + gcpkmsMountPath: string; + googleCloudKmsWriteKeyRequest: GoogleCloudKmsWriteKeyRequest; +} + +export interface SecretsApiGoogleCloudListImpersonatedAccountsRequest { + gcpMountPath: string; + list: GoogleCloudListImpersonatedAccountsListEnum; +} + +export interface SecretsApiGoogleCloudListImpersonatedAccounts2Request { + gcpMountPath: string; + list: GoogleCloudListImpersonatedAccounts2ListEnum; +} + +export interface SecretsApiGoogleCloudListRolesetsRequest { + gcpMountPath: string; + list: GoogleCloudListRolesetsListEnum; +} + +export interface SecretsApiGoogleCloudListRolesets2Request { + gcpMountPath: string; + list: GoogleCloudListRolesets2ListEnum; +} + +export interface SecretsApiGoogleCloudListStaticAccountsRequest { + gcpMountPath: string; + list: GoogleCloudListStaticAccountsListEnum; +} + +export interface SecretsApiGoogleCloudListStaticAccounts2Request { + gcpMountPath: string; + list: GoogleCloudListStaticAccounts2ListEnum; +} + +export interface SecretsApiGoogleCloudReadConfigurationRequest { + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudReadImpersonatedAccountRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudReadRolesetRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudReadStaticAccountRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudRotateRolesetRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudRotateRolesetKeyRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudRotateRootCredentialsRequest { + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudRotateStaticAccountKeyRequest { + name: string; + gcpMountPath: string; +} + +export interface SecretsApiGoogleCloudWriteImpersonatedAccountOperationRequest { + name: string; + gcpMountPath: string; + googleCloudWriteImpersonatedAccountRequest: GoogleCloudWriteImpersonatedAccountRequest; +} + +export interface SecretsApiGoogleCloudWriteRolesetOperationRequest { + name: string; + gcpMountPath: string; + googleCloudWriteRolesetRequest: GoogleCloudWriteRolesetRequest; +} + +export interface SecretsApiGoogleCloudWriteStaticAccountOperationRequest { + name: string; + gcpMountPath: string; + googleCloudWriteStaticAccountRequest: GoogleCloudWriteStaticAccountRequest; +} + +export interface SecretsApiKubernetesCheckConfigurationRequest { + kubernetesMountPath: string; +} + +export interface SecretsApiKubernetesConfigureOperationRequest { + kubernetesMountPath: string; + kubernetesConfigureRequest: KubernetesConfigureRequest; +} + +export interface SecretsApiKubernetesDeleteConfigurationRequest { + kubernetesMountPath: string; +} + +export interface SecretsApiKubernetesDeleteRoleRequest { + name: string; + kubernetesMountPath: string; +} + +export interface SecretsApiKubernetesGenerateCredentialsOperationRequest { + name: string; + kubernetesMountPath: string; + kubernetesGenerateCredentialsRequest: KubernetesGenerateCredentialsRequest; +} + +export interface SecretsApiKubernetesListRolesRequest { + kubernetesMountPath: string; + list: KubernetesListRolesListEnum; +} + +export interface SecretsApiKubernetesReadConfigurationRequest { + kubernetesMountPath: string; +} + +export interface SecretsApiKubernetesReadRoleRequest { + name: string; + kubernetesMountPath: string; +} + +export interface SecretsApiKubernetesWriteRoleOperationRequest { + name: string; + kubernetesMountPath: string; + kubernetesWriteRoleRequest: KubernetesWriteRoleRequest; +} + +export interface SecretsApiKvV1DeleteRequest { + path: string; + kvV1MountPath: string; +} + +export interface SecretsApiKvV1ListRequest { + path: string; + kvV1MountPath: string; + list: KvV1ListListEnum; +} + +export interface SecretsApiKvV1ReadRequest { + path: string; + kvV1MountPath: string; +} + +export interface SecretsApiKvV1WriteRequest { + path: string; + kvV1MountPath: string; + requestBody: { [key: string]: any }; +} + +export interface SecretsApiKvV2ConfigureOperationRequest { + kvV2MountPath: string; + kvV2ConfigureRequest: KvV2ConfigureRequest; +} + +export interface SecretsApiKvV2DeleteRequest { + path: string; + kvV2MountPath: string; +} + +export interface SecretsApiKvV2DeleteMetadataAndAllVersionsRequest { + path: string; + kvV2MountPath: string; +} + +export interface SecretsApiKvV2DeleteVersionsOperationRequest { + path: string; + kvV2MountPath: string; + kvV2DeleteVersionsRequest: KvV2DeleteVersionsRequest; +} + +export interface SecretsApiKvV2DestroyVersionsOperationRequest { + path: string; + kvV2MountPath: string; + kvV2DestroyVersionsRequest: KvV2DestroyVersionsRequest; +} + +export interface SecretsApiKvV2ListRequest { + path: string; + kvV2MountPath: string; + list: KvV2ListListEnum; +} + +export interface SecretsApiKvV2ReadRequest { + path: string; + kvV2MountPath: string; +} + +export interface SecretsApiKvV2ReadConfigurationRequest { + kvV2MountPath: string; +} + +export interface SecretsApiKvV2ReadMetadataRequest { + path: string; + kvV2MountPath: string; +} + +export interface SecretsApiKvV2ReadSubkeysRequest { + path: string; + kvV2MountPath: string; +} + +export interface SecretsApiKvV2UndeleteVersionsOperationRequest { + path: string; + kvV2MountPath: string; + kvV2UndeleteVersionsRequest: KvV2UndeleteVersionsRequest; +} + +export interface SecretsApiKvV2WriteOperationRequest { + path: string; + kvV2MountPath: string; + kvV2WriteRequest: KvV2WriteRequest; +} + +export interface SecretsApiKvV2WriteMetadataOperationRequest { + path: string; + kvV2MountPath: string; + kvV2WriteMetadataRequest: KvV2WriteMetadataRequest; +} + +export interface SecretsApiLdapConfigureOperationRequest { + ldapMountPath: string; + ldapConfigureRequest: LdapConfigureRequest; +} + +export interface SecretsApiLdapDeleteConfigurationRequest { + ldapMountPath: string; +} + +export interface SecretsApiLdapDeleteDynamicRoleRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapDeleteStaticRoleRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapLibraryCheckInOperationRequest { + name: string; + ldapMountPath: string; + ldapLibraryCheckInRequest: LdapLibraryCheckInRequest; +} + +export interface SecretsApiLdapLibraryCheckOutOperationRequest { + name: string; + ldapMountPath: string; + ldapLibraryCheckOutRequest: LdapLibraryCheckOutRequest; +} + +export interface SecretsApiLdapLibraryCheckStatusRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapLibraryConfigureOperationRequest { + name: string; + ldapMountPath: string; + ldapLibraryConfigureRequest: LdapLibraryConfigureRequest; +} + +export interface SecretsApiLdapLibraryDeleteRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapLibraryForceCheckInOperationRequest { + name: string; + ldapMountPath: string; + ldapLibraryForceCheckInRequest: LdapLibraryForceCheckInRequest; +} + +export interface SecretsApiLdapLibraryListRequest { + ldapMountPath: string; + list: LdapLibraryListListEnum; +} + +export interface SecretsApiLdapLibraryListLibraryPathRequest { + path: string; + ldapMountPath: string; + list: LdapLibraryListLibraryPathListEnum; +} + +export interface SecretsApiLdapLibraryListLibraryPath0Request { + path: string; + ldapMountPath: string; + list: LdapLibraryListLibraryPath0ListEnum; +} + +export interface SecretsApiLdapLibraryReadRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapListDynamicRolesRequest { + ldapMountPath: string; + list: LdapListDynamicRolesListEnum; +} + +export interface SecretsApiLdapListRolePathRequest { + path: string; + ldapMountPath: string; + list: LdapListRolePathListEnum; +} + +export interface SecretsApiLdapListRolePath0Request { + path: string; + ldapMountPath: string; + list: LdapListRolePath0ListEnum; +} + +export interface SecretsApiLdapListStaticRolePathRequest { + path: string; + ldapMountPath: string; + list: LdapListStaticRolePathListEnum; +} + +export interface SecretsApiLdapListStaticRolePath0Request { + path: string; + ldapMountPath: string; + list: LdapListStaticRolePath0ListEnum; +} + +export interface SecretsApiLdapListStaticRolesRequest { + ldapMountPath: string; + list: LdapListStaticRolesListEnum; +} + +export interface SecretsApiLdapReadConfigurationRequest { + ldapMountPath: string; +} + +export interface SecretsApiLdapReadDynamicRoleRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapReadStaticRoleRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapRequestDynamicRoleCredentialsRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapRequestStaticRoleCredentialsRequest { + name: string; + ldapMountPath: string; +} + +export interface SecretsApiLdapRotateRootCredentialsRequest { + ldapMountPath: string; +} + +export interface SecretsApiLdapRotateStaticRoleOperationRequest { + name: string; + ldapMountPath: string; + ldapRotateStaticRoleRequest: LdapRotateStaticRoleRequest; +} + +export interface SecretsApiLdapWriteDynamicRoleOperationRequest { + name: string; + ldapMountPath: string; + ldapWriteDynamicRoleRequest: LdapWriteDynamicRoleRequest; +} + +export interface SecretsApiLdapWriteStaticRoleOperationRequest { + name: string; + ldapMountPath: string; + ldapWriteStaticRoleRequest: LdapWriteStaticRoleRequest; +} + +export interface SecretsApiMongoDbAtlasConfigureOperationRequest { + mongodbatlasMountPath: string; + mongoDbAtlasConfigureRequest: MongoDbAtlasConfigureRequest; +} + +export interface SecretsApiMongoDbAtlasDeleteRoleRequest { + name: string; + mongodbatlasMountPath: string; +} + +export interface SecretsApiMongoDbAtlasGenerateCredentialsRequest { + name: string; + mongodbatlasMountPath: string; +} + +export interface SecretsApiMongoDbAtlasGenerateCredentials2Request { + name: string; + mongodbatlasMountPath: string; +} + +export interface SecretsApiMongoDbAtlasListRolesRequest { + mongodbatlasMountPath: string; + list: MongoDbAtlasListRolesListEnum; +} + +export interface SecretsApiMongoDbAtlasReadConfigurationRequest { + mongodbatlasMountPath: string; +} + +export interface SecretsApiMongoDbAtlasReadRoleRequest { + name: string; + mongodbatlasMountPath: string; +} + +export interface SecretsApiMongoDbAtlasWriteRoleOperationRequest { + name: string; + mongodbatlasMountPath: string; + mongoDbAtlasWriteRoleRequest: MongoDbAtlasWriteRoleRequest; +} + +export interface SecretsApiNomadConfigureAccessOperationRequest { + nomadMountPath: string; + nomadConfigureAccessRequest: NomadConfigureAccessRequest; +} + +export interface SecretsApiNomadConfigureLeaseOperationRequest { + nomadMountPath: string; + nomadConfigureLeaseRequest: NomadConfigureLeaseRequest; +} + +export interface SecretsApiNomadDeleteAccessConfigurationRequest { + nomadMountPath: string; +} + +export interface SecretsApiNomadDeleteLeaseConfigurationRequest { + nomadMountPath: string; +} + +export interface SecretsApiNomadDeleteRoleRequest { + name: string; + nomadMountPath: string; +} + +export interface SecretsApiNomadGenerateCredentialsRequest { + name: string; + nomadMountPath: string; +} + +export interface SecretsApiNomadListRolesRequest { + nomadMountPath: string; + list: NomadListRolesListEnum; +} + +export interface SecretsApiNomadReadAccessConfigurationRequest { + nomadMountPath: string; +} + +export interface SecretsApiNomadReadLeaseConfigurationRequest { + nomadMountPath: string; +} + +export interface SecretsApiNomadReadRoleRequest { + name: string; + nomadMountPath: string; +} + +export interface SecretsApiNomadWriteRoleOperationRequest { + name: string; + nomadMountPath: string; + nomadWriteRoleRequest: NomadWriteRoleRequest; +} + +export interface SecretsApiPkiConfigureAcmeOperationRequest { + pkiMountPath: string; + pkiConfigureAcmeRequest: PkiConfigureAcmeRequest; +} + +export interface SecretsApiPkiConfigureAutoTidyOperationRequest { + pkiMountPath: string; + pkiConfigureAutoTidyRequest: PkiConfigureAutoTidyRequest; +} + +export interface SecretsApiPkiConfigureCaOperationRequest { + pkiMountPath: string; + pkiConfigureCaRequest: PkiConfigureCaRequest; +} + +export interface SecretsApiPkiConfigureClusterOperationRequest { + pkiMountPath: string; + pkiConfigureClusterRequest: PkiConfigureClusterRequest; +} + +export interface SecretsApiPkiConfigureCmpOperationRequest { + pkiMountPath: string; + pkiConfigureCmpRequest: PkiConfigureCmpRequest; +} + +export interface SecretsApiPkiConfigureCrlOperationRequest { + pkiMountPath: string; + pkiConfigureCrlRequest: PkiConfigureCrlRequest; +} + +export interface SecretsApiPkiConfigureEstOperationRequest { + pkiMountPath: string; + pkiConfigureEstRequest: PkiConfigureEstRequest; +} + +export interface SecretsApiPkiConfigureExternalPolicyRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiConfigureExternalPolicy0Request { + pkiMountPath: string; + pkiConfigureExternalPolicyRequest: PkiConfigureExternalPolicyRequest; +} + +export interface SecretsApiPkiConfigureIssuersOperationRequest { + pkiMountPath: string; + pkiConfigureIssuersRequest: PkiConfigureIssuersRequest; +} + +export interface SecretsApiPkiConfigureKeysOperationRequest { + pkiMountPath: string; + pkiConfigureKeysRequest: PkiConfigureKeysRequest; +} + +export interface SecretsApiPkiConfigureScepOperationRequest { + pkiMountPath: string; + pkiConfigureScepRequest: PkiConfigureScepRequest; +} + +export interface SecretsApiPkiConfigureUrlsOperationRequest { + pkiMountPath: string; + pkiConfigureUrlsRequest: PkiConfigureUrlsRequest; +} + +export interface SecretsApiPkiCrossSignIntermediateOperationRequest { + pkiMountPath: string; + pkiCrossSignIntermediateRequest: PkiCrossSignIntermediateRequest; +} + +export interface SecretsApiPkiDeleteEabKeyRequest { + keyId: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiDeleteIssuerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiDeleteKeyRequest { + keyRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiDeleteRoleRequest { + name: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiDeleteRootRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKeyRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKeyForIssuerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKeyForIssuerAndRoleRequest { + issuerRef: string; + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKeyForIssuer0Request { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKeyForIssuer1Request { + issuerRef: string; + policy: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKeyForRoleRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKey0Request { + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateEabKey1Request { + policy: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiGenerateExportedKeyOperationRequest { + pkiMountPath: string; + pkiGenerateExportedKeyRequest: PkiGenerateExportedKeyRequest; +} + +export interface SecretsApiPkiGenerateIntermediateOperationRequest { + exported: PkiGenerateIntermediateExportedEnum; + pkiMountPath: string; + pkiGenerateIntermediateRequest: PkiGenerateIntermediateRequest; +} + +export interface SecretsApiPkiGenerateInternalKeyOperationRequest { + pkiMountPath: string; + pkiGenerateInternalKeyRequest: PkiGenerateInternalKeyRequest; +} + +export interface SecretsApiPkiGenerateKmsKeyOperationRequest { + pkiMountPath: string; + pkiGenerateKmsKeyRequest: PkiGenerateKmsKeyRequest; +} + +export interface SecretsApiPkiGenerateRootOperationRequest { + exported: PkiGenerateRootExportedEnum; + pkiMountPath: string; + pkiGenerateRootRequest: PkiGenerateRootRequest; +} + +export interface SecretsApiPkiImportKeyOperationRequest { + pkiMountPath: string; + pkiImportKeyRequest: PkiImportKeyRequest; +} + +export interface SecretsApiPkiIssueWithRoleOperationRequest { + role: string; + pkiMountPath: string; + pkiIssueWithRoleRequest: PkiIssueWithRoleRequest; +} + +export interface SecretsApiPkiIssuerIssueWithRoleOperationRequest { + issuerRef: string; + role: string; + pkiMountPath: string; + pkiIssuerIssueWithRoleRequest: PkiIssuerIssueWithRoleRequest; +} + +export interface SecretsApiPkiIssuerReadCrlRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadCrlDeltaRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadCrlDeltaDerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadCrlDeltaPemRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadCrlDerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadCrlPemRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadUnifiedCrlRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadUnifiedCrlDeltaRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadUnifiedCrlDeltaDerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadUnifiedCrlDeltaPemRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadUnifiedCrlDerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerReadUnifiedCrlPemRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiIssuerResignCrlsOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiIssuerResignCrlsRequest: PkiIssuerResignCrlsRequest; +} + +export interface SecretsApiPkiIssuerSignIntermediateOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiIssuerSignIntermediateRequest: PkiIssuerSignIntermediateRequest; +} + +export interface SecretsApiPkiIssuerSignRevocationListOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiIssuerSignRevocationListRequest: PkiIssuerSignRevocationListRequest; +} + +export interface SecretsApiPkiIssuerSignSelfIssuedOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiIssuerSignSelfIssuedRequest: PkiIssuerSignSelfIssuedRequest; +} + +export interface SecretsApiPkiIssuerSignVerbatimOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiIssuerSignVerbatimRequest: PkiIssuerSignVerbatimRequest; +} + +export interface SecretsApiPkiIssuerSignVerbatimWithRoleOperationRequest { + issuerRef: string; + role: string; + pkiMountPath: string; + pkiIssuerSignVerbatimWithRoleRequest: PkiIssuerSignVerbatimWithRoleRequest; +} + +export interface SecretsApiPkiIssuerSignWithRoleOperationRequest { + issuerRef: string; + role: string; + pkiMountPath: string; + pkiIssuerSignWithRoleRequest: PkiIssuerSignWithRoleRequest; +} + +export interface SecretsApiPkiIssuersGenerateIntermediateOperationRequest { + exported: PkiIssuersGenerateIntermediateExportedEnum; + pkiMountPath: string; + pkiIssuersGenerateIntermediateRequest: PkiIssuersGenerateIntermediateRequest; +} + +export interface SecretsApiPkiIssuersGenerateRootOperationRequest { + exported: PkiIssuersGenerateRootExportedEnum; + pkiMountPath: string; + pkiIssuersGenerateRootRequest: PkiIssuersGenerateRootRequest; +} + +export interface SecretsApiPkiIssuersImportBundleOperationRequest { + pkiMountPath: string; + pkiIssuersImportBundleRequest: PkiIssuersImportBundleRequest; +} + +export interface SecretsApiPkiIssuersImportCertOperationRequest { + pkiMountPath: string; + pkiIssuersImportCertRequest: PkiIssuersImportCertRequest; +} + +export interface SecretsApiPkiListAcmeAccountKeysRequest { + pkiMountPath: string; + list: PkiListAcmeAccountKeysListEnum; +} + +export interface SecretsApiPkiListCertMetadataRequest { + pkiMountPath: string; + list: PkiListCertMetadataListEnum; +} + +export interface SecretsApiPkiListCertsRequest { + pkiMountPath: string; + list: PkiListCertsListEnum; +} + +export interface SecretsApiPkiListCertsRevocationQueueRequest { + pkiMountPath: string; + list: PkiListCertsRevocationQueueListEnum; +} + +export interface SecretsApiPkiListEabKeysRequest { + pkiMountPath: string; + list: PkiListEabKeysListEnum; +} + +export interface SecretsApiPkiListIssuersRequest { + pkiMountPath: string; + list: PkiListIssuersListEnum; +} + +export interface SecretsApiPkiListKeysRequest { + pkiMountPath: string; + list: PkiListKeysListEnum; +} + +export interface SecretsApiPkiListRevokedCertsRequest { + pkiMountPath: string; + list: PkiListRevokedCertsListEnum; +} + +export interface SecretsApiPkiListRolesRequest { + pkiMountPath: string; + list: PkiListRolesListEnum; +} + +export interface SecretsApiPkiListUnifiedRevokedCertsRequest { + pkiMountPath: string; + list: PkiListUnifiedRevokedCertsListEnum; +} + +export interface SecretsApiPkiQueryOcspRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiQueryOcspWithGetReqRequest { + req: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiQueryUnifiedOcspRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiQueryUnifiedOcspWithGetReqRequest { + req: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadAcmeConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadAcmeDirectoryRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadAcmeKeyIdRequest { + keyid: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadAcmeNewNonceRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadAutoTidyConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCaChainPemRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCaDerRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCaPemRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertRequest { + serial: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertCaChainRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertCrlRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertDeltaCrlRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertMetadataRequest { + serial: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertRawDerRequest { + serial: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertRawPemRequest { + serial: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertUnifiedCrlRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCertUnifiedDeltaCrlRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadClusterConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCmpv2ConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCrlConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCrlDeltaRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCrlDeltaPemRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCrlDerRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadCrlPemRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadEstCacertsRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadEstConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadExternalPolicyAcmeDirectoryRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadExternalPolicyAcmeNewNonceRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadExternalPolicyPolicyAcmeDirectoryRequest { + policy: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadExternalPolicyPolicyAcmeNewNonceRequest { + policy: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerDerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefAcmeDirectoryRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefAcmeNewNonceRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefExternalPolicyAcmeDirectoryRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefExternalPolicyAcmeNewNonceRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectoryRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonceRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefRolesRoleAcmeDirectoryRequest { + issuerRef: string; + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerIssuerRefRolesRoleAcmeNewNonceRequest { + issuerRef: string; + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerJsonRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuerPemRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadIssuersConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadKeyRequest { + keyRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadKeysConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadRoleRequest { + name: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadRolesRoleAcmeDirectoryRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadRolesRoleAcmeNewNonceRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadRolesRoleEstCacertsRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadRolesRoleScepRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiReadScepRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadScepConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadUnifiedCrlDeltaRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadUnifiedCrlDeltaPemRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadUnifiedCrlDerRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadUnifiedCrlPemRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReadUrlsConfigurationRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiReplaceRootOperationRequest { + pkiMountPath: string; + pkiReplaceRootRequest: PkiReplaceRootRequest; +} + +export interface SecretsApiPkiRevokeOperationRequest { + pkiMountPath: string; + pkiRevokeRequest: PkiRevokeRequest; +} + +export interface SecretsApiPkiRevokeIssuerRequest { + issuerRef: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiRevokeWithKeyOperationRequest { + pkiMountPath: string; + pkiRevokeWithKeyRequest: PkiRevokeWithKeyRequest; +} + +export interface SecretsApiPkiRootSignIntermediateOperationRequest { + pkiMountPath: string; + pkiRootSignIntermediateRequest: PkiRootSignIntermediateRequest; +} + +export interface SecretsApiPkiRootSignSelfIssuedOperationRequest { + pkiMountPath: string; + pkiRootSignSelfIssuedRequest: PkiRootSignSelfIssuedRequest; +} + +export interface SecretsApiPkiRotateCrlRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiRotateDeltaCrlRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiRotateRootOperationRequest { + exported: PkiRotateRootExportedEnum; + pkiMountPath: string; + pkiRotateRootRequest: PkiRotateRootRequest; +} + +export interface SecretsApiPkiSetSignedIntermediateOperationRequest { + pkiMountPath: string; + pkiSetSignedIntermediateRequest: PkiSetSignedIntermediateRequest; +} + +export interface SecretsApiPkiSignVerbatimOperationRequest { + pkiMountPath: string; + pkiSignVerbatimRequest: PkiSignVerbatimRequest; +} + +export interface SecretsApiPkiSignVerbatimWithRoleOperationRequest { + role: string; + pkiMountPath: string; + pkiSignVerbatimWithRoleRequest: PkiSignVerbatimWithRoleRequest; +} + +export interface SecretsApiPkiSignWithRoleOperationRequest { + role: string; + pkiMountPath: string; + pkiSignWithRoleRequest: PkiSignWithRoleRequest; +} + +export interface SecretsApiPkiTidyOperationRequest { + pkiMountPath: string; + pkiTidyRequest: PkiTidyRequest; +} + +export interface SecretsApiPkiTidyCancelRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiTidyStatusRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteAcmeAccountKidOperationRequest { + kid: string; + pkiMountPath: string; + pkiWriteAcmeAccountKidRequest: PkiWriteAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteAcmeAuthorizationAuthIdOperationRequest { + authId: string; + pkiMountPath: string; + pkiWriteAcmeAuthorizationAuthIdRequest: PkiWriteAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + pkiMountPath: string; + pkiWriteAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteAcmeKeyIdOperationRequest { + keyid: string; + pkiMountPath: string; + pkiWriteAcmeKeyIdRequest: PkiWriteAcmeKeyIdRequest; +} + +export interface SecretsApiPkiWriteAcmeNewAccountOperationRequest { + pkiMountPath: string; + pkiWriteAcmeNewAccountRequest: PkiWriteAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteAcmeNewOrderOperationRequest { + pkiMountPath: string; + pkiWriteAcmeNewOrderRequest: PkiWriteAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteAcmeOrderOrderIdOperationRequest { + orderId: string; + pkiMountPath: string; + pkiWriteAcmeOrderOrderIdRequest: PkiWriteAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteAcmeOrderOrderIdCertOperationRequest { + orderId: string; + pkiMountPath: string; + pkiWriteAcmeOrderOrderIdCertRequest: PkiWriteAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteAcmeOrderOrderIdFinalizeOperationRequest { + orderId: string; + pkiMountPath: string; + pkiWriteAcmeOrderOrderIdFinalizeRequest: PkiWriteAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteAcmeOrdersOperationRequest { + pkiMountPath: string; + pkiWriteAcmeOrdersRequest: PkiWriteAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteAcmeRevokeCertOperationRequest { + pkiMountPath: string; + pkiWriteAcmeRevokeCertRequest: PkiWriteAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteCmpRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteEstSimpleenrollRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteEstSimplereenrollRequest { + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeAccountKidOperationRequest { + kid: string; + pkiMountPath: string; + pkiWriteExternalPolicyAcmeAccountKidRequest: PkiWriteExternalPolicyAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeAuthorizationAuthIdOperationRequest { + authId: string; + pkiMountPath: string; + pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest: PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + pkiMountPath: string; + pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeNewAccountOperationRequest { + pkiMountPath: string; + pkiWriteExternalPolicyAcmeNewAccountRequest: PkiWriteExternalPolicyAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeNewOrderOperationRequest { + pkiMountPath: string; + pkiWriteExternalPolicyAcmeNewOrderRequest: PkiWriteExternalPolicyAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeOrderOrderIdOperationRequest { + orderId: string; + pkiMountPath: string; + pkiWriteExternalPolicyAcmeOrderOrderIdRequest: PkiWriteExternalPolicyAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeOrderOrderIdCertOperationRequest { + orderId: string; + pkiMountPath: string; + pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest: PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeOrderOrderIdFinalizeOperationRequest { + orderId: string; + pkiMountPath: string; + pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeOrdersOperationRequest { + pkiMountPath: string; + pkiWriteExternalPolicyAcmeOrdersRequest: PkiWriteExternalPolicyAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyAcmeRevokeCertOperationRequest { + pkiMountPath: string; + pkiWriteExternalPolicyAcmeRevokeCertRequest: PkiWriteExternalPolicyAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyIssueOperationRequest { + pkiMountPath: string; + pkiWriteExternalPolicyIssueRequest: PkiWriteExternalPolicyIssueRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyIssuePolicyOperationRequest { + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyIssuePolicyRequest: PkiWriteExternalPolicyIssuePolicyRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeAccountKidOperationRequest { + kid: string; + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeAccountKidRequest: PkiWriteExternalPolicyPolicyAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdOperationRequest { + authId: string; + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest: PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeNewAccountOperationRequest { + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeNewAccountRequest: PkiWriteExternalPolicyPolicyAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeNewOrderOperationRequest { + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeNewOrderRequest: PkiWriteExternalPolicyPolicyAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeOrderOrderIdOperationRequest { + orderId: string; + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertOperationRequest { + orderId: string; + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeOperationRequest { + orderId: string; + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeOrdersOperationRequest { + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeOrdersRequest: PkiWriteExternalPolicyPolicyAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteExternalPolicyPolicyAcmeRevokeCertOperationRequest { + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest: PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteExternalPolicySignOperationRequest { + pkiMountPath: string; + pkiWriteExternalPolicySignRequest: PkiWriteExternalPolicySignRequest; +} + +export interface SecretsApiPkiWriteExternalPolicySignIntermediateOperationRequest { + pkiMountPath: string; + pkiWriteExternalPolicySignIntermediateRequest: PkiWriteExternalPolicySignIntermediateRequest; +} + +export interface SecretsApiPkiWriteExternalPolicySignIntermediatePolicyOperationRequest { + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicySignIntermediatePolicyRequest: PkiWriteExternalPolicySignIntermediatePolicyRequest; +} + +export interface SecretsApiPkiWriteExternalPolicySignPolicyOperationRequest { + policy: string; + pkiMountPath: string; + pkiWriteExternalPolicySignPolicyRequest: PkiWriteExternalPolicySignPolicyRequest; +} + +export interface SecretsApiPkiWriteIssuerOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerRequest: PkiWriteIssuerRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeAccountKidOperationRequest { + issuerRef: string; + kid: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeAccountKidRequest: PkiWriteIssuerIssuerRefAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdOperationRequest { + authId: string; + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeNewAccountOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeNewAccountRequest: PkiWriteIssuerIssuerRefAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeNewOrderOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeNewOrderRequest: PkiWriteIssuerIssuerRefAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeOrderOrderIdOperationRequest { + issuerRef: string; + orderId: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeOrderOrderIdCertOperationRequest { + issuerRef: string; + orderId: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeOperationRequest { + issuerRef: string; + orderId: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeOrdersOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeOrdersRequest: PkiWriteIssuerIssuerRefAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefAcmeRevokeCertOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidOperationRequest { + issuerRef: string; + kid: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdOperationRequest { + authId: string; + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdOperationRequest { + issuerRef: string; + orderId: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertOperationRequest { + issuerRef: string; + orderId: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeOperationRequest { + issuerRef: string; + orderId: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyIssueOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyIssueRequest: PkiWriteIssuerIssuerRefExternalPolicyIssueRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyIssuePolicyOperationRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidOperationRequest { + issuerRef: string; + kid: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdOperationRequest { + authId: string; + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountOperationRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderOperationRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdOperationRequest { + issuerRef: string; + orderId: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertOperationRequest { + issuerRef: string; + orderId: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeOperationRequest { + issuerRef: string; + orderId: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersOperationRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertOperationRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicySignRequest: PkiWriteIssuerIssuerRefExternalPolicySignRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignIntermediateOperationRequest { + issuerRef: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest: PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyOperationRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest: PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignPolicyOperationRequest { + issuerRef: string; + policy: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest: PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidOperationRequest { + issuerRef: string; + kid: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdOperationRequest { + authId: string; + issuerRef: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + issuerRef: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountOperationRequest { + issuerRef: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderOperationRequest { + issuerRef: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdOperationRequest { + issuerRef: string; + orderId: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertOperationRequest { + issuerRef: string; + orderId: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeOperationRequest { + issuerRef: string; + orderId: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrdersOperationRequest { + issuerRef: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertOperationRequest { + issuerRef: string; + role: string; + pkiMountPath: string; + pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteKeyOperationRequest { + keyRef: string; + pkiMountPath: string; + pkiWriteKeyRequest: PkiWriteKeyRequest; +} + +export interface SecretsApiPkiWriteRoleOperationRequest { + name: string; + pkiMountPath: string; + pkiWriteRoleRequest: PkiWriteRoleRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeAccountKidOperationRequest { + kid: string; + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeAccountKidRequest: PkiWriteRolesRoleAcmeAccountKidRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeAuthorizationAuthIdOperationRequest { + authId: string; + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest: PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeOperationRequest { + authId: string; + challengeType: string; + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeNewAccountOperationRequest { + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeNewAccountRequest: PkiWriteRolesRoleAcmeNewAccountRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeNewOrderOperationRequest { + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeNewOrderRequest: PkiWriteRolesRoleAcmeNewOrderRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeOrderOrderIdOperationRequest { + orderId: string; + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeOrderOrderIdRequest: PkiWriteRolesRoleAcmeOrderOrderIdRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeOrderOrderIdCertOperationRequest { + orderId: string; + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeOrderOrderIdCertRequest: PkiWriteRolesRoleAcmeOrderOrderIdCertRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeOrderOrderIdFinalizeOperationRequest { + orderId: string; + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest: PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeOrdersOperationRequest { + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeOrdersRequest: PkiWriteRolesRoleAcmeOrdersRequest; +} + +export interface SecretsApiPkiWriteRolesRoleAcmeRevokeCertOperationRequest { + role: string; + pkiMountPath: string; + pkiWriteRolesRoleAcmeRevokeCertRequest: PkiWriteRolesRoleAcmeRevokeCertRequest; +} + +export interface SecretsApiPkiWriteRolesRoleCmpRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteRolesRoleEstSimpleenrollRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteRolesRoleEstSimplereenrollRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteRolesRoleScepRequest { + role: string; + pkiMountPath: string; +} + +export interface SecretsApiPkiWriteScepRequest { + pkiMountPath: string; +} + +export interface SecretsApiRabbitMqConfigureConnectionOperationRequest { + rabbitmqMountPath: string; + rabbitMqConfigureConnectionRequest: RabbitMqConfigureConnectionRequest; +} + +export interface SecretsApiRabbitMqConfigureLeaseOperationRequest { + rabbitmqMountPath: string; + rabbitMqConfigureLeaseRequest: RabbitMqConfigureLeaseRequest; +} + +export interface SecretsApiRabbitMqDeleteRoleRequest { + name: string; + rabbitmqMountPath: string; +} + +export interface SecretsApiRabbitMqListRolesRequest { + rabbitmqMountPath: string; + list: RabbitMqListRolesListEnum; +} + +export interface SecretsApiRabbitMqReadLeaseConfigurationRequest { + rabbitmqMountPath: string; +} + +export interface SecretsApiRabbitMqReadRoleRequest { + name: string; + rabbitmqMountPath: string; +} + +export interface SecretsApiRabbitMqRequestCredentialsRequest { + name: string; + rabbitmqMountPath: string; +} + +export interface SecretsApiRabbitMqWriteRoleOperationRequest { + name: string; + rabbitmqMountPath: string; + rabbitMqWriteRoleRequest: RabbitMqWriteRoleRequest; +} + +export interface SecretsApiSshConfigureCaOperationRequest { + sshMountPath: string; + sshConfigureCaRequest: SshConfigureCaRequest; +} + +export interface SecretsApiSshConfigureZeroAddressOperationRequest { + sshMountPath: string; + sshConfigureZeroAddressRequest: SshConfigureZeroAddressRequest; +} + +export interface SecretsApiSshDeleteCaConfigurationRequest { + sshMountPath: string; +} + +export interface SecretsApiSshDeleteRoleRequest { + role: string; + sshMountPath: string; +} + +export interface SecretsApiSshDeleteZeroAddressConfigurationRequest { + sshMountPath: string; +} + +export interface SecretsApiSshGenerateCredentialsOperationRequest { + role: string; + sshMountPath: string; + sshGenerateCredentialsRequest: SshGenerateCredentialsRequest; +} + +export interface SecretsApiSshIssueCertificateOperationRequest { + role: string; + sshMountPath: string; + sshIssueCertificateRequest: SshIssueCertificateRequest; +} + +export interface SecretsApiSshListRolesRequest { + sshMountPath: string; + list: SshListRolesListEnum; +} + +export interface SecretsApiSshListRolesByIpOperationRequest { + sshMountPath: string; + sshListRolesByIpRequest: SshListRolesByIpRequest; +} + +export interface SecretsApiSshReadCaConfigurationRequest { + sshMountPath: string; +} + +export interface SecretsApiSshReadPublicKeyRequest { + sshMountPath: string; +} + +export interface SecretsApiSshReadRoleRequest { + role: string; + sshMountPath: string; +} + +export interface SecretsApiSshReadZeroAddressConfigurationRequest { + sshMountPath: string; +} + +export interface SecretsApiSshSignCertificateOperationRequest { + role: string; + sshMountPath: string; + sshSignCertificateRequest: SshSignCertificateRequest; +} + +export interface SecretsApiSshTidyDynamicHostKeysRequest { + sshMountPath: string; +} + +export interface SecretsApiSshVerifyOtpOperationRequest { + sshMountPath: string; + sshVerifyOtpRequest: SshVerifyOtpRequest; +} + +export interface SecretsApiSshWriteRoleOperationRequest { + role: string; + sshMountPath: string; + sshWriteRoleRequest: SshWriteRoleRequest; +} + +export interface SecretsApiTerraformCloudConfigureOperationRequest { + terraformMountPath: string; + terraformCloudConfigureRequest: TerraformCloudConfigureRequest; +} + +export interface SecretsApiTerraformCloudDeleteConfigurationRequest { + terraformMountPath: string; +} + +export interface SecretsApiTerraformCloudDeleteRoleRequest { + name: string; + terraformMountPath: string; +} + +export interface SecretsApiTerraformCloudGenerateCredentialsRequest { + name: string; + terraformMountPath: string; +} + +export interface SecretsApiTerraformCloudGenerateCredentials2Request { + name: string; + terraformMountPath: string; +} + +export interface SecretsApiTerraformCloudListRolesRequest { + terraformMountPath: string; + list: TerraformCloudListRolesListEnum; +} + +export interface SecretsApiTerraformCloudReadConfigurationRequest { + terraformMountPath: string; +} + +export interface SecretsApiTerraformCloudReadRoleRequest { + name: string; + terraformMountPath: string; +} + +export interface SecretsApiTerraformCloudRotateRoleRequest { + name: string; + terraformMountPath: string; +} + +export interface SecretsApiTerraformCloudWriteRoleOperationRequest { + name: string; + terraformMountPath: string; + terraformCloudWriteRoleRequest: TerraformCloudWriteRoleRequest; +} + +export interface SecretsApiTotpCreateKeyOperationRequest { + name: string; + totpMountPath: string; + totpCreateKeyRequest: TotpCreateKeyRequest; +} + +export interface SecretsApiTotpDeleteKeyRequest { + name: string; + totpMountPath: string; +} + +export interface SecretsApiTotpGenerateCodeRequest { + name: string; + totpMountPath: string; +} + +export interface SecretsApiTotpListKeysRequest { + totpMountPath: string; + list: TotpListKeysListEnum; +} + +export interface SecretsApiTotpReadKeyRequest { + name: string; + totpMountPath: string; +} + +export interface SecretsApiTotpValidateCodeOperationRequest { + name: string; + totpMountPath: string; + totpValidateCodeRequest: TotpValidateCodeRequest; +} + +export interface SecretsApiTransitBackUpKeyRequest { + name: string; + transitMountPath: string; +} + +export interface SecretsApiTransitByokKeyRequest { + destination: string; + source: string; + transitMountPath: string; +} + +export interface SecretsApiTransitByokKeyVersionRequest { + destination: string; + source: string; + version: string; + transitMountPath: string; +} + +export interface SecretsApiTransitConfigureCacheOperationRequest { + transitMountPath: string; + transitConfigureCacheRequest: TransitConfigureCacheRequest; +} + +export interface SecretsApiTransitConfigureKeyOperationRequest { + name: string; + transitMountPath: string; + transitConfigureKeyRequest: TransitConfigureKeyRequest; +} + +export interface SecretsApiTransitConfigureKeysOperationRequest { + transitMountPath: string; + transitConfigureKeysRequest: TransitConfigureKeysRequest; +} + +export interface SecretsApiTransitCreateKeyOperationRequest { + name: string; + transitMountPath: string; + transitCreateKeyRequest: TransitCreateKeyRequest; +} + +export interface SecretsApiTransitDecryptOperationRequest { + name: string; + transitMountPath: string; + transitDecryptRequest: TransitDecryptRequest; +} + +export interface SecretsApiTransitDeleteKeyRequest { + name: string; + transitMountPath: string; +} + +export interface SecretsApiTransitEncryptOperationRequest { + name: string; + transitMountPath: string; + transitEncryptRequest: TransitEncryptRequest; +} + +export interface SecretsApiTransitExportKeyRequest { + name: string; + type: string; + transitMountPath: string; +} + +export interface SecretsApiTransitExportKeyVersionRequest { + name: string; + type: string; + version: string; + transitMountPath: string; +} + +export interface SecretsApiTransitGenerateCmacOperationRequest { + name: string; + transitMountPath: string; + transitGenerateCmacRequest: TransitGenerateCmacRequest; +} + +export interface SecretsApiTransitGenerateCmacWithMacLengthOperationRequest { + name: string; + urlMacLength: string; + transitMountPath: string; + transitGenerateCmacWithMacLengthRequest: TransitGenerateCmacWithMacLengthRequest; +} + +export interface SecretsApiTransitGenerateCsrForKeyOperationRequest { + name: string; + transitMountPath: string; + transitGenerateCsrForKeyRequest: TransitGenerateCsrForKeyRequest; +} + +export interface SecretsApiTransitGenerateDataKeyOperationRequest { + name: string; + plaintext: string; + transitMountPath: string; + transitGenerateDataKeyRequest: TransitGenerateDataKeyRequest; +} + +export interface SecretsApiTransitGenerateHmacOperationRequest { + name: string; + transitMountPath: string; + transitGenerateHmacRequest: TransitGenerateHmacRequest; +} + +export interface SecretsApiTransitGenerateHmacWithAlgorithmOperationRequest { + name: string; + urlalgorithm: string; + transitMountPath: string; + transitGenerateHmacWithAlgorithmRequest: TransitGenerateHmacWithAlgorithmRequest; +} + +export interface SecretsApiTransitGenerateRandomOperationRequest { + transitMountPath: string; + transitGenerateRandomRequest: TransitGenerateRandomRequest; +} + +export interface SecretsApiTransitGenerateRandomWithBytesOperationRequest { + urlbytes: string; + transitMountPath: string; + transitGenerateRandomWithBytesRequest: TransitGenerateRandomWithBytesRequest; +} + +export interface SecretsApiTransitGenerateRandomWithSourceOperationRequest { + source: string; + transitMountPath: string; + transitGenerateRandomWithSourceRequest: TransitGenerateRandomWithSourceRequest; +} + +export interface SecretsApiTransitGenerateRandomWithSourceAndBytesOperationRequest { + source: string; + urlbytes: string; + transitMountPath: string; + transitGenerateRandomWithSourceAndBytesRequest: TransitGenerateRandomWithSourceAndBytesRequest; +} + +export interface SecretsApiTransitHashOperationRequest { + transitMountPath: string; + transitHashRequest: TransitHashRequest; +} + +export interface SecretsApiTransitHashWithAlgorithmOperationRequest { + urlalgorithm: string; + transitMountPath: string; + transitHashWithAlgorithmRequest: TransitHashWithAlgorithmRequest; +} + +export interface SecretsApiTransitImportKeyOperationRequest { + name: string; + transitMountPath: string; + transitImportKeyRequest: TransitImportKeyRequest; +} + +export interface SecretsApiTransitImportKeyVersionOperationRequest { + name: string; + transitMountPath: string; + transitImportKeyVersionRequest: TransitImportKeyVersionRequest; +} + +export interface SecretsApiTransitListKeysRequest { + transitMountPath: string; + list: TransitListKeysListEnum; +} + +export interface SecretsApiTransitReadCacheConfigurationRequest { + transitMountPath: string; +} + +export interface SecretsApiTransitReadKeyRequest { + name: string; + transitMountPath: string; +} + +export interface SecretsApiTransitReadKeysConfigurationRequest { + transitMountPath: string; +} + +export interface SecretsApiTransitReadWrappingKeyRequest { + transitMountPath: string; +} + +export interface SecretsApiTransitRestoreAndRenameKeyOperationRequest { + name: string; + transitMountPath: string; + transitRestoreAndRenameKeyRequest: TransitRestoreAndRenameKeyRequest; +} + +export interface SecretsApiTransitRestoreKeyOperationRequest { + transitMountPath: string; + transitRestoreKeyRequest: TransitRestoreKeyRequest; +} + +export interface SecretsApiTransitRewrapOperationRequest { + name: string; + transitMountPath: string; + transitRewrapRequest: TransitRewrapRequest; +} + +export interface SecretsApiTransitRotateKeyOperationRequest { + name: string; + transitMountPath: string; + transitRotateKeyRequest: TransitRotateKeyRequest; +} + +export interface SecretsApiTransitSetCertificateForKeyOperationRequest { + name: string; + transitMountPath: string; + transitSetCertificateForKeyRequest: TransitSetCertificateForKeyRequest; +} + +export interface SecretsApiTransitSignOperationRequest { + name: string; + transitMountPath: string; + transitSignRequest: TransitSignRequest; +} + +export interface SecretsApiTransitSignWithAlgorithmOperationRequest { + name: string; + urlalgorithm: string; + transitMountPath: string; + transitSignWithAlgorithmRequest: TransitSignWithAlgorithmRequest; +} + +export interface SecretsApiTransitTrimKeyOperationRequest { + name: string; + transitMountPath: string; + transitTrimKeyRequest: TransitTrimKeyRequest; +} + +export interface SecretsApiTransitVerifyOperationRequest { + name: string; + transitMountPath: string; + transitVerifyRequest: TransitVerifyRequest; +} + +export interface SecretsApiTransitVerifyWithAlgorithmOperationRequest { + name: string; + urlalgorithm: string; + transitMountPath: string; + transitVerifyWithAlgorithmRequest: TransitVerifyWithAlgorithmRequest; +} + +/** + * + */ +export class SecretsApi extends runtime.BaseAPI { + /** + */ + async aliCloudConfigureRaw( + requestParameters: SecretsApiAliCloudConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudConfigure().' + ); + } + + if (requestParameters['aliCloudConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'aliCloudConfigureRequest', + 'Required parameter "aliCloudConfigureRequest" was null or undefined when calling aliCloudConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/config`.replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AliCloudConfigureRequestToJSON(requestParameters['aliCloudConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async aliCloudConfigure( + alicloudMountPath: string, + aliCloudConfigureRequest: AliCloudConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudConfigureRaw( + { alicloudMountPath: alicloudMountPath, aliCloudConfigureRequest: aliCloudConfigureRequest }, + initOverrides + ); + } + + /** + */ + async aliCloudDeleteConfigurationRaw( + requestParameters: SecretsApiAliCloudDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/config`.replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async aliCloudDeleteConfiguration( + alicloudMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudDeleteConfigurationRaw({ alicloudMountPath: alicloudMountPath }, initOverrides); + } + + /** + * Read, write and reference policies and roles that API keys or STS credentials can be made for. + */ + async aliCloudDeleteRoleRaw( + requestParameters: SecretsApiAliCloudDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling aliCloudDeleteRole().' + ); + } + + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, write and reference policies and roles that API keys or STS credentials can be made for. + */ + async aliCloudDeleteRole( + name: string, + alicloudMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudDeleteRoleRaw({ name: name, alicloudMountPath: alicloudMountPath }, initOverrides); + } + + /** + * Generate an API key or STS credential using the given role\'s configuration.\' + */ + async aliCloudGenerateCredentialsRaw( + requestParameters: SecretsApiAliCloudGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling aliCloudGenerateCredentials().' + ); + } + + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate an API key or STS credential using the given role\'s configuration.\' + */ + async aliCloudGenerateCredentials( + name: string, + alicloudMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudGenerateCredentialsRaw( + { name: name, alicloudMountPath: alicloudMountPath }, + initOverrides + ); + } + + /** + * List the existing roles in this backend. + */ + async aliCloudListRolesRaw( + requestParameters: SecretsApiAliCloudListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling aliCloudListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/role/`.replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List the existing roles in this backend. + */ + async aliCloudListRoles( + alicloudMountPath: string, + list: AliCloudListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.aliCloudListRolesRaw( + { alicloudMountPath: alicloudMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async aliCloudReadConfigurationRaw( + requestParameters: SecretsApiAliCloudReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/config`.replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async aliCloudReadConfiguration( + alicloudMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudReadConfigurationRaw({ alicloudMountPath: alicloudMountPath }, initOverrides); + } + + /** + * Read, write and reference policies and roles that API keys or STS credentials can be made for. + */ + async aliCloudReadRoleRaw( + requestParameters: SecretsApiAliCloudReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling aliCloudReadRole().' + ); + } + + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, write and reference policies and roles that API keys or STS credentials can be made for. + */ + async aliCloudReadRole( + name: string, + alicloudMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudReadRoleRaw({ name: name, alicloudMountPath: alicloudMountPath }, initOverrides); + } + + /** + * Read, write and reference policies and roles that API keys or STS credentials can be made for. + */ + async aliCloudWriteRoleRaw( + requestParameters: SecretsApiAliCloudWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling aliCloudWriteRole().' + ); + } + + if (requestParameters['alicloudMountPath'] == null) { + throw new runtime.RequiredError( + 'alicloudMountPath', + 'Required parameter "alicloudMountPath" was null or undefined when calling aliCloudWriteRole().' + ); + } + + if (requestParameters['aliCloudWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'aliCloudWriteRoleRequest', + 'Required parameter "aliCloudWriteRoleRequest" was null or undefined when calling aliCloudWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{alicloud_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'alicloud_mount_path'}}`, + encodeURIComponent(String(requestParameters['alicloudMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AliCloudWriteRoleRequestToJSON(requestParameters['aliCloudWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, write and reference policies and roles that API keys or STS credentials can be made for. + */ + async aliCloudWriteRole( + name: string, + alicloudMountPath: string, + aliCloudWriteRoleRequest: AliCloudWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.aliCloudWriteRoleRaw( + { + name: name, + alicloudMountPath: alicloudMountPath, + aliCloudWriteRoleRequest: aliCloudWriteRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async awsConfigureLeaseRaw( + requestParameters: SecretsApiAwsConfigureLeaseOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureLease().' + ); + } + + if (requestParameters['awsConfigureLeaseRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureLeaseRequest', + 'Required parameter "awsConfigureLeaseRequest" was null or undefined when calling awsConfigureLease().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{aws_mount_path}/config/lease`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureLeaseRequestToJSON(requestParameters['awsConfigureLeaseRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureLease( + awsMountPath: string, + awsConfigureLeaseRequest: AwsConfigureLeaseRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureLeaseRaw( + { awsMountPath: awsMountPath, awsConfigureLeaseRequest: awsConfigureLeaseRequest }, + initOverrides + ); + } + + /** + */ + async awsConfigureRootIamCredentialsRaw( + requestParameters: SecretsApiAwsConfigureRootIamCredentialsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsConfigureRootIamCredentials().' + ); + } + + if (requestParameters['awsConfigureRootIamCredentialsRequest'] == null) { + throw new runtime.RequiredError( + 'awsConfigureRootIamCredentialsRequest', + 'Required parameter "awsConfigureRootIamCredentialsRequest" was null or undefined when calling awsConfigureRootIamCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{aws_mount_path}/config/root`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsConfigureRootIamCredentialsRequestToJSON( + requestParameters['awsConfigureRootIamCredentialsRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsConfigureRootIamCredentials( + awsMountPath: string, + awsConfigureRootIamCredentialsRequest: AwsConfigureRootIamCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsConfigureRootIamCredentialsRaw( + { + awsMountPath: awsMountPath, + awsConfigureRootIamCredentialsRequest: awsConfigureRootIamCredentialsRequest, + }, + initOverrides + ); + } + + /** + * Read, write and reference IAM policies that access keys can be made for. + */ + async awsDeleteRoleRaw( + requestParameters: SecretsApiAwsDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsDeleteRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, write and reference IAM policies that access keys can be made for. + */ + async awsDeleteRole( + name: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteRoleRaw({ name: name, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsDeleteStaticRolesNameRaw( + requestParameters: SecretsApiAwsDeleteStaticRolesNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsDeleteStaticRolesName().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsDeleteStaticRolesName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/static-roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsDeleteStaticRolesName( + name: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsDeleteStaticRolesNameRaw({ name: name, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsGenerateCredentialsRaw( + requestParameters: SecretsApiAwsGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsGenerateCredentials().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['roleArn'] != null) { + queryParameters['role_arn'] = requestParameters['roleArn']; + } + + if (requestParameters['roleSessionName'] != null) { + queryParameters['role_session_name'] = requestParameters['roleSessionName']; + } + + if (requestParameters['ttl'] != null) { + queryParameters['ttl'] = requestParameters['ttl']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsGenerateCredentials( + name: string, + awsMountPath: string, + roleArn?: string, + roleSessionName?: string, + ttl?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsGenerateCredentialsRaw( + { + name: name, + awsMountPath: awsMountPath, + roleArn: roleArn, + roleSessionName: roleSessionName, + ttl: ttl, + }, + initOverrides + ); + } + + /** + */ + async awsGenerateCredentialsWithParametersRaw( + requestParameters: SecretsApiAwsGenerateCredentialsWithParametersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsGenerateCredentialsWithParameters().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsGenerateCredentialsWithParameters().' + ); + } + + if (requestParameters['awsGenerateCredentialsWithParametersRequest'] == null) { + throw new runtime.RequiredError( + 'awsGenerateCredentialsWithParametersRequest', + 'Required parameter "awsGenerateCredentialsWithParametersRequest" was null or undefined when calling awsGenerateCredentialsWithParameters().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{aws_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsGenerateCredentialsWithParametersRequestToJSON( + requestParameters['awsGenerateCredentialsWithParametersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsGenerateCredentialsWithParameters( + name: string, + awsMountPath: string, + awsGenerateCredentialsWithParametersRequest: AwsGenerateCredentialsWithParametersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsGenerateCredentialsWithParametersRaw( + { + name: name, + awsMountPath: awsMountPath, + awsGenerateCredentialsWithParametersRequest: awsGenerateCredentialsWithParametersRequest, + }, + initOverrides + ); + } + + /** + */ + async awsGenerateStsCredentialsRaw( + requestParameters: SecretsApiAwsGenerateStsCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsGenerateStsCredentials().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsGenerateStsCredentials().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['roleArn'] != null) { + queryParameters['role_arn'] = requestParameters['roleArn']; + } + + if (requestParameters['roleSessionName'] != null) { + queryParameters['role_session_name'] = requestParameters['roleSessionName']; + } + + if (requestParameters['ttl'] != null) { + queryParameters['ttl'] = requestParameters['ttl']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/sts/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsGenerateStsCredentials( + name: string, + awsMountPath: string, + roleArn?: string, + roleSessionName?: string, + ttl?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsGenerateStsCredentialsRaw( + { + name: name, + awsMountPath: awsMountPath, + roleArn: roleArn, + roleSessionName: roleSessionName, + ttl: ttl, + }, + initOverrides + ); + } + + /** + */ + async awsGenerateStsCredentialsWithParametersRaw( + requestParameters: SecretsApiAwsGenerateStsCredentialsWithParametersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsGenerateStsCredentialsWithParameters().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsGenerateStsCredentialsWithParameters().' + ); + } + + if (requestParameters['awsGenerateStsCredentialsWithParametersRequest'] == null) { + throw new runtime.RequiredError( + 'awsGenerateStsCredentialsWithParametersRequest', + 'Required parameter "awsGenerateStsCredentialsWithParametersRequest" was null or undefined when calling awsGenerateStsCredentialsWithParameters().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{aws_mount_path}/sts/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsGenerateStsCredentialsWithParametersRequestToJSON( + requestParameters['awsGenerateStsCredentialsWithParametersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsGenerateStsCredentialsWithParameters( + name: string, + awsMountPath: string, + awsGenerateStsCredentialsWithParametersRequest: AwsGenerateStsCredentialsWithParametersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsGenerateStsCredentialsWithParametersRaw( + { + name: name, + awsMountPath: awsMountPath, + awsGenerateStsCredentialsWithParametersRequest: awsGenerateStsCredentialsWithParametersRequest, + }, + initOverrides + ); + } + + /** + * List the existing roles in this backend + */ + async awsListRolesRaw( + requestParameters: SecretsApiAwsListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling awsListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/roles/`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List the existing roles in this backend + */ + async awsListRoles( + awsMountPath: string, + list: AwsListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsListRolesRaw({ awsMountPath: awsMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async awsReadLeaseConfigurationRaw( + requestParameters: SecretsApiAwsReadLeaseConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadLeaseConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/config/lease`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadLeaseConfiguration( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadLeaseConfigurationRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + * Read, write and reference IAM policies that access keys can be made for. + */ + async awsReadRoleRaw( + requestParameters: SecretsApiAwsReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsReadRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, write and reference IAM policies that access keys can be made for. + */ + async awsReadRole( + name: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadRoleRaw({ name: name, awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadRootIamCredentialsConfigurationRaw( + requestParameters: SecretsApiAwsReadRootIamCredentialsConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadRootIamCredentialsConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/config/root`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsReadRootIamCredentialsConfiguration( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsReadRootIamCredentialsConfigurationRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + */ + async awsReadStaticCredsNameRaw( + requestParameters: SecretsApiAwsReadStaticCredsNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsReadStaticCredsName().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadStaticCredsName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/static-creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AwsReadStaticCredsNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async awsReadStaticCredsName( + name: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsReadStaticCredsNameRaw( + { name: name, awsMountPath: awsMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsReadStaticRolesNameRaw( + requestParameters: SecretsApiAwsReadStaticRolesNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsReadStaticRolesName().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsReadStaticRolesName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/static-roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AwsReadStaticRolesNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async awsReadStaticRolesName( + name: string, + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsReadStaticRolesNameRaw( + { name: name, awsMountPath: awsMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async awsRotateRootIamCredentialsRaw( + requestParameters: SecretsApiAwsRotateRootIamCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsRotateRootIamCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{aws_mount_path}/config/rotate-root`.replace( + `{${'aws_mount_path'}}`, + encodeURIComponent(String(requestParameters['awsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async awsRotateRootIamCredentials( + awsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsRotateRootIamCredentialsRaw({ awsMountPath: awsMountPath }, initOverrides); + } + + /** + * Read, write and reference IAM policies that access keys can be made for. + */ + async awsWriteRoleRaw( + requestParameters: SecretsApiAwsWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsWriteRole().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsWriteRole().' + ); + } + + if (requestParameters['awsWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'awsWriteRoleRequest', + 'Required parameter "awsWriteRoleRequest" was null or undefined when calling awsWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{aws_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsWriteRoleRequestToJSON(requestParameters['awsWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, write and reference IAM policies that access keys can be made for. + */ + async awsWriteRole( + name: string, + awsMountPath: string, + awsWriteRoleRequest: AwsWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.awsWriteRoleRaw( + { name: name, awsMountPath: awsMountPath, awsWriteRoleRequest: awsWriteRoleRequest }, + initOverrides + ); + } + + /** + */ + async awsWriteStaticRolesNameRaw( + requestParameters: SecretsApiAwsWriteStaticRolesNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling awsWriteStaticRolesName().' + ); + } + + if (requestParameters['awsMountPath'] == null) { + throw new runtime.RequiredError( + 'awsMountPath', + 'Required parameter "awsMountPath" was null or undefined when calling awsWriteStaticRolesName().' + ); + } + + if (requestParameters['awsWriteStaticRolesNameRequest'] == null) { + throw new runtime.RequiredError( + 'awsWriteStaticRolesNameRequest', + 'Required parameter "awsWriteStaticRolesNameRequest" was null or undefined when calling awsWriteStaticRolesName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{aws_mount_path}/static-roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'aws_mount_path'}}`, encodeURIComponent(String(requestParameters['awsMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AwsWriteStaticRolesNameRequestToJSON(requestParameters['awsWriteStaticRolesNameRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AwsWriteStaticRolesNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async awsWriteStaticRolesName( + name: string, + awsMountPath: string, + awsWriteStaticRolesNameRequest: AwsWriteStaticRolesNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.awsWriteStaticRolesNameRaw( + { + name: name, + awsMountPath: awsMountPath, + awsWriteStaticRolesNameRequest: awsWriteStaticRolesNameRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async azureConfigureRaw( + requestParameters: SecretsApiAzureConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureConfigure().' + ); + } + + if (requestParameters['azureConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'azureConfigureRequest', + 'Required parameter "azureConfigureRequest" was null or undefined when calling azureConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{azure_mount_path}/config`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AzureConfigureRequestToJSON(requestParameters['azureConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureConfigure( + azureMountPath: string, + azureConfigureRequest: AzureConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureConfigureRaw( + { azureMountPath: azureMountPath, azureConfigureRequest: azureConfigureRequest }, + initOverrides + ); + } + + /** + */ + async azureDeleteConfigurationRaw( + requestParameters: SecretsApiAzureDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{azure_mount_path}/config`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureDeleteConfiguration( + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureDeleteConfigurationRaw({ azureMountPath: azureMountPath }, initOverrides); + } + + /** + * Manage the Vault roles used to generate Azure credentials. + */ + async azureDeleteRoleRaw( + requestParameters: SecretsApiAzureDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling azureDeleteRole().' + ); + } + + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{azure_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the Vault roles used to generate Azure credentials. + */ + async azureDeleteRole( + name: string, + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureDeleteRoleRaw({ name: name, azureMountPath: azureMountPath }, initOverrides); + } + + /** + * List existing roles. + */ + async azureListRolesRaw( + requestParameters: SecretsApiAzureListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling azureListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{azure_mount_path}/roles/`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List existing roles. + */ + async azureListRoles( + azureMountPath: string, + list: AzureListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.azureListRolesRaw( + { azureMountPath: azureMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async azureReadConfigurationRaw( + requestParameters: SecretsApiAzureReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{azure_mount_path}/config`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureReadConfiguration( + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureReadConfigurationRaw({ azureMountPath: azureMountPath }, initOverrides); + } + + /** + * Manage the Vault roles used to generate Azure credentials. + */ + async azureReadRoleRaw( + requestParameters: SecretsApiAzureReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling azureReadRole().' + ); + } + + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{azure_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the Vault roles used to generate Azure credentials. + */ + async azureReadRole( + name: string, + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureReadRoleRaw({ name: name, azureMountPath: azureMountPath }, initOverrides); + } + + /** + */ + async azureRequestServicePrincipalCredentialsRaw( + requestParameters: SecretsApiAzureRequestServicePrincipalCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling azureRequestServicePrincipalCredentials().' + ); + } + + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureRequestServicePrincipalCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{azure_mount_path}/creds/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureRequestServicePrincipalCredentials( + role: string, + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureRequestServicePrincipalCredentialsRaw( + { role: role, azureMountPath: azureMountPath }, + initOverrides + ); + } + + /** + */ + async azureRotateRootRaw( + requestParameters: SecretsApiAzureRotateRootRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureRotateRoot().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{azure_mount_path}/rotate-root`.replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async azureRotateRoot( + azureMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureRotateRootRaw({ azureMountPath: azureMountPath }, initOverrides); + } + + /** + * Manage the Vault roles used to generate Azure credentials. + */ + async azureWriteRoleRaw( + requestParameters: SecretsApiAzureWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling azureWriteRole().' + ); + } + + if (requestParameters['azureMountPath'] == null) { + throw new runtime.RequiredError( + 'azureMountPath', + 'Required parameter "azureMountPath" was null or undefined when calling azureWriteRole().' + ); + } + + if (requestParameters['azureWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'azureWriteRoleRequest', + 'Required parameter "azureWriteRoleRequest" was null or undefined when calling azureWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{azure_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'azure_mount_path'}}`, + encodeURIComponent(String(requestParameters['azureMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AzureWriteRoleRequestToJSON(requestParameters['azureWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the Vault roles used to generate Azure credentials. + */ + async azureWriteRole( + name: string, + azureMountPath: string, + azureWriteRoleRequest: AzureWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.azureWriteRoleRaw( + { name: name, azureMountPath: azureMountPath, azureWriteRoleRequest: azureWriteRoleRequest }, + initOverrides + ); + } + + /** + */ + async consulConfigureAccessRaw( + requestParameters: SecretsApiConsulConfigureAccessOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['consulMountPath'] == null) { + throw new runtime.RequiredError( + 'consulMountPath', + 'Required parameter "consulMountPath" was null or undefined when calling consulConfigureAccess().' + ); + } + + if (requestParameters['consulConfigureAccessRequest'] == null) { + throw new runtime.RequiredError( + 'consulConfigureAccessRequest', + 'Required parameter "consulConfigureAccessRequest" was null or undefined when calling consulConfigureAccess().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{consul_mount_path}/config/access`.replace( + `{${'consul_mount_path'}}`, + encodeURIComponent(String(requestParameters['consulMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ConsulConfigureAccessRequestToJSON(requestParameters['consulConfigureAccessRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async consulConfigureAccess( + consulMountPath: string, + consulConfigureAccessRequest: ConsulConfigureAccessRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.consulConfigureAccessRaw( + { consulMountPath: consulMountPath, consulConfigureAccessRequest: consulConfigureAccessRequest }, + initOverrides + ); + } + + /** + */ + async consulDeleteRoleRaw( + requestParameters: SecretsApiConsulDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling consulDeleteRole().' + ); + } + + if (requestParameters['consulMountPath'] == null) { + throw new runtime.RequiredError( + 'consulMountPath', + 'Required parameter "consulMountPath" was null or undefined when calling consulDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{consul_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'consul_mount_path'}}`, + encodeURIComponent(String(requestParameters['consulMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async consulDeleteRole( + name: string, + consulMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.consulDeleteRoleRaw({ name: name, consulMountPath: consulMountPath }, initOverrides); + } + + /** + */ + async consulGenerateCredentialsRaw( + requestParameters: SecretsApiConsulGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling consulGenerateCredentials().' + ); + } + + if (requestParameters['consulMountPath'] == null) { + throw new runtime.RequiredError( + 'consulMountPath', + 'Required parameter "consulMountPath" was null or undefined when calling consulGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{consul_mount_path}/creds/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace( + `{${'consul_mount_path'}}`, + encodeURIComponent(String(requestParameters['consulMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async consulGenerateCredentials( + role: string, + consulMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.consulGenerateCredentialsRaw({ role: role, consulMountPath: consulMountPath }, initOverrides); + } + + /** + */ + async consulListRolesRaw( + requestParameters: SecretsApiConsulListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['consulMountPath'] == null) { + throw new runtime.RequiredError( + 'consulMountPath', + 'Required parameter "consulMountPath" was null or undefined when calling consulListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling consulListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{consul_mount_path}/roles/`.replace( + `{${'consul_mount_path'}}`, + encodeURIComponent(String(requestParameters['consulMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async consulListRoles( + consulMountPath: string, + list: ConsulListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.consulListRolesRaw( + { consulMountPath: consulMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async consulReadAccessConfigurationRaw( + requestParameters: SecretsApiConsulReadAccessConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['consulMountPath'] == null) { + throw new runtime.RequiredError( + 'consulMountPath', + 'Required parameter "consulMountPath" was null or undefined when calling consulReadAccessConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{consul_mount_path}/config/access`.replace( + `{${'consul_mount_path'}}`, + encodeURIComponent(String(requestParameters['consulMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async consulReadAccessConfiguration( + consulMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.consulReadAccessConfigurationRaw({ consulMountPath: consulMountPath }, initOverrides); + } + + /** + */ + async consulReadRoleRaw( + requestParameters: SecretsApiConsulReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling consulReadRole().' + ); + } + + if (requestParameters['consulMountPath'] == null) { + throw new runtime.RequiredError( + 'consulMountPath', + 'Required parameter "consulMountPath" was null or undefined when calling consulReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{consul_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'consul_mount_path'}}`, + encodeURIComponent(String(requestParameters['consulMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async consulReadRole( + name: string, + consulMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.consulReadRoleRaw({ name: name, consulMountPath: consulMountPath }, initOverrides); + } + + /** + */ + async consulWriteRoleRaw( + requestParameters: SecretsApiConsulWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling consulWriteRole().' + ); + } + + if (requestParameters['consulMountPath'] == null) { + throw new runtime.RequiredError( + 'consulMountPath', + 'Required parameter "consulMountPath" was null or undefined when calling consulWriteRole().' + ); + } + + if (requestParameters['consulWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'consulWriteRoleRequest', + 'Required parameter "consulWriteRoleRequest" was null or undefined when calling consulWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{consul_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'consul_mount_path'}}`, + encodeURIComponent(String(requestParameters['consulMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ConsulWriteRoleRequestToJSON(requestParameters['consulWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async consulWriteRole( + name: string, + consulMountPath: string, + consulWriteRoleRequest: ConsulWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.consulWriteRoleRaw( + { name: name, consulMountPath: consulMountPath, consulWriteRoleRequest: consulWriteRoleRequest }, + initOverrides + ); + } + + /** + * Deletes the secret at the specified location. + */ + async cubbyholeDeleteRaw( + requestParameters: SecretsApiCubbyholeDeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling cubbyholeDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/cubbyhole/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Deletes the secret at the specified location. + */ + async cubbyholeDelete( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cubbyholeDeleteRaw({ path: path }, initOverrides); + } + + /** + * Folders are suffixed with /. The input must be a folder; list on a file will not return a value. The values themselves are not accessible via this command. + * List secret entries at the specified location. + */ + async cubbyholeListRaw( + requestParameters: SecretsApiCubbyholeListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling cubbyholeList().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling cubbyholeList().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/cubbyhole/{path}/`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Folders are suffixed with /. The input must be a folder; list on a file will not return a value. The values themselves are not accessible via this command. + * List secret entries at the specified location. + */ + async cubbyholeList( + path: string, + list: CubbyholeListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.cubbyholeListRaw({ path: path, list: list }, initOverrides); + return await response.value(); + } + + /** + * Retrieve the secret at the specified location. + */ + async cubbyholeReadRaw( + requestParameters: SecretsApiCubbyholeReadRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling cubbyholeRead().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/cubbyhole/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Retrieve the secret at the specified location. + */ + async cubbyholeRead( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cubbyholeReadRaw({ path: path }, initOverrides); + } + + /** + * Store a secret at the specified location. + */ + async cubbyholeWriteRaw( + requestParameters: SecretsApiCubbyholeWriteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling cubbyholeWrite().' + ); + } + + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling cubbyholeWrite().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/cubbyhole/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Store a secret at the specified location. + */ + async cubbyholeWrite( + path: string, + requestBody: { [key: string]: any }, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.cubbyholeWriteRaw({ path: path, requestBody: requestBody }, initOverrides); + } + + /** + */ + async databaseConfigureConnectionRaw( + requestParameters: SecretsApiDatabaseConfigureConnectionOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseConfigureConnection().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseConfigureConnection().' + ); + } + + if (requestParameters['databaseConfigureConnectionRequest'] == null) { + throw new runtime.RequiredError( + 'databaseConfigureConnectionRequest', + 'Required parameter "databaseConfigureConnectionRequest" was null or undefined when calling databaseConfigureConnection().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{database_mount_path}/config/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: DatabaseConfigureConnectionRequestToJSON( + requestParameters['databaseConfigureConnectionRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async databaseConfigureConnection( + name: string, + databaseMountPath: string, + databaseConfigureConnectionRequest: DatabaseConfigureConnectionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseConfigureConnectionRaw( + { + name: name, + databaseMountPath: databaseMountPath, + databaseConfigureConnectionRequest: databaseConfigureConnectionRequest, + }, + initOverrides + ); + } + + /** + */ + async databaseDeleteConnectionConfigurationRaw( + requestParameters: SecretsApiDatabaseDeleteConnectionConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseDeleteConnectionConfiguration().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseDeleteConnectionConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/config/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async databaseDeleteConnectionConfiguration( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseDeleteConnectionConfigurationRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseDeleteRoleRaw( + requestParameters: SecretsApiDatabaseDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseDeleteRole().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseDeleteRole( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseDeleteRoleRaw({ name: name, databaseMountPath: databaseMountPath }, initOverrides); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseDeleteStaticRoleRaw( + requestParameters: SecretsApiDatabaseDeleteStaticRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseDeleteStaticRole().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseDeleteStaticRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/static-roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseDeleteStaticRole( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseDeleteStaticRoleRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + * Request database credentials for a certain role. + */ + async databaseGenerateCredentialsRaw( + requestParameters: SecretsApiDatabaseGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseGenerateCredentials().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Request database credentials for a certain role. + */ + async databaseGenerateCredentials( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseGenerateCredentialsRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + * Configure connection details to a database plugin. + */ + async databaseListConnectionsRaw( + requestParameters: SecretsApiDatabaseListConnectionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseListConnections().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling databaseListConnections().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/config/`.replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Configure connection details to a database plugin. + */ + async databaseListConnections( + databaseMountPath: string, + list: DatabaseListConnectionsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.databaseListConnectionsRaw( + { databaseMountPath: databaseMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseListRolesRaw( + requestParameters: SecretsApiDatabaseListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling databaseListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/roles/`.replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseListRoles( + databaseMountPath: string, + list: DatabaseListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.databaseListRolesRaw( + { databaseMountPath: databaseMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseListStaticRolesRaw( + requestParameters: SecretsApiDatabaseListStaticRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseListStaticRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling databaseListStaticRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/static-roles/`.replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseListStaticRoles( + databaseMountPath: string, + list: DatabaseListStaticRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.databaseListStaticRolesRaw( + { databaseMountPath: databaseMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async databaseReadConnectionConfigurationRaw( + requestParameters: SecretsApiDatabaseReadConnectionConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseReadConnectionConfiguration().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseReadConnectionConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/config/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async databaseReadConnectionConfiguration( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseReadConnectionConfigurationRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseReadRoleRaw( + requestParameters: SecretsApiDatabaseReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseReadRole().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseReadRole( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseReadRoleRaw({ name: name, databaseMountPath: databaseMountPath }, initOverrides); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseReadStaticRoleRaw( + requestParameters: SecretsApiDatabaseReadStaticRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseReadStaticRole().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseReadStaticRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/static-roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseReadStaticRole( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseReadStaticRoleRaw({ name: name, databaseMountPath: databaseMountPath }, initOverrides); + } + + /** + * Request database credentials for a certain static role. These credentials are rotated periodically. + */ + async databaseReadStaticRoleCredentialsRaw( + requestParameters: SecretsApiDatabaseReadStaticRoleCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseReadStaticRoleCredentials().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseReadStaticRoleCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/static-creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Request database credentials for a certain static role. These credentials are rotated periodically. + */ + async databaseReadStaticRoleCredentials( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseReadStaticRoleCredentialsRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + * Reloads all connections using a named database plugin. + */ + async databaseReloadPluginRaw( + requestParameters: SecretsApiDatabaseReloadPluginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pluginName'] == null) { + throw new runtime.RequiredError( + 'pluginName', + 'Required parameter "pluginName" was null or undefined when calling databaseReloadPlugin().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseReloadPlugin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/reload/{plugin_name}` + .replace(`{${'plugin_name'}}`, encodeURIComponent(String(requestParameters['pluginName']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Reloads all connections using a named database plugin. + */ + async databaseReloadPlugin( + pluginName: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseReloadPluginRaw( + { pluginName: pluginName, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + * Resets a database plugin. + */ + async databaseResetConnectionRaw( + requestParameters: SecretsApiDatabaseResetConnectionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseResetConnection().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseResetConnection().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/reset/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Resets a database plugin. + */ + async databaseResetConnection( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseResetConnectionRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + */ + async databaseRotateRootCredentialsRaw( + requestParameters: SecretsApiDatabaseRotateRootCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseRotateRootCredentials().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseRotateRootCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/rotate-root/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async databaseRotateRootCredentials( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseRotateRootCredentialsRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + */ + async databaseRotateStaticRoleCredentialsRaw( + requestParameters: SecretsApiDatabaseRotateStaticRoleCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseRotateStaticRoleCredentials().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseRotateStaticRoleCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{database_mount_path}/rotate-role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async databaseRotateStaticRoleCredentials( + name: string, + databaseMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseRotateStaticRoleCredentialsRaw( + { name: name, databaseMountPath: databaseMountPath }, + initOverrides + ); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseWriteRoleRaw( + requestParameters: SecretsApiDatabaseWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseWriteRole().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseWriteRole().' + ); + } + + if (requestParameters['databaseWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'databaseWriteRoleRequest', + 'Required parameter "databaseWriteRoleRequest" was null or undefined when calling databaseWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{database_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: DatabaseWriteRoleRequestToJSON(requestParameters['databaseWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles that can be created with this backend. + */ + async databaseWriteRole( + name: string, + databaseMountPath: string, + databaseWriteRoleRequest: DatabaseWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseWriteRoleRaw( + { + name: name, + databaseMountPath: databaseMountPath, + databaseWriteRoleRequest: databaseWriteRoleRequest, + }, + initOverrides + ); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseWriteStaticRoleRaw( + requestParameters: SecretsApiDatabaseWriteStaticRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling databaseWriteStaticRole().' + ); + } + + if (requestParameters['databaseMountPath'] == null) { + throw new runtime.RequiredError( + 'databaseMountPath', + 'Required parameter "databaseMountPath" was null or undefined when calling databaseWriteStaticRole().' + ); + } + + if (requestParameters['databaseWriteStaticRoleRequest'] == null) { + throw new runtime.RequiredError( + 'databaseWriteStaticRoleRequest', + 'Required parameter "databaseWriteStaticRoleRequest" was null or undefined when calling databaseWriteStaticRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{database_mount_path}/static-roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'database_mount_path'}}`, + encodeURIComponent(String(requestParameters['databaseMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: DatabaseWriteStaticRoleRequestToJSON(requestParameters['databaseWriteStaticRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the static roles that can be created with this backend. + */ + async databaseWriteStaticRole( + name: string, + databaseMountPath: string, + databaseWriteStaticRoleRequest: DatabaseWriteStaticRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.databaseWriteStaticRoleRaw( + { + name: name, + databaseMountPath: databaseMountPath, + databaseWriteStaticRoleRequest: databaseWriteStaticRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudConfigureRaw( + requestParameters: SecretsApiGoogleCloudConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudConfigure().' + ); + } + + if (requestParameters['googleCloudConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudConfigureRequest', + 'Required parameter "googleCloudConfigureRequest" was null or undefined when calling googleCloudConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcp_mount_path}/config`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudConfigureRequestToJSON(requestParameters['googleCloudConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudConfigure( + gcpMountPath: string, + googleCloudConfigureRequest: GoogleCloudConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudConfigureRaw( + { gcpMountPath: gcpMountPath, googleCloudConfigureRequest: googleCloudConfigureRequest }, + initOverrides + ); + } + + /** + */ + async googleCloudDeleteImpersonatedAccountRaw( + requestParameters: SecretsApiGoogleCloudDeleteImpersonatedAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudDeleteImpersonatedAccount().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudDeleteImpersonatedAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/impersonated-account/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudDeleteImpersonatedAccount( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudDeleteImpersonatedAccountRaw( + { name: name, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudDeleteRolesetRaw( + requestParameters: SecretsApiGoogleCloudDeleteRolesetRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudDeleteRoleset().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudDeleteRoleset().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudDeleteRoleset( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudDeleteRolesetRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudDeleteStaticAccountRaw( + requestParameters: SecretsApiGoogleCloudDeleteStaticAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudDeleteStaticAccount().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudDeleteStaticAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudDeleteStaticAccount( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudDeleteStaticAccountRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudGenerateImpersonatedAccountAccessTokenRaw( + requestParameters: SecretsApiGoogleCloudGenerateImpersonatedAccountAccessTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudGenerateImpersonatedAccountAccessToken().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateImpersonatedAccountAccessToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/impersonated-account/{name}/token` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateImpersonatedAccountAccessToken( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateImpersonatedAccountAccessTokenRaw( + { name: name, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateImpersonatedAccountAccessToken2Raw( + requestParameters: SecretsApiGoogleCloudGenerateImpersonatedAccountAccessToken2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudGenerateImpersonatedAccountAccessToken2().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateImpersonatedAccountAccessToken2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/impersonated-account/{name}/token` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateImpersonatedAccountAccessToken2( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateImpersonatedAccountAccessToken2Raw( + { name: name, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetAccessTokenRaw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetAccessTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetAccessToken().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetAccessToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{roleset}/token` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetAccessToken( + roleset: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetAccessTokenRaw( + { roleset: roleset, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetAccessToken2Raw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetAccessToken2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetAccessToken2().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetAccessToken2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{roleset}/token` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetAccessToken2( + roleset: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetAccessToken2Raw( + { roleset: roleset, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetAccessToken3Raw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetAccessToken3Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetAccessToken3().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetAccessToken3().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/token/{roleset}` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetAccessToken3( + roleset: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetAccessToken3Raw( + { roleset: roleset, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetAccessToken4Raw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetAccessToken4Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetAccessToken4().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetAccessToken4().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/token/{roleset}` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetAccessToken4( + roleset: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetAccessToken4Raw( + { roleset: roleset, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetKeyRaw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetKey().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetKey().' + ); + } + + if (requestParameters['googleCloudGenerateRolesetKeyRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudGenerateRolesetKeyRequest', + 'Required parameter "googleCloudGenerateRolesetKeyRequest" was null or undefined when calling googleCloudGenerateRolesetKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{roleset}/key` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudGenerateRolesetKeyRequestToJSON( + requestParameters['googleCloudGenerateRolesetKeyRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetKey( + roleset: string, + gcpMountPath: string, + googleCloudGenerateRolesetKeyRequest: GoogleCloudGenerateRolesetKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetKeyRaw( + { + roleset: roleset, + gcpMountPath: gcpMountPath, + googleCloudGenerateRolesetKeyRequest: googleCloudGenerateRolesetKeyRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetKey2Raw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetKey2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetKey2().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetKey2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['keyAlgorithm'] != null) { + queryParameters['key_algorithm'] = requestParameters['keyAlgorithm']; + } + + if (requestParameters['keyType'] != null) { + queryParameters['key_type'] = requestParameters['keyType']; + } + + if (requestParameters['ttl'] != null) { + queryParameters['ttl'] = requestParameters['ttl']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{roleset}/key` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetKey2( + roleset: string, + gcpMountPath: string, + keyAlgorithm?: string, + keyType?: string, + ttl?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetKey2Raw( + { + roleset: roleset, + gcpMountPath: gcpMountPath, + keyAlgorithm: keyAlgorithm, + keyType: keyType, + ttl: ttl, + }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetKey3Raw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetKey3OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetKey3().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetKey3().' + ); + } + + if (requestParameters['googleCloudGenerateRolesetKey3Request'] == null) { + throw new runtime.RequiredError( + 'googleCloudGenerateRolesetKey3Request', + 'Required parameter "googleCloudGenerateRolesetKey3Request" was null or undefined when calling googleCloudGenerateRolesetKey3().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcp_mount_path}/key/{roleset}` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudGenerateRolesetKey3RequestToJSON( + requestParameters['googleCloudGenerateRolesetKey3Request'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetKey3( + roleset: string, + gcpMountPath: string, + googleCloudGenerateRolesetKey3Request: GoogleCloudGenerateRolesetKey3Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetKey3Raw( + { + roleset: roleset, + gcpMountPath: gcpMountPath, + googleCloudGenerateRolesetKey3Request: googleCloudGenerateRolesetKey3Request, + }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateRolesetKey4Raw( + requestParameters: SecretsApiGoogleCloudGenerateRolesetKey4Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['roleset'] == null) { + throw new runtime.RequiredError( + 'roleset', + 'Required parameter "roleset" was null or undefined when calling googleCloudGenerateRolesetKey4().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateRolesetKey4().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['keyAlgorithm'] != null) { + queryParameters['key_algorithm'] = requestParameters['keyAlgorithm']; + } + + if (requestParameters['keyType'] != null) { + queryParameters['key_type'] = requestParameters['keyType']; + } + + if (requestParameters['ttl'] != null) { + queryParameters['ttl'] = requestParameters['ttl']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/key/{roleset}` + .replace(`{${'roleset'}}`, encodeURIComponent(String(requestParameters['roleset']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateRolesetKey4( + roleset: string, + gcpMountPath: string, + keyAlgorithm?: string, + keyType?: string, + ttl?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateRolesetKey4Raw( + { + roleset: roleset, + gcpMountPath: gcpMountPath, + keyAlgorithm: keyAlgorithm, + keyType: keyType, + ttl: ttl, + }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateStaticAccountAccessTokenRaw( + requestParameters: SecretsApiGoogleCloudGenerateStaticAccountAccessTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudGenerateStaticAccountAccessToken().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateStaticAccountAccessToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}/token` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateStaticAccountAccessToken( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateStaticAccountAccessTokenRaw( + { name: name, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateStaticAccountAccessToken2Raw( + requestParameters: SecretsApiGoogleCloudGenerateStaticAccountAccessToken2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudGenerateStaticAccountAccessToken2().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateStaticAccountAccessToken2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}/token` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateStaticAccountAccessToken2( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateStaticAccountAccessToken2Raw( + { name: name, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateStaticAccountKeyRaw( + requestParameters: SecretsApiGoogleCloudGenerateStaticAccountKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudGenerateStaticAccountKey().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateStaticAccountKey().' + ); + } + + if (requestParameters['googleCloudGenerateStaticAccountKeyRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudGenerateStaticAccountKeyRequest', + 'Required parameter "googleCloudGenerateStaticAccountKeyRequest" was null or undefined when calling googleCloudGenerateStaticAccountKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}/key` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudGenerateStaticAccountKeyRequestToJSON( + requestParameters['googleCloudGenerateStaticAccountKeyRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateStaticAccountKey( + name: string, + gcpMountPath: string, + googleCloudGenerateStaticAccountKeyRequest: GoogleCloudGenerateStaticAccountKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateStaticAccountKeyRaw( + { + name: name, + gcpMountPath: gcpMountPath, + googleCloudGenerateStaticAccountKeyRequest: googleCloudGenerateStaticAccountKeyRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudGenerateStaticAccountKey2Raw( + requestParameters: SecretsApiGoogleCloudGenerateStaticAccountKey2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudGenerateStaticAccountKey2().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudGenerateStaticAccountKey2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['keyAlgorithm'] != null) { + queryParameters['key_algorithm'] = requestParameters['keyAlgorithm']; + } + + if (requestParameters['keyType'] != null) { + queryParameters['key_type'] = requestParameters['keyType']; + } + + if (requestParameters['ttl'] != null) { + queryParameters['ttl'] = requestParameters['ttl']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}/key` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudGenerateStaticAccountKey2( + name: string, + gcpMountPath: string, + keyAlgorithm?: string, + keyType?: string, + ttl?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudGenerateStaticAccountKey2Raw( + { name: name, gcpMountPath: gcpMountPath, keyAlgorithm: keyAlgorithm, keyType: keyType, ttl: ttl }, + initOverrides + ); + } + + /** + */ + async googleCloudKmsConfigureRaw( + requestParameters: SecretsApiGoogleCloudKmsConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsConfigure().' + ); + } + + if (requestParameters['googleCloudKmsConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsConfigureRequest', + 'Required parameter "googleCloudKmsConfigureRequest" was null or undefined when calling googleCloudKmsConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/config`.replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsConfigureRequestToJSON(requestParameters['googleCloudKmsConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsConfigure( + gcpkmsMountPath: string, + googleCloudKmsConfigureRequest: GoogleCloudKmsConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsConfigureRaw( + { gcpkmsMountPath: gcpkmsMountPath, googleCloudKmsConfigureRequest: googleCloudKmsConfigureRequest }, + initOverrides + ); + } + + /** + */ + async googleCloudKmsConfigureKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsConfigureKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsConfigureKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsConfigureKey().' + ); + } + + if (requestParameters['googleCloudKmsConfigureKeyRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsConfigureKeyRequest', + 'Required parameter "googleCloudKmsConfigureKeyRequest" was null or undefined when calling googleCloudKmsConfigureKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/config/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsConfigureKeyRequestToJSON(requestParameters['googleCloudKmsConfigureKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsConfigureKey( + key: string, + gcpkmsMountPath: string, + googleCloudKmsConfigureKeyRequest: GoogleCloudKmsConfigureKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsConfigureKeyRaw( + { + key: key, + gcpkmsMountPath: gcpkmsMountPath, + googleCloudKmsConfigureKeyRequest: googleCloudKmsConfigureKeyRequest, + }, + initOverrides + ); + } + + /** + * Decrypt a ciphertext value using a named key + */ + async googleCloudKmsDecryptRaw( + requestParameters: SecretsApiGoogleCloudKmsDecryptOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsDecrypt().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsDecrypt().' + ); + } + + if (requestParameters['googleCloudKmsDecryptRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsDecryptRequest', + 'Required parameter "googleCloudKmsDecryptRequest" was null or undefined when calling googleCloudKmsDecrypt().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/decrypt/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsDecryptRequestToJSON(requestParameters['googleCloudKmsDecryptRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Decrypt a ciphertext value using a named key + */ + async googleCloudKmsDecrypt( + key: string, + gcpkmsMountPath: string, + googleCloudKmsDecryptRequest: GoogleCloudKmsDecryptRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsDecryptRaw( + { + key: key, + gcpkmsMountPath: gcpkmsMountPath, + googleCloudKmsDecryptRequest: googleCloudKmsDecryptRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudKmsDeleteConfigurationRaw( + requestParameters: SecretsApiGoogleCloudKmsDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/config`.replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsDeleteConfiguration( + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsDeleteConfigurationRaw({ gcpkmsMountPath: gcpkmsMountPath }, initOverrides); + } + + /** + * Interact with crypto keys in Vault and Google Cloud KMS + */ + async googleCloudKmsDeleteKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsDeleteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsDeleteKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsDeleteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Interact with crypto keys in Vault and Google Cloud KMS + */ + async googleCloudKmsDeleteKey( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsDeleteKeyRaw({ key: key, gcpkmsMountPath: gcpkmsMountPath }, initOverrides); + } + + /** + */ + async googleCloudKmsDeregisterKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsDeregisterKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsDeregisterKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsDeregisterKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/deregister/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsDeregisterKey( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsDeregisterKeyRaw({ key: key, gcpkmsMountPath: gcpkmsMountPath }, initOverrides); + } + + /** + */ + async googleCloudKmsDeregisterKey2Raw( + requestParameters: SecretsApiGoogleCloudKmsDeregisterKey2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsDeregisterKey2().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsDeregisterKey2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/deregister/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsDeregisterKey2( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsDeregisterKey2Raw({ key: key, gcpkmsMountPath: gcpkmsMountPath }, initOverrides); + } + + /** + * Encrypt a plaintext value using a named key + */ + async googleCloudKmsEncryptRaw( + requestParameters: SecretsApiGoogleCloudKmsEncryptOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsEncrypt().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsEncrypt().' + ); + } + + if (requestParameters['googleCloudKmsEncryptRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsEncryptRequest', + 'Required parameter "googleCloudKmsEncryptRequest" was null or undefined when calling googleCloudKmsEncrypt().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/encrypt/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsEncryptRequestToJSON(requestParameters['googleCloudKmsEncryptRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Encrypt a plaintext value using a named key + */ + async googleCloudKmsEncrypt( + key: string, + gcpkmsMountPath: string, + googleCloudKmsEncryptRequest: GoogleCloudKmsEncryptRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsEncryptRaw( + { + key: key, + gcpkmsMountPath: gcpkmsMountPath, + googleCloudKmsEncryptRequest: googleCloudKmsEncryptRequest, + }, + initOverrides + ); + } + + /** + * List named keys + */ + async googleCloudKmsListKeysRaw( + requestParameters: SecretsApiGoogleCloudKmsListKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsListKeys().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudKmsListKeys().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/`.replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List named keys + */ + async googleCloudKmsListKeys( + gcpkmsMountPath: string, + list: GoogleCloudKmsListKeysListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudKmsListKeysRaw( + { gcpkmsMountPath: gcpkmsMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudKmsReadConfigurationRaw( + requestParameters: SecretsApiGoogleCloudKmsReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/config`.replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsReadConfiguration( + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsReadConfigurationRaw({ gcpkmsMountPath: gcpkmsMountPath }, initOverrides); + } + + /** + * Interact with crypto keys in Vault and Google Cloud KMS + */ + async googleCloudKmsReadKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsReadKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsReadKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsReadKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Interact with crypto keys in Vault and Google Cloud KMS + */ + async googleCloudKmsReadKey( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsReadKeyRaw({ key: key, gcpkmsMountPath: gcpkmsMountPath }, initOverrides); + } + + /** + */ + async googleCloudKmsReadKeyConfigurationRaw( + requestParameters: SecretsApiGoogleCloudKmsReadKeyConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsReadKeyConfiguration().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsReadKeyConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/config/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsReadKeyConfiguration( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsReadKeyConfigurationRaw( + { key: key, gcpkmsMountPath: gcpkmsMountPath }, + initOverrides + ); + } + + /** + * Re-encrypt existing ciphertext data to a new version + */ + async googleCloudKmsReencryptRaw( + requestParameters: SecretsApiGoogleCloudKmsReencryptOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsReencrypt().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsReencrypt().' + ); + } + + if (requestParameters['googleCloudKmsReencryptRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsReencryptRequest', + 'Required parameter "googleCloudKmsReencryptRequest" was null or undefined when calling googleCloudKmsReencrypt().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/reencrypt/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsReencryptRequestToJSON(requestParameters['googleCloudKmsReencryptRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Re-encrypt existing ciphertext data to a new version + */ + async googleCloudKmsReencrypt( + key: string, + gcpkmsMountPath: string, + googleCloudKmsReencryptRequest: GoogleCloudKmsReencryptRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsReencryptRaw( + { + key: key, + gcpkmsMountPath: gcpkmsMountPath, + googleCloudKmsReencryptRequest: googleCloudKmsReencryptRequest, + }, + initOverrides + ); + } + + /** + * Register an existing crypto key in Google Cloud KMS + */ + async googleCloudKmsRegisterKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsRegisterKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsRegisterKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsRegisterKey().' + ); + } + + if (requestParameters['googleCloudKmsRegisterKeyRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsRegisterKeyRequest', + 'Required parameter "googleCloudKmsRegisterKeyRequest" was null or undefined when calling googleCloudKmsRegisterKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/register/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsRegisterKeyRequestToJSON(requestParameters['googleCloudKmsRegisterKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Register an existing crypto key in Google Cloud KMS + */ + async googleCloudKmsRegisterKey( + key: string, + gcpkmsMountPath: string, + googleCloudKmsRegisterKeyRequest: GoogleCloudKmsRegisterKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsRegisterKeyRaw( + { + key: key, + gcpkmsMountPath: gcpkmsMountPath, + googleCloudKmsRegisterKeyRequest: googleCloudKmsRegisterKeyRequest, + }, + initOverrides + ); + } + + /** + * Retrieve the public key associated with the named key + */ + async googleCloudKmsRetrievePublicKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsRetrievePublicKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsRetrievePublicKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsRetrievePublicKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/pubkey/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Retrieve the public key associated with the named key + */ + async googleCloudKmsRetrievePublicKey( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsRetrievePublicKeyRaw( + { key: key, gcpkmsMountPath: gcpkmsMountPath }, + initOverrides + ); + } + + /** + * Rotate a crypto key to a new primary version + */ + async googleCloudKmsRotateKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsRotateKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsRotateKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsRotateKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/rotate/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Rotate a crypto key to a new primary version + */ + async googleCloudKmsRotateKey( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsRotateKeyRaw({ key: key, gcpkmsMountPath: gcpkmsMountPath }, initOverrides); + } + + /** + * Signs a message or digest using a named key + */ + async googleCloudKmsSignRaw( + requestParameters: SecretsApiGoogleCloudKmsSignOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsSign().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsSign().' + ); + } + + if (requestParameters['googleCloudKmsSignRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsSignRequest', + 'Required parameter "googleCloudKmsSignRequest" was null or undefined when calling googleCloudKmsSign().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/sign/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsSignRequestToJSON(requestParameters['googleCloudKmsSignRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Signs a message or digest using a named key + */ + async googleCloudKmsSign( + key: string, + gcpkmsMountPath: string, + googleCloudKmsSignRequest: GoogleCloudKmsSignRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsSignRaw( + { key: key, gcpkmsMountPath: gcpkmsMountPath, googleCloudKmsSignRequest: googleCloudKmsSignRequest }, + initOverrides + ); + } + + /** + */ + async googleCloudKmsTrimKeyVersionsRaw( + requestParameters: SecretsApiGoogleCloudKmsTrimKeyVersionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsTrimKeyVersions().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsTrimKeyVersions().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/trim/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsTrimKeyVersions( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsTrimKeyVersionsRaw( + { key: key, gcpkmsMountPath: gcpkmsMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudKmsTrimKeyVersions2Raw( + requestParameters: SecretsApiGoogleCloudKmsTrimKeyVersions2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsTrimKeyVersions2().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsTrimKeyVersions2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/trim/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudKmsTrimKeyVersions2( + key: string, + gcpkmsMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsTrimKeyVersions2Raw( + { key: key, gcpkmsMountPath: gcpkmsMountPath }, + initOverrides + ); + } + + /** + * Verify a signature using a named key + */ + async googleCloudKmsVerifyRaw( + requestParameters: SecretsApiGoogleCloudKmsVerifyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsVerify().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsVerify().' + ); + } + + if (requestParameters['googleCloudKmsVerifyRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsVerifyRequest', + 'Required parameter "googleCloudKmsVerifyRequest" was null or undefined when calling googleCloudKmsVerify().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/verify/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsVerifyRequestToJSON(requestParameters['googleCloudKmsVerifyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Verify a signature using a named key + */ + async googleCloudKmsVerify( + key: string, + gcpkmsMountPath: string, + googleCloudKmsVerifyRequest: GoogleCloudKmsVerifyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsVerifyRaw( + { + key: key, + gcpkmsMountPath: gcpkmsMountPath, + googleCloudKmsVerifyRequest: googleCloudKmsVerifyRequest, + }, + initOverrides + ); + } + + /** + * Interact with crypto keys in Vault and Google Cloud KMS + */ + async googleCloudKmsWriteKeyRaw( + requestParameters: SecretsApiGoogleCloudKmsWriteKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['key'] == null) { + throw new runtime.RequiredError( + 'key', + 'Required parameter "key" was null or undefined when calling googleCloudKmsWriteKey().' + ); + } + + if (requestParameters['gcpkmsMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpkmsMountPath', + 'Required parameter "gcpkmsMountPath" was null or undefined when calling googleCloudKmsWriteKey().' + ); + } + + if (requestParameters['googleCloudKmsWriteKeyRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudKmsWriteKeyRequest', + 'Required parameter "googleCloudKmsWriteKeyRequest" was null or undefined when calling googleCloudKmsWriteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcpkms_mount_path}/keys/{key}` + .replace(`{${'key'}}`, encodeURIComponent(String(requestParameters['key']))) + .replace( + `{${'gcpkms_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpkmsMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudKmsWriteKeyRequestToJSON(requestParameters['googleCloudKmsWriteKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Interact with crypto keys in Vault and Google Cloud KMS + */ + async googleCloudKmsWriteKey( + key: string, + gcpkmsMountPath: string, + googleCloudKmsWriteKeyRequest: GoogleCloudKmsWriteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudKmsWriteKeyRaw( + { + key: key, + gcpkmsMountPath: gcpkmsMountPath, + googleCloudKmsWriteKeyRequest: googleCloudKmsWriteKeyRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudListImpersonatedAccountsRaw( + requestParameters: SecretsApiGoogleCloudListImpersonatedAccountsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListImpersonatedAccounts().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListImpersonatedAccounts().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/impersonated-account/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async googleCloudListImpersonatedAccounts( + gcpMountPath: string, + list: GoogleCloudListImpersonatedAccountsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListImpersonatedAccountsRaw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudListImpersonatedAccounts2Raw( + requestParameters: SecretsApiGoogleCloudListImpersonatedAccounts2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListImpersonatedAccounts2().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListImpersonatedAccounts2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/impersonated-accounts/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async googleCloudListImpersonatedAccounts2( + gcpMountPath: string, + list: GoogleCloudListImpersonatedAccounts2ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListImpersonatedAccounts2Raw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudListRolesetsRaw( + requestParameters: SecretsApiGoogleCloudListRolesetsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListRolesets().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListRolesets().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async googleCloudListRolesets( + gcpMountPath: string, + list: GoogleCloudListRolesetsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListRolesetsRaw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudListRolesets2Raw( + requestParameters: SecretsApiGoogleCloudListRolesets2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListRolesets2().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListRolesets2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/rolesets/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async googleCloudListRolesets2( + gcpMountPath: string, + list: GoogleCloudListRolesets2ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListRolesets2Raw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudListStaticAccountsRaw( + requestParameters: SecretsApiGoogleCloudListStaticAccountsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListStaticAccounts().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListStaticAccounts().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async googleCloudListStaticAccounts( + gcpMountPath: string, + list: GoogleCloudListStaticAccountsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListStaticAccountsRaw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudListStaticAccounts2Raw( + requestParameters: SecretsApiGoogleCloudListStaticAccounts2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudListStaticAccounts2().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling googleCloudListStaticAccounts2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-accounts/`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async googleCloudListStaticAccounts2( + gcpMountPath: string, + list: GoogleCloudListStaticAccounts2ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.googleCloudListStaticAccounts2Raw( + { gcpMountPath: gcpMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async googleCloudReadConfigurationRaw( + requestParameters: SecretsApiGoogleCloudReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/config`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudReadConfiguration( + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudReadConfigurationRaw({ gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudReadImpersonatedAccountRaw( + requestParameters: SecretsApiGoogleCloudReadImpersonatedAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudReadImpersonatedAccount().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudReadImpersonatedAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/impersonated-account/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudReadImpersonatedAccount( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudReadImpersonatedAccountRaw( + { name: name, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudReadRolesetRaw( + requestParameters: SecretsApiGoogleCloudReadRolesetRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudReadRoleset().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudReadRoleset().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudReadRoleset( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudReadRolesetRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudReadStaticAccountRaw( + requestParameters: SecretsApiGoogleCloudReadStaticAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudReadStaticAccount().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudReadStaticAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudReadStaticAccount( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudReadStaticAccountRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudRotateRolesetRaw( + requestParameters: SecretsApiGoogleCloudRotateRolesetRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudRotateRoleset().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudRotateRoleset().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{name}/rotate` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudRotateRoleset( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudRotateRolesetRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudRotateRolesetKeyRaw( + requestParameters: SecretsApiGoogleCloudRotateRolesetKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudRotateRolesetKey().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudRotateRolesetKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{name}/rotate-key` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudRotateRolesetKey( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudRotateRolesetKeyRaw({ name: name, gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudRotateRootCredentialsRaw( + requestParameters: SecretsApiGoogleCloudRotateRootCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudRotateRootCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/config/rotate-root`.replace( + `{${'gcp_mount_path'}}`, + encodeURIComponent(String(requestParameters['gcpMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudRotateRootCredentials( + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudRotateRootCredentialsRaw({ gcpMountPath: gcpMountPath }, initOverrides); + } + + /** + */ + async googleCloudRotateStaticAccountKeyRaw( + requestParameters: SecretsApiGoogleCloudRotateStaticAccountKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudRotateStaticAccountKey().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudRotateStaticAccountKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}/rotate-key` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudRotateStaticAccountKey( + name: string, + gcpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudRotateStaticAccountKeyRaw( + { name: name, gcpMountPath: gcpMountPath }, + initOverrides + ); + } + + /** + */ + async googleCloudWriteImpersonatedAccountRaw( + requestParameters: SecretsApiGoogleCloudWriteImpersonatedAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudWriteImpersonatedAccount().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudWriteImpersonatedAccount().' + ); + } + + if (requestParameters['googleCloudWriteImpersonatedAccountRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudWriteImpersonatedAccountRequest', + 'Required parameter "googleCloudWriteImpersonatedAccountRequest" was null or undefined when calling googleCloudWriteImpersonatedAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcp_mount_path}/impersonated-account/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudWriteImpersonatedAccountRequestToJSON( + requestParameters['googleCloudWriteImpersonatedAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudWriteImpersonatedAccount( + name: string, + gcpMountPath: string, + googleCloudWriteImpersonatedAccountRequest: GoogleCloudWriteImpersonatedAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudWriteImpersonatedAccountRaw( + { + name: name, + gcpMountPath: gcpMountPath, + googleCloudWriteImpersonatedAccountRequest: googleCloudWriteImpersonatedAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudWriteRolesetRaw( + requestParameters: SecretsApiGoogleCloudWriteRolesetOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudWriteRoleset().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudWriteRoleset().' + ); + } + + if (requestParameters['googleCloudWriteRolesetRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudWriteRolesetRequest', + 'Required parameter "googleCloudWriteRolesetRequest" was null or undefined when calling googleCloudWriteRoleset().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcp_mount_path}/roleset/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudWriteRolesetRequestToJSON(requestParameters['googleCloudWriteRolesetRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudWriteRoleset( + name: string, + gcpMountPath: string, + googleCloudWriteRolesetRequest: GoogleCloudWriteRolesetRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudWriteRolesetRaw( + { + name: name, + gcpMountPath: gcpMountPath, + googleCloudWriteRolesetRequest: googleCloudWriteRolesetRequest, + }, + initOverrides + ); + } + + /** + */ + async googleCloudWriteStaticAccountRaw( + requestParameters: SecretsApiGoogleCloudWriteStaticAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling googleCloudWriteStaticAccount().' + ); + } + + if (requestParameters['gcpMountPath'] == null) { + throw new runtime.RequiredError( + 'gcpMountPath', + 'Required parameter "gcpMountPath" was null or undefined when calling googleCloudWriteStaticAccount().' + ); + } + + if (requestParameters['googleCloudWriteStaticAccountRequest'] == null) { + throw new runtime.RequiredError( + 'googleCloudWriteStaticAccountRequest', + 'Required parameter "googleCloudWriteStaticAccountRequest" was null or undefined when calling googleCloudWriteStaticAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{gcp_mount_path}/static-account/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'gcp_mount_path'}}`, encodeURIComponent(String(requestParameters['gcpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GoogleCloudWriteStaticAccountRequestToJSON( + requestParameters['googleCloudWriteStaticAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async googleCloudWriteStaticAccount( + name: string, + gcpMountPath: string, + googleCloudWriteStaticAccountRequest: GoogleCloudWriteStaticAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.googleCloudWriteStaticAccountRaw( + { + name: name, + gcpMountPath: gcpMountPath, + googleCloudWriteStaticAccountRequest: googleCloudWriteStaticAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async kubernetesCheckConfigurationRaw( + requestParameters: SecretsApiKubernetesCheckConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesCheckConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/check`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesCheckConfiguration( + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesCheckConfigurationRaw({ kubernetesMountPath: kubernetesMountPath }, initOverrides); + } + + /** + */ + async kubernetesConfigureRaw( + requestParameters: SecretsApiKubernetesConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesConfigure().' + ); + } + + if (requestParameters['kubernetesConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'kubernetesConfigureRequest', + 'Required parameter "kubernetesConfigureRequest" was null or undefined when calling kubernetesConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/config`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KubernetesConfigureRequestToJSON(requestParameters['kubernetesConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesConfigure( + kubernetesMountPath: string, + kubernetesConfigureRequest: KubernetesConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesConfigureRaw( + { kubernetesMountPath: kubernetesMountPath, kubernetesConfigureRequest: kubernetesConfigureRequest }, + initOverrides + ); + } + + /** + */ + async kubernetesDeleteConfigurationRaw( + requestParameters: SecretsApiKubernetesDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/config`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesDeleteConfiguration( + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesDeleteConfigurationRaw({ kubernetesMountPath: kubernetesMountPath }, initOverrides); + } + + /** + */ + async kubernetesDeleteRoleRaw( + requestParameters: SecretsApiKubernetesDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kubernetesDeleteRole().' + ); + } + + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesDeleteRole( + name: string, + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesDeleteRoleRaw( + { name: name, kubernetesMountPath: kubernetesMountPath }, + initOverrides + ); + } + + /** + */ + async kubernetesGenerateCredentialsRaw( + requestParameters: SecretsApiKubernetesGenerateCredentialsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kubernetesGenerateCredentials().' + ); + } + + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesGenerateCredentials().' + ); + } + + if (requestParameters['kubernetesGenerateCredentialsRequest'] == null) { + throw new runtime.RequiredError( + 'kubernetesGenerateCredentialsRequest', + 'Required parameter "kubernetesGenerateCredentialsRequest" was null or undefined when calling kubernetesGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KubernetesGenerateCredentialsRequestToJSON( + requestParameters['kubernetesGenerateCredentialsRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesGenerateCredentials( + name: string, + kubernetesMountPath: string, + kubernetesGenerateCredentialsRequest: KubernetesGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesGenerateCredentialsRaw( + { + name: name, + kubernetesMountPath: kubernetesMountPath, + kubernetesGenerateCredentialsRequest: kubernetesGenerateCredentialsRequest, + }, + initOverrides + ); + } + + /** + */ + async kubernetesListRolesRaw( + requestParameters: SecretsApiKubernetesListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling kubernetesListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/roles/`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async kubernetesListRoles( + kubernetesMountPath: string, + list: KubernetesListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kubernetesListRolesRaw( + { kubernetesMountPath: kubernetesMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async kubernetesReadConfigurationRaw( + requestParameters: SecretsApiKubernetesReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/config`.replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesReadConfiguration( + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesReadConfigurationRaw({ kubernetesMountPath: kubernetesMountPath }, initOverrides); + } + + /** + */ + async kubernetesReadRoleRaw( + requestParameters: SecretsApiKubernetesReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kubernetesReadRole().' + ); + } + + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesReadRole( + name: string, + kubernetesMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesReadRoleRaw({ name: name, kubernetesMountPath: kubernetesMountPath }, initOverrides); + } + + /** + */ + async kubernetesWriteRoleRaw( + requestParameters: SecretsApiKubernetesWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling kubernetesWriteRole().' + ); + } + + if (requestParameters['kubernetesMountPath'] == null) { + throw new runtime.RequiredError( + 'kubernetesMountPath', + 'Required parameter "kubernetesMountPath" was null or undefined when calling kubernetesWriteRole().' + ); + } + + if (requestParameters['kubernetesWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'kubernetesWriteRoleRequest', + 'Required parameter "kubernetesWriteRoleRequest" was null or undefined when calling kubernetesWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kubernetes_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'kubernetes_mount_path'}}`, + encodeURIComponent(String(requestParameters['kubernetesMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KubernetesWriteRoleRequestToJSON(requestParameters['kubernetesWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kubernetesWriteRole( + name: string, + kubernetesMountPath: string, + kubernetesWriteRoleRequest: KubernetesWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kubernetesWriteRoleRaw( + { + name: name, + kubernetesMountPath: kubernetesMountPath, + kubernetesWriteRoleRequest: kubernetesWriteRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async kvV1DeleteRaw( + requestParameters: SecretsApiKvV1DeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV1Delete().' + ); + } + + if (requestParameters['kvV1MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV1MountPath', + 'Required parameter "kvV1MountPath" was null or undefined when calling kvV1Delete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v1_mount_path}/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v1_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV1MountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV1Delete( + path: string, + kvV1MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV1DeleteRaw({ path: path, kvV1MountPath: kvV1MountPath }, initOverrides); + } + + /** + */ + async kvV1ListRaw( + requestParameters: SecretsApiKvV1ListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV1List().' + ); + } + + if (requestParameters['kvV1MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV1MountPath', + 'Required parameter "kvV1MountPath" was null or undefined when calling kvV1List().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling kvV1List().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v1_mount_path}/{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v1_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV1MountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async kvV1List( + path: string, + kvV1MountPath: string, + list: KvV1ListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kvV1ListRaw( + { path: path, kvV1MountPath: kvV1MountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async kvV1ReadRaw( + requestParameters: SecretsApiKvV1ReadRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV1Read().' + ); + } + + if (requestParameters['kvV1MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV1MountPath', + 'Required parameter "kvV1MountPath" was null or undefined when calling kvV1Read().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v1_mount_path}/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v1_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV1MountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV1Read( + path: string, + kvV1MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV1ReadRaw({ path: path, kvV1MountPath: kvV1MountPath }, initOverrides); + } + + /** + */ + async kvV1WriteRaw( + requestParameters: SecretsApiKvV1WriteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV1Write().' + ); + } + + if (requestParameters['kvV1MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV1MountPath', + 'Required parameter "kvV1MountPath" was null or undefined when calling kvV1Write().' + ); + } + + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling kvV1Write().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kv_v1_mount_path}/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v1_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV1MountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV1Write( + path: string, + kvV1MountPath: string, + requestBody: { [key: string]: any }, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV1WriteRaw( + { path: path, kvV1MountPath: kvV1MountPath, requestBody: requestBody }, + initOverrides + ); + } + + /** + * Configure backend level settings that are applied to every key in the key-value store. + */ + async kvV2ConfigureRaw( + requestParameters: SecretsApiKvV2ConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2Configure().' + ); + } + + if (requestParameters['kvV2ConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'kvV2ConfigureRequest', + 'Required parameter "kvV2ConfigureRequest" was null or undefined when calling kvV2Configure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/config`.replace( + `{${'kv_v2_mount_path'}}`, + encodeURIComponent(String(requestParameters['kvV2MountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KvV2ConfigureRequestToJSON(requestParameters['kvV2ConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure backend level settings that are applied to every key in the key-value store. + */ + async kvV2Configure( + kvV2MountPath: string, + kvV2ConfigureRequest: KvV2ConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV2ConfigureRaw( + { kvV2MountPath: kvV2MountPath, kvV2ConfigureRequest: kvV2ConfigureRequest }, + initOverrides + ); + } + + /** + */ + async kvV2DeleteRaw( + requestParameters: SecretsApiKvV2DeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2Delete().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2Delete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/data/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV2Delete( + path: string, + kvV2MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV2DeleteRaw({ path: path, kvV2MountPath: kvV2MountPath }, initOverrides); + } + + /** + */ + async kvV2DeleteMetadataAndAllVersionsRaw( + requestParameters: SecretsApiKvV2DeleteMetadataAndAllVersionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2DeleteMetadataAndAllVersions().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2DeleteMetadataAndAllVersions().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/metadata/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV2DeleteMetadataAndAllVersions( + path: string, + kvV2MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV2DeleteMetadataAndAllVersionsRaw( + { path: path, kvV2MountPath: kvV2MountPath }, + initOverrides + ); + } + + /** + */ + async kvV2DeleteVersionsRaw( + requestParameters: SecretsApiKvV2DeleteVersionsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2DeleteVersions().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2DeleteVersions().' + ); + } + + if (requestParameters['kvV2DeleteVersionsRequest'] == null) { + throw new runtime.RequiredError( + 'kvV2DeleteVersionsRequest', + 'Required parameter "kvV2DeleteVersionsRequest" was null or undefined when calling kvV2DeleteVersions().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/delete/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KvV2DeleteVersionsRequestToJSON(requestParameters['kvV2DeleteVersionsRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV2DeleteVersions( + path: string, + kvV2MountPath: string, + kvV2DeleteVersionsRequest: KvV2DeleteVersionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV2DeleteVersionsRaw( + { path: path, kvV2MountPath: kvV2MountPath, kvV2DeleteVersionsRequest: kvV2DeleteVersionsRequest }, + initOverrides + ); + } + + /** + */ + async kvV2DestroyVersionsRaw( + requestParameters: SecretsApiKvV2DestroyVersionsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2DestroyVersions().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2DestroyVersions().' + ); + } + + if (requestParameters['kvV2DestroyVersionsRequest'] == null) { + throw new runtime.RequiredError( + 'kvV2DestroyVersionsRequest', + 'Required parameter "kvV2DestroyVersionsRequest" was null or undefined when calling kvV2DestroyVersions().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/destroy/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KvV2DestroyVersionsRequestToJSON(requestParameters['kvV2DestroyVersionsRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV2DestroyVersions( + path: string, + kvV2MountPath: string, + kvV2DestroyVersionsRequest: KvV2DestroyVersionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV2DestroyVersionsRaw( + { path: path, kvV2MountPath: kvV2MountPath, kvV2DestroyVersionsRequest: kvV2DestroyVersionsRequest }, + initOverrides + ); + } + + /** + */ + async kvV2ListRaw( + requestParameters: SecretsApiKvV2ListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2List().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2List().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling kvV2List().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/metadata/{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async kvV2List( + path: string, + kvV2MountPath: string, + list: KvV2ListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kvV2ListRaw( + { path: path, kvV2MountPath: kvV2MountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async kvV2ReadRaw( + requestParameters: SecretsApiKvV2ReadRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2Read().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2Read().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/data/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => KvV2ReadResponseFromJSON(jsonValue)); + } + + /** + */ + async kvV2Read( + path: string, + kvV2MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kvV2ReadRaw({ path: path, kvV2MountPath: kvV2MountPath }, initOverrides); + return await response.value(); + } + + /** + * Read the backend level settings. + */ + async kvV2ReadConfigurationRaw( + requestParameters: SecretsApiKvV2ReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2ReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/config`.replace( + `{${'kv_v2_mount_path'}}`, + encodeURIComponent(String(requestParameters['kvV2MountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + KvV2ReadConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + * Read the backend level settings. + */ + async kvV2ReadConfiguration( + kvV2MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kvV2ReadConfigurationRaw({ kvV2MountPath: kvV2MountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async kvV2ReadMetadataRaw( + requestParameters: SecretsApiKvV2ReadMetadataRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2ReadMetadata().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2ReadMetadata().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/metadata/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => KvV2ReadMetadataResponseFromJSON(jsonValue)); + } + + /** + */ + async kvV2ReadMetadata( + path: string, + kvV2MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kvV2ReadMetadataRaw( + { path: path, kvV2MountPath: kvV2MountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async kvV2ReadSubkeysRaw( + requestParameters: SecretsApiKvV2ReadSubkeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2ReadSubkeys().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2ReadSubkeys().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/subkeys/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => KvV2ReadSubkeysResponseFromJSON(jsonValue)); + } + + /** + */ + async kvV2ReadSubkeys( + path: string, + kvV2MountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kvV2ReadSubkeysRaw( + { path: path, kvV2MountPath: kvV2MountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async kvV2UndeleteVersionsRaw( + requestParameters: SecretsApiKvV2UndeleteVersionsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2UndeleteVersions().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2UndeleteVersions().' + ); + } + + if (requestParameters['kvV2UndeleteVersionsRequest'] == null) { + throw new runtime.RequiredError( + 'kvV2UndeleteVersionsRequest', + 'Required parameter "kvV2UndeleteVersionsRequest" was null or undefined when calling kvV2UndeleteVersions().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/undelete/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KvV2UndeleteVersionsRequestToJSON(requestParameters['kvV2UndeleteVersionsRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV2UndeleteVersions( + path: string, + kvV2MountPath: string, + kvV2UndeleteVersionsRequest: KvV2UndeleteVersionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV2UndeleteVersionsRaw( + { path: path, kvV2MountPath: kvV2MountPath, kvV2UndeleteVersionsRequest: kvV2UndeleteVersionsRequest }, + initOverrides + ); + } + + /** + */ + async kvV2WriteRaw( + requestParameters: SecretsApiKvV2WriteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2Write().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2Write().' + ); + } + + if (requestParameters['kvV2WriteRequest'] == null) { + throw new runtime.RequiredError( + 'kvV2WriteRequest', + 'Required parameter "kvV2WriteRequest" was null or undefined when calling kvV2Write().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/data/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KvV2WriteRequestToJSON(requestParameters['kvV2WriteRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => KvV2WriteResponseFromJSON(jsonValue)); + } + + /** + */ + async kvV2Write( + path: string, + kvV2MountPath: string, + kvV2WriteRequest: KvV2WriteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.kvV2WriteRaw( + { path: path, kvV2MountPath: kvV2MountPath, kvV2WriteRequest: kvV2WriteRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async kvV2WriteMetadataRaw( + requestParameters: SecretsApiKvV2WriteMetadataOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling kvV2WriteMetadata().' + ); + } + + if (requestParameters['kvV2MountPath'] == null) { + throw new runtime.RequiredError( + 'kvV2MountPath', + 'Required parameter "kvV2MountPath" was null or undefined when calling kvV2WriteMetadata().' + ); + } + + if (requestParameters['kvV2WriteMetadataRequest'] == null) { + throw new runtime.RequiredError( + 'kvV2WriteMetadataRequest', + 'Required parameter "kvV2WriteMetadataRequest" was null or undefined when calling kvV2WriteMetadata().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{kv_v2_mount_path}/metadata/{path}` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'kv_v2_mount_path'}}`, encodeURIComponent(String(requestParameters['kvV2MountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: KvV2WriteMetadataRequestToJSON(requestParameters['kvV2WriteMetadataRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async kvV2WriteMetadata( + path: string, + kvV2MountPath: string, + kvV2WriteMetadataRequest: KvV2WriteMetadataRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.kvV2WriteMetadataRaw( + { path: path, kvV2MountPath: kvV2MountPath, kvV2WriteMetadataRequest: kvV2WriteMetadataRequest }, + initOverrides + ); + } + + /** + */ + async ldapConfigureRaw( + requestParameters: SecretsApiLdapConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapConfigure().' + ); + } + + if (requestParameters['ldapConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'ldapConfigureRequest', + 'Required parameter "ldapConfigureRequest" was null or undefined when calling ldapConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/config`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapConfigureRequestToJSON(requestParameters['ldapConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapConfigure( + ldapMountPath: string, + ldapConfigureRequest: LdapConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapConfigureRaw( + { ldapMountPath: ldapMountPath, ldapConfigureRequest: ldapConfigureRequest }, + initOverrides + ); + } + + /** + */ + async ldapDeleteConfigurationRaw( + requestParameters: SecretsApiLdapDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/config`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapDeleteConfiguration( + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapDeleteConfigurationRaw({ ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapDeleteDynamicRoleRaw( + requestParameters: SecretsApiLdapDeleteDynamicRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapDeleteDynamicRole().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapDeleteDynamicRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapDeleteDynamicRole( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapDeleteDynamicRoleRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapDeleteStaticRoleRaw( + requestParameters: SecretsApiLdapDeleteStaticRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapDeleteStaticRole().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapDeleteStaticRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/static-role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapDeleteStaticRole( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapDeleteStaticRoleRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Check service accounts in to the library. + */ + async ldapLibraryCheckInRaw( + requestParameters: SecretsApiLdapLibraryCheckInOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapLibraryCheckIn().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryCheckIn().' + ); + } + + if (requestParameters['ldapLibraryCheckInRequest'] == null) { + throw new runtime.RequiredError( + 'ldapLibraryCheckInRequest', + 'Required parameter "ldapLibraryCheckInRequest" was null or undefined when calling ldapLibraryCheckIn().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/{name}/check-in` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapLibraryCheckInRequestToJSON(requestParameters['ldapLibraryCheckInRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Check service accounts in to the library. + */ + async ldapLibraryCheckIn( + name: string, + ldapMountPath: string, + ldapLibraryCheckInRequest: LdapLibraryCheckInRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLibraryCheckInRaw( + { name: name, ldapMountPath: ldapMountPath, ldapLibraryCheckInRequest: ldapLibraryCheckInRequest }, + initOverrides + ); + } + + /** + * Check a service account out from the library. + */ + async ldapLibraryCheckOutRaw( + requestParameters: SecretsApiLdapLibraryCheckOutOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapLibraryCheckOut().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryCheckOut().' + ); + } + + if (requestParameters['ldapLibraryCheckOutRequest'] == null) { + throw new runtime.RequiredError( + 'ldapLibraryCheckOutRequest', + 'Required parameter "ldapLibraryCheckOutRequest" was null or undefined when calling ldapLibraryCheckOut().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/{name}/check-out` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapLibraryCheckOutRequestToJSON(requestParameters['ldapLibraryCheckOutRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Check a service account out from the library. + */ + async ldapLibraryCheckOut( + name: string, + ldapMountPath: string, + ldapLibraryCheckOutRequest: LdapLibraryCheckOutRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLibraryCheckOutRaw( + { name: name, ldapMountPath: ldapMountPath, ldapLibraryCheckOutRequest: ldapLibraryCheckOutRequest }, + initOverrides + ); + } + + /** + * Check the status of the service accounts in a library set. + */ + async ldapLibraryCheckStatusRaw( + requestParameters: SecretsApiLdapLibraryCheckStatusRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapLibraryCheckStatus().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryCheckStatus().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/{name}/status` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Check the status of the service accounts in a library set. + */ + async ldapLibraryCheckStatus( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLibraryCheckStatusRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Update a library set. + */ + async ldapLibraryConfigureRaw( + requestParameters: SecretsApiLdapLibraryConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapLibraryConfigure().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryConfigure().' + ); + } + + if (requestParameters['ldapLibraryConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'ldapLibraryConfigureRequest', + 'Required parameter "ldapLibraryConfigureRequest" was null or undefined when calling ldapLibraryConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapLibraryConfigureRequestToJSON(requestParameters['ldapLibraryConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update a library set. + */ + async ldapLibraryConfigure( + name: string, + ldapMountPath: string, + ldapLibraryConfigureRequest: LdapLibraryConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLibraryConfigureRaw( + { name: name, ldapMountPath: ldapMountPath, ldapLibraryConfigureRequest: ldapLibraryConfigureRequest }, + initOverrides + ); + } + + /** + * Delete a library set. + */ + async ldapLibraryDeleteRaw( + requestParameters: SecretsApiLdapLibraryDeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapLibraryDelete().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a library set. + */ + async ldapLibraryDelete( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLibraryDeleteRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + * Check service accounts in to the library. + */ + async ldapLibraryForceCheckInRaw( + requestParameters: SecretsApiLdapLibraryForceCheckInOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapLibraryForceCheckIn().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryForceCheckIn().' + ); + } + + if (requestParameters['ldapLibraryForceCheckInRequest'] == null) { + throw new runtime.RequiredError( + 'ldapLibraryForceCheckInRequest', + 'Required parameter "ldapLibraryForceCheckInRequest" was null or undefined when calling ldapLibraryForceCheckIn().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/manage/{name}/check-in` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapLibraryForceCheckInRequestToJSON(requestParameters['ldapLibraryForceCheckInRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Check service accounts in to the library. + */ + async ldapLibraryForceCheckIn( + name: string, + ldapMountPath: string, + ldapLibraryForceCheckInRequest: LdapLibraryForceCheckInRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLibraryForceCheckInRaw( + { + name: name, + ldapMountPath: ldapMountPath, + ldapLibraryForceCheckInRequest: ldapLibraryForceCheckInRequest, + }, + initOverrides + ); + } + + /** + */ + async ldapLibraryListRaw( + requestParameters: SecretsApiLdapLibraryListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryList().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapLibraryList().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapLibraryList( + ldapMountPath: string, + list: LdapLibraryListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapLibraryListRaw( + { ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapLibraryListLibraryPathRaw( + requestParameters: SecretsApiLdapLibraryListLibraryPathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling ldapLibraryListLibraryPath().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryListLibraryPath().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapLibraryListLibraryPath().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapLibraryListLibraryPath( + path: string, + ldapMountPath: string, + list: LdapLibraryListLibraryPathListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapLibraryListLibraryPathRaw( + { path: path, ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapLibraryListLibraryPath_1Raw( + requestParameters: SecretsApiLdapLibraryListLibraryPath0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling ldapLibraryListLibraryPath_1().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryListLibraryPath_1().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapLibraryListLibraryPath_1().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapLibraryListLibraryPath_1( + path: string, + ldapMountPath: string, + list: LdapLibraryListLibraryPath0ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapLibraryListLibraryPath_1Raw( + { path: path, ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Read a library set. + */ + async ldapLibraryReadRaw( + requestParameters: SecretsApiLdapLibraryReadRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapLibraryRead().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapLibraryRead().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/library/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read a library set. + */ + async ldapLibraryRead( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapLibraryReadRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapListDynamicRolesRaw( + requestParameters: SecretsApiLdapListDynamicRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListDynamicRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListDynamicRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/role/`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapListDynamicRoles( + ldapMountPath: string, + list: LdapListDynamicRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListDynamicRolesRaw( + { ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapListRolePathRaw( + requestParameters: SecretsApiLdapListRolePathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling ldapListRolePath().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListRolePath().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListRolePath().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/role/{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapListRolePath( + path: string, + ldapMountPath: string, + list: LdapListRolePathListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListRolePathRaw( + { path: path, ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapListRolePath_2Raw( + requestParameters: SecretsApiLdapListRolePath0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling ldapListRolePath_2().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListRolePath_2().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListRolePath_2().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/role{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapListRolePath_2( + path: string, + ldapMountPath: string, + list: LdapListRolePath0ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListRolePath_2Raw( + { path: path, ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapListStaticRolePathRaw( + requestParameters: SecretsApiLdapListStaticRolePathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling ldapListStaticRolePath().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListStaticRolePath().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListStaticRolePath().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/static-role/{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapListStaticRolePath( + path: string, + ldapMountPath: string, + list: LdapListStaticRolePathListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListStaticRolePathRaw( + { path: path, ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapListStaticRolePath_3Raw( + requestParameters: SecretsApiLdapListStaticRolePath0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling ldapListStaticRolePath_3().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListStaticRolePath_3().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListStaticRolePath_3().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/static-role{path}/` + .replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapListStaticRolePath_3( + path: string, + ldapMountPath: string, + list: LdapListStaticRolePath0ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListStaticRolePath_3Raw( + { path: path, ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapListStaticRolesRaw( + requestParameters: SecretsApiLdapListStaticRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapListStaticRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling ldapListStaticRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/static-role/`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async ldapListStaticRoles( + ldapMountPath: string, + list: LdapListStaticRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.ldapListStaticRolesRaw( + { ldapMountPath: ldapMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async ldapReadConfigurationRaw( + requestParameters: SecretsApiLdapReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/config`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapReadConfiguration( + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapReadConfigurationRaw({ ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapReadDynamicRoleRaw( + requestParameters: SecretsApiLdapReadDynamicRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapReadDynamicRole().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapReadDynamicRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapReadDynamicRole( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapReadDynamicRoleRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapReadStaticRoleRaw( + requestParameters: SecretsApiLdapReadStaticRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapReadStaticRole().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapReadStaticRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/static-role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapReadStaticRole( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapReadStaticRoleRaw({ name: name, ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapRequestDynamicRoleCredentialsRaw( + requestParameters: SecretsApiLdapRequestDynamicRoleCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapRequestDynamicRoleCredentials().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapRequestDynamicRoleCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapRequestDynamicRoleCredentials( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapRequestDynamicRoleCredentialsRaw( + { name: name, ldapMountPath: ldapMountPath }, + initOverrides + ); + } + + /** + */ + async ldapRequestStaticRoleCredentialsRaw( + requestParameters: SecretsApiLdapRequestStaticRoleCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapRequestStaticRoleCredentials().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapRequestStaticRoleCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/static-cred/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapRequestStaticRoleCredentials( + name: string, + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapRequestStaticRoleCredentialsRaw( + { name: name, ldapMountPath: ldapMountPath }, + initOverrides + ); + } + + /** + */ + async ldapRotateRootCredentialsRaw( + requestParameters: SecretsApiLdapRotateRootCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapRotateRootCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ldap_mount_path}/rotate-root`.replace( + `{${'ldap_mount_path'}}`, + encodeURIComponent(String(requestParameters['ldapMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapRotateRootCredentials( + ldapMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapRotateRootCredentialsRaw({ ldapMountPath: ldapMountPath }, initOverrides); + } + + /** + */ + async ldapRotateStaticRoleRaw( + requestParameters: SecretsApiLdapRotateStaticRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapRotateStaticRole().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapRotateStaticRole().' + ); + } + + if (requestParameters['ldapRotateStaticRoleRequest'] == null) { + throw new runtime.RequiredError( + 'ldapRotateStaticRoleRequest', + 'Required parameter "ldapRotateStaticRoleRequest" was null or undefined when calling ldapRotateStaticRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/rotate-role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapRotateStaticRoleRequestToJSON(requestParameters['ldapRotateStaticRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapRotateStaticRole( + name: string, + ldapMountPath: string, + ldapRotateStaticRoleRequest: LdapRotateStaticRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapRotateStaticRoleRaw( + { name: name, ldapMountPath: ldapMountPath, ldapRotateStaticRoleRequest: ldapRotateStaticRoleRequest }, + initOverrides + ); + } + + /** + */ + async ldapWriteDynamicRoleRaw( + requestParameters: SecretsApiLdapWriteDynamicRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapWriteDynamicRole().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapWriteDynamicRole().' + ); + } + + if (requestParameters['ldapWriteDynamicRoleRequest'] == null) { + throw new runtime.RequiredError( + 'ldapWriteDynamicRoleRequest', + 'Required parameter "ldapWriteDynamicRoleRequest" was null or undefined when calling ldapWriteDynamicRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapWriteDynamicRoleRequestToJSON(requestParameters['ldapWriteDynamicRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapWriteDynamicRole( + name: string, + ldapMountPath: string, + ldapWriteDynamicRoleRequest: LdapWriteDynamicRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapWriteDynamicRoleRaw( + { name: name, ldapMountPath: ldapMountPath, ldapWriteDynamicRoleRequest: ldapWriteDynamicRoleRequest }, + initOverrides + ); + } + + /** + */ + async ldapWriteStaticRoleRaw( + requestParameters: SecretsApiLdapWriteStaticRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling ldapWriteStaticRole().' + ); + } + + if (requestParameters['ldapMountPath'] == null) { + throw new runtime.RequiredError( + 'ldapMountPath', + 'Required parameter "ldapMountPath" was null or undefined when calling ldapWriteStaticRole().' + ); + } + + if (requestParameters['ldapWriteStaticRoleRequest'] == null) { + throw new runtime.RequiredError( + 'ldapWriteStaticRoleRequest', + 'Required parameter "ldapWriteStaticRoleRequest" was null or undefined when calling ldapWriteStaticRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ldap_mount_path}/static-role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'ldap_mount_path'}}`, encodeURIComponent(String(requestParameters['ldapMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LdapWriteStaticRoleRequestToJSON(requestParameters['ldapWriteStaticRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async ldapWriteStaticRole( + name: string, + ldapMountPath: string, + ldapWriteStaticRoleRequest: LdapWriteStaticRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.ldapWriteStaticRoleRaw( + { name: name, ldapMountPath: ldapMountPath, ldapWriteStaticRoleRequest: ldapWriteStaticRoleRequest }, + initOverrides + ); + } + + /** + */ + async mongoDbAtlasConfigureRaw( + requestParameters: SecretsApiMongoDbAtlasConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasConfigure().' + ); + } + + if (requestParameters['mongoDbAtlasConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'mongoDbAtlasConfigureRequest', + 'Required parameter "mongoDbAtlasConfigureRequest" was null or undefined when calling mongoDbAtlasConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/config`.replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MongoDbAtlasConfigureRequestToJSON(requestParameters['mongoDbAtlasConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async mongoDbAtlasConfigure( + mongodbatlasMountPath: string, + mongoDbAtlasConfigureRequest: MongoDbAtlasConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mongoDbAtlasConfigureRaw( + { + mongodbatlasMountPath: mongodbatlasMountPath, + mongoDbAtlasConfigureRequest: mongoDbAtlasConfigureRequest, + }, + initOverrides + ); + } + + /** + * Manage the roles used to generate MongoDB Atlas Programmatic API Keys. + */ + async mongoDbAtlasDeleteRoleRaw( + requestParameters: SecretsApiMongoDbAtlasDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mongoDbAtlasDeleteRole().' + ); + } + + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles used to generate MongoDB Atlas Programmatic API Keys. + */ + async mongoDbAtlasDeleteRole( + name: string, + mongodbatlasMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mongoDbAtlasDeleteRoleRaw( + { name: name, mongodbatlasMountPath: mongodbatlasMountPath }, + initOverrides + ); + } + + /** + */ + async mongoDbAtlasGenerateCredentialsRaw( + requestParameters: SecretsApiMongoDbAtlasGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mongoDbAtlasGenerateCredentials().' + ); + } + + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async mongoDbAtlasGenerateCredentials( + name: string, + mongodbatlasMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mongoDbAtlasGenerateCredentialsRaw( + { name: name, mongodbatlasMountPath: mongodbatlasMountPath }, + initOverrides + ); + } + + /** + */ + async mongoDbAtlasGenerateCredentials2Raw( + requestParameters: SecretsApiMongoDbAtlasGenerateCredentials2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mongoDbAtlasGenerateCredentials2().' + ); + } + + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasGenerateCredentials2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async mongoDbAtlasGenerateCredentials2( + name: string, + mongodbatlasMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mongoDbAtlasGenerateCredentials2Raw( + { name: name, mongodbatlasMountPath: mongodbatlasMountPath }, + initOverrides + ); + } + + /** + * List the existing roles in this backend + */ + async mongoDbAtlasListRolesRaw( + requestParameters: SecretsApiMongoDbAtlasListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling mongoDbAtlasListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/roles/`.replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List the existing roles in this backend + */ + async mongoDbAtlasListRoles( + mongodbatlasMountPath: string, + list: MongoDbAtlasListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mongoDbAtlasListRolesRaw( + { mongodbatlasMountPath: mongodbatlasMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async mongoDbAtlasReadConfigurationRaw( + requestParameters: SecretsApiMongoDbAtlasReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/config`.replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async mongoDbAtlasReadConfiguration( + mongodbatlasMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mongoDbAtlasReadConfigurationRaw( + { mongodbatlasMountPath: mongodbatlasMountPath }, + initOverrides + ); + } + + /** + * Manage the roles used to generate MongoDB Atlas Programmatic API Keys. + */ + async mongoDbAtlasReadRoleRaw( + requestParameters: SecretsApiMongoDbAtlasReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mongoDbAtlasReadRole().' + ); + } + + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles used to generate MongoDB Atlas Programmatic API Keys. + */ + async mongoDbAtlasReadRole( + name: string, + mongodbatlasMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mongoDbAtlasReadRoleRaw( + { name: name, mongodbatlasMountPath: mongodbatlasMountPath }, + initOverrides + ); + } + + /** + * Manage the roles used to generate MongoDB Atlas Programmatic API Keys. + */ + async mongoDbAtlasWriteRoleRaw( + requestParameters: SecretsApiMongoDbAtlasWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling mongoDbAtlasWriteRole().' + ); + } + + if (requestParameters['mongodbatlasMountPath'] == null) { + throw new runtime.RequiredError( + 'mongodbatlasMountPath', + 'Required parameter "mongodbatlasMountPath" was null or undefined when calling mongoDbAtlasWriteRole().' + ); + } + + if (requestParameters['mongoDbAtlasWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'mongoDbAtlasWriteRoleRequest', + 'Required parameter "mongoDbAtlasWriteRoleRequest" was null or undefined when calling mongoDbAtlasWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{mongodbatlas_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'mongodbatlas_mount_path'}}`, + encodeURIComponent(String(requestParameters['mongodbatlasMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MongoDbAtlasWriteRoleRequestToJSON(requestParameters['mongoDbAtlasWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles used to generate MongoDB Atlas Programmatic API Keys. + */ + async mongoDbAtlasWriteRole( + name: string, + mongodbatlasMountPath: string, + mongoDbAtlasWriteRoleRequest: MongoDbAtlasWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mongoDbAtlasWriteRoleRaw( + { + name: name, + mongodbatlasMountPath: mongodbatlasMountPath, + mongoDbAtlasWriteRoleRequest: mongoDbAtlasWriteRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async nomadConfigureAccessRaw( + requestParameters: SecretsApiNomadConfigureAccessOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadConfigureAccess().' + ); + } + + if (requestParameters['nomadConfigureAccessRequest'] == null) { + throw new runtime.RequiredError( + 'nomadConfigureAccessRequest', + 'Required parameter "nomadConfigureAccessRequest" was null or undefined when calling nomadConfigureAccess().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{nomad_mount_path}/config/access`.replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NomadConfigureAccessRequestToJSON(requestParameters['nomadConfigureAccessRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadConfigureAccess( + nomadMountPath: string, + nomadConfigureAccessRequest: NomadConfigureAccessRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadConfigureAccessRaw( + { nomadMountPath: nomadMountPath, nomadConfigureAccessRequest: nomadConfigureAccessRequest }, + initOverrides + ); + } + + /** + */ + async nomadConfigureLeaseRaw( + requestParameters: SecretsApiNomadConfigureLeaseOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadConfigureLease().' + ); + } + + if (requestParameters['nomadConfigureLeaseRequest'] == null) { + throw new runtime.RequiredError( + 'nomadConfigureLeaseRequest', + 'Required parameter "nomadConfigureLeaseRequest" was null or undefined when calling nomadConfigureLease().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{nomad_mount_path}/config/lease`.replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NomadConfigureLeaseRequestToJSON(requestParameters['nomadConfigureLeaseRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadConfigureLease( + nomadMountPath: string, + nomadConfigureLeaseRequest: NomadConfigureLeaseRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadConfigureLeaseRaw( + { nomadMountPath: nomadMountPath, nomadConfigureLeaseRequest: nomadConfigureLeaseRequest }, + initOverrides + ); + } + + /** + */ + async nomadDeleteAccessConfigurationRaw( + requestParameters: SecretsApiNomadDeleteAccessConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadDeleteAccessConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/config/access`.replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadDeleteAccessConfiguration( + nomadMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadDeleteAccessConfigurationRaw({ nomadMountPath: nomadMountPath }, initOverrides); + } + + /** + */ + async nomadDeleteLeaseConfigurationRaw( + requestParameters: SecretsApiNomadDeleteLeaseConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadDeleteLeaseConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/config/lease`.replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadDeleteLeaseConfiguration( + nomadMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadDeleteLeaseConfigurationRaw({ nomadMountPath: nomadMountPath }, initOverrides); + } + + /** + */ + async nomadDeleteRoleRaw( + requestParameters: SecretsApiNomadDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling nomadDeleteRole().' + ); + } + + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadDeleteRole( + name: string, + nomadMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadDeleteRoleRaw({ name: name, nomadMountPath: nomadMountPath }, initOverrides); + } + + /** + */ + async nomadGenerateCredentialsRaw( + requestParameters: SecretsApiNomadGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling nomadGenerateCredentials().' + ); + } + + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadGenerateCredentials( + name: string, + nomadMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadGenerateCredentialsRaw({ name: name, nomadMountPath: nomadMountPath }, initOverrides); + } + + /** + */ + async nomadListRolesRaw( + requestParameters: SecretsApiNomadListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling nomadListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/role/`.replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async nomadListRoles( + nomadMountPath: string, + list: NomadListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.nomadListRolesRaw( + { nomadMountPath: nomadMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async nomadReadAccessConfigurationRaw( + requestParameters: SecretsApiNomadReadAccessConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadReadAccessConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/config/access`.replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadReadAccessConfiguration( + nomadMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadReadAccessConfigurationRaw({ nomadMountPath: nomadMountPath }, initOverrides); + } + + /** + */ + async nomadReadLeaseConfigurationRaw( + requestParameters: SecretsApiNomadReadLeaseConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadReadLeaseConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/config/lease`.replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadReadLeaseConfiguration( + nomadMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadReadLeaseConfigurationRaw({ nomadMountPath: nomadMountPath }, initOverrides); + } + + /** + */ + async nomadReadRoleRaw( + requestParameters: SecretsApiNomadReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling nomadReadRole().' + ); + } + + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{nomad_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadReadRole( + name: string, + nomadMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadReadRoleRaw({ name: name, nomadMountPath: nomadMountPath }, initOverrides); + } + + /** + */ + async nomadWriteRoleRaw( + requestParameters: SecretsApiNomadWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling nomadWriteRole().' + ); + } + + if (requestParameters['nomadMountPath'] == null) { + throw new runtime.RequiredError( + 'nomadMountPath', + 'Required parameter "nomadMountPath" was null or undefined when calling nomadWriteRole().' + ); + } + + if (requestParameters['nomadWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'nomadWriteRoleRequest', + 'Required parameter "nomadWriteRoleRequest" was null or undefined when calling nomadWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{nomad_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'nomad_mount_path'}}`, + encodeURIComponent(String(requestParameters['nomadMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: NomadWriteRoleRequestToJSON(requestParameters['nomadWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async nomadWriteRole( + name: string, + nomadMountPath: string, + nomadWriteRoleRequest: NomadWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.nomadWriteRoleRaw( + { name: name, nomadMountPath: nomadMountPath, nomadWriteRoleRequest: nomadWriteRoleRequest }, + initOverrides + ); + } + + /** + */ + async pkiConfigureAcmeRaw( + requestParameters: SecretsApiPkiConfigureAcmeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureAcme().' + ); + } + + if (requestParameters['pkiConfigureAcmeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureAcmeRequest', + 'Required parameter "pkiConfigureAcmeRequest" was null or undefined when calling pkiConfigureAcme().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/acme`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureAcmeRequestToJSON(requestParameters['pkiConfigureAcmeRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiConfigureAcme( + pkiMountPath: string, + pkiConfigureAcmeRequest: PkiConfigureAcmeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiConfigureAcmeRaw( + { pkiMountPath: pkiMountPath, pkiConfigureAcmeRequest: pkiConfigureAcmeRequest }, + initOverrides + ); + } + + /** + */ + async pkiConfigureAutoTidyRaw( + requestParameters: SecretsApiPkiConfigureAutoTidyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureAutoTidy().' + ); + } + + if (requestParameters['pkiConfigureAutoTidyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureAutoTidyRequest', + 'Required parameter "pkiConfigureAutoTidyRequest" was null or undefined when calling pkiConfigureAutoTidy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/auto-tidy`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureAutoTidyRequestToJSON(requestParameters['pkiConfigureAutoTidyRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiConfigureAutoTidyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiConfigureAutoTidy( + pkiMountPath: string, + pkiConfigureAutoTidyRequest: PkiConfigureAutoTidyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureAutoTidyRaw( + { pkiMountPath: pkiMountPath, pkiConfigureAutoTidyRequest: pkiConfigureAutoTidyRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiConfigureCaRaw( + requestParameters: SecretsApiPkiConfigureCaOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureCa().' + ); + } + + if (requestParameters['pkiConfigureCaRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureCaRequest', + 'Required parameter "pkiConfigureCaRequest" was null or undefined when calling pkiConfigureCa().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/ca`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureCaRequestToJSON(requestParameters['pkiConfigureCaRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiConfigureCaResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiConfigureCa( + pkiMountPath: string, + pkiConfigureCaRequest: PkiConfigureCaRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureCaRaw( + { pkiMountPath: pkiMountPath, pkiConfigureCaRequest: pkiConfigureCaRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiConfigureClusterRaw( + requestParameters: SecretsApiPkiConfigureClusterOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureCluster().' + ); + } + + if (requestParameters['pkiConfigureClusterRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureClusterRequest', + 'Required parameter "pkiConfigureClusterRequest" was null or undefined when calling pkiConfigureCluster().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/cluster`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureClusterRequestToJSON(requestParameters['pkiConfigureClusterRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiConfigureClusterResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiConfigureCluster( + pkiMountPath: string, + pkiConfigureClusterRequest: PkiConfigureClusterRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureClusterRaw( + { pkiMountPath: pkiMountPath, pkiConfigureClusterRequest: pkiConfigureClusterRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiConfigureCmpRaw( + requestParameters: SecretsApiPkiConfigureCmpOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureCmp().' + ); + } + + if (requestParameters['pkiConfigureCmpRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureCmpRequest', + 'Required parameter "pkiConfigureCmpRequest" was null or undefined when calling pkiConfigureCmp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/cmp`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureCmpRequestToJSON(requestParameters['pkiConfigureCmpRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiConfigureCmp( + pkiMountPath: string, + pkiConfigureCmpRequest: PkiConfigureCmpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiConfigureCmpRaw( + { pkiMountPath: pkiMountPath, pkiConfigureCmpRequest: pkiConfigureCmpRequest }, + initOverrides + ); + } + + /** + */ + async pkiConfigureCrlRaw( + requestParameters: SecretsApiPkiConfigureCrlOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureCrl().' + ); + } + + if (requestParameters['pkiConfigureCrlRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureCrlRequest', + 'Required parameter "pkiConfigureCrlRequest" was null or undefined when calling pkiConfigureCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureCrlRequestToJSON(requestParameters['pkiConfigureCrlRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiConfigureCrlResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiConfigureCrl( + pkiMountPath: string, + pkiConfigureCrlRequest: PkiConfigureCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureCrlRaw( + { pkiMountPath: pkiMountPath, pkiConfigureCrlRequest: pkiConfigureCrlRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiConfigureEstRaw( + requestParameters: SecretsApiPkiConfigureEstOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureEst().' + ); + } + + if (requestParameters['pkiConfigureEstRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureEstRequest', + 'Required parameter "pkiConfigureEstRequest" was null or undefined when calling pkiConfigureEst().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/est`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureEstRequestToJSON(requestParameters['pkiConfigureEstRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiConfigureEst( + pkiMountPath: string, + pkiConfigureEstRequest: PkiConfigureEstRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiConfigureEstRaw( + { pkiMountPath: pkiMountPath, pkiConfigureEstRequest: pkiConfigureEstRequest }, + initOverrides + ); + } + + /** + */ + async pkiConfigureExternalPolicyRaw( + requestParameters: SecretsApiPkiConfigureExternalPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureExternalPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/external-policy`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiConfigureExternalPolicyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiConfigureExternalPolicy( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureExternalPolicyRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiConfigureExternalPolicy_4Raw( + requestParameters: SecretsApiPkiConfigureExternalPolicy0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureExternalPolicy_4().' + ); + } + + if (requestParameters['pkiConfigureExternalPolicyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureExternalPolicyRequest', + 'Required parameter "pkiConfigureExternalPolicyRequest" was null or undefined when calling pkiConfigureExternalPolicy_4().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/external-policy`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureExternalPolicyRequestToJSON(requestParameters['pkiConfigureExternalPolicyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiConfigureExternalPolicy_4( + pkiMountPath: string, + pkiConfigureExternalPolicyRequest: PkiConfigureExternalPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiConfigureExternalPolicy_4Raw( + { pkiMountPath: pkiMountPath, pkiConfigureExternalPolicyRequest: pkiConfigureExternalPolicyRequest }, + initOverrides + ); + } + + /** + */ + async pkiConfigureIssuersRaw( + requestParameters: SecretsApiPkiConfigureIssuersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureIssuers().' + ); + } + + if (requestParameters['pkiConfigureIssuersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureIssuersRequest', + 'Required parameter "pkiConfigureIssuersRequest" was null or undefined when calling pkiConfigureIssuers().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/issuers`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureIssuersRequestToJSON(requestParameters['pkiConfigureIssuersRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiConfigureIssuersResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiConfigureIssuers( + pkiMountPath: string, + pkiConfigureIssuersRequest: PkiConfigureIssuersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureIssuersRaw( + { pkiMountPath: pkiMountPath, pkiConfigureIssuersRequest: pkiConfigureIssuersRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiConfigureKeysRaw( + requestParameters: SecretsApiPkiConfigureKeysOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureKeys().' + ); + } + + if (requestParameters['pkiConfigureKeysRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureKeysRequest', + 'Required parameter "pkiConfigureKeysRequest" was null or undefined when calling pkiConfigureKeys().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/keys`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureKeysRequestToJSON(requestParameters['pkiConfigureKeysRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiConfigureKeysResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiConfigureKeys( + pkiMountPath: string, + pkiConfigureKeysRequest: PkiConfigureKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureKeysRaw( + { pkiMountPath: pkiMountPath, pkiConfigureKeysRequest: pkiConfigureKeysRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiConfigureScepRaw( + requestParameters: SecretsApiPkiConfigureScepOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureScep().' + ); + } + + if (requestParameters['pkiConfigureScepRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureScepRequest', + 'Required parameter "pkiConfigureScepRequest" was null or undefined when calling pkiConfigureScep().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/scep`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureScepRequestToJSON(requestParameters['pkiConfigureScepRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiConfigureScep( + pkiMountPath: string, + pkiConfigureScepRequest: PkiConfigureScepRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiConfigureScepRaw( + { pkiMountPath: pkiMountPath, pkiConfigureScepRequest: pkiConfigureScepRequest }, + initOverrides + ); + } + + /** + */ + async pkiConfigureUrlsRaw( + requestParameters: SecretsApiPkiConfigureUrlsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiConfigureUrls().' + ); + } + + if (requestParameters['pkiConfigureUrlsRequest'] == null) { + throw new runtime.RequiredError( + 'pkiConfigureUrlsRequest', + 'Required parameter "pkiConfigureUrlsRequest" was null or undefined when calling pkiConfigureUrls().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/urls`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiConfigureUrlsRequestToJSON(requestParameters['pkiConfigureUrlsRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiConfigureUrlsResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiConfigureUrls( + pkiMountPath: string, + pkiConfigureUrlsRequest: PkiConfigureUrlsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiConfigureUrlsRaw( + { pkiMountPath: pkiMountPath, pkiConfigureUrlsRequest: pkiConfigureUrlsRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiCrossSignIntermediateRaw( + requestParameters: SecretsApiPkiCrossSignIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiCrossSignIntermediate().' + ); + } + + if (requestParameters['pkiCrossSignIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiCrossSignIntermediateRequest', + 'Required parameter "pkiCrossSignIntermediateRequest" was null or undefined when calling pkiCrossSignIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/intermediate/cross-sign`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiCrossSignIntermediateRequestToJSON(requestParameters['pkiCrossSignIntermediateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiCrossSignIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiCrossSignIntermediate( + pkiMountPath: string, + pkiCrossSignIntermediateRequest: PkiCrossSignIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiCrossSignIntermediateRaw( + { pkiMountPath: pkiMountPath, pkiCrossSignIntermediateRequest: pkiCrossSignIntermediateRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiDeleteEabKeyRaw( + requestParameters: SecretsApiPkiDeleteEabKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['keyId'] == null) { + throw new runtime.RequiredError( + 'keyId', + 'Required parameter "keyId" was null or undefined when calling pkiDeleteEabKey().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiDeleteEabKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/eab/{key_id}` + .replace(`{${'key_id'}}`, encodeURIComponent(String(requestParameters['keyId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiDeleteEabKey( + keyId: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiDeleteEabKeyRaw({ keyId: keyId, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiDeleteIssuerRaw( + requestParameters: SecretsApiPkiDeleteIssuerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiDeleteIssuer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiDeleteIssuer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiDeleteIssuer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiDeleteIssuerRaw({ issuerRef: issuerRef, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiDeleteKeyRaw( + requestParameters: SecretsApiPkiDeleteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['keyRef'] == null) { + throw new runtime.RequiredError( + 'keyRef', + 'Required parameter "keyRef" was null or undefined when calling pkiDeleteKey().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiDeleteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/key/{key_ref}` + .replace(`{${'key_ref'}}`, encodeURIComponent(String(requestParameters['keyRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiDeleteKey( + keyRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiDeleteKeyRaw({ keyRef: keyRef, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiDeleteRoleRaw( + requestParameters: SecretsApiPkiDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pkiDeleteRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiDeleteRole( + name: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiDeleteRoleRaw({ name: name, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiDeleteRootRaw( + requestParameters: SecretsApiPkiDeleteRootRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiDeleteRoot().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/root`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiDeleteRoot( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiDeleteRootRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiGenerateEabKeyRaw( + requestParameters: SecretsApiPkiGenerateEabKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/new-eab`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiGenerateEabKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiGenerateEabKey( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKeyRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiGenerateEabKeyForIssuerRaw( + requestParameters: SecretsApiPkiGenerateEabKeyForIssuerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiGenerateEabKeyForIssuer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKeyForIssuer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/new-eab` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateEabKeyForIssuerResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateEabKeyForIssuer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKeyForIssuerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateEabKeyForIssuerAndRoleRaw( + requestParameters: SecretsApiPkiGenerateEabKeyForIssuerAndRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiGenerateEabKeyForIssuerAndRole().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiGenerateEabKeyForIssuerAndRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKeyForIssuerAndRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/new-eab` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateEabKeyForIssuerAndRoleResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateEabKeyForIssuerAndRole( + issuerRef: string, + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKeyForIssuerAndRoleRaw( + { issuerRef: issuerRef, role: role, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateEabKeyForIssuer_5Raw( + requestParameters: SecretsApiPkiGenerateEabKeyForIssuer0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiGenerateEabKeyForIssuer_5().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKeyForIssuer_5().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/new-eab` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateEabKeyForIssuerResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateEabKeyForIssuer_5( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKeyForIssuer_5Raw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateEabKeyForIssuer_6Raw( + requestParameters: SecretsApiPkiGenerateEabKeyForIssuer1Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiGenerateEabKeyForIssuer_6().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiGenerateEabKeyForIssuer_6().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKeyForIssuer_6().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/new-eab` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateEabKeyForIssuerResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateEabKeyForIssuer_6( + issuerRef: string, + policy: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKeyForIssuer_6Raw( + { issuerRef: issuerRef, policy: policy, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateEabKeyForRoleRaw( + requestParameters: SecretsApiPkiGenerateEabKeyForRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiGenerateEabKeyForRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKeyForRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/new-eab` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateEabKeyForRoleResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateEabKeyForRole( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKeyForRoleRaw( + { role: role, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateEabKey_7Raw( + requestParameters: SecretsApiPkiGenerateEabKey0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKey_7().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/new-eab`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiGenerateEabKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiGenerateEabKey_7( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKey_7Raw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiGenerateEabKey_8Raw( + requestParameters: SecretsApiPkiGenerateEabKey1Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiGenerateEabKey_8().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateEabKey_8().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/new-eab` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiGenerateEabKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiGenerateEabKey_8( + policy: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateEabKey_8Raw( + { policy: policy, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateExportedKeyRaw( + requestParameters: SecretsApiPkiGenerateExportedKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateExportedKey().' + ); + } + + if (requestParameters['pkiGenerateExportedKeyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiGenerateExportedKeyRequest', + 'Required parameter "pkiGenerateExportedKeyRequest" was null or undefined when calling pkiGenerateExportedKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/keys/generate/exported`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiGenerateExportedKeyRequestToJSON(requestParameters['pkiGenerateExportedKeyRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateExportedKeyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateExportedKey( + pkiMountPath: string, + pkiGenerateExportedKeyRequest: PkiGenerateExportedKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateExportedKeyRaw( + { pkiMountPath: pkiMountPath, pkiGenerateExportedKeyRequest: pkiGenerateExportedKeyRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateIntermediateRaw( + requestParameters: SecretsApiPkiGenerateIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['exported'] == null) { + throw new runtime.RequiredError( + 'exported', + 'Required parameter "exported" was null or undefined when calling pkiGenerateIntermediate().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateIntermediate().' + ); + } + + if (requestParameters['pkiGenerateIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiGenerateIntermediateRequest', + 'Required parameter "pkiGenerateIntermediateRequest" was null or undefined when calling pkiGenerateIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/intermediate/generate/{exported}` + .replace(`{${'exported'}}`, encodeURIComponent(String(requestParameters['exported']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiGenerateIntermediateRequestToJSON(requestParameters['pkiGenerateIntermediateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateIntermediate( + exported: PkiGenerateIntermediateExportedEnum, + pkiMountPath: string, + pkiGenerateIntermediateRequest: PkiGenerateIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateIntermediateRaw( + { + exported: exported, + pkiMountPath: pkiMountPath, + pkiGenerateIntermediateRequest: pkiGenerateIntermediateRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateInternalKeyRaw( + requestParameters: SecretsApiPkiGenerateInternalKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateInternalKey().' + ); + } + + if (requestParameters['pkiGenerateInternalKeyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiGenerateInternalKeyRequest', + 'Required parameter "pkiGenerateInternalKeyRequest" was null or undefined when calling pkiGenerateInternalKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/keys/generate/internal`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiGenerateInternalKeyRequestToJSON(requestParameters['pkiGenerateInternalKeyRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiGenerateInternalKeyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiGenerateInternalKey( + pkiMountPath: string, + pkiGenerateInternalKeyRequest: PkiGenerateInternalKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateInternalKeyRaw( + { pkiMountPath: pkiMountPath, pkiGenerateInternalKeyRequest: pkiGenerateInternalKeyRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateKmsKeyRaw( + requestParameters: SecretsApiPkiGenerateKmsKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateKmsKey().' + ); + } + + if (requestParameters['pkiGenerateKmsKeyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiGenerateKmsKeyRequest', + 'Required parameter "pkiGenerateKmsKeyRequest" was null or undefined when calling pkiGenerateKmsKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/keys/generate/kms`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiGenerateKmsKeyRequestToJSON(requestParameters['pkiGenerateKmsKeyRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiGenerateKmsKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiGenerateKmsKey( + pkiMountPath: string, + pkiGenerateKmsKeyRequest: PkiGenerateKmsKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateKmsKeyRaw( + { pkiMountPath: pkiMountPath, pkiGenerateKmsKeyRequest: pkiGenerateKmsKeyRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiGenerateRootRaw( + requestParameters: SecretsApiPkiGenerateRootOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['exported'] == null) { + throw new runtime.RequiredError( + 'exported', + 'Required parameter "exported" was null or undefined when calling pkiGenerateRoot().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiGenerateRoot().' + ); + } + + if (requestParameters['pkiGenerateRootRequest'] == null) { + throw new runtime.RequiredError( + 'pkiGenerateRootRequest', + 'Required parameter "pkiGenerateRootRequest" was null or undefined when calling pkiGenerateRoot().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/root/generate/{exported}` + .replace(`{${'exported'}}`, encodeURIComponent(String(requestParameters['exported']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiGenerateRootRequestToJSON(requestParameters['pkiGenerateRootRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiGenerateRootResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiGenerateRoot( + exported: PkiGenerateRootExportedEnum, + pkiMountPath: string, + pkiGenerateRootRequest: PkiGenerateRootRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiGenerateRootRaw( + { exported: exported, pkiMountPath: pkiMountPath, pkiGenerateRootRequest: pkiGenerateRootRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiImportKeyRaw( + requestParameters: SecretsApiPkiImportKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiImportKey().' + ); + } + + if (requestParameters['pkiImportKeyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiImportKeyRequest', + 'Required parameter "pkiImportKeyRequest" was null or undefined when calling pkiImportKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/keys/import`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiImportKeyRequestToJSON(requestParameters['pkiImportKeyRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiImportKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiImportKey( + pkiMountPath: string, + pkiImportKeyRequest: PkiImportKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiImportKeyRaw( + { pkiMountPath: pkiMountPath, pkiImportKeyRequest: pkiImportKeyRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssueWithRoleRaw( + requestParameters: SecretsApiPkiIssueWithRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiIssueWithRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssueWithRole().' + ); + } + + if (requestParameters['pkiIssueWithRoleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssueWithRoleRequest', + 'Required parameter "pkiIssueWithRoleRequest" was null or undefined when calling pkiIssueWithRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issue/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssueWithRoleRequestToJSON(requestParameters['pkiIssueWithRoleRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiIssueWithRoleResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiIssueWithRole( + role: string, + pkiMountPath: string, + pkiIssueWithRoleRequest: PkiIssueWithRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssueWithRoleRaw( + { role: role, pkiMountPath: pkiMountPath, pkiIssueWithRoleRequest: pkiIssueWithRoleRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerIssueWithRoleRaw( + requestParameters: SecretsApiPkiIssuerIssueWithRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerIssueWithRole().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiIssuerIssueWithRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerIssueWithRole().' + ); + } + + if (requestParameters['pkiIssuerIssueWithRoleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerIssueWithRoleRequest', + 'Required parameter "pkiIssuerIssueWithRoleRequest" was null or undefined when calling pkiIssuerIssueWithRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/issue/{role}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerIssueWithRoleRequestToJSON(requestParameters['pkiIssuerIssueWithRoleRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerIssueWithRoleResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerIssueWithRole( + issuerRef: string, + role: string, + pkiMountPath: string, + pkiIssuerIssueWithRoleRequest: PkiIssuerIssueWithRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerIssueWithRoleRaw( + { + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiIssuerIssueWithRoleRequest: pkiIssuerIssueWithRoleRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadCrlRaw( + requestParameters: SecretsApiPkiIssuerReadCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadCrl().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/crl` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiIssuerReadCrlResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiIssuerReadCrl( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadCrlRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadCrlDeltaRaw( + requestParameters: SecretsApiPkiIssuerReadCrlDeltaRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadCrlDelta().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadCrlDelta().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/crl/delta` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadCrlDeltaResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadCrlDelta( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadCrlDeltaRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadCrlDeltaDerRaw( + requestParameters: SecretsApiPkiIssuerReadCrlDeltaDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadCrlDeltaDer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadCrlDeltaDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/crl/delta/der` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadCrlDeltaDerResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadCrlDeltaDer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadCrlDeltaDerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadCrlDeltaPemRaw( + requestParameters: SecretsApiPkiIssuerReadCrlDeltaPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadCrlDeltaPem().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadCrlDeltaPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/crl/delta/pem` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadCrlDeltaPemResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadCrlDeltaPem( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadCrlDeltaPemRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadCrlDerRaw( + requestParameters: SecretsApiPkiIssuerReadCrlDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadCrlDer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadCrlDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/crl/der` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadCrlDerResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadCrlDer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadCrlDerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadCrlPemRaw( + requestParameters: SecretsApiPkiIssuerReadCrlPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadCrlPem().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadCrlPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/crl/pem` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadCrlPemResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadCrlPem( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadCrlPemRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadUnifiedCrlRaw( + requestParameters: SecretsApiPkiIssuerReadUnifiedCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadUnifiedCrl().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadUnifiedCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/unified-crl` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadUnifiedCrlResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadUnifiedCrl( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadUnifiedCrlRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDeltaRaw( + requestParameters: SecretsApiPkiIssuerReadUnifiedCrlDeltaRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadUnifiedCrlDelta().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadUnifiedCrlDelta().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/unified-crl/delta` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadUnifiedCrlDeltaResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDelta( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadUnifiedCrlDeltaRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDeltaDerRaw( + requestParameters: SecretsApiPkiIssuerReadUnifiedCrlDeltaDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadUnifiedCrlDeltaDer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadUnifiedCrlDeltaDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/unified-crl/delta/der` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadUnifiedCrlDeltaDerResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDeltaDer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadUnifiedCrlDeltaDerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDeltaPemRaw( + requestParameters: SecretsApiPkiIssuerReadUnifiedCrlDeltaPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadUnifiedCrlDeltaPem().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadUnifiedCrlDeltaPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/unified-crl/delta/pem` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadUnifiedCrlDeltaPemResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDeltaPem( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadUnifiedCrlDeltaPemRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDerRaw( + requestParameters: SecretsApiPkiIssuerReadUnifiedCrlDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadUnifiedCrlDer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadUnifiedCrlDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/unified-crl/der` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadUnifiedCrlDerResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadUnifiedCrlDer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadUnifiedCrlDerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerReadUnifiedCrlPemRaw( + requestParameters: SecretsApiPkiIssuerReadUnifiedCrlPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerReadUnifiedCrlPem().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerReadUnifiedCrlPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/unified-crl/pem` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerReadUnifiedCrlPemResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerReadUnifiedCrlPem( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerReadUnifiedCrlPemRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerResignCrlsRaw( + requestParameters: SecretsApiPkiIssuerResignCrlsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerResignCrls().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerResignCrls().' + ); + } + + if (requestParameters['pkiIssuerResignCrlsRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerResignCrlsRequest', + 'Required parameter "pkiIssuerResignCrlsRequest" was null or undefined when calling pkiIssuerResignCrls().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/resign-crls` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerResignCrlsRequestToJSON(requestParameters['pkiIssuerResignCrlsRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerResignCrlsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerResignCrls( + issuerRef: string, + pkiMountPath: string, + pkiIssuerResignCrlsRequest: PkiIssuerResignCrlsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerResignCrlsRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiIssuerResignCrlsRequest: pkiIssuerResignCrlsRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerSignIntermediateRaw( + requestParameters: SecretsApiPkiIssuerSignIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerSignIntermediate().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerSignIntermediate().' + ); + } + + if (requestParameters['pkiIssuerSignIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerSignIntermediateRequest', + 'Required parameter "pkiIssuerSignIntermediateRequest" was null or undefined when calling pkiIssuerSignIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/sign-intermediate` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerSignIntermediateRequestToJSON(requestParameters['pkiIssuerSignIntermediateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerSignIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerSignIntermediate( + issuerRef: string, + pkiMountPath: string, + pkiIssuerSignIntermediateRequest: PkiIssuerSignIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerSignIntermediateRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiIssuerSignIntermediateRequest: pkiIssuerSignIntermediateRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerSignRevocationListRaw( + requestParameters: SecretsApiPkiIssuerSignRevocationListOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerSignRevocationList().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerSignRevocationList().' + ); + } + + if (requestParameters['pkiIssuerSignRevocationListRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerSignRevocationListRequest', + 'Required parameter "pkiIssuerSignRevocationListRequest" was null or undefined when calling pkiIssuerSignRevocationList().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/sign-revocation-list` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerSignRevocationListRequestToJSON( + requestParameters['pkiIssuerSignRevocationListRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerSignRevocationListResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerSignRevocationList( + issuerRef: string, + pkiMountPath: string, + pkiIssuerSignRevocationListRequest: PkiIssuerSignRevocationListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerSignRevocationListRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiIssuerSignRevocationListRequest: pkiIssuerSignRevocationListRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerSignSelfIssuedRaw( + requestParameters: SecretsApiPkiIssuerSignSelfIssuedOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerSignSelfIssued().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerSignSelfIssued().' + ); + } + + if (requestParameters['pkiIssuerSignSelfIssuedRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerSignSelfIssuedRequest', + 'Required parameter "pkiIssuerSignSelfIssuedRequest" was null or undefined when calling pkiIssuerSignSelfIssued().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/sign-self-issued` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerSignSelfIssuedRequestToJSON(requestParameters['pkiIssuerSignSelfIssuedRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerSignSelfIssuedResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerSignSelfIssued( + issuerRef: string, + pkiMountPath: string, + pkiIssuerSignSelfIssuedRequest: PkiIssuerSignSelfIssuedRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerSignSelfIssuedRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiIssuerSignSelfIssuedRequest: pkiIssuerSignSelfIssuedRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerSignVerbatimRaw( + requestParameters: SecretsApiPkiIssuerSignVerbatimOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerSignVerbatim().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerSignVerbatim().' + ); + } + + if (requestParameters['pkiIssuerSignVerbatimRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerSignVerbatimRequest', + 'Required parameter "pkiIssuerSignVerbatimRequest" was null or undefined when calling pkiIssuerSignVerbatim().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/sign-verbatim` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerSignVerbatimRequestToJSON(requestParameters['pkiIssuerSignVerbatimRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerSignVerbatimResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerSignVerbatim( + issuerRef: string, + pkiMountPath: string, + pkiIssuerSignVerbatimRequest: PkiIssuerSignVerbatimRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerSignVerbatimRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiIssuerSignVerbatimRequest: pkiIssuerSignVerbatimRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerSignVerbatimWithRoleRaw( + requestParameters: SecretsApiPkiIssuerSignVerbatimWithRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerSignVerbatimWithRole().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiIssuerSignVerbatimWithRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerSignVerbatimWithRole().' + ); + } + + if (requestParameters['pkiIssuerSignVerbatimWithRoleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerSignVerbatimWithRoleRequest', + 'Required parameter "pkiIssuerSignVerbatimWithRoleRequest" was null or undefined when calling pkiIssuerSignVerbatimWithRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/sign-verbatim/{role}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerSignVerbatimWithRoleRequestToJSON( + requestParameters['pkiIssuerSignVerbatimWithRoleRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerSignVerbatimWithRoleResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerSignVerbatimWithRole( + issuerRef: string, + role: string, + pkiMountPath: string, + pkiIssuerSignVerbatimWithRoleRequest: PkiIssuerSignVerbatimWithRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerSignVerbatimWithRoleRaw( + { + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiIssuerSignVerbatimWithRoleRequest: pkiIssuerSignVerbatimWithRoleRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuerSignWithRoleRaw( + requestParameters: SecretsApiPkiIssuerSignWithRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiIssuerSignWithRole().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiIssuerSignWithRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuerSignWithRole().' + ); + } + + if (requestParameters['pkiIssuerSignWithRoleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuerSignWithRoleRequest', + 'Required parameter "pkiIssuerSignWithRoleRequest" was null or undefined when calling pkiIssuerSignWithRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/sign/{role}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuerSignWithRoleRequestToJSON(requestParameters['pkiIssuerSignWithRoleRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuerSignWithRoleResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuerSignWithRole( + issuerRef: string, + role: string, + pkiMountPath: string, + pkiIssuerSignWithRoleRequest: PkiIssuerSignWithRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuerSignWithRoleRaw( + { + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiIssuerSignWithRoleRequest: pkiIssuerSignWithRoleRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuersGenerateIntermediateRaw( + requestParameters: SecretsApiPkiIssuersGenerateIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['exported'] == null) { + throw new runtime.RequiredError( + 'exported', + 'Required parameter "exported" was null or undefined when calling pkiIssuersGenerateIntermediate().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuersGenerateIntermediate().' + ); + } + + if (requestParameters['pkiIssuersGenerateIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuersGenerateIntermediateRequest', + 'Required parameter "pkiIssuersGenerateIntermediateRequest" was null or undefined when calling pkiIssuersGenerateIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuers/generate/intermediate/{exported}` + .replace(`{${'exported'}}`, encodeURIComponent(String(requestParameters['exported']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuersGenerateIntermediateRequestToJSON( + requestParameters['pkiIssuersGenerateIntermediateRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuersGenerateIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuersGenerateIntermediate( + exported: PkiIssuersGenerateIntermediateExportedEnum, + pkiMountPath: string, + pkiIssuersGenerateIntermediateRequest: PkiIssuersGenerateIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuersGenerateIntermediateRaw( + { + exported: exported, + pkiMountPath: pkiMountPath, + pkiIssuersGenerateIntermediateRequest: pkiIssuersGenerateIntermediateRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuersGenerateRootRaw( + requestParameters: SecretsApiPkiIssuersGenerateRootOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['exported'] == null) { + throw new runtime.RequiredError( + 'exported', + 'Required parameter "exported" was null or undefined when calling pkiIssuersGenerateRoot().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuersGenerateRoot().' + ); + } + + if (requestParameters['pkiIssuersGenerateRootRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuersGenerateRootRequest', + 'Required parameter "pkiIssuersGenerateRootRequest" was null or undefined when calling pkiIssuersGenerateRoot().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuers/generate/root/{exported}` + .replace(`{${'exported'}}`, encodeURIComponent(String(requestParameters['exported']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuersGenerateRootRequestToJSON(requestParameters['pkiIssuersGenerateRootRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuersGenerateRootResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuersGenerateRoot( + exported: PkiIssuersGenerateRootExportedEnum, + pkiMountPath: string, + pkiIssuersGenerateRootRequest: PkiIssuersGenerateRootRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuersGenerateRootRaw( + { + exported: exported, + pkiMountPath: pkiMountPath, + pkiIssuersGenerateRootRequest: pkiIssuersGenerateRootRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuersImportBundleRaw( + requestParameters: SecretsApiPkiIssuersImportBundleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuersImportBundle().' + ); + } + + if (requestParameters['pkiIssuersImportBundleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuersImportBundleRequest', + 'Required parameter "pkiIssuersImportBundleRequest" was null or undefined when calling pkiIssuersImportBundle().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuers/import/bundle`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuersImportBundleRequestToJSON(requestParameters['pkiIssuersImportBundleRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuersImportBundleResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuersImportBundle( + pkiMountPath: string, + pkiIssuersImportBundleRequest: PkiIssuersImportBundleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuersImportBundleRaw( + { pkiMountPath: pkiMountPath, pkiIssuersImportBundleRequest: pkiIssuersImportBundleRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiIssuersImportCertRaw( + requestParameters: SecretsApiPkiIssuersImportCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiIssuersImportCert().' + ); + } + + if (requestParameters['pkiIssuersImportCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiIssuersImportCertRequest', + 'Required parameter "pkiIssuersImportCertRequest" was null or undefined when calling pkiIssuersImportCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuers/import/cert`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiIssuersImportCertRequestToJSON(requestParameters['pkiIssuersImportCertRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiIssuersImportCertResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiIssuersImportCert( + pkiMountPath: string, + pkiIssuersImportCertRequest: PkiIssuersImportCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiIssuersImportCertRaw( + { pkiMountPath: pkiMountPath, pkiIssuersImportCertRequest: pkiIssuersImportCertRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiListAcmeAccountKeysRaw( + requestParameters: SecretsApiPkiListAcmeAccountKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListAcmeAccountKeys().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListAcmeAccountKeys().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/mgmt/account/keyid/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListAcmeAccountKeys( + pkiMountPath: string, + list: PkiListAcmeAccountKeysListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListAcmeAccountKeysRaw( + { pkiMountPath: pkiMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiListCertMetadataRaw( + requestParameters: SecretsApiPkiListCertMetadataRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListCertMetadata().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListCertMetadata().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert-metadata/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListCertMetadata( + pkiMountPath: string, + list: PkiListCertMetadataListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListCertMetadataRaw( + { pkiMountPath: pkiMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiListCertsRaw( + requestParameters: SecretsApiPkiListCertsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListCerts().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListCerts().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/certs/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListCerts( + pkiMountPath: string, + list: PkiListCertsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListCertsRaw({ pkiMountPath: pkiMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiListCertsRevocationQueueRaw( + requestParameters: SecretsApiPkiListCertsRevocationQueueRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListCertsRevocationQueue().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListCertsRevocationQueue().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/certs/revocation-queue/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListCertsRevocationQueue( + pkiMountPath: string, + list: PkiListCertsRevocationQueueListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListCertsRevocationQueueRaw( + { pkiMountPath: pkiMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiListEabKeysRaw( + requestParameters: SecretsApiPkiListEabKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListEabKeys().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListEabKeys().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/eab/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiListEabKeysResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListEabKeys( + pkiMountPath: string, + list: PkiListEabKeysListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListEabKeysRaw({ pkiMountPath: pkiMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiListIssuersRaw( + requestParameters: SecretsApiPkiListIssuersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListIssuers().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListIssuers().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuers/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiListIssuersResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListIssuers( + pkiMountPath: string, + list: PkiListIssuersListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListIssuersRaw({ pkiMountPath: pkiMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiListKeysRaw( + requestParameters: SecretsApiPkiListKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListKeys().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListKeys().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/keys/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiListKeysResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListKeys( + pkiMountPath: string, + list: PkiListKeysListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListKeysRaw({ pkiMountPath: pkiMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiListRevokedCertsRaw( + requestParameters: SecretsApiPkiListRevokedCertsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListRevokedCerts().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListRevokedCerts().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/certs/revoked/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListRevokedCerts( + pkiMountPath: string, + list: PkiListRevokedCertsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListRevokedCertsRaw( + { pkiMountPath: pkiMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiListRolesRaw( + requestParameters: SecretsApiPkiListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiListRoles( + pkiMountPath: string, + list: PkiListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListRolesRaw({ pkiMountPath: pkiMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiListUnifiedRevokedCertsRaw( + requestParameters: SecretsApiPkiListUnifiedRevokedCertsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiListUnifiedRevokedCerts().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pkiListUnifiedRevokedCerts().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/certs/unified-revoked/`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiListUnifiedRevokedCertsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiListUnifiedRevokedCerts( + pkiMountPath: string, + list: PkiListUnifiedRevokedCertsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiListUnifiedRevokedCertsRaw( + { pkiMountPath: pkiMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiQueryOcspRaw( + requestParameters: SecretsApiPkiQueryOcspRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiQueryOcsp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/ocsp`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiQueryOcsp( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiQueryOcspRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiQueryOcspWithGetReqRaw( + requestParameters: SecretsApiPkiQueryOcspWithGetReqRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['req'] == null) { + throw new runtime.RequiredError( + 'req', + 'Required parameter "req" was null or undefined when calling pkiQueryOcspWithGetReq().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiQueryOcspWithGetReq().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/ocsp/{req}` + .replace(`{${'req'}}`, encodeURIComponent(String(requestParameters['req']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiQueryOcspWithGetReq( + req: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiQueryOcspWithGetReqRaw({ req: req, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiQueryUnifiedOcspRaw( + requestParameters: SecretsApiPkiQueryUnifiedOcspRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiQueryUnifiedOcsp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/unified-ocsp`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiQueryUnifiedOcsp( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiQueryUnifiedOcspRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiQueryUnifiedOcspWithGetReqRaw( + requestParameters: SecretsApiPkiQueryUnifiedOcspWithGetReqRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['req'] == null) { + throw new runtime.RequiredError( + 'req', + 'Required parameter "req" was null or undefined when calling pkiQueryUnifiedOcspWithGetReq().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiQueryUnifiedOcspWithGetReq().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/unified-ocsp/{req}` + .replace(`{${'req'}}`, encodeURIComponent(String(requestParameters['req']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiQueryUnifiedOcspWithGetReq( + req: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiQueryUnifiedOcspWithGetReqRaw({ req: req, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadAcmeConfigurationRaw( + requestParameters: SecretsApiPkiReadAcmeConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadAcmeConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/acme`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadAcmeConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadAcmeConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/directory`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadAcmeDirectory( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadAcmeDirectoryRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadAcmeKeyIdRaw( + requestParameters: SecretsApiPkiReadAcmeKeyIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['keyid'] == null) { + throw new runtime.RequiredError( + 'keyid', + 'Required parameter "keyid" was null or undefined when calling pkiReadAcmeKeyId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadAcmeKeyId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/mgmt/account/keyid/{keyid}` + .replace(`{${'keyid'}}`, encodeURIComponent(String(requestParameters['keyid']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadAcmeKeyId( + keyid: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadAcmeKeyIdRaw({ keyid: keyid, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/new-nonce`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadAcmeNewNonce( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadAcmeNewNonceRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadAutoTidyConfigurationRaw( + requestParameters: SecretsApiPkiReadAutoTidyConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadAutoTidyConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/auto-tidy`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadAutoTidyConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadAutoTidyConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadAutoTidyConfigurationRaw( + { pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadCaChainPemRaw( + requestParameters: SecretsApiPkiReadCaChainPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCaChainPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/ca_chain`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCaChainPemResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCaChainPem( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCaChainPemRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCaDerRaw( + requestParameters: SecretsApiPkiReadCaDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCaDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/ca`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCaDerResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCaDer( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCaDerRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCaPemRaw( + requestParameters: SecretsApiPkiReadCaPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCaPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/ca/pem`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCaPemResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCaPem( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCaPemRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCertRaw( + requestParameters: SecretsApiPkiReadCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['serial'] == null) { + throw new runtime.RequiredError( + 'serial', + 'Required parameter "serial" was null or undefined when calling pkiReadCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/{serial}` + .replace(`{${'serial'}}`, encodeURIComponent(String(requestParameters['serial']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCertResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCert( + serial: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertRaw({ serial: serial, pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCertCaChainRaw( + requestParameters: SecretsApiPkiReadCertCaChainRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertCaChain().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/ca_chain`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadCertCaChainResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadCertCaChain( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertCaChainRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCertCrlRaw( + requestParameters: SecretsApiPkiReadCertCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCertCrlResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCertCrl( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertCrlRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCertDeltaCrlRaw( + requestParameters: SecretsApiPkiReadCertDeltaCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertDeltaCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/delta-crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadCertDeltaCrlResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadCertDeltaCrl( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertDeltaCrlRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCertMetadataRaw( + requestParameters: SecretsApiPkiReadCertMetadataRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['serial'] == null) { + throw new runtime.RequiredError( + 'serial', + 'Required parameter "serial" was null or undefined when calling pkiReadCertMetadata().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertMetadata().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert-metadata/{serial}` + .replace(`{${'serial'}}`, encodeURIComponent(String(requestParameters['serial']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadCertMetadataResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadCertMetadata( + serial: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertMetadataRaw( + { serial: serial, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadCertRawDerRaw( + requestParameters: SecretsApiPkiReadCertRawDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['serial'] == null) { + throw new runtime.RequiredError( + 'serial', + 'Required parameter "serial" was null or undefined when calling pkiReadCertRawDer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertRawDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/{serial}/raw` + .replace(`{${'serial'}}`, encodeURIComponent(String(requestParameters['serial']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCertRawDerResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCertRawDer( + serial: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertRawDerRaw( + { serial: serial, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadCertRawPemRaw( + requestParameters: SecretsApiPkiReadCertRawPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['serial'] == null) { + throw new runtime.RequiredError( + 'serial', + 'Required parameter "serial" was null or undefined when calling pkiReadCertRawPem().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertRawPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/{serial}/raw/pem` + .replace(`{${'serial'}}`, encodeURIComponent(String(requestParameters['serial']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCertRawPemResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCertRawPem( + serial: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertRawPemRaw( + { serial: serial, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadCertUnifiedCrlRaw( + requestParameters: SecretsApiPkiReadCertUnifiedCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertUnifiedCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/unified-crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadCertUnifiedCrlResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadCertUnifiedCrl( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertUnifiedCrlRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCertUnifiedDeltaCrlRaw( + requestParameters: SecretsApiPkiReadCertUnifiedDeltaCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCertUnifiedDeltaCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cert/unified-delta-crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadCertUnifiedDeltaCrlResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadCertUnifiedDeltaCrl( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCertUnifiedDeltaCrlRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadClusterConfigurationRaw( + requestParameters: SecretsApiPkiReadClusterConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadClusterConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/cluster`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadClusterConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadClusterConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadClusterConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCmpv2ConfigurationRaw( + requestParameters: SecretsApiPkiReadCmpv2ConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCmpv2Configuration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/cmp`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadCmpv2Configuration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadCmpv2ConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadCrlConfigurationRaw( + requestParameters: SecretsApiPkiReadCrlConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCrlConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadCrlConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadCrlConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCrlConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCrlDeltaRaw( + requestParameters: SecretsApiPkiReadCrlDeltaRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCrlDelta().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/crl/delta`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCrlDeltaResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCrlDelta( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCrlDeltaRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCrlDeltaPemRaw( + requestParameters: SecretsApiPkiReadCrlDeltaPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCrlDeltaPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/crl/delta/pem`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadCrlDeltaPemResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadCrlDeltaPem( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCrlDeltaPemRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCrlDerRaw( + requestParameters: SecretsApiPkiReadCrlDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCrlDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCrlDerResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCrlDer( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCrlDerRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadCrlPemRaw( + requestParameters: SecretsApiPkiReadCrlPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadCrlPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/crl/pem`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadCrlPemResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadCrlPem( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadCrlPemRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadEstCacertsRaw( + requestParameters: SecretsApiPkiReadEstCacertsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadEstCacerts().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/est/cacerts`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadEstCacerts( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadEstCacertsRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadEstConfigurationRaw( + requestParameters: SecretsApiPkiReadEstConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadEstConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/est`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadEstConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadEstConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadExternalPolicyAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadExternalPolicyAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadExternalPolicyAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/directory`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadExternalPolicyAcmeDirectory( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadExternalPolicyAcmeDirectoryRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadExternalPolicyAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadExternalPolicyAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadExternalPolicyAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/new-nonce`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadExternalPolicyAcmeNewNonce( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadExternalPolicyAcmeNewNonceRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadExternalPolicyPolicyAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadExternalPolicyPolicyAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiReadExternalPolicyPolicyAcmeDirectory().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadExternalPolicyPolicyAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/directory` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadExternalPolicyPolicyAcmeDirectory( + policy: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadExternalPolicyPolicyAcmeDirectoryRaw( + { policy: policy, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadExternalPolicyPolicyAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadExternalPolicyPolicyAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiReadExternalPolicyPolicyAcmeNewNonce().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadExternalPolicyPolicyAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/new-nonce` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadExternalPolicyPolicyAcmeNewNonce( + policy: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadExternalPolicyPolicyAcmeNewNonceRaw( + { policy: policy, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerRaw( + requestParameters: SecretsApiPkiReadIssuerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadIssuerResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadIssuer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadIssuerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadIssuerDerRaw( + requestParameters: SecretsApiPkiReadIssuerDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerDer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/der` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadIssuerDerResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadIssuerDer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadIssuerDerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadIssuerIssuerRefAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefAcmeDirectory().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/directory` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefAcmeDirectory( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefAcmeDirectoryRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerIssuerRefAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefAcmeNewNonce().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/new-nonce` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefAcmeNewNonce( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefAcmeNewNonceRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefExternalPolicyAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyAcmeDirectory().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/directory` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyAcmeDirectory( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefExternalPolicyAcmeDirectoryRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefExternalPolicyAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyAcmeNewNonce().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/new-nonce` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyAcmeNewNonce( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefExternalPolicyAcmeNewNonceRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectory().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectory().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/directory` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectory( + issuerRef: string, + policy: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeDirectoryRaw( + { issuerRef: issuerRef, policy: policy, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonce().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonce().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/new-nonce` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonce( + issuerRef: string, + policy: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefExternalPolicyPolicyAcmeNewNonceRaw( + { issuerRef: issuerRef, policy: policy, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerIssuerRefRolesRoleAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefRolesRoleAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefRolesRoleAcmeDirectory().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiReadIssuerIssuerRefRolesRoleAcmeDirectory().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefRolesRoleAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/directory` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefRolesRoleAcmeDirectory( + issuerRef: string, + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefRolesRoleAcmeDirectoryRaw( + { issuerRef: issuerRef, role: role, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerIssuerRefRolesRoleAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadIssuerIssuerRefRolesRoleAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerIssuerRefRolesRoleAcmeNewNonce().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiReadIssuerIssuerRefRolesRoleAcmeNewNonce().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerIssuerRefRolesRoleAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/new-nonce` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadIssuerIssuerRefRolesRoleAcmeNewNonce( + issuerRef: string, + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadIssuerIssuerRefRolesRoleAcmeNewNonceRaw( + { issuerRef: issuerRef, role: role, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiReadIssuerJsonRaw( + requestParameters: SecretsApiPkiReadIssuerJsonRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerJson().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerJson().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/json` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadIssuerJsonResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadIssuerJson( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadIssuerJsonRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadIssuerPemRaw( + requestParameters: SecretsApiPkiReadIssuerPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiReadIssuerPem().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuerPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/pem` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadIssuerPemResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadIssuerPem( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadIssuerPemRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiReadIssuersConfigurationRaw( + requestParameters: SecretsApiPkiReadIssuersConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadIssuersConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/issuers`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadIssuersConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadIssuersConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadIssuersConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadKeyRaw( + requestParameters: SecretsApiPkiReadKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['keyRef'] == null) { + throw new runtime.RequiredError( + 'keyRef', + 'Required parameter "keyRef" was null or undefined when calling pkiReadKey().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/key/{key_ref}` + .replace(`{${'key_ref'}}`, encodeURIComponent(String(requestParameters['keyRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadKey( + keyRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadKeyRaw({ keyRef: keyRef, pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadKeysConfigurationRaw( + requestParameters: SecretsApiPkiReadKeysConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadKeysConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/keys`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadKeysConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadKeysConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadKeysConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadRoleRaw( + requestParameters: SecretsApiPkiReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pkiReadRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReadRoleResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReadRole( + name: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadRoleRaw({ name: name, pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReadRolesRoleAcmeDirectoryRaw( + requestParameters: SecretsApiPkiReadRolesRoleAcmeDirectoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiReadRolesRoleAcmeDirectory().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadRolesRoleAcmeDirectory().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/directory` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadRolesRoleAcmeDirectory( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadRolesRoleAcmeDirectoryRaw({ role: role, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadRolesRoleAcmeNewNonceRaw( + requestParameters: SecretsApiPkiReadRolesRoleAcmeNewNonceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiReadRolesRoleAcmeNewNonce().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadRolesRoleAcmeNewNonce().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/new-nonce` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadRolesRoleAcmeNewNonce( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadRolesRoleAcmeNewNonceRaw({ role: role, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadRolesRoleEstCacertsRaw( + requestParameters: SecretsApiPkiReadRolesRoleEstCacertsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiReadRolesRoleEstCacerts().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadRolesRoleEstCacerts().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/est/cacerts` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadRolesRoleEstCacerts( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadRolesRoleEstCacertsRaw({ role: role, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadRolesRoleScepRaw( + requestParameters: SecretsApiPkiReadRolesRoleScepRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiReadRolesRoleScep().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadRolesRoleScep().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/scep` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadRolesRoleScep( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadRolesRoleScepRaw({ role: role, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadScepRaw( + requestParameters: SecretsApiPkiReadScepRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadScep().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/scep`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadScep( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadScepRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadScepConfigurationRaw( + requestParameters: SecretsApiPkiReadScepConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadScepConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/scep`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadScepConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadScepConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadUnifiedCrlDeltaRaw( + requestParameters: SecretsApiPkiReadUnifiedCrlDeltaRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadUnifiedCrlDelta().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/unified-crl/delta`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadUnifiedCrlDelta( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadUnifiedCrlDeltaRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadUnifiedCrlDeltaPemRaw( + requestParameters: SecretsApiPkiReadUnifiedCrlDeltaPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadUnifiedCrlDeltaPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/unified-crl/delta/pem`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadUnifiedCrlDeltaPem( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadUnifiedCrlDeltaPemRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadUnifiedCrlDerRaw( + requestParameters: SecretsApiPkiReadUnifiedCrlDerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadUnifiedCrlDer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/unified-crl`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadUnifiedCrlDer( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadUnifiedCrlDerRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadUnifiedCrlPemRaw( + requestParameters: SecretsApiPkiReadUnifiedCrlPemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadUnifiedCrlPem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/unified-crl/pem`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiReadUnifiedCrlPem( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiReadUnifiedCrlPemRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiReadUrlsConfigurationRaw( + requestParameters: SecretsApiPkiReadUrlsConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReadUrlsConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/config/urls`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiReadUrlsConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiReadUrlsConfiguration( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReadUrlsConfigurationRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiReplaceRootRaw( + requestParameters: SecretsApiPkiReplaceRootOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiReplaceRoot().' + ); + } + + if (requestParameters['pkiReplaceRootRequest'] == null) { + throw new runtime.RequiredError( + 'pkiReplaceRootRequest', + 'Required parameter "pkiReplaceRootRequest" was null or undefined when calling pkiReplaceRoot().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/root/replace`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiReplaceRootRequestToJSON(requestParameters['pkiReplaceRootRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiReplaceRootResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiReplaceRoot( + pkiMountPath: string, + pkiReplaceRootRequest: PkiReplaceRootRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiReplaceRootRaw( + { pkiMountPath: pkiMountPath, pkiReplaceRootRequest: pkiReplaceRootRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiRevokeRaw( + requestParameters: SecretsApiPkiRevokeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRevoke().' + ); + } + + if (requestParameters['pkiRevokeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiRevokeRequest', + 'Required parameter "pkiRevokeRequest" was null or undefined when calling pkiRevoke().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/revoke`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiRevokeRequestToJSON(requestParameters['pkiRevokeRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiRevokeResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiRevoke( + pkiMountPath: string, + pkiRevokeRequest: PkiRevokeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRevokeRaw( + { pkiMountPath: pkiMountPath, pkiRevokeRequest: pkiRevokeRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiRevokeIssuerRaw( + requestParameters: SecretsApiPkiRevokeIssuerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiRevokeIssuer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRevokeIssuer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/revoke` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiRevokeIssuerResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiRevokeIssuer( + issuerRef: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRevokeIssuerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiRevokeWithKeyRaw( + requestParameters: SecretsApiPkiRevokeWithKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRevokeWithKey().' + ); + } + + if (requestParameters['pkiRevokeWithKeyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiRevokeWithKeyRequest', + 'Required parameter "pkiRevokeWithKeyRequest" was null or undefined when calling pkiRevokeWithKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/revoke-with-key`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiRevokeWithKeyRequestToJSON(requestParameters['pkiRevokeWithKeyRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiRevokeWithKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiRevokeWithKey( + pkiMountPath: string, + pkiRevokeWithKeyRequest: PkiRevokeWithKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRevokeWithKeyRaw( + { pkiMountPath: pkiMountPath, pkiRevokeWithKeyRequest: pkiRevokeWithKeyRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiRootSignIntermediateRaw( + requestParameters: SecretsApiPkiRootSignIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRootSignIntermediate().' + ); + } + + if (requestParameters['pkiRootSignIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiRootSignIntermediateRequest', + 'Required parameter "pkiRootSignIntermediateRequest" was null or undefined when calling pkiRootSignIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/root/sign-intermediate`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiRootSignIntermediateRequestToJSON(requestParameters['pkiRootSignIntermediateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiRootSignIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiRootSignIntermediate( + pkiMountPath: string, + pkiRootSignIntermediateRequest: PkiRootSignIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRootSignIntermediateRaw( + { pkiMountPath: pkiMountPath, pkiRootSignIntermediateRequest: pkiRootSignIntermediateRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiRootSignSelfIssuedRaw( + requestParameters: SecretsApiPkiRootSignSelfIssuedOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRootSignSelfIssued().' + ); + } + + if (requestParameters['pkiRootSignSelfIssuedRequest'] == null) { + throw new runtime.RequiredError( + 'pkiRootSignSelfIssuedRequest', + 'Required parameter "pkiRootSignSelfIssuedRequest" was null or undefined when calling pkiRootSignSelfIssued().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/root/sign-self-issued`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiRootSignSelfIssuedRequestToJSON(requestParameters['pkiRootSignSelfIssuedRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiRootSignSelfIssuedResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiRootSignSelfIssued( + pkiMountPath: string, + pkiRootSignSelfIssuedRequest: PkiRootSignSelfIssuedRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRootSignSelfIssuedRaw( + { pkiMountPath: pkiMountPath, pkiRootSignSelfIssuedRequest: pkiRootSignSelfIssuedRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiRotateCrlRaw( + requestParameters: SecretsApiPkiRotateCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRotateCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/crl/rotate`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiRotateCrlResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiRotateCrl( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRotateCrlRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiRotateDeltaCrlRaw( + requestParameters: SecretsApiPkiRotateDeltaCrlRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRotateDeltaCrl().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/crl/rotate-delta`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiRotateDeltaCrlResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiRotateDeltaCrl( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRotateDeltaCrlRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiRotateRootRaw( + requestParameters: SecretsApiPkiRotateRootOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['exported'] == null) { + throw new runtime.RequiredError( + 'exported', + 'Required parameter "exported" was null or undefined when calling pkiRotateRoot().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiRotateRoot().' + ); + } + + if (requestParameters['pkiRotateRootRequest'] == null) { + throw new runtime.RequiredError( + 'pkiRotateRootRequest', + 'Required parameter "pkiRotateRootRequest" was null or undefined when calling pkiRotateRoot().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/root/rotate/{exported}` + .replace(`{${'exported'}}`, encodeURIComponent(String(requestParameters['exported']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiRotateRootRequestToJSON(requestParameters['pkiRotateRootRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiRotateRootResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiRotateRoot( + exported: PkiRotateRootExportedEnum, + pkiMountPath: string, + pkiRotateRootRequest: PkiRotateRootRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiRotateRootRaw( + { exported: exported, pkiMountPath: pkiMountPath, pkiRotateRootRequest: pkiRotateRootRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiSetSignedIntermediateRaw( + requestParameters: SecretsApiPkiSetSignedIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiSetSignedIntermediate().' + ); + } + + if (requestParameters['pkiSetSignedIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiSetSignedIntermediateRequest', + 'Required parameter "pkiSetSignedIntermediateRequest" was null or undefined when calling pkiSetSignedIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/intermediate/set-signed`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiSetSignedIntermediateRequestToJSON(requestParameters['pkiSetSignedIntermediateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiSetSignedIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiSetSignedIntermediate( + pkiMountPath: string, + pkiSetSignedIntermediateRequest: PkiSetSignedIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiSetSignedIntermediateRaw( + { pkiMountPath: pkiMountPath, pkiSetSignedIntermediateRequest: pkiSetSignedIntermediateRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiSignVerbatimRaw( + requestParameters: SecretsApiPkiSignVerbatimOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiSignVerbatim().' + ); + } + + if (requestParameters['pkiSignVerbatimRequest'] == null) { + throw new runtime.RequiredError( + 'pkiSignVerbatimRequest', + 'Required parameter "pkiSignVerbatimRequest" was null or undefined when calling pkiSignVerbatim().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/sign-verbatim`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiSignVerbatimRequestToJSON(requestParameters['pkiSignVerbatimRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiSignVerbatimResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiSignVerbatim( + pkiMountPath: string, + pkiSignVerbatimRequest: PkiSignVerbatimRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiSignVerbatimRaw( + { pkiMountPath: pkiMountPath, pkiSignVerbatimRequest: pkiSignVerbatimRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiSignVerbatimWithRoleRaw( + requestParameters: SecretsApiPkiSignVerbatimWithRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiSignVerbatimWithRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiSignVerbatimWithRole().' + ); + } + + if (requestParameters['pkiSignVerbatimWithRoleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiSignVerbatimWithRoleRequest', + 'Required parameter "pkiSignVerbatimWithRoleRequest" was null or undefined when calling pkiSignVerbatimWithRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/sign-verbatim/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiSignVerbatimWithRoleRequestToJSON(requestParameters['pkiSignVerbatimWithRoleRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiSignVerbatimWithRoleResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiSignVerbatimWithRole( + role: string, + pkiMountPath: string, + pkiSignVerbatimWithRoleRequest: PkiSignVerbatimWithRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiSignVerbatimWithRoleRaw( + { + role: role, + pkiMountPath: pkiMountPath, + pkiSignVerbatimWithRoleRequest: pkiSignVerbatimWithRoleRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiSignWithRoleRaw( + requestParameters: SecretsApiPkiSignWithRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiSignWithRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiSignWithRole().' + ); + } + + if (requestParameters['pkiSignWithRoleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiSignWithRoleRequest', + 'Required parameter "pkiSignWithRoleRequest" was null or undefined when calling pkiSignWithRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/sign/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiSignWithRoleRequestToJSON(requestParameters['pkiSignWithRoleRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiSignWithRoleResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiSignWithRole( + role: string, + pkiMountPath: string, + pkiSignWithRoleRequest: PkiSignWithRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiSignWithRoleRaw( + { role: role, pkiMountPath: pkiMountPath, pkiSignWithRoleRequest: pkiSignWithRoleRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiTidyRaw( + requestParameters: SecretsApiPkiTidyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiTidy().' + ); + } + + if (requestParameters['pkiTidyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiTidyRequest', + 'Required parameter "pkiTidyRequest" was null or undefined when calling pkiTidy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/tidy`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiTidyRequestToJSON(requestParameters['pkiTidyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiTidy( + pkiMountPath: string, + pkiTidyRequest: PkiTidyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiTidyRaw({ pkiMountPath: pkiMountPath, pkiTidyRequest: pkiTidyRequest }, initOverrides); + } + + /** + */ + async pkiTidyCancelRaw( + requestParameters: SecretsApiPkiTidyCancelRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiTidyCancel().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/tidy-cancel`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiTidyCancelResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiTidyCancel( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiTidyCancelRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiTidyStatusRaw( + requestParameters: SecretsApiPkiTidyStatusRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiTidyStatus().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/tidy-status`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiTidyStatusResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiTidyStatus( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiTidyStatusRaw({ pkiMountPath: pkiMountPath }, initOverrides); + return await response.value(); + } + + /** + */ + async pkiWriteAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeAccountKidRequest', + 'Required parameter "pkiWriteAcmeAccountKidRequest" was null or undefined when calling pkiWriteAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/account/{kid}` + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeAccountKidRequestToJSON(requestParameters['pkiWriteAcmeAccountKidRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeAccountKid( + kid: string, + pkiMountPath: string, + pkiWriteAcmeAccountKidRequest: PkiWriteAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeAccountKidRaw( + { kid: kid, pkiMountPath: pkiMountPath, pkiWriteAcmeAccountKidRequest: pkiWriteAcmeAccountKidRequest }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiWriteAcmeAuthorizationAuthIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeAuthorizationAuthId( + authId: string, + pkiMountPath: string, + pkiWriteAcmeAuthorizationAuthIdRequest: PkiWriteAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeAuthorizationAuthIdRaw( + { + authId: authId, + pkiMountPath: pkiMountPath, + pkiWriteAcmeAuthorizationAuthIdRequest: pkiWriteAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiWriteAcmeChallengeAuthIdChallengeTypeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters['pkiWriteAcmeChallengeAuthIdChallengeTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + pkiMountPath: string, + pkiWriteAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + pkiMountPath: pkiMountPath, + pkiWriteAcmeChallengeAuthIdChallengeTypeRequest: pkiWriteAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeKeyIdRaw( + requestParameters: SecretsApiPkiWriteAcmeKeyIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['keyid'] == null) { + throw new runtime.RequiredError( + 'keyid', + 'Required parameter "keyid" was null or undefined when calling pkiWriteAcmeKeyId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeKeyId().' + ); + } + + if (requestParameters['pkiWriteAcmeKeyIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeKeyIdRequest', + 'Required parameter "pkiWriteAcmeKeyIdRequest" was null or undefined when calling pkiWriteAcmeKeyId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/mgmt/account/keyid/{keyid}` + .replace(`{${'keyid'}}`, encodeURIComponent(String(requestParameters['keyid']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeKeyIdRequestToJSON(requestParameters['pkiWriteAcmeKeyIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeKeyId( + keyid: string, + pkiMountPath: string, + pkiWriteAcmeKeyIdRequest: PkiWriteAcmeKeyIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeKeyIdRaw( + { keyid: keyid, pkiMountPath: pkiMountPath, pkiWriteAcmeKeyIdRequest: pkiWriteAcmeKeyIdRequest }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeNewAccountRequest', + 'Required parameter "pkiWriteAcmeNewAccountRequest" was null or undefined when calling pkiWriteAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/new-account`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeNewAccountRequestToJSON(requestParameters['pkiWriteAcmeNewAccountRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeNewAccount( + pkiMountPath: string, + pkiWriteAcmeNewAccountRequest: PkiWriteAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeNewAccountRaw( + { pkiMountPath: pkiMountPath, pkiWriteAcmeNewAccountRequest: pkiWriteAcmeNewAccountRequest }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeNewOrderRequest', + 'Required parameter "pkiWriteAcmeNewOrderRequest" was null or undefined when calling pkiWriteAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/new-order`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeNewOrderRequestToJSON(requestParameters['pkiWriteAcmeNewOrderRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeNewOrder( + pkiMountPath: string, + pkiWriteAcmeNewOrderRequest: PkiWriteAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeNewOrderRaw( + { pkiMountPath: pkiMountPath, pkiWriteAcmeNewOrderRequest: pkiWriteAcmeNewOrderRequest }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/order/{order_id}` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeOrderOrderIdRequestToJSON(requestParameters['pkiWriteAcmeOrderOrderIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeOrderOrderId( + orderId: string, + pkiMountPath: string, + pkiWriteAcmeOrderOrderIdRequest: PkiWriteAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeOrderOrderIdRaw( + { + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteAcmeOrderOrderIdRequest: pkiWriteAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/order/{order_id}/cert` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeOrderOrderIdCert( + orderId: string, + pkiMountPath: string, + pkiWriteAcmeOrderOrderIdCertRequest: PkiWriteAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeOrderOrderIdCertRaw( + { + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteAcmeOrderOrderIdCertRequest: pkiWriteAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiWriteAcmeOrderOrderIdFinalizeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/order/{order_id}/finalize` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeOrderOrderIdFinalize( + orderId: string, + pkiMountPath: string, + pkiWriteAcmeOrderOrderIdFinalizeRequest: PkiWriteAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeOrderOrderIdFinalizeRaw( + { + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteAcmeOrderOrderIdFinalizeRequest: pkiWriteAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeOrdersRequest', + 'Required parameter "pkiWriteAcmeOrdersRequest" was null or undefined when calling pkiWriteAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/orders`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeOrdersRequestToJSON(requestParameters['pkiWriteAcmeOrdersRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeOrders( + pkiMountPath: string, + pkiWriteAcmeOrdersRequest: PkiWriteAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeOrdersRaw( + { pkiMountPath: pkiMountPath, pkiWriteAcmeOrdersRequest: pkiWriteAcmeOrdersRequest }, + initOverrides + ); + } + + /** + */ + async pkiWriteAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteAcmeRevokeCertRequest', + 'Required parameter "pkiWriteAcmeRevokeCertRequest" was null or undefined when calling pkiWriteAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/acme/revoke-cert`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteAcmeRevokeCertRequestToJSON(requestParameters['pkiWriteAcmeRevokeCertRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteAcmeRevokeCert( + pkiMountPath: string, + pkiWriteAcmeRevokeCertRequest: PkiWriteAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteAcmeRevokeCertRaw( + { pkiMountPath: pkiMountPath, pkiWriteAcmeRevokeCertRequest: pkiWriteAcmeRevokeCertRequest }, + initOverrides + ); + } + + /** + */ + async pkiWriteCmpRaw( + requestParameters: SecretsApiPkiWriteCmpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteCmp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/cmp`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteCmp( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteCmpRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiWriteEstSimpleenrollRaw( + requestParameters: SecretsApiPkiWriteEstSimpleenrollRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteEstSimpleenroll().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/est/simpleenroll`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteEstSimpleenroll( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteEstSimpleenrollRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiWriteEstSimplereenrollRaw( + requestParameters: SecretsApiPkiWriteEstSimplereenrollRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteEstSimplereenroll().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/est/simplereenroll`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteEstSimplereenroll( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteEstSimplereenrollRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiWriteExternalPolicyAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteExternalPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeAccountKidRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeAccountKidRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/account/{kid}` + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeAccountKidRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeAccountKidRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeAccountKid( + kid: string, + pkiMountPath: string, + pkiWriteExternalPolicyAcmeAccountKidRequest: PkiWriteExternalPolicyAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeAccountKidRaw( + { + kid: kid, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeAccountKidRequest: pkiWriteExternalPolicyAcmeAccountKidRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteExternalPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeAuthorizationAuthId( + authId: string, + pkiMountPath: string, + pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest: PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeAuthorizationAuthIdRaw( + { + authId: authId, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest: + pkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + pkiMountPath: string, + pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest: + pkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeNewAccountRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeNewAccountRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/new-account`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeNewAccountRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeNewAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeNewAccount( + pkiMountPath: string, + pkiWriteExternalPolicyAcmeNewAccountRequest: PkiWriteExternalPolicyAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeNewAccountRaw( + { + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeNewAccountRequest: pkiWriteExternalPolicyAcmeNewAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeNewOrderRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeNewOrderRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/new-order`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeNewOrderRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeNewOrderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeNewOrder( + pkiMountPath: string, + pkiWriteExternalPolicyAcmeNewOrderRequest: PkiWriteExternalPolicyAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeNewOrderRaw( + { + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeNewOrderRequest: pkiWriteExternalPolicyAcmeNewOrderRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/order/{order_id}` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeOrderOrderIdRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeOrderOrderIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrderOrderId( + orderId: string, + pkiMountPath: string, + pkiWriteExternalPolicyAcmeOrderOrderIdRequest: PkiWriteExternalPolicyAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeOrderOrderIdRaw( + { + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeOrderOrderIdRequest: pkiWriteExternalPolicyAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/order/{order_id}/cert` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrderOrderIdCert( + orderId: string, + pkiMountPath: string, + pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest: PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeOrderOrderIdCertRaw( + { + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest: pkiWriteExternalPolicyAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/order/{order_id}/finalize` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrderOrderIdFinalize( + orderId: string, + pkiMountPath: string, + pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRaw( + { + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest: + pkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeOrdersRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeOrdersRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/orders`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeOrdersRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeOrdersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeOrders( + pkiMountPath: string, + pkiWriteExternalPolicyAcmeOrdersRequest: PkiWriteExternalPolicyAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeOrdersRaw( + { + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeOrdersRequest: pkiWriteExternalPolicyAcmeOrdersRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyAcmeRevokeCertRequest', + 'Required parameter "pkiWriteExternalPolicyAcmeRevokeCertRequest" was null or undefined when calling pkiWriteExternalPolicyAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/acme/revoke-cert`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyAcmeRevokeCertRequestToJSON( + requestParameters['pkiWriteExternalPolicyAcmeRevokeCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyAcmeRevokeCert( + pkiMountPath: string, + pkiWriteExternalPolicyAcmeRevokeCertRequest: PkiWriteExternalPolicyAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyAcmeRevokeCertRaw( + { + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyAcmeRevokeCertRequest: pkiWriteExternalPolicyAcmeRevokeCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyIssueRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyIssueOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyIssue().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyIssueRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyIssueRequest', + 'Required parameter "pkiWriteExternalPolicyIssueRequest" was null or undefined when calling pkiWriteExternalPolicyIssue().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/issue`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyIssueRequestToJSON( + requestParameters['pkiWriteExternalPolicyIssueRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteExternalPolicyIssueResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteExternalPolicyIssue( + pkiMountPath: string, + pkiWriteExternalPolicyIssueRequest: PkiWriteExternalPolicyIssueRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteExternalPolicyIssueRaw( + { pkiMountPath: pkiMountPath, pkiWriteExternalPolicyIssueRequest: pkiWriteExternalPolicyIssueRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteExternalPolicyIssuePolicyRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyIssuePolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyIssuePolicy().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyIssuePolicy().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyIssuePolicyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyIssuePolicyRequest', + 'Required parameter "pkiWriteExternalPolicyIssuePolicyRequest" was null or undefined when calling pkiWriteExternalPolicyIssuePolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/issue/{policy}` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyIssuePolicyRequestToJSON( + requestParameters['pkiWriteExternalPolicyIssuePolicyRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteExternalPolicyIssuePolicyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteExternalPolicyIssuePolicy( + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyIssuePolicyRequest: PkiWriteExternalPolicyIssuePolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteExternalPolicyIssuePolicyRaw( + { + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyIssuePolicyRequest: pkiWriteExternalPolicyIssuePolicyRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeAccountKidRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeAccountKidRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/account/{kid}` + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeAccountKidRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeAccountKidRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeAccountKid( + kid: string, + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeAccountKidRequest: PkiWriteExternalPolicyPolicyAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeAccountKidRaw( + { + kid: kid, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeAccountKidRequest: pkiWriteExternalPolicyPolicyAcmeAccountKidRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthId( + authId: string, + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest: PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRaw( + { + authId: authId, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest: + pkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest: + pkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeNewAccountRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeNewAccountRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/new-account` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeNewAccountRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeNewAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeNewAccount( + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeNewAccountRequest: PkiWriteExternalPolicyPolicyAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeNewAccountRaw( + { + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeNewAccountRequest: pkiWriteExternalPolicyPolicyAcmeNewAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeNewOrderRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeNewOrderRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/new-order` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeNewOrderRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeNewOrderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeNewOrder( + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeNewOrderRequest: PkiWriteExternalPolicyPolicyAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeNewOrderRaw( + { + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeNewOrderRequest: pkiWriteExternalPolicyPolicyAcmeNewOrderRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/order/{order_id}` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrderOrderId( + orderId: string, + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRaw( + { + orderId: orderId, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest: + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/order/{order_id}/cert` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCert( + orderId: string, + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRaw( + { + orderId: orderId, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest: + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/order/{order_id}/finalize` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalize( + orderId: string, + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRaw( + { + orderId: orderId, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest: + pkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrders().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeOrdersRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeOrdersRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/orders` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeOrdersRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeOrdersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeOrders( + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeOrdersRequest: PkiWriteExternalPolicyPolicyAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeOrdersRaw( + { + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeOrdersRequest: pkiWriteExternalPolicyPolicyAcmeOrdersRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteExternalPolicyPolicyAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest', + 'Required parameter "pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest" was null or undefined when calling pkiWriteExternalPolicyPolicyAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/{policy}/acme/revoke-cert` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestToJSON( + requestParameters['pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteExternalPolicyPolicyAcmeRevokeCert( + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest: PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteExternalPolicyPolicyAcmeRevokeCertRaw( + { + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest: pkiWriteExternalPolicyPolicyAcmeRevokeCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteExternalPolicySignRaw( + requestParameters: SecretsApiPkiWriteExternalPolicySignOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicySign().' + ); + } + + if (requestParameters['pkiWriteExternalPolicySignRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicySignRequest', + 'Required parameter "pkiWriteExternalPolicySignRequest" was null or undefined when calling pkiWriteExternalPolicySign().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/sign`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicySignRequestToJSON(requestParameters['pkiWriteExternalPolicySignRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteExternalPolicySignResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteExternalPolicySign( + pkiMountPath: string, + pkiWriteExternalPolicySignRequest: PkiWriteExternalPolicySignRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteExternalPolicySignRaw( + { pkiMountPath: pkiMountPath, pkiWriteExternalPolicySignRequest: pkiWriteExternalPolicySignRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteExternalPolicySignIntermediateRaw( + requestParameters: SecretsApiPkiWriteExternalPolicySignIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicySignIntermediate().' + ); + } + + if (requestParameters['pkiWriteExternalPolicySignIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicySignIntermediateRequest', + 'Required parameter "pkiWriteExternalPolicySignIntermediateRequest" was null or undefined when calling pkiWriteExternalPolicySignIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/sign-intermediate`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicySignIntermediateRequestToJSON( + requestParameters['pkiWriteExternalPolicySignIntermediateRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteExternalPolicySignIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteExternalPolicySignIntermediate( + pkiMountPath: string, + pkiWriteExternalPolicySignIntermediateRequest: PkiWriteExternalPolicySignIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteExternalPolicySignIntermediateRaw( + { + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicySignIntermediateRequest: pkiWriteExternalPolicySignIntermediateRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteExternalPolicySignIntermediatePolicyRaw( + requestParameters: SecretsApiPkiWriteExternalPolicySignIntermediatePolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicySignIntermediatePolicy().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicySignIntermediatePolicy().' + ); + } + + if (requestParameters['pkiWriteExternalPolicySignIntermediatePolicyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicySignIntermediatePolicyRequest', + 'Required parameter "pkiWriteExternalPolicySignIntermediatePolicyRequest" was null or undefined when calling pkiWriteExternalPolicySignIntermediatePolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/sign-intermediate/{policy}` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicySignIntermediatePolicyRequestToJSON( + requestParameters['pkiWriteExternalPolicySignIntermediatePolicyRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteExternalPolicySignIntermediatePolicyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteExternalPolicySignIntermediatePolicy( + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicySignIntermediatePolicyRequest: PkiWriteExternalPolicySignIntermediatePolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteExternalPolicySignIntermediatePolicyRaw( + { + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicySignIntermediatePolicyRequest: + pkiWriteExternalPolicySignIntermediatePolicyRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteExternalPolicySignPolicyRaw( + requestParameters: SecretsApiPkiWriteExternalPolicySignPolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteExternalPolicySignPolicy().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteExternalPolicySignPolicy().' + ); + } + + if (requestParameters['pkiWriteExternalPolicySignPolicyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteExternalPolicySignPolicyRequest', + 'Required parameter "pkiWriteExternalPolicySignPolicyRequest" was null or undefined when calling pkiWriteExternalPolicySignPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/external-policy/sign/{policy}` + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteExternalPolicySignPolicyRequestToJSON( + requestParameters['pkiWriteExternalPolicySignPolicyRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteExternalPolicySignPolicyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteExternalPolicySignPolicy( + policy: string, + pkiMountPath: string, + pkiWriteExternalPolicySignPolicyRequest: PkiWriteExternalPolicySignPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteExternalPolicySignPolicyRaw( + { + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteExternalPolicySignPolicyRequest: pkiWriteExternalPolicySignPolicyRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerRaw( + requestParameters: SecretsApiPkiWriteIssuerOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuer().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuer().' + ); + } + + if (requestParameters['pkiWriteIssuerRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerRequest', + 'Required parameter "pkiWriteIssuerRequest" was null or undefined when calling pkiWriteIssuer().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerRequestToJSON(requestParameters['pkiWriteIssuerRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiWriteIssuerResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiWriteIssuer( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerRequest: PkiWriteIssuerRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteIssuerRaw( + { issuerRef: issuerRef, pkiMountPath: pkiMountPath, pkiWriteIssuerRequest: pkiWriteIssuerRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAccountKid().' + ); + } + + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeAccountKidRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeAccountKidRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/account/{kid}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeAccountKidRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeAccountKidRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeAccountKid( + issuerRef: string, + kid: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeAccountKidRequest: PkiWriteIssuerIssuerRefAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeAccountKidRaw( + { + issuerRef: issuerRef, + kid: kid, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeAccountKidRequest: pkiWriteIssuerIssuerRefAcmeAccountKidRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeAuthorizationAuthId( + authId: string, + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRaw( + { + authId: authId, + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest: + pkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest: + pkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeNewAccount().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeNewAccountRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeNewAccountRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/new-account` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeNewAccountRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeNewAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeNewAccount( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeNewAccountRequest: PkiWriteIssuerIssuerRefAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeNewAccountRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeNewAccountRequest: pkiWriteIssuerIssuerRefAcmeNewAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeNewOrder().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeNewOrderRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeNewOrderRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/new-order` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeNewOrderRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeNewOrderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeNewOrder( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeNewOrderRequest: PkiWriteIssuerIssuerRefAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeNewOrderRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeNewOrderRequest: pkiWriteIssuerIssuerRefAcmeNewOrderRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderId().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/order/{order_id}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrderOrderId( + issuerRef: string, + orderId: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeOrderOrderIdRaw( + { + issuerRef: issuerRef, + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest: pkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/order/{order_id}/cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrderOrderIdCert( + issuerRef: string, + orderId: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRaw( + { + issuerRef: issuerRef, + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest: + pkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/order/{order_id}/finalize` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalize( + issuerRef: string, + orderId: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRaw( + { + issuerRef: issuerRef, + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest: + pkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrders().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeOrdersRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeOrdersRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/orders` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeOrdersRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeOrdersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeOrders( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeOrdersRequest: PkiWriteIssuerIssuerRefAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeOrdersRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeOrdersRequest: pkiWriteIssuerIssuerRefAcmeOrdersRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefAcmeRevokeCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefAcmeRevokeCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/acme/revoke-cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefAcmeRevokeCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefAcmeRevokeCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefAcmeRevokeCert( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefAcmeRevokeCertRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefAcmeRevokeCertRequest: pkiWriteIssuerIssuerRefAcmeRevokeCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/account/{kid}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKid( + issuerRef: string, + kid: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRaw( + { + issuerRef: issuerRef, + kid: kid, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthId( + authId: string, + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRaw( + { + authId: authId, + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if ( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest'] == + null + ) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/new-account` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccount( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/new-order` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrder( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/order/{order_id}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderId( + issuerRef: string, + orderId: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRaw( + { + issuerRef: issuerRef, + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/order/{order_id}/cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCert( + issuerRef: string, + orderId: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRaw( + { + issuerRef: issuerRef, + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/order/{order_id}/finalize` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalize( + issuerRef: string, + orderId: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRaw( + { + issuerRef: issuerRef, + orderId: orderId, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrders().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/orders` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeOrders( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/acme/revoke-cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCert( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest: + pkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyIssueRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyIssueOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyIssue().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyIssue().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyIssueRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyIssueRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyIssueRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyIssue().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/issue` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyIssueRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteIssuerIssuerRefExternalPolicyIssueResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyIssue( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyIssueRequest: PkiWriteIssuerIssuerRefExternalPolicyIssueRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteIssuerIssuerRefExternalPolicyIssueRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyIssueRequest: pkiWriteIssuerIssuerRefExternalPolicyIssueRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyIssuePolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyIssuePolicy().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyIssuePolicy().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyIssuePolicy().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyIssuePolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/issue/{policy}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyIssuePolicy( + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRaw( + { + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest: + pkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/account/{kid}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKid( + issuerRef: string, + kid: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRaw( + { + issuerRef: issuerRef, + kid: kid, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + if ( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest'] == null + ) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthId( + authId: string, + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRaw( + { + authId: authId, + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + if ( + requestParameters[ + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest' + ] == null + ) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters[ + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest' + ] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/new-account` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccount( + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRaw( + { + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/new-order` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrder( + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRaw( + { + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/order/{order_id}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderId( + issuerRef: string, + orderId: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRaw( + { + issuerRef: issuerRef, + orderId: orderId, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/order/{order_id}/cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCert( + issuerRef: string, + orderId: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRaw( + { + issuerRef: issuerRef, + orderId: orderId, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + if ( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest'] == null + ) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/order/{order_id}/finalize` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalize( + issuerRef: string, + orderId: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRaw( + { + issuerRef: issuerRef, + orderId: orderId, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrders().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrders().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/orders` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrders( + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRaw( + { + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/{policy}/acme/revoke-cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCert( + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRaw( + { + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest: + pkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySignRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySign().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySign().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicySignRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicySignRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySign().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/sign` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicySignRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteIssuerIssuerRefExternalPolicySignResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySign( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicySignRequest: PkiWriteIssuerIssuerRefExternalPolicySignRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteIssuerIssuerRefExternalPolicySignRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicySignRequest: pkiWriteIssuerIssuerRefExternalPolicySignRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignIntermediateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignIntermediate().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignIntermediate().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignIntermediate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/sign-intermediate` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySignIntermediate( + issuerRef: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest: PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRaw( + { + issuerRef: issuerRef, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest: + pkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicy().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicy().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicy().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/sign-intermediate/{policy}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicy( + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest: PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRaw( + { + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest: + pkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySignPolicyRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefExternalPolicySignPolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignPolicy().' + ); + } + + if (requestParameters['policy'] == null) { + throw new runtime.RequiredError( + 'policy', + 'Required parameter "policy" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignPolicy().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignPolicy().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest', + 'Required parameter "pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest" was null or undefined when calling pkiWriteIssuerIssuerRefExternalPolicySignPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/external-policy/sign/{policy}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'policy'}}`, encodeURIComponent(String(requestParameters['policy']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefExternalPolicySignPolicy( + issuerRef: string, + policy: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest: PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteIssuerIssuerRefExternalPolicySignPolicyRaw( + { + issuerRef: issuerRef, + policy: policy, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest: + pkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKid().' + ); + } + + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKid().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/account/{kid}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKid( + issuerRef: string, + kid: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRaw( + { + issuerRef: issuerRef, + kid: kid, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthId( + authId: string, + issuerRef: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRaw( + { + authId: authId, + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if ( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest'] == null + ) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + issuerRef: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccount().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccount().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/new-account` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccount( + issuerRef: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRaw( + { + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrder().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrder().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/new-order` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrder( + issuerRef: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRaw( + { + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderId().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderId().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/order/{order_id}` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderId( + issuerRef: string, + orderId: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRaw( + { + issuerRef: issuerRef, + orderId: orderId, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/order/{order_id}/cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCert( + issuerRef: string, + orderId: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRaw( + { + issuerRef: issuerRef, + orderId: orderId, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/order/{order_id}/finalize` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalize( + issuerRef: string, + orderId: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRaw( + { + issuerRef: issuerRef, + orderId: orderId, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrders().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrders().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/orders` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeOrders( + issuerRef: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRaw( + { + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest: pkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['issuerRef'] == null) { + throw new runtime.RequiredError( + 'issuerRef', + 'Required parameter "issuerRef" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCert().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest', + 'Required parameter "pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest" was null or undefined when calling pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/issuer/{issuer_ref}/roles/{role}/acme/revoke-cert` + .replace(`{${'issuer_ref'}}`, encodeURIComponent(String(requestParameters['issuerRef']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestToJSON( + requestParameters['pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCert( + issuerRef: string, + role: string, + pkiMountPath: string, + pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest: PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRaw( + { + issuerRef: issuerRef, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest: + pkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteKeyRaw( + requestParameters: SecretsApiPkiWriteKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['keyRef'] == null) { + throw new runtime.RequiredError( + 'keyRef', + 'Required parameter "keyRef" was null or undefined when calling pkiWriteKey().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteKey().' + ); + } + + if (requestParameters['pkiWriteKeyRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteKeyRequest', + 'Required parameter "pkiWriteKeyRequest" was null or undefined when calling pkiWriteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/key/{key_ref}` + .replace(`{${'key_ref'}}`, encodeURIComponent(String(requestParameters['keyRef']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteKeyRequestToJSON(requestParameters['pkiWriteKeyRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiWriteKeyResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiWriteKey( + keyRef: string, + pkiMountPath: string, + pkiWriteKeyRequest: PkiWriteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteKeyRaw( + { keyRef: keyRef, pkiMountPath: pkiMountPath, pkiWriteKeyRequest: pkiWriteKeyRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteRoleRaw( + requestParameters: SecretsApiPkiWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pkiWriteRole().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRole().' + ); + } + + if (requestParameters['pkiWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRoleRequest', + 'Required parameter "pkiWriteRoleRequest" was null or undefined when calling pkiWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRoleRequestToJSON(requestParameters['pkiWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => PkiWriteRoleResponseFromJSON(jsonValue)); + } + + /** + */ + async pkiWriteRole( + name: string, + pkiMountPath: string, + pkiWriteRoleRequest: PkiWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pkiWriteRoleRaw( + { name: name, pkiMountPath: pkiMountPath, pkiWriteRoleRequest: pkiWriteRoleRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pkiWriteRolesRoleAcmeAccountKidRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeAccountKidOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['kid'] == null) { + throw new runtime.RequiredError( + 'kid', + 'Required parameter "kid" was null or undefined when calling pkiWriteRolesRoleAcmeAccountKid().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeAccountKid().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeAccountKid().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeAccountKidRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeAccountKidRequest', + 'Required parameter "pkiWriteRolesRoleAcmeAccountKidRequest" was null or undefined when calling pkiWriteRolesRoleAcmeAccountKid().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/account/{kid}` + .replace(`{${'kid'}}`, encodeURIComponent(String(requestParameters['kid']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeAccountKidRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeAccountKidRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeAccountKid( + kid: string, + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeAccountKidRequest: PkiWriteRolesRoleAcmeAccountKidRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeAccountKidRaw( + { + kid: kid, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeAccountKidRequest: pkiWriteRolesRoleAcmeAccountKidRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeAuthorizationAuthIdRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeAuthorizationAuthIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteRolesRoleAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeAuthorizationAuthId().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest', + 'Required parameter "pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest" was null or undefined when calling pkiWriteRolesRoleAcmeAuthorizationAuthId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/authorization/{auth_id}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeAuthorizationAuthId( + authId: string, + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest: PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeAuthorizationAuthIdRaw( + { + authId: authId, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest: pkiWriteRolesRoleAcmeAuthorizationAuthIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['authId'] == null) { + throw new runtime.RequiredError( + 'authId', + 'Required parameter "authId" was null or undefined when calling pkiWriteRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['challengeType'] == null) { + throw new runtime.RequiredError( + 'challengeType', + 'Required parameter "challengeType" was null or undefined when calling pkiWriteRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest', + 'Required parameter "pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest" was null or undefined when calling pkiWriteRolesRoleAcmeChallengeAuthIdChallengeType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/challenge/{auth_id}/{challenge_type}` + .replace(`{${'auth_id'}}`, encodeURIComponent(String(requestParameters['authId']))) + .replace(`{${'challenge_type'}}`, encodeURIComponent(String(requestParameters['challengeType']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeChallengeAuthIdChallengeType( + authId: string, + challengeType: string, + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest: PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRaw( + { + authId: authId, + challengeType: challengeType, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest: + pkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeNewAccountRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeNewAccountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeNewAccount().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeNewAccount().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeNewAccountRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeNewAccountRequest', + 'Required parameter "pkiWriteRolesRoleAcmeNewAccountRequest" was null or undefined when calling pkiWriteRolesRoleAcmeNewAccount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/new-account` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeNewAccountRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeNewAccountRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeNewAccount( + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeNewAccountRequest: PkiWriteRolesRoleAcmeNewAccountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeNewAccountRaw( + { + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeNewAccountRequest: pkiWriteRolesRoleAcmeNewAccountRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeNewOrderRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeNewOrderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeNewOrder().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeNewOrder().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeNewOrderRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeNewOrderRequest', + 'Required parameter "pkiWriteRolesRoleAcmeNewOrderRequest" was null or undefined when calling pkiWriteRolesRoleAcmeNewOrder().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/new-order` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeNewOrderRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeNewOrderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeNewOrder( + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeNewOrderRequest: PkiWriteRolesRoleAcmeNewOrderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeNewOrderRaw( + { + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeNewOrderRequest: pkiWriteRolesRoleAcmeNewOrderRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrderOrderIdRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeOrderOrderIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderId().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderId().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeOrderOrderIdRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeOrderOrderIdRequest', + 'Required parameter "pkiWriteRolesRoleAcmeOrderOrderIdRequest" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/order/{order_id}` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeOrderOrderIdRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeOrderOrderIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrderOrderId( + orderId: string, + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeOrderOrderIdRequest: PkiWriteRolesRoleAcmeOrderOrderIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeOrderOrderIdRaw( + { + orderId: orderId, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeOrderOrderIdRequest: pkiWriteRolesRoleAcmeOrderOrderIdRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrderOrderIdCertRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeOrderOrderIdCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdCert().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeOrderOrderIdCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeOrderOrderIdCertRequest', + 'Required parameter "pkiWriteRolesRoleAcmeOrderOrderIdCertRequest" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/order/{order_id}/cert` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeOrderOrderIdCertRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeOrderOrderIdCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrderOrderIdCert( + orderId: string, + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeOrderOrderIdCertRequest: PkiWriteRolesRoleAcmeOrderOrderIdCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeOrderOrderIdCertRaw( + { + orderId: orderId, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeOrderOrderIdCertRequest: pkiWriteRolesRoleAcmeOrderOrderIdCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeOrderOrderIdFinalizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['orderId'] == null) { + throw new runtime.RequiredError( + 'orderId', + 'Required parameter "orderId" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest', + 'Required parameter "pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest" was null or undefined when calling pkiWriteRolesRoleAcmeOrderOrderIdFinalize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/order/{order_id}/finalize` + .replace(`{${'order_id'}}`, encodeURIComponent(String(requestParameters['orderId']))) + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrderOrderIdFinalize( + orderId: string, + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest: PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRaw( + { + orderId: orderId, + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest: pkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrdersRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeOrdersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeOrders().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeOrders().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeOrdersRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeOrdersRequest', + 'Required parameter "pkiWriteRolesRoleAcmeOrdersRequest" was null or undefined when calling pkiWriteRolesRoleAcmeOrders().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/orders` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeOrdersRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeOrdersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeOrders( + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeOrdersRequest: PkiWriteRolesRoleAcmeOrdersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeOrdersRaw( + { + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeOrdersRequest: pkiWriteRolesRoleAcmeOrdersRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleAcmeRevokeCertRaw( + requestParameters: SecretsApiPkiWriteRolesRoleAcmeRevokeCertOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleAcmeRevokeCert().' + ); + } + + if (requestParameters['pkiWriteRolesRoleAcmeRevokeCertRequest'] == null) { + throw new runtime.RequiredError( + 'pkiWriteRolesRoleAcmeRevokeCertRequest', + 'Required parameter "pkiWriteRolesRoleAcmeRevokeCertRequest" was null or undefined when calling pkiWriteRolesRoleAcmeRevokeCert().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/acme/revoke-cert` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PkiWriteRolesRoleAcmeRevokeCertRequestToJSON( + requestParameters['pkiWriteRolesRoleAcmeRevokeCertRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleAcmeRevokeCert( + role: string, + pkiMountPath: string, + pkiWriteRolesRoleAcmeRevokeCertRequest: PkiWriteRolesRoleAcmeRevokeCertRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleAcmeRevokeCertRaw( + { + role: role, + pkiMountPath: pkiMountPath, + pkiWriteRolesRoleAcmeRevokeCertRequest: pkiWriteRolesRoleAcmeRevokeCertRequest, + }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleCmpRaw( + requestParameters: SecretsApiPkiWriteRolesRoleCmpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleCmp().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleCmp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/cmp` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleCmp( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleCmpRaw({ role: role, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiWriteRolesRoleEstSimpleenrollRaw( + requestParameters: SecretsApiPkiWriteRolesRoleEstSimpleenrollRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleEstSimpleenroll().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleEstSimpleenroll().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/est/simpleenroll` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleEstSimpleenroll( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleEstSimpleenrollRaw({ role: role, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiWriteRolesRoleEstSimplereenrollRaw( + requestParameters: SecretsApiPkiWriteRolesRoleEstSimplereenrollRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleEstSimplereenroll().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleEstSimplereenroll().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/est/simplereenroll` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleEstSimplereenroll( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleEstSimplereenrollRaw( + { role: role, pkiMountPath: pkiMountPath }, + initOverrides + ); + } + + /** + */ + async pkiWriteRolesRoleScepRaw( + requestParameters: SecretsApiPkiWriteRolesRoleScepRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling pkiWriteRolesRoleScep().' + ); + } + + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteRolesRoleScep().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/roles/{role}/scep` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'pki_mount_path'}}`, encodeURIComponent(String(requestParameters['pkiMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteRolesRoleScep( + role: string, + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteRolesRoleScepRaw({ role: role, pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + */ + async pkiWriteScepRaw( + requestParameters: SecretsApiPkiWriteScepRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pkiMountPath'] == null) { + throw new runtime.RequiredError( + 'pkiMountPath', + 'Required parameter "pkiMountPath" was null or undefined when calling pkiWriteScep().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{pki_mount_path}/scep`.replace( + `{${'pki_mount_path'}}`, + encodeURIComponent(String(requestParameters['pkiMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async pkiWriteScep( + pkiMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pkiWriteScepRaw({ pkiMountPath: pkiMountPath }, initOverrides); + } + + /** + * Configure the connection URI, username, and password to talk to RabbitMQ management HTTP API. + */ + async rabbitMqConfigureConnectionRaw( + requestParameters: SecretsApiRabbitMqConfigureConnectionOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqConfigureConnection().' + ); + } + + if (requestParameters['rabbitMqConfigureConnectionRequest'] == null) { + throw new runtime.RequiredError( + 'rabbitMqConfigureConnectionRequest', + 'Required parameter "rabbitMqConfigureConnectionRequest" was null or undefined when calling rabbitMqConfigureConnection().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/config/connection`.replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RabbitMqConfigureConnectionRequestToJSON( + requestParameters['rabbitMqConfigureConnectionRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure the connection URI, username, and password to talk to RabbitMQ management HTTP API. + */ + async rabbitMqConfigureConnection( + rabbitmqMountPath: string, + rabbitMqConfigureConnectionRequest: RabbitMqConfigureConnectionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rabbitMqConfigureConnectionRaw( + { + rabbitmqMountPath: rabbitmqMountPath, + rabbitMqConfigureConnectionRequest: rabbitMqConfigureConnectionRequest, + }, + initOverrides + ); + } + + /** + */ + async rabbitMqConfigureLeaseRaw( + requestParameters: SecretsApiRabbitMqConfigureLeaseOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqConfigureLease().' + ); + } + + if (requestParameters['rabbitMqConfigureLeaseRequest'] == null) { + throw new runtime.RequiredError( + 'rabbitMqConfigureLeaseRequest', + 'Required parameter "rabbitMqConfigureLeaseRequest" was null or undefined when calling rabbitMqConfigureLease().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/config/lease`.replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RabbitMqConfigureLeaseRequestToJSON(requestParameters['rabbitMqConfigureLeaseRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async rabbitMqConfigureLease( + rabbitmqMountPath: string, + rabbitMqConfigureLeaseRequest: RabbitMqConfigureLeaseRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rabbitMqConfigureLeaseRaw( + { rabbitmqMountPath: rabbitmqMountPath, rabbitMqConfigureLeaseRequest: rabbitMqConfigureLeaseRequest }, + initOverrides + ); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqDeleteRoleRaw( + requestParameters: SecretsApiRabbitMqDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling rabbitMqDeleteRole().' + ); + } + + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqDeleteRole( + name: string, + rabbitmqMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rabbitMqDeleteRoleRaw({ name: name, rabbitmqMountPath: rabbitmqMountPath }, initOverrides); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqListRolesRaw( + requestParameters: SecretsApiRabbitMqListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling rabbitMqListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/roles/`.replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqListRoles( + rabbitmqMountPath: string, + list: RabbitMqListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rabbitMqListRolesRaw( + { rabbitmqMountPath: rabbitmqMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async rabbitMqReadLeaseConfigurationRaw( + requestParameters: SecretsApiRabbitMqReadLeaseConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqReadLeaseConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/config/lease`.replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async rabbitMqReadLeaseConfiguration( + rabbitmqMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rabbitMqReadLeaseConfigurationRaw({ rabbitmqMountPath: rabbitmqMountPath }, initOverrides); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqReadRoleRaw( + requestParameters: SecretsApiRabbitMqReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling rabbitMqReadRole().' + ); + } + + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqReadRole( + name: string, + rabbitmqMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rabbitMqReadRoleRaw({ name: name, rabbitmqMountPath: rabbitmqMountPath }, initOverrides); + } + + /** + * Request RabbitMQ credentials for a certain role. + */ + async rabbitMqRequestCredentialsRaw( + requestParameters: SecretsApiRabbitMqRequestCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling rabbitMqRequestCredentials().' + ); + } + + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqRequestCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Request RabbitMQ credentials for a certain role. + */ + async rabbitMqRequestCredentials( + name: string, + rabbitmqMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rabbitMqRequestCredentialsRaw( + { name: name, rabbitmqMountPath: rabbitmqMountPath }, + initOverrides + ); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqWriteRoleRaw( + requestParameters: SecretsApiRabbitMqWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling rabbitMqWriteRole().' + ); + } + + if (requestParameters['rabbitmqMountPath'] == null) { + throw new runtime.RequiredError( + 'rabbitmqMountPath', + 'Required parameter "rabbitmqMountPath" was null or undefined when calling rabbitMqWriteRole().' + ); + } + + if (requestParameters['rabbitMqWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'rabbitMqWriteRoleRequest', + 'Required parameter "rabbitMqWriteRoleRequest" was null or undefined when calling rabbitMqWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{rabbitmq_mount_path}/roles/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'rabbitmq_mount_path'}}`, + encodeURIComponent(String(requestParameters['rabbitmqMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RabbitMqWriteRoleRequestToJSON(requestParameters['rabbitMqWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the roles that can be created with this backend. + */ + async rabbitMqWriteRole( + name: string, + rabbitmqMountPath: string, + rabbitMqWriteRoleRequest: RabbitMqWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rabbitMqWriteRoleRaw( + { + name: name, + rabbitmqMountPath: rabbitmqMountPath, + rabbitMqWriteRoleRequest: rabbitMqWriteRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async sshConfigureCaRaw( + requestParameters: SecretsApiSshConfigureCaOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshConfigureCa().' + ); + } + + if (requestParameters['sshConfigureCaRequest'] == null) { + throw new runtime.RequiredError( + 'sshConfigureCaRequest', + 'Required parameter "sshConfigureCaRequest" was null or undefined when calling sshConfigureCa().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/config/ca`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshConfigureCaRequestToJSON(requestParameters['sshConfigureCaRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async sshConfigureCa( + sshMountPath: string, + sshConfigureCaRequest: SshConfigureCaRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshConfigureCaRaw( + { sshMountPath: sshMountPath, sshConfigureCaRequest: sshConfigureCaRequest }, + initOverrides + ); + } + + /** + */ + async sshConfigureZeroAddressRaw( + requestParameters: SecretsApiSshConfigureZeroAddressOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshConfigureZeroAddress().' + ); + } + + if (requestParameters['sshConfigureZeroAddressRequest'] == null) { + throw new runtime.RequiredError( + 'sshConfigureZeroAddressRequest', + 'Required parameter "sshConfigureZeroAddressRequest" was null or undefined when calling sshConfigureZeroAddress().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/config/zeroaddress`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshConfigureZeroAddressRequestToJSON(requestParameters['sshConfigureZeroAddressRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async sshConfigureZeroAddress( + sshMountPath: string, + sshConfigureZeroAddressRequest: SshConfigureZeroAddressRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshConfigureZeroAddressRaw( + { sshMountPath: sshMountPath, sshConfigureZeroAddressRequest: sshConfigureZeroAddressRequest }, + initOverrides + ); + } + + /** + */ + async sshDeleteCaConfigurationRaw( + requestParameters: SecretsApiSshDeleteCaConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshDeleteCaConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/config/ca`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async sshDeleteCaConfiguration( + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshDeleteCaConfigurationRaw({ sshMountPath: sshMountPath }, initOverrides); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshDeleteRoleRaw( + requestParameters: SecretsApiSshDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling sshDeleteRole().' + ); + } + + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/roles/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'ssh_mount_path'}}`, encodeURIComponent(String(requestParameters['sshMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshDeleteRole( + role: string, + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshDeleteRoleRaw({ role: role, sshMountPath: sshMountPath }, initOverrides); + } + + /** + */ + async sshDeleteZeroAddressConfigurationRaw( + requestParameters: SecretsApiSshDeleteZeroAddressConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshDeleteZeroAddressConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/config/zeroaddress`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async sshDeleteZeroAddressConfiguration( + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshDeleteZeroAddressConfigurationRaw({ sshMountPath: sshMountPath }, initOverrides); + } + + /** + * Creates a credential for establishing SSH connection with the remote host. + */ + async sshGenerateCredentialsRaw( + requestParameters: SecretsApiSshGenerateCredentialsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling sshGenerateCredentials().' + ); + } + + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshGenerateCredentials().' + ); + } + + if (requestParameters['sshGenerateCredentialsRequest'] == null) { + throw new runtime.RequiredError( + 'sshGenerateCredentialsRequest', + 'Required parameter "sshGenerateCredentialsRequest" was null or undefined when calling sshGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/creds/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'ssh_mount_path'}}`, encodeURIComponent(String(requestParameters['sshMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshGenerateCredentialsRequestToJSON(requestParameters['sshGenerateCredentialsRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Creates a credential for establishing SSH connection with the remote host. + */ + async sshGenerateCredentials( + role: string, + sshMountPath: string, + sshGenerateCredentialsRequest: SshGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshGenerateCredentialsRaw( + { + role: role, + sshMountPath: sshMountPath, + sshGenerateCredentialsRequest: sshGenerateCredentialsRequest, + }, + initOverrides + ); + } + + /** + */ + async sshIssueCertificateRaw( + requestParameters: SecretsApiSshIssueCertificateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling sshIssueCertificate().' + ); + } + + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshIssueCertificate().' + ); + } + + if (requestParameters['sshIssueCertificateRequest'] == null) { + throw new runtime.RequiredError( + 'sshIssueCertificateRequest', + 'Required parameter "sshIssueCertificateRequest" was null or undefined when calling sshIssueCertificate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/issue/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'ssh_mount_path'}}`, encodeURIComponent(String(requestParameters['sshMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshIssueCertificateRequestToJSON(requestParameters['sshIssueCertificateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async sshIssueCertificate( + role: string, + sshMountPath: string, + sshIssueCertificateRequest: SshIssueCertificateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshIssueCertificateRaw( + { role: role, sshMountPath: sshMountPath, sshIssueCertificateRequest: sshIssueCertificateRequest }, + initOverrides + ); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshListRolesRaw( + requestParameters: SecretsApiSshListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling sshListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/roles/`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshListRoles( + sshMountPath: string, + list: SshListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.sshListRolesRaw({ sshMountPath: sshMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + * List all the roles associated with the given IP address. + */ + async sshListRolesByIpRaw( + requestParameters: SecretsApiSshListRolesByIpOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshListRolesByIp().' + ); + } + + if (requestParameters['sshListRolesByIpRequest'] == null) { + throw new runtime.RequiredError( + 'sshListRolesByIpRequest', + 'Required parameter "sshListRolesByIpRequest" was null or undefined when calling sshListRolesByIp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/lookup`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshListRolesByIpRequestToJSON(requestParameters['sshListRolesByIpRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * List all the roles associated with the given IP address. + */ + async sshListRolesByIp( + sshMountPath: string, + sshListRolesByIpRequest: SshListRolesByIpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshListRolesByIpRaw( + { sshMountPath: sshMountPath, sshListRolesByIpRequest: sshListRolesByIpRequest }, + initOverrides + ); + } + + /** + */ + async sshReadCaConfigurationRaw( + requestParameters: SecretsApiSshReadCaConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshReadCaConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/config/ca`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async sshReadCaConfiguration( + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshReadCaConfigurationRaw({ sshMountPath: sshMountPath }, initOverrides); + } + + /** + * Retrieve the public key. + */ + async sshReadPublicKeyRaw( + requestParameters: SecretsApiSshReadPublicKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshReadPublicKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/public_key`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Retrieve the public key. + */ + async sshReadPublicKey( + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshReadPublicKeyRaw({ sshMountPath: sshMountPath }, initOverrides); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshReadRoleRaw( + requestParameters: SecretsApiSshReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling sshReadRole().' + ); + } + + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/roles/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'ssh_mount_path'}}`, encodeURIComponent(String(requestParameters['sshMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshReadRole( + role: string, + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshReadRoleRaw({ role: role, sshMountPath: sshMountPath }, initOverrides); + } + + /** + */ + async sshReadZeroAddressConfigurationRaw( + requestParameters: SecretsApiSshReadZeroAddressConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshReadZeroAddressConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/config/zeroaddress`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async sshReadZeroAddressConfiguration( + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshReadZeroAddressConfigurationRaw({ sshMountPath: sshMountPath }, initOverrides); + } + + /** + * Request signing an SSH key using a certain role with the provided details. + */ + async sshSignCertificateRaw( + requestParameters: SecretsApiSshSignCertificateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling sshSignCertificate().' + ); + } + + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshSignCertificate().' + ); + } + + if (requestParameters['sshSignCertificateRequest'] == null) { + throw new runtime.RequiredError( + 'sshSignCertificateRequest', + 'Required parameter "sshSignCertificateRequest" was null or undefined when calling sshSignCertificate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/sign/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'ssh_mount_path'}}`, encodeURIComponent(String(requestParameters['sshMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshSignCertificateRequestToJSON(requestParameters['sshSignCertificateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Request signing an SSH key using a certain role with the provided details. + */ + async sshSignCertificate( + role: string, + sshMountPath: string, + sshSignCertificateRequest: SshSignCertificateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshSignCertificateRaw( + { role: role, sshMountPath: sshMountPath, sshSignCertificateRequest: sshSignCertificateRequest }, + initOverrides + ); + } + + /** + * This endpoint removes the stored host keys used for the removed Dynamic Key feature, if present. + */ + async sshTidyDynamicHostKeysRaw( + requestParameters: SecretsApiSshTidyDynamicHostKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshTidyDynamicHostKeys().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{ssh_mount_path}/tidy/dynamic-keys`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint removes the stored host keys used for the removed Dynamic Key feature, if present. + */ + async sshTidyDynamicHostKeys( + sshMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshTidyDynamicHostKeysRaw({ sshMountPath: sshMountPath }, initOverrides); + } + + /** + * Validate the OTP provided by Vault SSH Agent. + */ + async sshVerifyOtpRaw( + requestParameters: SecretsApiSshVerifyOtpOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshVerifyOtp().' + ); + } + + if (requestParameters['sshVerifyOtpRequest'] == null) { + throw new runtime.RequiredError( + 'sshVerifyOtpRequest', + 'Required parameter "sshVerifyOtpRequest" was null or undefined when calling sshVerifyOtp().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/verify`.replace( + `{${'ssh_mount_path'}}`, + encodeURIComponent(String(requestParameters['sshMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshVerifyOtpRequestToJSON(requestParameters['sshVerifyOtpRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Validate the OTP provided by Vault SSH Agent. + */ + async sshVerifyOtp( + sshMountPath: string, + sshVerifyOtpRequest: SshVerifyOtpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshVerifyOtpRaw( + { sshMountPath: sshMountPath, sshVerifyOtpRequest: sshVerifyOtpRequest }, + initOverrides + ); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshWriteRoleRaw( + requestParameters: SecretsApiSshWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['role'] == null) { + throw new runtime.RequiredError( + 'role', + 'Required parameter "role" was null or undefined when calling sshWriteRole().' + ); + } + + if (requestParameters['sshMountPath'] == null) { + throw new runtime.RequiredError( + 'sshMountPath', + 'Required parameter "sshMountPath" was null or undefined when calling sshWriteRole().' + ); + } + + if (requestParameters['sshWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'sshWriteRoleRequest', + 'Required parameter "sshWriteRoleRequest" was null or undefined when calling sshWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{ssh_mount_path}/roles/{role}` + .replace(`{${'role'}}`, encodeURIComponent(String(requestParameters['role']))) + .replace(`{${'ssh_mount_path'}}`, encodeURIComponent(String(requestParameters['sshMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SshWriteRoleRequestToJSON(requestParameters['sshWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Manage the \'roles\' that can be created with this backend. + */ + async sshWriteRole( + role: string, + sshMountPath: string, + sshWriteRoleRequest: SshWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.sshWriteRoleRaw( + { role: role, sshMountPath: sshMountPath, sshWriteRoleRequest: sshWriteRoleRequest }, + initOverrides + ); + } + + /** + */ + async terraformCloudConfigureRaw( + requestParameters: SecretsApiTerraformCloudConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudConfigure().' + ); + } + + if (requestParameters['terraformCloudConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'terraformCloudConfigureRequest', + 'Required parameter "terraformCloudConfigureRequest" was null or undefined when calling terraformCloudConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{terraform_mount_path}/config`.replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TerraformCloudConfigureRequestToJSON(requestParameters['terraformCloudConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudConfigure( + terraformMountPath: string, + terraformCloudConfigureRequest: TerraformCloudConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudConfigureRaw( + { + terraformMountPath: terraformMountPath, + terraformCloudConfigureRequest: terraformCloudConfigureRequest, + }, + initOverrides + ); + } + + /** + */ + async terraformCloudDeleteConfigurationRaw( + requestParameters: SecretsApiTerraformCloudDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/config`.replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudDeleteConfiguration( + terraformMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudDeleteConfigurationRaw( + { terraformMountPath: terraformMountPath }, + initOverrides + ); + } + + /** + */ + async terraformCloudDeleteRoleRaw( + requestParameters: SecretsApiTerraformCloudDeleteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling terraformCloudDeleteRole().' + ); + } + + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudDeleteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudDeleteRole( + name: string, + terraformMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudDeleteRoleRaw( + { name: name, terraformMountPath: terraformMountPath }, + initOverrides + ); + } + + /** + */ + async terraformCloudGenerateCredentialsRaw( + requestParameters: SecretsApiTerraformCloudGenerateCredentialsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling terraformCloudGenerateCredentials().' + ); + } + + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudGenerateCredentials().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudGenerateCredentials( + name: string, + terraformMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudGenerateCredentialsRaw( + { name: name, terraformMountPath: terraformMountPath }, + initOverrides + ); + } + + /** + */ + async terraformCloudGenerateCredentials2Raw( + requestParameters: SecretsApiTerraformCloudGenerateCredentials2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling terraformCloudGenerateCredentials2().' + ); + } + + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudGenerateCredentials2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/creds/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudGenerateCredentials2( + name: string, + terraformMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudGenerateCredentials2Raw( + { name: name, terraformMountPath: terraformMountPath }, + initOverrides + ); + } + + /** + */ + async terraformCloudListRolesRaw( + requestParameters: SecretsApiTerraformCloudListRolesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudListRoles().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling terraformCloudListRoles().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/role/`.replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async terraformCloudListRoles( + terraformMountPath: string, + list: TerraformCloudListRolesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.terraformCloudListRolesRaw( + { terraformMountPath: terraformMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async terraformCloudReadConfigurationRaw( + requestParameters: SecretsApiTerraformCloudReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/config`.replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudReadConfiguration( + terraformMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudReadConfigurationRaw({ terraformMountPath: terraformMountPath }, initOverrides); + } + + /** + */ + async terraformCloudReadRoleRaw( + requestParameters: SecretsApiTerraformCloudReadRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling terraformCloudReadRole().' + ); + } + + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudReadRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudReadRole( + name: string, + terraformMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudReadRoleRaw( + { name: name, terraformMountPath: terraformMountPath }, + initOverrides + ); + } + + /** + */ + async terraformCloudRotateRoleRaw( + requestParameters: SecretsApiTerraformCloudRotateRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling terraformCloudRotateRole().' + ); + } + + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudRotateRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{terraform_mount_path}/rotate-role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudRotateRole( + name: string, + terraformMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudRotateRoleRaw( + { name: name, terraformMountPath: terraformMountPath }, + initOverrides + ); + } + + /** + */ + async terraformCloudWriteRoleRaw( + requestParameters: SecretsApiTerraformCloudWriteRoleOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling terraformCloudWriteRole().' + ); + } + + if (requestParameters['terraformMountPath'] == null) { + throw new runtime.RequiredError( + 'terraformMountPath', + 'Required parameter "terraformMountPath" was null or undefined when calling terraformCloudWriteRole().' + ); + } + + if (requestParameters['terraformCloudWriteRoleRequest'] == null) { + throw new runtime.RequiredError( + 'terraformCloudWriteRoleRequest', + 'Required parameter "terraformCloudWriteRoleRequest" was null or undefined when calling terraformCloudWriteRole().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{terraform_mount_path}/role/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'terraform_mount_path'}}`, + encodeURIComponent(String(requestParameters['terraformMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TerraformCloudWriteRoleRequestToJSON(requestParameters['terraformCloudWriteRoleRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async terraformCloudWriteRole( + name: string, + terraformMountPath: string, + terraformCloudWriteRoleRequest: TerraformCloudWriteRoleRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.terraformCloudWriteRoleRaw( + { + name: name, + terraformMountPath: terraformMountPath, + terraformCloudWriteRoleRequest: terraformCloudWriteRoleRequest, + }, + initOverrides + ); + } + + /** + */ + async totpCreateKeyRaw( + requestParameters: SecretsApiTotpCreateKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling totpCreateKey().' + ); + } + + if (requestParameters['totpMountPath'] == null) { + throw new runtime.RequiredError( + 'totpMountPath', + 'Required parameter "totpMountPath" was null or undefined when calling totpCreateKey().' + ); + } + + if (requestParameters['totpCreateKeyRequest'] == null) { + throw new runtime.RequiredError( + 'totpCreateKeyRequest', + 'Required parameter "totpCreateKeyRequest" was null or undefined when calling totpCreateKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{totp_mount_path}/keys/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'totp_mount_path'}}`, encodeURIComponent(String(requestParameters['totpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TotpCreateKeyRequestToJSON(requestParameters['totpCreateKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async totpCreateKey( + name: string, + totpMountPath: string, + totpCreateKeyRequest: TotpCreateKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.totpCreateKeyRaw( + { name: name, totpMountPath: totpMountPath, totpCreateKeyRequest: totpCreateKeyRequest }, + initOverrides + ); + } + + /** + */ + async totpDeleteKeyRaw( + requestParameters: SecretsApiTotpDeleteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling totpDeleteKey().' + ); + } + + if (requestParameters['totpMountPath'] == null) { + throw new runtime.RequiredError( + 'totpMountPath', + 'Required parameter "totpMountPath" was null or undefined when calling totpDeleteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{totp_mount_path}/keys/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'totp_mount_path'}}`, encodeURIComponent(String(requestParameters['totpMountPath']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async totpDeleteKey( + name: string, + totpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.totpDeleteKeyRaw({ name: name, totpMountPath: totpMountPath }, initOverrides); + } + + /** + */ + async totpGenerateCodeRaw( + requestParameters: SecretsApiTotpGenerateCodeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling totpGenerateCode().' + ); + } + + if (requestParameters['totpMountPath'] == null) { + throw new runtime.RequiredError( + 'totpMountPath', + 'Required parameter "totpMountPath" was null or undefined when calling totpGenerateCode().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{totp_mount_path}/code/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'totp_mount_path'}}`, encodeURIComponent(String(requestParameters['totpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async totpGenerateCode( + name: string, + totpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.totpGenerateCodeRaw({ name: name, totpMountPath: totpMountPath }, initOverrides); + } + + /** + * Manage the keys that can be created with this backend. + */ + async totpListKeysRaw( + requestParameters: SecretsApiTotpListKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['totpMountPath'] == null) { + throw new runtime.RequiredError( + 'totpMountPath', + 'Required parameter "totpMountPath" was null or undefined when calling totpListKeys().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling totpListKeys().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{totp_mount_path}/keys/`.replace( + `{${'totp_mount_path'}}`, + encodeURIComponent(String(requestParameters['totpMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Manage the keys that can be created with this backend. + */ + async totpListKeys( + totpMountPath: string, + list: TotpListKeysListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.totpListKeysRaw({ totpMountPath: totpMountPath, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async totpReadKeyRaw( + requestParameters: SecretsApiTotpReadKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling totpReadKey().' + ); + } + + if (requestParameters['totpMountPath'] == null) { + throw new runtime.RequiredError( + 'totpMountPath', + 'Required parameter "totpMountPath" was null or undefined when calling totpReadKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{totp_mount_path}/keys/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'totp_mount_path'}}`, encodeURIComponent(String(requestParameters['totpMountPath']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async totpReadKey( + name: string, + totpMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.totpReadKeyRaw({ name: name, totpMountPath: totpMountPath }, initOverrides); + } + + /** + */ + async totpValidateCodeRaw( + requestParameters: SecretsApiTotpValidateCodeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling totpValidateCode().' + ); + } + + if (requestParameters['totpMountPath'] == null) { + throw new runtime.RequiredError( + 'totpMountPath', + 'Required parameter "totpMountPath" was null or undefined when calling totpValidateCode().' + ); + } + + if (requestParameters['totpValidateCodeRequest'] == null) { + throw new runtime.RequiredError( + 'totpValidateCodeRequest', + 'Required parameter "totpValidateCodeRequest" was null or undefined when calling totpValidateCode().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{totp_mount_path}/code/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'totp_mount_path'}}`, encodeURIComponent(String(requestParameters['totpMountPath']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TotpValidateCodeRequestToJSON(requestParameters['totpValidateCodeRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async totpValidateCode( + name: string, + totpMountPath: string, + totpValidateCodeRequest: TotpValidateCodeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.totpValidateCodeRaw( + { name: name, totpMountPath: totpMountPath, totpValidateCodeRequest: totpValidateCodeRequest }, + initOverrides + ); + } + + /** + * Backup the named key + */ + async transitBackUpKeyRaw( + requestParameters: SecretsApiTransitBackUpKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitBackUpKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitBackUpKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/backup/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Backup the named key + */ + async transitBackUpKey( + name: string, + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitBackUpKeyRaw({ name: name, transitMountPath: transitMountPath }, initOverrides); + } + + /** + * Securely export named encryption or signing key + */ + async transitByokKeyRaw( + requestParameters: SecretsApiTransitByokKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['destination'] == null) { + throw new runtime.RequiredError( + 'destination', + 'Required parameter "destination" was null or undefined when calling transitByokKey().' + ); + } + + if (requestParameters['source'] == null) { + throw new runtime.RequiredError( + 'source', + 'Required parameter "source" was null or undefined when calling transitByokKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitByokKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/byok-export/{destination}/{source}` + .replace(`{${'destination'}}`, encodeURIComponent(String(requestParameters['destination']))) + .replace(`{${'source'}}`, encodeURIComponent(String(requestParameters['source']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Securely export named encryption or signing key + */ + async transitByokKey( + destination: string, + source: string, + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitByokKeyRaw( + { destination: destination, source: source, transitMountPath: transitMountPath }, + initOverrides + ); + } + + /** + * Securely export named encryption or signing key + */ + async transitByokKeyVersionRaw( + requestParameters: SecretsApiTransitByokKeyVersionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['destination'] == null) { + throw new runtime.RequiredError( + 'destination', + 'Required parameter "destination" was null or undefined when calling transitByokKeyVersion().' + ); + } + + if (requestParameters['source'] == null) { + throw new runtime.RequiredError( + 'source', + 'Required parameter "source" was null or undefined when calling transitByokKeyVersion().' + ); + } + + if (requestParameters['version'] == null) { + throw new runtime.RequiredError( + 'version', + 'Required parameter "version" was null or undefined when calling transitByokKeyVersion().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitByokKeyVersion().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/byok-export/{destination}/{source}/{version}` + .replace(`{${'destination'}}`, encodeURIComponent(String(requestParameters['destination']))) + .replace(`{${'source'}}`, encodeURIComponent(String(requestParameters['source']))) + .replace(`{${'version'}}`, encodeURIComponent(String(requestParameters['version']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Securely export named encryption or signing key + */ + async transitByokKeyVersion( + destination: string, + source: string, + version: string, + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitByokKeyVersionRaw( + { destination: destination, source: source, version: version, transitMountPath: transitMountPath }, + initOverrides + ); + } + + /** + * Configures a new cache of the specified size + */ + async transitConfigureCacheRaw( + requestParameters: SecretsApiTransitConfigureCacheOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitConfigureCache().' + ); + } + + if (requestParameters['transitConfigureCacheRequest'] == null) { + throw new runtime.RequiredError( + 'transitConfigureCacheRequest', + 'Required parameter "transitConfigureCacheRequest" was null or undefined when calling transitConfigureCache().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/cache-config`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitConfigureCacheRequestToJSON(requestParameters['transitConfigureCacheRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configures a new cache of the specified size + */ + async transitConfigureCache( + transitMountPath: string, + transitConfigureCacheRequest: TransitConfigureCacheRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitConfigureCacheRaw( + { transitMountPath: transitMountPath, transitConfigureCacheRequest: transitConfigureCacheRequest }, + initOverrides + ); + } + + /** + * Configure a named encryption key + */ + async transitConfigureKeyRaw( + requestParameters: SecretsApiTransitConfigureKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitConfigureKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitConfigureKey().' + ); + } + + if (requestParameters['transitConfigureKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitConfigureKeyRequest', + 'Required parameter "transitConfigureKeyRequest" was null or undefined when calling transitConfigureKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}/config` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitConfigureKeyRequestToJSON(requestParameters['transitConfigureKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure a named encryption key + */ + async transitConfigureKey( + name: string, + transitMountPath: string, + transitConfigureKeyRequest: TransitConfigureKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitConfigureKeyRaw( + { + name: name, + transitMountPath: transitMountPath, + transitConfigureKeyRequest: transitConfigureKeyRequest, + }, + initOverrides + ); + } + + /** + */ + async transitConfigureKeysRaw( + requestParameters: SecretsApiTransitConfigureKeysOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitConfigureKeys().' + ); + } + + if (requestParameters['transitConfigureKeysRequest'] == null) { + throw new runtime.RequiredError( + 'transitConfigureKeysRequest', + 'Required parameter "transitConfigureKeysRequest" was null or undefined when calling transitConfigureKeys().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/config/keys`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitConfigureKeysRequestToJSON(requestParameters['transitConfigureKeysRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitConfigureKeys( + transitMountPath: string, + transitConfigureKeysRequest: TransitConfigureKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitConfigureKeysRaw( + { transitMountPath: transitMountPath, transitConfigureKeysRequest: transitConfigureKeysRequest }, + initOverrides + ); + } + + /** + */ + async transitCreateKeyRaw( + requestParameters: SecretsApiTransitCreateKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitCreateKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitCreateKey().' + ); + } + + if (requestParameters['transitCreateKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitCreateKeyRequest', + 'Required parameter "transitCreateKeyRequest" was null or undefined when calling transitCreateKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitCreateKeyRequestToJSON(requestParameters['transitCreateKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitCreateKey( + name: string, + transitMountPath: string, + transitCreateKeyRequest: TransitCreateKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitCreateKeyRaw( + { name: name, transitMountPath: transitMountPath, transitCreateKeyRequest: transitCreateKeyRequest }, + initOverrides + ); + } + + /** + * Decrypt a ciphertext value using a named key + */ + async transitDecryptRaw( + requestParameters: SecretsApiTransitDecryptOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitDecrypt().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitDecrypt().' + ); + } + + if (requestParameters['transitDecryptRequest'] == null) { + throw new runtime.RequiredError( + 'transitDecryptRequest', + 'Required parameter "transitDecryptRequest" was null or undefined when calling transitDecrypt().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/decrypt/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitDecryptRequestToJSON(requestParameters['transitDecryptRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Decrypt a ciphertext value using a named key + */ + async transitDecrypt( + name: string, + transitMountPath: string, + transitDecryptRequest: TransitDecryptRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitDecryptRaw( + { name: name, transitMountPath: transitMountPath, transitDecryptRequest: transitDecryptRequest }, + initOverrides + ); + } + + /** + */ + async transitDeleteKeyRaw( + requestParameters: SecretsApiTransitDeleteKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitDeleteKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitDeleteKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitDeleteKey( + name: string, + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitDeleteKeyRaw({ name: name, transitMountPath: transitMountPath }, initOverrides); + } + + /** + * Encrypt a plaintext value or a batch of plaintext blocks using a named key + */ + async transitEncryptRaw( + requestParameters: SecretsApiTransitEncryptOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitEncrypt().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitEncrypt().' + ); + } + + if (requestParameters['transitEncryptRequest'] == null) { + throw new runtime.RequiredError( + 'transitEncryptRequest', + 'Required parameter "transitEncryptRequest" was null or undefined when calling transitEncrypt().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/encrypt/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitEncryptRequestToJSON(requestParameters['transitEncryptRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Encrypt a plaintext value or a batch of plaintext blocks using a named key + */ + async transitEncrypt( + name: string, + transitMountPath: string, + transitEncryptRequest: TransitEncryptRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitEncryptRaw( + { name: name, transitMountPath: transitMountPath, transitEncryptRequest: transitEncryptRequest }, + initOverrides + ); + } + + /** + * Export named encryption or signing key + */ + async transitExportKeyRaw( + requestParameters: SecretsApiTransitExportKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitExportKey().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling transitExportKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitExportKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/export/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Export named encryption or signing key + */ + async transitExportKey( + name: string, + type: string, + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitExportKeyRaw( + { name: name, type: type, transitMountPath: transitMountPath }, + initOverrides + ); + } + + /** + * Export named encryption or signing key + */ + async transitExportKeyVersionRaw( + requestParameters: SecretsApiTransitExportKeyVersionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitExportKeyVersion().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling transitExportKeyVersion().' + ); + } + + if (requestParameters['version'] == null) { + throw new runtime.RequiredError( + 'version', + 'Required parameter "version" was null or undefined when calling transitExportKeyVersion().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitExportKeyVersion().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/export/{type}/{name}/{version}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))) + .replace(`{${'version'}}`, encodeURIComponent(String(requestParameters['version']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Export named encryption or signing key + */ + async transitExportKeyVersion( + name: string, + type: string, + version: string, + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitExportKeyVersionRaw( + { name: name, type: type, version: version, transitMountPath: transitMountPath }, + initOverrides + ); + } + + /** + */ + async transitGenerateCmacRaw( + requestParameters: SecretsApiTransitGenerateCmacOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitGenerateCmac().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateCmac().' + ); + } + + if (requestParameters['transitGenerateCmacRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateCmacRequest', + 'Required parameter "transitGenerateCmacRequest" was null or undefined when calling transitGenerateCmac().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/cmac/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateCmacRequestToJSON(requestParameters['transitGenerateCmacRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitGenerateCmac( + name: string, + transitMountPath: string, + transitGenerateCmacRequest: TransitGenerateCmacRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateCmacRaw( + { + name: name, + transitMountPath: transitMountPath, + transitGenerateCmacRequest: transitGenerateCmacRequest, + }, + initOverrides + ); + } + + /** + */ + async transitGenerateCmacWithMacLengthRaw( + requestParameters: SecretsApiTransitGenerateCmacWithMacLengthOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitGenerateCmacWithMacLength().' + ); + } + + if (requestParameters['urlMacLength'] == null) { + throw new runtime.RequiredError( + 'urlMacLength', + 'Required parameter "urlMacLength" was null or undefined when calling transitGenerateCmacWithMacLength().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateCmacWithMacLength().' + ); + } + + if (requestParameters['transitGenerateCmacWithMacLengthRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateCmacWithMacLengthRequest', + 'Required parameter "transitGenerateCmacWithMacLengthRequest" was null or undefined when calling transitGenerateCmacWithMacLength().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/cmac/{name}/{url_mac_length}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'url_mac_length'}}`, encodeURIComponent(String(requestParameters['urlMacLength']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateCmacWithMacLengthRequestToJSON( + requestParameters['transitGenerateCmacWithMacLengthRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitGenerateCmacWithMacLength( + name: string, + urlMacLength: string, + transitMountPath: string, + transitGenerateCmacWithMacLengthRequest: TransitGenerateCmacWithMacLengthRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateCmacWithMacLengthRaw( + { + name: name, + urlMacLength: urlMacLength, + transitMountPath: transitMountPath, + transitGenerateCmacWithMacLengthRequest: transitGenerateCmacWithMacLengthRequest, + }, + initOverrides + ); + } + + /** + */ + async transitGenerateCsrForKeyRaw( + requestParameters: SecretsApiTransitGenerateCsrForKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitGenerateCsrForKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateCsrForKey().' + ); + } + + if (requestParameters['transitGenerateCsrForKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateCsrForKeyRequest', + 'Required parameter "transitGenerateCsrForKeyRequest" was null or undefined when calling transitGenerateCsrForKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}/csr` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateCsrForKeyRequestToJSON(requestParameters['transitGenerateCsrForKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitGenerateCsrForKey( + name: string, + transitMountPath: string, + transitGenerateCsrForKeyRequest: TransitGenerateCsrForKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateCsrForKeyRaw( + { + name: name, + transitMountPath: transitMountPath, + transitGenerateCsrForKeyRequest: transitGenerateCsrForKeyRequest, + }, + initOverrides + ); + } + + /** + * Generate a data key + */ + async transitGenerateDataKeyRaw( + requestParameters: SecretsApiTransitGenerateDataKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitGenerateDataKey().' + ); + } + + if (requestParameters['plaintext'] == null) { + throw new runtime.RequiredError( + 'plaintext', + 'Required parameter "plaintext" was null or undefined when calling transitGenerateDataKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateDataKey().' + ); + } + + if (requestParameters['transitGenerateDataKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateDataKeyRequest', + 'Required parameter "transitGenerateDataKeyRequest" was null or undefined when calling transitGenerateDataKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/datakey/{plaintext}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'plaintext'}}`, encodeURIComponent(String(requestParameters['plaintext']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateDataKeyRequestToJSON(requestParameters['transitGenerateDataKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate a data key + */ + async transitGenerateDataKey( + name: string, + plaintext: string, + transitMountPath: string, + transitGenerateDataKeyRequest: TransitGenerateDataKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateDataKeyRaw( + { + name: name, + plaintext: plaintext, + transitMountPath: transitMountPath, + transitGenerateDataKeyRequest: transitGenerateDataKeyRequest, + }, + initOverrides + ); + } + + /** + * Generate an HMAC for input data using the named key + */ + async transitGenerateHmacRaw( + requestParameters: SecretsApiTransitGenerateHmacOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitGenerateHmac().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateHmac().' + ); + } + + if (requestParameters['transitGenerateHmacRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateHmacRequest', + 'Required parameter "transitGenerateHmacRequest" was null or undefined when calling transitGenerateHmac().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/hmac/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateHmacRequestToJSON(requestParameters['transitGenerateHmacRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate an HMAC for input data using the named key + */ + async transitGenerateHmac( + name: string, + transitMountPath: string, + transitGenerateHmacRequest: TransitGenerateHmacRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateHmacRaw( + { + name: name, + transitMountPath: transitMountPath, + transitGenerateHmacRequest: transitGenerateHmacRequest, + }, + initOverrides + ); + } + + /** + * Generate an HMAC for input data using the named key + */ + async transitGenerateHmacWithAlgorithmRaw( + requestParameters: SecretsApiTransitGenerateHmacWithAlgorithmOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitGenerateHmacWithAlgorithm().' + ); + } + + if (requestParameters['urlalgorithm'] == null) { + throw new runtime.RequiredError( + 'urlalgorithm', + 'Required parameter "urlalgorithm" was null or undefined when calling transitGenerateHmacWithAlgorithm().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateHmacWithAlgorithm().' + ); + } + + if (requestParameters['transitGenerateHmacWithAlgorithmRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateHmacWithAlgorithmRequest', + 'Required parameter "transitGenerateHmacWithAlgorithmRequest" was null or undefined when calling transitGenerateHmacWithAlgorithm().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/hmac/{name}/{urlalgorithm}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'urlalgorithm'}}`, encodeURIComponent(String(requestParameters['urlalgorithm']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateHmacWithAlgorithmRequestToJSON( + requestParameters['transitGenerateHmacWithAlgorithmRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate an HMAC for input data using the named key + */ + async transitGenerateHmacWithAlgorithm( + name: string, + urlalgorithm: string, + transitMountPath: string, + transitGenerateHmacWithAlgorithmRequest: TransitGenerateHmacWithAlgorithmRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateHmacWithAlgorithmRaw( + { + name: name, + urlalgorithm: urlalgorithm, + transitMountPath: transitMountPath, + transitGenerateHmacWithAlgorithmRequest: transitGenerateHmacWithAlgorithmRequest, + }, + initOverrides + ); + } + + /** + * Generate random bytes + */ + async transitGenerateRandomRaw( + requestParameters: SecretsApiTransitGenerateRandomOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateRandom().' + ); + } + + if (requestParameters['transitGenerateRandomRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateRandomRequest', + 'Required parameter "transitGenerateRandomRequest" was null or undefined when calling transitGenerateRandom().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/random`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateRandomRequestToJSON(requestParameters['transitGenerateRandomRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate random bytes + */ + async transitGenerateRandom( + transitMountPath: string, + transitGenerateRandomRequest: TransitGenerateRandomRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateRandomRaw( + { transitMountPath: transitMountPath, transitGenerateRandomRequest: transitGenerateRandomRequest }, + initOverrides + ); + } + + /** + * Generate random bytes + */ + async transitGenerateRandomWithBytesRaw( + requestParameters: SecretsApiTransitGenerateRandomWithBytesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlbytes'] == null) { + throw new runtime.RequiredError( + 'urlbytes', + 'Required parameter "urlbytes" was null or undefined when calling transitGenerateRandomWithBytes().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateRandomWithBytes().' + ); + } + + if (requestParameters['transitGenerateRandomWithBytesRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateRandomWithBytesRequest', + 'Required parameter "transitGenerateRandomWithBytesRequest" was null or undefined when calling transitGenerateRandomWithBytes().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/random/{urlbytes}` + .replace(`{${'urlbytes'}}`, encodeURIComponent(String(requestParameters['urlbytes']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateRandomWithBytesRequestToJSON( + requestParameters['transitGenerateRandomWithBytesRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate random bytes + */ + async transitGenerateRandomWithBytes( + urlbytes: string, + transitMountPath: string, + transitGenerateRandomWithBytesRequest: TransitGenerateRandomWithBytesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateRandomWithBytesRaw( + { + urlbytes: urlbytes, + transitMountPath: transitMountPath, + transitGenerateRandomWithBytesRequest: transitGenerateRandomWithBytesRequest, + }, + initOverrides + ); + } + + /** + * Generate random bytes + */ + async transitGenerateRandomWithSourceRaw( + requestParameters: SecretsApiTransitGenerateRandomWithSourceOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['source'] == null) { + throw new runtime.RequiredError( + 'source', + 'Required parameter "source" was null or undefined when calling transitGenerateRandomWithSource().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateRandomWithSource().' + ); + } + + if (requestParameters['transitGenerateRandomWithSourceRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateRandomWithSourceRequest', + 'Required parameter "transitGenerateRandomWithSourceRequest" was null or undefined when calling transitGenerateRandomWithSource().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/random/{source}` + .replace(`{${'source'}}`, encodeURIComponent(String(requestParameters['source']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateRandomWithSourceRequestToJSON( + requestParameters['transitGenerateRandomWithSourceRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate random bytes + */ + async transitGenerateRandomWithSource( + source: string, + transitMountPath: string, + transitGenerateRandomWithSourceRequest: TransitGenerateRandomWithSourceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateRandomWithSourceRaw( + { + source: source, + transitMountPath: transitMountPath, + transitGenerateRandomWithSourceRequest: transitGenerateRandomWithSourceRequest, + }, + initOverrides + ); + } + + /** + * Generate random bytes + */ + async transitGenerateRandomWithSourceAndBytesRaw( + requestParameters: SecretsApiTransitGenerateRandomWithSourceAndBytesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['source'] == null) { + throw new runtime.RequiredError( + 'source', + 'Required parameter "source" was null or undefined when calling transitGenerateRandomWithSourceAndBytes().' + ); + } + + if (requestParameters['urlbytes'] == null) { + throw new runtime.RequiredError( + 'urlbytes', + 'Required parameter "urlbytes" was null or undefined when calling transitGenerateRandomWithSourceAndBytes().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitGenerateRandomWithSourceAndBytes().' + ); + } + + if (requestParameters['transitGenerateRandomWithSourceAndBytesRequest'] == null) { + throw new runtime.RequiredError( + 'transitGenerateRandomWithSourceAndBytesRequest', + 'Required parameter "transitGenerateRandomWithSourceAndBytesRequest" was null or undefined when calling transitGenerateRandomWithSourceAndBytes().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/random/{source}/{urlbytes}` + .replace(`{${'source'}}`, encodeURIComponent(String(requestParameters['source']))) + .replace(`{${'urlbytes'}}`, encodeURIComponent(String(requestParameters['urlbytes']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitGenerateRandomWithSourceAndBytesRequestToJSON( + requestParameters['transitGenerateRandomWithSourceAndBytesRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate random bytes + */ + async transitGenerateRandomWithSourceAndBytes( + source: string, + urlbytes: string, + transitMountPath: string, + transitGenerateRandomWithSourceAndBytesRequest: TransitGenerateRandomWithSourceAndBytesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitGenerateRandomWithSourceAndBytesRaw( + { + source: source, + urlbytes: urlbytes, + transitMountPath: transitMountPath, + transitGenerateRandomWithSourceAndBytesRequest: transitGenerateRandomWithSourceAndBytesRequest, + }, + initOverrides + ); + } + + /** + * Generate a hash sum for input data + */ + async transitHashRaw( + requestParameters: SecretsApiTransitHashOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitHash().' + ); + } + + if (requestParameters['transitHashRequest'] == null) { + throw new runtime.RequiredError( + 'transitHashRequest', + 'Required parameter "transitHashRequest" was null or undefined when calling transitHash().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/hash`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitHashRequestToJSON(requestParameters['transitHashRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate a hash sum for input data + */ + async transitHash( + transitMountPath: string, + transitHashRequest: TransitHashRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitHashRaw( + { transitMountPath: transitMountPath, transitHashRequest: transitHashRequest }, + initOverrides + ); + } + + /** + * Generate a hash sum for input data + */ + async transitHashWithAlgorithmRaw( + requestParameters: SecretsApiTransitHashWithAlgorithmOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlalgorithm'] == null) { + throw new runtime.RequiredError( + 'urlalgorithm', + 'Required parameter "urlalgorithm" was null or undefined when calling transitHashWithAlgorithm().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitHashWithAlgorithm().' + ); + } + + if (requestParameters['transitHashWithAlgorithmRequest'] == null) { + throw new runtime.RequiredError( + 'transitHashWithAlgorithmRequest', + 'Required parameter "transitHashWithAlgorithmRequest" was null or undefined when calling transitHashWithAlgorithm().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/hash/{urlalgorithm}` + .replace(`{${'urlalgorithm'}}`, encodeURIComponent(String(requestParameters['urlalgorithm']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitHashWithAlgorithmRequestToJSON(requestParameters['transitHashWithAlgorithmRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate a hash sum for input data + */ + async transitHashWithAlgorithm( + urlalgorithm: string, + transitMountPath: string, + transitHashWithAlgorithmRequest: TransitHashWithAlgorithmRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitHashWithAlgorithmRaw( + { + urlalgorithm: urlalgorithm, + transitMountPath: transitMountPath, + transitHashWithAlgorithmRequest: transitHashWithAlgorithmRequest, + }, + initOverrides + ); + } + + /** + * Imports an externally-generated key into a new transit key + */ + async transitImportKeyRaw( + requestParameters: SecretsApiTransitImportKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitImportKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitImportKey().' + ); + } + + if (requestParameters['transitImportKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitImportKeyRequest', + 'Required parameter "transitImportKeyRequest" was null or undefined when calling transitImportKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}/import` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitImportKeyRequestToJSON(requestParameters['transitImportKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Imports an externally-generated key into a new transit key + */ + async transitImportKey( + name: string, + transitMountPath: string, + transitImportKeyRequest: TransitImportKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitImportKeyRaw( + { name: name, transitMountPath: transitMountPath, transitImportKeyRequest: transitImportKeyRequest }, + initOverrides + ); + } + + /** + * Imports an externally-generated key into an existing imported key + */ + async transitImportKeyVersionRaw( + requestParameters: SecretsApiTransitImportKeyVersionOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitImportKeyVersion().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitImportKeyVersion().' + ); + } + + if (requestParameters['transitImportKeyVersionRequest'] == null) { + throw new runtime.RequiredError( + 'transitImportKeyVersionRequest', + 'Required parameter "transitImportKeyVersionRequest" was null or undefined when calling transitImportKeyVersion().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}/import_version` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitImportKeyVersionRequestToJSON(requestParameters['transitImportKeyVersionRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Imports an externally-generated key into an existing imported key + */ + async transitImportKeyVersion( + name: string, + transitMountPath: string, + transitImportKeyVersionRequest: TransitImportKeyVersionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitImportKeyVersionRaw( + { + name: name, + transitMountPath: transitMountPath, + transitImportKeyVersionRequest: transitImportKeyVersionRequest, + }, + initOverrides + ); + } + + /** + * Managed named encryption keys + */ + async transitListKeysRaw( + requestParameters: SecretsApiTransitListKeysRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitListKeys().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling transitListKeys().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Managed named encryption keys + */ + async transitListKeys( + transitMountPath: string, + list: TransitListKeysListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.transitListKeysRaw( + { transitMountPath: transitMountPath, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Returns the size of the active cache + */ + async transitReadCacheConfigurationRaw( + requestParameters: SecretsApiTransitReadCacheConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitReadCacheConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/cache-config`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the size of the active cache + */ + async transitReadCacheConfiguration( + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitReadCacheConfigurationRaw({ transitMountPath: transitMountPath }, initOverrides); + } + + /** + */ + async transitReadKeyRaw( + requestParameters: SecretsApiTransitReadKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitReadKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitReadKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitReadKey( + name: string, + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitReadKeyRaw({ name: name, transitMountPath: transitMountPath }, initOverrides); + } + + /** + */ + async transitReadKeysConfigurationRaw( + requestParameters: SecretsApiTransitReadKeysConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitReadKeysConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/config/keys`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitReadKeysConfiguration( + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitReadKeysConfigurationRaw({ transitMountPath: transitMountPath }, initOverrides); + } + + /** + * Returns the public key to use for wrapping imported keys + */ + async transitReadWrappingKeyRaw( + requestParameters: SecretsApiTransitReadWrappingKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitReadWrappingKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/{transit_mount_path}/wrapping_key`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the public key to use for wrapping imported keys + */ + async transitReadWrappingKey( + transitMountPath: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitReadWrappingKeyRaw({ transitMountPath: transitMountPath }, initOverrides); + } + + /** + * Restore the named key + */ + async transitRestoreAndRenameKeyRaw( + requestParameters: SecretsApiTransitRestoreAndRenameKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitRestoreAndRenameKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitRestoreAndRenameKey().' + ); + } + + if (requestParameters['transitRestoreAndRenameKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitRestoreAndRenameKeyRequest', + 'Required parameter "transitRestoreAndRenameKeyRequest" was null or undefined when calling transitRestoreAndRenameKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/restore/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitRestoreAndRenameKeyRequestToJSON(requestParameters['transitRestoreAndRenameKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Restore the named key + */ + async transitRestoreAndRenameKey( + name: string, + transitMountPath: string, + transitRestoreAndRenameKeyRequest: TransitRestoreAndRenameKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitRestoreAndRenameKeyRaw( + { + name: name, + transitMountPath: transitMountPath, + transitRestoreAndRenameKeyRequest: transitRestoreAndRenameKeyRequest, + }, + initOverrides + ); + } + + /** + * Restore the named key + */ + async transitRestoreKeyRaw( + requestParameters: SecretsApiTransitRestoreKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitRestoreKey().' + ); + } + + if (requestParameters['transitRestoreKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitRestoreKeyRequest', + 'Required parameter "transitRestoreKeyRequest" was null or undefined when calling transitRestoreKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/restore`.replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitRestoreKeyRequestToJSON(requestParameters['transitRestoreKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Restore the named key + */ + async transitRestoreKey( + transitMountPath: string, + transitRestoreKeyRequest: TransitRestoreKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitRestoreKeyRaw( + { transitMountPath: transitMountPath, transitRestoreKeyRequest: transitRestoreKeyRequest }, + initOverrides + ); + } + + /** + * Rewrap ciphertext + */ + async transitRewrapRaw( + requestParameters: SecretsApiTransitRewrapOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitRewrap().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitRewrap().' + ); + } + + if (requestParameters['transitRewrapRequest'] == null) { + throw new runtime.RequiredError( + 'transitRewrapRequest', + 'Required parameter "transitRewrapRequest" was null or undefined when calling transitRewrap().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/rewrap/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitRewrapRequestToJSON(requestParameters['transitRewrapRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Rewrap ciphertext + */ + async transitRewrap( + name: string, + transitMountPath: string, + transitRewrapRequest: TransitRewrapRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitRewrapRaw( + { name: name, transitMountPath: transitMountPath, transitRewrapRequest: transitRewrapRequest }, + initOverrides + ); + } + + /** + * Rotate named encryption key + */ + async transitRotateKeyRaw( + requestParameters: SecretsApiTransitRotateKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitRotateKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitRotateKey().' + ); + } + + if (requestParameters['transitRotateKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitRotateKeyRequest', + 'Required parameter "transitRotateKeyRequest" was null or undefined when calling transitRotateKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}/rotate` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitRotateKeyRequestToJSON(requestParameters['transitRotateKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Rotate named encryption key + */ + async transitRotateKey( + name: string, + transitMountPath: string, + transitRotateKeyRequest: TransitRotateKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitRotateKeyRaw( + { name: name, transitMountPath: transitMountPath, transitRotateKeyRequest: transitRotateKeyRequest }, + initOverrides + ); + } + + /** + */ + async transitSetCertificateForKeyRaw( + requestParameters: SecretsApiTransitSetCertificateForKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitSetCertificateForKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitSetCertificateForKey().' + ); + } + + if (requestParameters['transitSetCertificateForKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitSetCertificateForKeyRequest', + 'Required parameter "transitSetCertificateForKeyRequest" was null or undefined when calling transitSetCertificateForKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}/set-certificate` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitSetCertificateForKeyRequestToJSON( + requestParameters['transitSetCertificateForKeyRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async transitSetCertificateForKey( + name: string, + transitMountPath: string, + transitSetCertificateForKeyRequest: TransitSetCertificateForKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitSetCertificateForKeyRaw( + { + name: name, + transitMountPath: transitMountPath, + transitSetCertificateForKeyRequest: transitSetCertificateForKeyRequest, + }, + initOverrides + ); + } + + /** + * Generate a signature for input data using the named key + */ + async transitSignRaw( + requestParameters: SecretsApiTransitSignOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitSign().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitSign().' + ); + } + + if (requestParameters['transitSignRequest'] == null) { + throw new runtime.RequiredError( + 'transitSignRequest', + 'Required parameter "transitSignRequest" was null or undefined when calling transitSign().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/sign/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitSignRequestToJSON(requestParameters['transitSignRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate a signature for input data using the named key + */ + async transitSign( + name: string, + transitMountPath: string, + transitSignRequest: TransitSignRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitSignRaw( + { name: name, transitMountPath: transitMountPath, transitSignRequest: transitSignRequest }, + initOverrides + ); + } + + /** + * Generate a signature for input data using the named key + */ + async transitSignWithAlgorithmRaw( + requestParameters: SecretsApiTransitSignWithAlgorithmOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitSignWithAlgorithm().' + ); + } + + if (requestParameters['urlalgorithm'] == null) { + throw new runtime.RequiredError( + 'urlalgorithm', + 'Required parameter "urlalgorithm" was null or undefined when calling transitSignWithAlgorithm().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitSignWithAlgorithm().' + ); + } + + if (requestParameters['transitSignWithAlgorithmRequest'] == null) { + throw new runtime.RequiredError( + 'transitSignWithAlgorithmRequest', + 'Required parameter "transitSignWithAlgorithmRequest" was null or undefined when calling transitSignWithAlgorithm().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/sign/{name}/{urlalgorithm}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'urlalgorithm'}}`, encodeURIComponent(String(requestParameters['urlalgorithm']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitSignWithAlgorithmRequestToJSON(requestParameters['transitSignWithAlgorithmRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generate a signature for input data using the named key + */ + async transitSignWithAlgorithm( + name: string, + urlalgorithm: string, + transitMountPath: string, + transitSignWithAlgorithmRequest: TransitSignWithAlgorithmRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitSignWithAlgorithmRaw( + { + name: name, + urlalgorithm: urlalgorithm, + transitMountPath: transitMountPath, + transitSignWithAlgorithmRequest: transitSignWithAlgorithmRequest, + }, + initOverrides + ); + } + + /** + * Trim key versions of a named key + */ + async transitTrimKeyRaw( + requestParameters: SecretsApiTransitTrimKeyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitTrimKey().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitTrimKey().' + ); + } + + if (requestParameters['transitTrimKeyRequest'] == null) { + throw new runtime.RequiredError( + 'transitTrimKeyRequest', + 'Required parameter "transitTrimKeyRequest" was null or undefined when calling transitTrimKey().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/keys/{name}/trim` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitTrimKeyRequestToJSON(requestParameters['transitTrimKeyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Trim key versions of a named key + */ + async transitTrimKey( + name: string, + transitMountPath: string, + transitTrimKeyRequest: TransitTrimKeyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitTrimKeyRaw( + { name: name, transitMountPath: transitMountPath, transitTrimKeyRequest: transitTrimKeyRequest }, + initOverrides + ); + } + + /** + * Verify a signature or HMAC for input data created using the named key + */ + async transitVerifyRaw( + requestParameters: SecretsApiTransitVerifyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitVerify().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitVerify().' + ); + } + + if (requestParameters['transitVerifyRequest'] == null) { + throw new runtime.RequiredError( + 'transitVerifyRequest', + 'Required parameter "transitVerifyRequest" was null or undefined when calling transitVerify().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/verify/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitVerifyRequestToJSON(requestParameters['transitVerifyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Verify a signature or HMAC for input data created using the named key + */ + async transitVerify( + name: string, + transitMountPath: string, + transitVerifyRequest: TransitVerifyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitVerifyRaw( + { name: name, transitMountPath: transitMountPath, transitVerifyRequest: transitVerifyRequest }, + initOverrides + ); + } + + /** + * Verify a signature or HMAC for input data created using the named key + */ + async transitVerifyWithAlgorithmRaw( + requestParameters: SecretsApiTransitVerifyWithAlgorithmOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling transitVerifyWithAlgorithm().' + ); + } + + if (requestParameters['urlalgorithm'] == null) { + throw new runtime.RequiredError( + 'urlalgorithm', + 'Required parameter "urlalgorithm" was null or undefined when calling transitVerifyWithAlgorithm().' + ); + } + + if (requestParameters['transitMountPath'] == null) { + throw new runtime.RequiredError( + 'transitMountPath', + 'Required parameter "transitMountPath" was null or undefined when calling transitVerifyWithAlgorithm().' + ); + } + + if (requestParameters['transitVerifyWithAlgorithmRequest'] == null) { + throw new runtime.RequiredError( + 'transitVerifyWithAlgorithmRequest', + 'Required parameter "transitVerifyWithAlgorithmRequest" was null or undefined when calling transitVerifyWithAlgorithm().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/{transit_mount_path}/verify/{name}/{urlalgorithm}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'urlalgorithm'}}`, encodeURIComponent(String(requestParameters['urlalgorithm']))) + .replace( + `{${'transit_mount_path'}}`, + encodeURIComponent(String(requestParameters['transitMountPath'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: TransitVerifyWithAlgorithmRequestToJSON(requestParameters['transitVerifyWithAlgorithmRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Verify a signature or HMAC for input data created using the named key + */ + async transitVerifyWithAlgorithm( + name: string, + urlalgorithm: string, + transitMountPath: string, + transitVerifyWithAlgorithmRequest: TransitVerifyWithAlgorithmRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.transitVerifyWithAlgorithmRaw( + { + name: name, + urlalgorithm: urlalgorithm, + transitMountPath: transitMountPath, + transitVerifyWithAlgorithmRequest: transitVerifyWithAlgorithmRequest, + }, + initOverrides + ); + } +} + +/** + * @export + * @enum {string} + */ +export enum AliCloudListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AwsListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum AzureListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum ConsulListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum CubbyholeListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum DatabaseListConnectionsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum DatabaseListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum DatabaseListStaticRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudKmsListKeysListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListImpersonatedAccountsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListImpersonatedAccounts2ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListRolesetsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListRolesets2ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListStaticAccountsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum GoogleCloudListStaticAccounts2ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum KubernetesListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum KvV1ListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum KvV2ListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapLibraryListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapLibraryListLibraryPathListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapLibraryListLibraryPath0ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListDynamicRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListRolePathListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListRolePath0ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListStaticRolePathListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListStaticRolePath0ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum LdapListStaticRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum MongoDbAtlasListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum NomadListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiGenerateIntermediateExportedEnum { + INTERNAL = 'internal', + EXTERNAL = 'external', + KMS = 'kms', +} +/** + * @export + * @enum {string} + */ +export enum PkiGenerateRootExportedEnum { + INTERNAL = 'internal', + EXTERNAL = 'external', + KMS = 'kms', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateIntermediateExportedEnum { + INTERNAL = 'internal', + EXTERNAL = 'external', + KMS = 'kms', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateRootExportedEnum { + INTERNAL = 'internal', + EXTERNAL = 'external', + KMS = 'kms', +} +/** + * @export + * @enum {string} + */ +export enum PkiListAcmeAccountKeysListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListCertMetadataListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListCertsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListCertsRevocationQueueListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListEabKeysListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListIssuersListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListKeysListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListRevokedCertsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiListUnifiedRevokedCertsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PkiRotateRootExportedEnum { + INTERNAL = 'internal', + EXTERNAL = 'external', + KMS = 'kms', +} +/** + * @export + * @enum {string} + */ +export enum RabbitMqListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SshListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum TerraformCloudListRolesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum TotpListKeysListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum TransitListKeysListEnum { + TRUE = 'true', +} diff --git a/ui/api-client/src/apis/SystemApi.ts b/ui/api-client/src/apis/SystemApi.ts new file mode 100644 index 0000000000..cf48956cc2 --- /dev/null +++ b/ui/api-client/src/apis/SystemApi.ts @@ -0,0 +1,16996 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import * as runtime from '../runtime'; +import type { + AuditingCalculateHashRequest, + AuditingCalculateHashResponse, + AuditingEnableDeviceRequest, + AuditingEnableRequestHeaderRequest, + AuditingListRequestHeadersResponse, + AuthEnableMethodRequest, + AuthReadConfigurationResponse, + AuthReadTuningInformationResponse, + AuthTuneConfigurationParametersRequest, + CollectHostInformationResponse, + CorsConfigureRequest, + CorsReadConfigurationResponse, + CreateCustomMessageRequest, + DecodeTokenRequest, + EncryptionKeyConfigureRotationRequest, + EncryptionKeyReadRotationConfigurationResponse, + GenerateHashRequest, + GenerateHashResponse, + GenerateHashWithAlgorithmRequest, + GenerateHashWithAlgorithmResponse, + GenerateRandomRequest, + GenerateRandomResponse, + GenerateRandomWithBytesRequest, + GenerateRandomWithBytesResponse, + GenerateRandomWithSourceAndBytesRequest, + GenerateRandomWithSourceAndBytesResponse, + GenerateRandomWithSourceRequest, + GenerateRandomWithSourceResponse, + HaStatusResponse, + InitializeRequest, + InternalClientActivityConfigureRequest, + InternalCountEntitiesResponse, + InternalCountTokensResponse, + InternalGenerateOpenApiDocumentWithParametersRequest, + InternalUiListEnabledFeatureFlagsResponse, + InternalUiListEnabledVisibleMountsResponse, + InternalUiListNamespacesResponse, + InternalUiReadAuthenticatedActiveCustomMessagesResponse, + InternalUiReadMountInformationResponse, + InternalUiReadResultantAclResponse, + InternalUiReadUnauthenticatedActiveCustomMessagesResponse, + LeaderStatusResponse, + LeasesCountResponse, + LeasesListResponse, + LeasesLookUpResponse, + LeasesReadLeaseRequest, + LeasesReadLeaseResponse, + LeasesRenewLease2Request, + LeasesRenewLeaseRequest, + LeasesRenewLeaseWithId2Request, + LeasesRenewLeaseWithIdRequest, + LeasesRevokeLease2Request, + LeasesRevokeLeaseRequest, + LeasesRevokeLeaseWithId2Request, + LeasesRevokeLeaseWithIdRequest, + LeasesRevokeLeaseWithPrefix2Request, + LeasesRevokeLeaseWithPrefixRequest, + LoggersUpdateVerbosityLevelForRequest, + LoggersUpdateVerbosityLevelRequest, + MfaValidateRequest, + MountsEnableSecretsEngineRequest, + MountsReadConfigurationResponse, + MountsReadTuningInformationResponse, + MountsTuneConfigurationParametersRequest, + PluginsCatalogListPluginsResponse, + PluginsCatalogListPluginsWithTypeResponse, + PluginsCatalogPinsCreatePinnedVersionRequest, + PluginsCatalogPinsListPinnedVersionsResponse, + PluginsCatalogPinsReadPinnedVersionResponse, + PluginsCatalogReadPluginConfigurationResponse, + PluginsCatalogReadPluginConfigurationWithTypeResponse, + PluginsCatalogRegisterPluginRequest, + PluginsCatalogRegisterPluginWithTypeRequest, + PluginsReloadBackendsRequest, + PluginsReloadBackendsResponse, + PluginsRuntimesCatalogListPluginsRuntimesResponse, + PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse, + PluginsRuntimesCatalogRegisterPluginRuntimeRequest, + PoliciesGeneratePasswordFromPasswordPolicyResponse, + PoliciesListAclPolicies2Response, + PoliciesListAclPolicies3Response, + PoliciesListAclPoliciesResponse, + PoliciesReadAclPolicy2Response, + PoliciesReadAclPolicyResponse, + PoliciesReadPasswordPolicyResponse, + PoliciesWriteAclPolicy2Request, + PoliciesWriteAclPolicyRequest, + PoliciesWritePasswordPolicyRequest, + QueryTokenAccessorCapabilitiesRequest, + QueryTokenCapabilitiesRequest, + QueryTokenSelfCapabilitiesRequest, + RateLimitQuotasConfigureRequest, + RateLimitQuotasReadConfigurationResponse, + RateLimitQuotasReadResponse, + RateLimitQuotasWriteRequest, + RawReadResponse, + RawWriteRequest, + ReadWrappingProperties2Response, + ReadWrappingPropertiesRequest, + ReadWrappingPropertiesResponse, + RekeyAttemptInitializeRequest, + RekeyAttemptInitializeResponse, + RekeyAttemptReadProgressResponse, + RekeyAttemptUpdateRequest, + RekeyAttemptUpdateResponse, + RekeyReadBackupKeyResponse, + RekeyReadBackupRecoveryKeyResponse, + RekeyVerificationCancelResponse, + RekeyVerificationReadProgressResponse, + RekeyVerificationUpdateRequest, + RekeyVerificationUpdateResponse, + ReloadPluginsRequest, + ReloadPluginsResponse, + RemountRequest, + RemountResponse, + RemountStatusResponse, + RewrapRequest, + RootTokenGenerationInitialize2Request, + RootTokenGenerationInitialize2Response, + RootTokenGenerationInitializeRequest, + RootTokenGenerationInitializeResponse, + RootTokenGenerationReadProgress2Response, + RootTokenGenerationReadProgressResponse, + RootTokenGenerationUpdateRequest, + RootTokenGenerationUpdateResponse, + SealStatusResponse, + StandardListResponse, + SubscriptionsCreateResponse, + SubscriptionsListEventsSubscriptionsResponse, + SubscriptionsReadEventsSubscriptionsResponse, + SubscriptionsWriteEventsSubscriptionsRequest, + SubscriptionsWriteEventsSubscriptionsResponse, + SystemDeleteSyncConfigResponse, + SystemDeleteSyncGithubAppsNameResponse, + SystemListSyncAssociationsResponse, + SystemListSyncDestinationsResponse, + SystemListSyncDestinationsTypeResponse, + SystemListSyncGithubAppsResponse, + SystemReadConfigGroupPolicyApplicationResponse, + SystemReadSyncAssociationsDestinationsResponse, + SystemReadSyncAssociationsMountSecretNameResponse, + SystemReadSyncConfigResponse, + SystemReadSyncDestinationsAwsSmNameResponse, + SystemReadSyncDestinationsAzureKvNameResponse, + SystemReadSyncDestinationsGcpSmNameResponse, + SystemReadSyncDestinationsGhNameResponse, + SystemReadSyncDestinationsInMemNameResponse, + SystemReadSyncDestinationsTypeNameAssociationsResponse, + SystemReadSyncDestinationsVercelProjectNameResponse, + SystemReadSyncGithubAppsNameResponse, + SystemWriteConfigControlGroupRequest, + SystemWriteConfigGroupPolicyApplicationRequest, + SystemWriteControlGroupAuthorizeRequest, + SystemWriteControlGroupRequestRequest, + SystemWriteInternalCountersActivityWriteRequest, + SystemWriteManagedKeysTypeNameRequest, + SystemWriteManagedKeysTypeNameTestSignRequest, + SystemWriteMfaMethodDuoNameRequest, + SystemWriteMfaMethodOktaNameRequest, + SystemWriteMfaMethodPingidNameRequest, + SystemWriteMfaMethodTotpNameAdminDestroyRequest, + SystemWriteMfaMethodTotpNameAdminGenerateRequest, + SystemWriteMfaMethodTotpNameRequest, + SystemWriteNamespacesApiLockUnlockPathRequest, + SystemWriteNamespacesApiLockUnlockRequest, + SystemWriteNamespacesPathRequest, + SystemWritePoliciesEgpNameRequest, + SystemWritePoliciesRgpNameRequest, + SystemWriteQuotasLeaseCountNameRequest, + SystemWriteReplicationDrPrimaryEnableRequest, + SystemWriteReplicationDrPrimaryRevokeSecondaryRequest, + SystemWriteReplicationDrPrimarySecondaryTokenRequest, + SystemWriteReplicationDrSecondaryDisableRequest, + SystemWriteReplicationDrSecondaryEnableRequest, + SystemWriteReplicationDrSecondaryMerkleCheckRequest, + SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest, + SystemWriteReplicationDrSecondaryPromoteRequest, + SystemWriteReplicationDrSecondaryRecoverRequest, + SystemWriteReplicationDrSecondaryReindexRequest, + SystemWriteReplicationDrSecondaryUpdatePrimaryRequest, + SystemWriteReplicationForceCorruptionRequest, + SystemWriteReplicationPerformancePrimaryEnableRequest, + SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest, + SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest, + SystemWriteReplicationPerformancePrimarySecondaryTokenRequest, + SystemWriteReplicationPerformanceSecondaryEnableRequest, + SystemWriteReplicationPerformanceSecondaryPromoteRequest, + SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest, + SystemWriteReplicationPrimaryEnableRequest, + SystemWriteReplicationPrimaryRevokeSecondaryRequest, + SystemWriteReplicationPrimarySecondaryTokenRequest, + SystemWriteReplicationReindexRequest, + SystemWriteReplicationSecondaryEnableRequest, + SystemWriteReplicationSecondaryPromoteRequest, + SystemWriteReplicationSecondaryUpdatePrimaryRequest, + SystemWriteStorageRaftSnapshotAutoConfigNameRequest, + SystemWriteSyncDestinationsAwsSmNameRequest, + SystemWriteSyncDestinationsAwsSmNameResponse, + SystemWriteSyncDestinationsAzureKvNameRequest, + SystemWriteSyncDestinationsAzureKvNameResponse, + SystemWriteSyncDestinationsGcpSmNameRequest, + SystemWriteSyncDestinationsGcpSmNameResponse, + SystemWriteSyncDestinationsGhNameRequest, + SystemWriteSyncDestinationsGhNameResponse, + SystemWriteSyncDestinationsInMemNameRequest, + SystemWriteSyncDestinationsInMemNameResponse, + SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest, + SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse, + SystemWriteSyncDestinationsTypeNameAssociationsSetRequest, + SystemWriteSyncDestinationsTypeNameAssociationsSetResponse, + SystemWriteSyncDestinationsVercelProjectNameRequest, + SystemWriteSyncDestinationsVercelProjectNameResponse, + SystemWriteSyncGithubAppsNameRequest, + SystemWriteSyncGithubAppsNameResponse, + SystemWriteUtilizationRequest, + SystemWriteUtilizationResponse, + UiConfigDeleteCustomMessageResponse, + UiConfigReadCustomMessageResponse, + UiConfigUpdateCustomMessageRequest, + UiConfigUpdateCustomMessageResponse, + UiHeadersConfigureRequest, + UiHeadersListResponse, + UiHeadersReadConfigurationResponse, + UnsealRequest, + UnsealResponse, + UnwrapRequest, + VersionHistoryResponse, + WellKnownListLabels2Response, + WellKnownListLabelsResponse, + WellKnownReadLabelResponse, +} from '../models/index'; +import { + AuditingCalculateHashRequestFromJSON, + AuditingCalculateHashRequestToJSON, + AuditingCalculateHashResponseFromJSON, + AuditingCalculateHashResponseToJSON, + AuditingEnableDeviceRequestFromJSON, + AuditingEnableDeviceRequestToJSON, + AuditingEnableRequestHeaderRequestFromJSON, + AuditingEnableRequestHeaderRequestToJSON, + AuditingListRequestHeadersResponseFromJSON, + AuditingListRequestHeadersResponseToJSON, + AuthEnableMethodRequestFromJSON, + AuthEnableMethodRequestToJSON, + AuthReadConfigurationResponseFromJSON, + AuthReadConfigurationResponseToJSON, + AuthReadTuningInformationResponseFromJSON, + AuthReadTuningInformationResponseToJSON, + AuthTuneConfigurationParametersRequestFromJSON, + AuthTuneConfigurationParametersRequestToJSON, + CollectHostInformationResponseFromJSON, + CollectHostInformationResponseToJSON, + CorsConfigureRequestFromJSON, + CorsConfigureRequestToJSON, + CorsReadConfigurationResponseFromJSON, + CorsReadConfigurationResponseToJSON, + CreateCustomMessageRequestFromJSON, + CreateCustomMessageRequestToJSON, + DecodeTokenRequestFromJSON, + DecodeTokenRequestToJSON, + EncryptionKeyConfigureRotationRequestFromJSON, + EncryptionKeyConfigureRotationRequestToJSON, + EncryptionKeyReadRotationConfigurationResponseFromJSON, + EncryptionKeyReadRotationConfigurationResponseToJSON, + GenerateHashRequestFromJSON, + GenerateHashRequestToJSON, + GenerateHashResponseFromJSON, + GenerateHashResponseToJSON, + GenerateHashWithAlgorithmRequestFromJSON, + GenerateHashWithAlgorithmRequestToJSON, + GenerateHashWithAlgorithmResponseFromJSON, + GenerateHashWithAlgorithmResponseToJSON, + GenerateRandomRequestFromJSON, + GenerateRandomRequestToJSON, + GenerateRandomResponseFromJSON, + GenerateRandomResponseToJSON, + GenerateRandomWithBytesRequestFromJSON, + GenerateRandomWithBytesRequestToJSON, + GenerateRandomWithBytesResponseFromJSON, + GenerateRandomWithBytesResponseToJSON, + GenerateRandomWithSourceAndBytesRequestFromJSON, + GenerateRandomWithSourceAndBytesRequestToJSON, + GenerateRandomWithSourceAndBytesResponseFromJSON, + GenerateRandomWithSourceAndBytesResponseToJSON, + GenerateRandomWithSourceRequestFromJSON, + GenerateRandomWithSourceRequestToJSON, + GenerateRandomWithSourceResponseFromJSON, + GenerateRandomWithSourceResponseToJSON, + HaStatusResponseFromJSON, + HaStatusResponseToJSON, + InitializeRequestFromJSON, + InitializeRequestToJSON, + InternalClientActivityConfigureRequestFromJSON, + InternalClientActivityConfigureRequestToJSON, + InternalCountEntitiesResponseFromJSON, + InternalCountEntitiesResponseToJSON, + InternalCountTokensResponseFromJSON, + InternalCountTokensResponseToJSON, + InternalGenerateOpenApiDocumentWithParametersRequestFromJSON, + InternalGenerateOpenApiDocumentWithParametersRequestToJSON, + InternalUiListEnabledFeatureFlagsResponseFromJSON, + InternalUiListEnabledFeatureFlagsResponseToJSON, + InternalUiListEnabledVisibleMountsResponseFromJSON, + InternalUiListEnabledVisibleMountsResponseToJSON, + InternalUiListNamespacesResponseFromJSON, + InternalUiListNamespacesResponseToJSON, + InternalUiReadAuthenticatedActiveCustomMessagesResponseFromJSON, + InternalUiReadAuthenticatedActiveCustomMessagesResponseToJSON, + InternalUiReadMountInformationResponseFromJSON, + InternalUiReadMountInformationResponseToJSON, + InternalUiReadResultantAclResponseFromJSON, + InternalUiReadResultantAclResponseToJSON, + InternalUiReadUnauthenticatedActiveCustomMessagesResponseFromJSON, + InternalUiReadUnauthenticatedActiveCustomMessagesResponseToJSON, + LeaderStatusResponseFromJSON, + LeaderStatusResponseToJSON, + LeasesCountResponseFromJSON, + LeasesCountResponseToJSON, + LeasesListResponseFromJSON, + LeasesListResponseToJSON, + LeasesLookUpResponseFromJSON, + LeasesLookUpResponseToJSON, + LeasesReadLeaseRequestFromJSON, + LeasesReadLeaseRequestToJSON, + LeasesReadLeaseResponseFromJSON, + LeasesReadLeaseResponseToJSON, + LeasesRenewLease2RequestFromJSON, + LeasesRenewLease2RequestToJSON, + LeasesRenewLeaseRequestFromJSON, + LeasesRenewLeaseRequestToJSON, + LeasesRenewLeaseWithId2RequestFromJSON, + LeasesRenewLeaseWithId2RequestToJSON, + LeasesRenewLeaseWithIdRequestFromJSON, + LeasesRenewLeaseWithIdRequestToJSON, + LeasesRevokeLease2RequestFromJSON, + LeasesRevokeLease2RequestToJSON, + LeasesRevokeLeaseRequestFromJSON, + LeasesRevokeLeaseRequestToJSON, + LeasesRevokeLeaseWithId2RequestFromJSON, + LeasesRevokeLeaseWithId2RequestToJSON, + LeasesRevokeLeaseWithIdRequestFromJSON, + LeasesRevokeLeaseWithIdRequestToJSON, + LeasesRevokeLeaseWithPrefix2RequestFromJSON, + LeasesRevokeLeaseWithPrefix2RequestToJSON, + LeasesRevokeLeaseWithPrefixRequestFromJSON, + LeasesRevokeLeaseWithPrefixRequestToJSON, + LoggersUpdateVerbosityLevelForRequestFromJSON, + LoggersUpdateVerbosityLevelForRequestToJSON, + LoggersUpdateVerbosityLevelRequestFromJSON, + LoggersUpdateVerbosityLevelRequestToJSON, + MfaValidateRequestFromJSON, + MfaValidateRequestToJSON, + MountsEnableSecretsEngineRequestFromJSON, + MountsEnableSecretsEngineRequestToJSON, + MountsReadConfigurationResponseFromJSON, + MountsReadConfigurationResponseToJSON, + MountsReadTuningInformationResponseFromJSON, + MountsReadTuningInformationResponseToJSON, + MountsTuneConfigurationParametersRequestFromJSON, + MountsTuneConfigurationParametersRequestToJSON, + PluginsCatalogListPluginsResponseFromJSON, + PluginsCatalogListPluginsResponseToJSON, + PluginsCatalogListPluginsWithTypeResponseFromJSON, + PluginsCatalogListPluginsWithTypeResponseToJSON, + PluginsCatalogPinsCreatePinnedVersionRequestFromJSON, + PluginsCatalogPinsCreatePinnedVersionRequestToJSON, + PluginsCatalogPinsListPinnedVersionsResponseFromJSON, + PluginsCatalogPinsListPinnedVersionsResponseToJSON, + PluginsCatalogPinsReadPinnedVersionResponseFromJSON, + PluginsCatalogPinsReadPinnedVersionResponseToJSON, + PluginsCatalogReadPluginConfigurationResponseFromJSON, + PluginsCatalogReadPluginConfigurationResponseToJSON, + PluginsCatalogReadPluginConfigurationWithTypeResponseFromJSON, + PluginsCatalogReadPluginConfigurationWithTypeResponseToJSON, + PluginsCatalogRegisterPluginRequestFromJSON, + PluginsCatalogRegisterPluginRequestToJSON, + PluginsCatalogRegisterPluginWithTypeRequestFromJSON, + PluginsCatalogRegisterPluginWithTypeRequestToJSON, + PluginsReloadBackendsRequestFromJSON, + PluginsReloadBackendsRequestToJSON, + PluginsReloadBackendsResponseFromJSON, + PluginsReloadBackendsResponseToJSON, + PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSON, + PluginsRuntimesCatalogListPluginsRuntimesResponseToJSON, + PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSON, + PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseToJSON, + PluginsRuntimesCatalogRegisterPluginRuntimeRequestFromJSON, + PluginsRuntimesCatalogRegisterPluginRuntimeRequestToJSON, + PoliciesGeneratePasswordFromPasswordPolicyResponseFromJSON, + PoliciesGeneratePasswordFromPasswordPolicyResponseToJSON, + PoliciesListAclPolicies2ResponseFromJSON, + PoliciesListAclPolicies2ResponseToJSON, + PoliciesListAclPolicies3ResponseFromJSON, + PoliciesListAclPolicies3ResponseToJSON, + PoliciesListAclPoliciesResponseFromJSON, + PoliciesListAclPoliciesResponseToJSON, + PoliciesReadAclPolicy2ResponseFromJSON, + PoliciesReadAclPolicy2ResponseToJSON, + PoliciesReadAclPolicyResponseFromJSON, + PoliciesReadAclPolicyResponseToJSON, + PoliciesReadPasswordPolicyResponseFromJSON, + PoliciesReadPasswordPolicyResponseToJSON, + PoliciesWriteAclPolicy2RequestFromJSON, + PoliciesWriteAclPolicy2RequestToJSON, + PoliciesWriteAclPolicyRequestFromJSON, + PoliciesWriteAclPolicyRequestToJSON, + PoliciesWritePasswordPolicyRequestFromJSON, + PoliciesWritePasswordPolicyRequestToJSON, + QueryTokenAccessorCapabilitiesRequestFromJSON, + QueryTokenAccessorCapabilitiesRequestToJSON, + QueryTokenCapabilitiesRequestFromJSON, + QueryTokenCapabilitiesRequestToJSON, + QueryTokenSelfCapabilitiesRequestFromJSON, + QueryTokenSelfCapabilitiesRequestToJSON, + RateLimitQuotasConfigureRequestFromJSON, + RateLimitQuotasConfigureRequestToJSON, + RateLimitQuotasReadConfigurationResponseFromJSON, + RateLimitQuotasReadConfigurationResponseToJSON, + RateLimitQuotasReadResponseFromJSON, + RateLimitQuotasReadResponseToJSON, + RateLimitQuotasWriteRequestFromJSON, + RateLimitQuotasWriteRequestToJSON, + RawReadResponseFromJSON, + RawReadResponseToJSON, + RawWriteRequestFromJSON, + RawWriteRequestToJSON, + ReadWrappingProperties2ResponseFromJSON, + ReadWrappingProperties2ResponseToJSON, + ReadWrappingPropertiesRequestFromJSON, + ReadWrappingPropertiesRequestToJSON, + ReadWrappingPropertiesResponseFromJSON, + ReadWrappingPropertiesResponseToJSON, + RekeyAttemptInitializeRequestFromJSON, + RekeyAttemptInitializeRequestToJSON, + RekeyAttemptInitializeResponseFromJSON, + RekeyAttemptInitializeResponseToJSON, + RekeyAttemptReadProgressResponseFromJSON, + RekeyAttemptReadProgressResponseToJSON, + RekeyAttemptUpdateRequestFromJSON, + RekeyAttemptUpdateRequestToJSON, + RekeyAttemptUpdateResponseFromJSON, + RekeyAttemptUpdateResponseToJSON, + RekeyReadBackupKeyResponseFromJSON, + RekeyReadBackupKeyResponseToJSON, + RekeyReadBackupRecoveryKeyResponseFromJSON, + RekeyReadBackupRecoveryKeyResponseToJSON, + RekeyVerificationCancelResponseFromJSON, + RekeyVerificationCancelResponseToJSON, + RekeyVerificationReadProgressResponseFromJSON, + RekeyVerificationReadProgressResponseToJSON, + RekeyVerificationUpdateRequestFromJSON, + RekeyVerificationUpdateRequestToJSON, + RekeyVerificationUpdateResponseFromJSON, + RekeyVerificationUpdateResponseToJSON, + ReloadPluginsRequestFromJSON, + ReloadPluginsRequestToJSON, + ReloadPluginsResponseFromJSON, + ReloadPluginsResponseToJSON, + RemountRequestFromJSON, + RemountRequestToJSON, + RemountResponseFromJSON, + RemountResponseToJSON, + RemountStatusResponseFromJSON, + RemountStatusResponseToJSON, + RewrapRequestFromJSON, + RewrapRequestToJSON, + RootTokenGenerationInitialize2RequestFromJSON, + RootTokenGenerationInitialize2RequestToJSON, + RootTokenGenerationInitialize2ResponseFromJSON, + RootTokenGenerationInitialize2ResponseToJSON, + RootTokenGenerationInitializeRequestFromJSON, + RootTokenGenerationInitializeRequestToJSON, + RootTokenGenerationInitializeResponseFromJSON, + RootTokenGenerationInitializeResponseToJSON, + RootTokenGenerationReadProgress2ResponseFromJSON, + RootTokenGenerationReadProgress2ResponseToJSON, + RootTokenGenerationReadProgressResponseFromJSON, + RootTokenGenerationReadProgressResponseToJSON, + RootTokenGenerationUpdateRequestFromJSON, + RootTokenGenerationUpdateRequestToJSON, + RootTokenGenerationUpdateResponseFromJSON, + RootTokenGenerationUpdateResponseToJSON, + SealStatusResponseFromJSON, + SealStatusResponseToJSON, + StandardListResponseFromJSON, + StandardListResponseToJSON, + SubscriptionsCreateResponseFromJSON, + SubscriptionsCreateResponseToJSON, + SubscriptionsListEventsSubscriptionsResponseFromJSON, + SubscriptionsListEventsSubscriptionsResponseToJSON, + SubscriptionsReadEventsSubscriptionsResponseFromJSON, + SubscriptionsReadEventsSubscriptionsResponseToJSON, + SubscriptionsWriteEventsSubscriptionsRequestFromJSON, + SubscriptionsWriteEventsSubscriptionsRequestToJSON, + SubscriptionsWriteEventsSubscriptionsResponseFromJSON, + SubscriptionsWriteEventsSubscriptionsResponseToJSON, + SystemDeleteSyncConfigResponseFromJSON, + SystemDeleteSyncConfigResponseToJSON, + SystemDeleteSyncGithubAppsNameResponseFromJSON, + SystemDeleteSyncGithubAppsNameResponseToJSON, + SystemListSyncAssociationsResponseFromJSON, + SystemListSyncAssociationsResponseToJSON, + SystemListSyncDestinationsResponseFromJSON, + SystemListSyncDestinationsResponseToJSON, + SystemListSyncDestinationsTypeResponseFromJSON, + SystemListSyncDestinationsTypeResponseToJSON, + SystemListSyncGithubAppsResponseFromJSON, + SystemListSyncGithubAppsResponseToJSON, + SystemReadConfigGroupPolicyApplicationResponseFromJSON, + SystemReadConfigGroupPolicyApplicationResponseToJSON, + SystemReadSyncAssociationsDestinationsResponseFromJSON, + SystemReadSyncAssociationsDestinationsResponseToJSON, + SystemReadSyncAssociationsMountSecretNameResponseFromJSON, + SystemReadSyncAssociationsMountSecretNameResponseToJSON, + SystemReadSyncConfigResponseFromJSON, + SystemReadSyncConfigResponseToJSON, + SystemReadSyncDestinationsAwsSmNameResponseFromJSON, + SystemReadSyncDestinationsAwsSmNameResponseToJSON, + SystemReadSyncDestinationsAzureKvNameResponseFromJSON, + SystemReadSyncDestinationsAzureKvNameResponseToJSON, + SystemReadSyncDestinationsGcpSmNameResponseFromJSON, + SystemReadSyncDestinationsGcpSmNameResponseToJSON, + SystemReadSyncDestinationsGhNameResponseFromJSON, + SystemReadSyncDestinationsGhNameResponseToJSON, + SystemReadSyncDestinationsInMemNameResponseFromJSON, + SystemReadSyncDestinationsInMemNameResponseToJSON, + SystemReadSyncDestinationsTypeNameAssociationsResponseFromJSON, + SystemReadSyncDestinationsTypeNameAssociationsResponseToJSON, + SystemReadSyncDestinationsVercelProjectNameResponseFromJSON, + SystemReadSyncDestinationsVercelProjectNameResponseToJSON, + SystemReadSyncGithubAppsNameResponseFromJSON, + SystemReadSyncGithubAppsNameResponseToJSON, + SystemWriteConfigControlGroupRequestFromJSON, + SystemWriteConfigControlGroupRequestToJSON, + SystemWriteConfigGroupPolicyApplicationRequestFromJSON, + SystemWriteConfigGroupPolicyApplicationRequestToJSON, + SystemWriteControlGroupAuthorizeRequestFromJSON, + SystemWriteControlGroupAuthorizeRequestToJSON, + SystemWriteControlGroupRequestRequestFromJSON, + SystemWriteControlGroupRequestRequestToJSON, + SystemWriteInternalCountersActivityWriteRequestFromJSON, + SystemWriteInternalCountersActivityWriteRequestToJSON, + SystemWriteManagedKeysTypeNameRequestFromJSON, + SystemWriteManagedKeysTypeNameRequestToJSON, + SystemWriteManagedKeysTypeNameTestSignRequestFromJSON, + SystemWriteManagedKeysTypeNameTestSignRequestToJSON, + SystemWriteMfaMethodDuoNameRequestFromJSON, + SystemWriteMfaMethodDuoNameRequestToJSON, + SystemWriteMfaMethodOktaNameRequestFromJSON, + SystemWriteMfaMethodOktaNameRequestToJSON, + SystemWriteMfaMethodPingidNameRequestFromJSON, + SystemWriteMfaMethodPingidNameRequestToJSON, + SystemWriteMfaMethodTotpNameAdminDestroyRequestFromJSON, + SystemWriteMfaMethodTotpNameAdminDestroyRequestToJSON, + SystemWriteMfaMethodTotpNameAdminGenerateRequestFromJSON, + SystemWriteMfaMethodTotpNameAdminGenerateRequestToJSON, + SystemWriteMfaMethodTotpNameRequestFromJSON, + SystemWriteMfaMethodTotpNameRequestToJSON, + SystemWriteNamespacesApiLockUnlockPathRequestFromJSON, + SystemWriteNamespacesApiLockUnlockPathRequestToJSON, + SystemWriteNamespacesApiLockUnlockRequestFromJSON, + SystemWriteNamespacesApiLockUnlockRequestToJSON, + SystemWriteNamespacesPathRequestFromJSON, + SystemWriteNamespacesPathRequestToJSON, + SystemWritePoliciesEgpNameRequestFromJSON, + SystemWritePoliciesEgpNameRequestToJSON, + SystemWritePoliciesRgpNameRequestFromJSON, + SystemWritePoliciesRgpNameRequestToJSON, + SystemWriteQuotasLeaseCountNameRequestFromJSON, + SystemWriteQuotasLeaseCountNameRequestToJSON, + SystemWriteReplicationDrPrimaryEnableRequestFromJSON, + SystemWriteReplicationDrPrimaryEnableRequestToJSON, + SystemWriteReplicationDrPrimaryRevokeSecondaryRequestFromJSON, + SystemWriteReplicationDrPrimaryRevokeSecondaryRequestToJSON, + SystemWriteReplicationDrPrimarySecondaryTokenRequestFromJSON, + SystemWriteReplicationDrPrimarySecondaryTokenRequestToJSON, + SystemWriteReplicationDrSecondaryDisableRequestFromJSON, + SystemWriteReplicationDrSecondaryDisableRequestToJSON, + SystemWriteReplicationDrSecondaryEnableRequestFromJSON, + SystemWriteReplicationDrSecondaryEnableRequestToJSON, + SystemWriteReplicationDrSecondaryMerkleCheckRequestFromJSON, + SystemWriteReplicationDrSecondaryMerkleCheckRequestToJSON, + SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestFromJSON, + SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestToJSON, + SystemWriteReplicationDrSecondaryPromoteRequestFromJSON, + SystemWriteReplicationDrSecondaryPromoteRequestToJSON, + SystemWriteReplicationDrSecondaryRecoverRequestFromJSON, + SystemWriteReplicationDrSecondaryRecoverRequestToJSON, + SystemWriteReplicationDrSecondaryReindexRequestFromJSON, + SystemWriteReplicationDrSecondaryReindexRequestToJSON, + SystemWriteReplicationDrSecondaryUpdatePrimaryRequestFromJSON, + SystemWriteReplicationDrSecondaryUpdatePrimaryRequestToJSON, + SystemWriteReplicationForceCorruptionRequestFromJSON, + SystemWriteReplicationForceCorruptionRequestToJSON, + SystemWriteReplicationPerformancePrimaryEnableRequestFromJSON, + SystemWriteReplicationPerformancePrimaryEnableRequestToJSON, + SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestFromJSON, + SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestToJSON, + SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestFromJSON, + SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestToJSON, + SystemWriteReplicationPerformancePrimarySecondaryTokenRequestFromJSON, + SystemWriteReplicationPerformancePrimarySecondaryTokenRequestToJSON, + SystemWriteReplicationPerformanceSecondaryEnableRequestFromJSON, + SystemWriteReplicationPerformanceSecondaryEnableRequestToJSON, + SystemWriteReplicationPerformanceSecondaryPromoteRequestFromJSON, + SystemWriteReplicationPerformanceSecondaryPromoteRequestToJSON, + SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestFromJSON, + SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestToJSON, + SystemWriteReplicationPrimaryEnableRequestFromJSON, + SystemWriteReplicationPrimaryEnableRequestToJSON, + SystemWriteReplicationPrimaryRevokeSecondaryRequestFromJSON, + SystemWriteReplicationPrimaryRevokeSecondaryRequestToJSON, + SystemWriteReplicationPrimarySecondaryTokenRequestFromJSON, + SystemWriteReplicationPrimarySecondaryTokenRequestToJSON, + SystemWriteReplicationReindexRequestFromJSON, + SystemWriteReplicationReindexRequestToJSON, + SystemWriteReplicationSecondaryEnableRequestFromJSON, + SystemWriteReplicationSecondaryEnableRequestToJSON, + SystemWriteReplicationSecondaryPromoteRequestFromJSON, + SystemWriteReplicationSecondaryPromoteRequestToJSON, + SystemWriteReplicationSecondaryUpdatePrimaryRequestFromJSON, + SystemWriteReplicationSecondaryUpdatePrimaryRequestToJSON, + SystemWriteStorageRaftSnapshotAutoConfigNameRequestFromJSON, + SystemWriteStorageRaftSnapshotAutoConfigNameRequestToJSON, + SystemWriteSyncDestinationsAwsSmNameRequestFromJSON, + SystemWriteSyncDestinationsAwsSmNameRequestToJSON, + SystemWriteSyncDestinationsAwsSmNameResponseFromJSON, + SystemWriteSyncDestinationsAwsSmNameResponseToJSON, + SystemWriteSyncDestinationsAzureKvNameRequestFromJSON, + SystemWriteSyncDestinationsAzureKvNameRequestToJSON, + SystemWriteSyncDestinationsAzureKvNameResponseFromJSON, + SystemWriteSyncDestinationsAzureKvNameResponseToJSON, + SystemWriteSyncDestinationsGcpSmNameRequestFromJSON, + SystemWriteSyncDestinationsGcpSmNameRequestToJSON, + SystemWriteSyncDestinationsGcpSmNameResponseFromJSON, + SystemWriteSyncDestinationsGcpSmNameResponseToJSON, + SystemWriteSyncDestinationsGhNameRequestFromJSON, + SystemWriteSyncDestinationsGhNameRequestToJSON, + SystemWriteSyncDestinationsGhNameResponseFromJSON, + SystemWriteSyncDestinationsGhNameResponseToJSON, + SystemWriteSyncDestinationsInMemNameRequestFromJSON, + SystemWriteSyncDestinationsInMemNameRequestToJSON, + SystemWriteSyncDestinationsInMemNameResponseFromJSON, + SystemWriteSyncDestinationsInMemNameResponseToJSON, + SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestFromJSON, + SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestToJSON, + SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseFromJSON, + SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseToJSON, + SystemWriteSyncDestinationsTypeNameAssociationsSetRequestFromJSON, + SystemWriteSyncDestinationsTypeNameAssociationsSetRequestToJSON, + SystemWriteSyncDestinationsTypeNameAssociationsSetResponseFromJSON, + SystemWriteSyncDestinationsTypeNameAssociationsSetResponseToJSON, + SystemWriteSyncDestinationsVercelProjectNameRequestFromJSON, + SystemWriteSyncDestinationsVercelProjectNameRequestToJSON, + SystemWriteSyncDestinationsVercelProjectNameResponseFromJSON, + SystemWriteSyncDestinationsVercelProjectNameResponseToJSON, + SystemWriteSyncGithubAppsNameRequestFromJSON, + SystemWriteSyncGithubAppsNameRequestToJSON, + SystemWriteSyncGithubAppsNameResponseFromJSON, + SystemWriteSyncGithubAppsNameResponseToJSON, + SystemWriteUtilizationRequestFromJSON, + SystemWriteUtilizationRequestToJSON, + SystemWriteUtilizationResponseFromJSON, + SystemWriteUtilizationResponseToJSON, + UiConfigDeleteCustomMessageResponseFromJSON, + UiConfigDeleteCustomMessageResponseToJSON, + UiConfigReadCustomMessageResponseFromJSON, + UiConfigReadCustomMessageResponseToJSON, + UiConfigUpdateCustomMessageRequestFromJSON, + UiConfigUpdateCustomMessageRequestToJSON, + UiConfigUpdateCustomMessageResponseFromJSON, + UiConfigUpdateCustomMessageResponseToJSON, + UiHeadersConfigureRequestFromJSON, + UiHeadersConfigureRequestToJSON, + UiHeadersListResponseFromJSON, + UiHeadersListResponseToJSON, + UiHeadersReadConfigurationResponseFromJSON, + UiHeadersReadConfigurationResponseToJSON, + UnsealRequestFromJSON, + UnsealRequestToJSON, + UnsealResponseFromJSON, + UnsealResponseToJSON, + UnwrapRequestFromJSON, + UnwrapRequestToJSON, + VersionHistoryResponseFromJSON, + VersionHistoryResponseToJSON, + WellKnownListLabels2ResponseFromJSON, + WellKnownListLabels2ResponseToJSON, + WellKnownListLabelsResponseFromJSON, + WellKnownListLabelsResponseToJSON, + WellKnownReadLabelResponseFromJSON, + WellKnownReadLabelResponseToJSON, +} from '../models/index'; + +export interface SystemApiAuditingCalculateHashOperationRequest { + path: string; + auditingCalculateHashRequest: AuditingCalculateHashRequest; +} + +export interface SystemApiAuditingDisableDeviceRequest { + path: string; +} + +export interface SystemApiAuditingDisableRequestHeaderRequest { + header: string; +} + +export interface SystemApiAuditingEnableDeviceOperationRequest { + path: string; + auditingEnableDeviceRequest: AuditingEnableDeviceRequest; +} + +export interface SystemApiAuditingEnableRequestHeaderOperationRequest { + header: string; + auditingEnableRequestHeaderRequest: AuditingEnableRequestHeaderRequest; +} + +export interface SystemApiAuditingReadRequestHeaderInformationRequest { + header: string; +} + +export interface SystemApiAuthDisableMethodRequest { + path: string; +} + +export interface SystemApiAuthEnableMethodOperationRequest { + path: string; + authEnableMethodRequest: AuthEnableMethodRequest; +} + +export interface SystemApiAuthReadConfigurationRequest { + path: string; +} + +export interface SystemApiAuthReadTuningInformationRequest { + path: string; +} + +export interface SystemApiAuthTuneConfigurationParametersOperationRequest { + path: string; + authTuneConfigurationParametersRequest: AuthTuneConfigurationParametersRequest; +} + +export interface SystemApiCorsConfigureOperationRequest { + corsConfigureRequest: CorsConfigureRequest; +} + +export interface SystemApiCreateCustomMessageOperationRequest { + createCustomMessageRequest: CreateCustomMessageRequest; +} + +export interface SystemApiDecodeTokenOperationRequest { + decodeTokenRequest: DecodeTokenRequest; +} + +export interface SystemApiEncryptionKeyConfigureRotationOperationRequest { + encryptionKeyConfigureRotationRequest: EncryptionKeyConfigureRotationRequest; +} + +export interface SystemApiGenerateHashOperationRequest { + generateHashRequest: GenerateHashRequest; +} + +export interface SystemApiGenerateHashWithAlgorithmOperationRequest { + urlalgorithm: string; + generateHashWithAlgorithmRequest: GenerateHashWithAlgorithmRequest; +} + +export interface SystemApiGenerateRandomOperationRequest { + generateRandomRequest: GenerateRandomRequest; +} + +export interface SystemApiGenerateRandomWithBytesOperationRequest { + urlbytes: string; + generateRandomWithBytesRequest: GenerateRandomWithBytesRequest; +} + +export interface SystemApiGenerateRandomWithSourceOperationRequest { + source: string; + generateRandomWithSourceRequest: GenerateRandomWithSourceRequest; +} + +export interface SystemApiGenerateRandomWithSourceAndBytesOperationRequest { + source: string; + urlbytes: string; + generateRandomWithSourceAndBytesRequest: GenerateRandomWithSourceAndBytesRequest; +} + +export interface SystemApiInitializeOperationRequest { + initializeRequest: InitializeRequest; +} + +export interface SystemApiInternalClientActivityConfigureOperationRequest { + internalClientActivityConfigureRequest: InternalClientActivityConfigureRequest; +} + +export interface SystemApiInternalGenerateOpenApiDocumentRequest { + context?: string; + genericMountPaths?: boolean; +} + +export interface SystemApiInternalGenerateOpenApiDocumentWithParametersOperationRequest { + internalGenerateOpenApiDocumentWithParametersRequest: InternalGenerateOpenApiDocumentWithParametersRequest; +} + +export interface SystemApiInternalInspectRouterRequest { + tag: string; +} + +export interface SystemApiInternalUiReadMountInformationRequest { + path: string; +} + +export interface SystemApiLeasesForceRevokeLeaseWithPrefixRequest { + prefix: string; +} + +export interface SystemApiLeasesForceRevokeLeaseWithPrefix2Request { + prefix: string; +} + +export interface SystemApiLeasesLookUpRequest { + prefix: string; + list: LeasesLookUpListEnum; +} + +export interface SystemApiLeasesReadLeaseOperationRequest { + leasesReadLeaseRequest: LeasesReadLeaseRequest; +} + +export interface SystemApiLeasesRenewLeaseOperationRequest { + leasesRenewLeaseRequest: LeasesRenewLeaseRequest; +} + +export interface SystemApiLeasesRenewLease2OperationRequest { + leasesRenewLease2Request: LeasesRenewLease2Request; +} + +export interface SystemApiLeasesRenewLeaseWithIdOperationRequest { + urlLeaseId: string; + leasesRenewLeaseWithIdRequest: LeasesRenewLeaseWithIdRequest; +} + +export interface SystemApiLeasesRenewLeaseWithId2OperationRequest { + urlLeaseId: string; + leasesRenewLeaseWithId2Request: LeasesRenewLeaseWithId2Request; +} + +export interface SystemApiLeasesRevokeLeaseOperationRequest { + leasesRevokeLeaseRequest: LeasesRevokeLeaseRequest; +} + +export interface SystemApiLeasesRevokeLease2OperationRequest { + leasesRevokeLease2Request: LeasesRevokeLease2Request; +} + +export interface SystemApiLeasesRevokeLeaseWithIdOperationRequest { + urlLeaseId: string; + leasesRevokeLeaseWithIdRequest: LeasesRevokeLeaseWithIdRequest; +} + +export interface SystemApiLeasesRevokeLeaseWithId2OperationRequest { + urlLeaseId: string; + leasesRevokeLeaseWithId2Request: LeasesRevokeLeaseWithId2Request; +} + +export interface SystemApiLeasesRevokeLeaseWithPrefixOperationRequest { + prefix: string; + leasesRevokeLeaseWithPrefixRequest: LeasesRevokeLeaseWithPrefixRequest; +} + +export interface SystemApiLeasesRevokeLeaseWithPrefix2OperationRequest { + prefix: string; + leasesRevokeLeaseWithPrefix2Request: LeasesRevokeLeaseWithPrefix2Request; +} + +export interface SystemApiLockedUsersUnlockRequest { + aliasIdentifier: string; + mountAccessor: string; +} + +export interface SystemApiLoggersReadVerbosityLevelForRequest { + name: string; +} + +export interface SystemApiLoggersRevertVerbosityLevelForRequest { + name: string; +} + +export interface SystemApiLoggersUpdateVerbosityLevelOperationRequest { + loggersUpdateVerbosityLevelRequest: LoggersUpdateVerbosityLevelRequest; +} + +export interface SystemApiLoggersUpdateVerbosityLevelForOperationRequest { + name: string; + loggersUpdateVerbosityLevelForRequest: LoggersUpdateVerbosityLevelForRequest; +} + +export interface SystemApiMetricsRequest { + format?: string; +} + +export interface SystemApiMfaValidateOperationRequest { + mfaValidateRequest: MfaValidateRequest; +} + +export interface SystemApiMonitorRequest { + logFormat?: string; + logLevel?: string; +} + +export interface SystemApiMountsDisableSecretsEngineRequest { + path: string; +} + +export interface SystemApiMountsEnableSecretsEngineOperationRequest { + path: string; + mountsEnableSecretsEngineRequest: MountsEnableSecretsEngineRequest; +} + +export interface SystemApiMountsReadConfigurationRequest { + path: string; +} + +export interface SystemApiMountsReadTuningInformationRequest { + path: string; +} + +export interface SystemApiMountsTuneConfigurationParametersOperationRequest { + path: string; + mountsTuneConfigurationParametersRequest: MountsTuneConfigurationParametersRequest; +} + +export interface SystemApiPluginsCatalogListPluginsWithTypeRequest { + type: string; + list: PluginsCatalogListPluginsWithTypeListEnum; +} + +export interface SystemApiPluginsCatalogPinsCreatePinnedVersionOperationRequest { + name: string; + type: string; + pluginsCatalogPinsCreatePinnedVersionRequest: PluginsCatalogPinsCreatePinnedVersionRequest; +} + +export interface SystemApiPluginsCatalogPinsReadPinnedVersionRequest { + name: string; + type: string; +} + +export interface SystemApiPluginsCatalogPinsRemovePinnedVersionRequest { + name: string; + type: string; +} + +export interface SystemApiPluginsCatalogReadPluginConfigurationRequest { + name: string; +} + +export interface SystemApiPluginsCatalogReadPluginConfigurationWithTypeRequest { + name: string; + type: string; +} + +export interface SystemApiPluginsCatalogRegisterPluginOperationRequest { + name: string; + pluginsCatalogRegisterPluginRequest: PluginsCatalogRegisterPluginRequest; +} + +export interface SystemApiPluginsCatalogRegisterPluginWithTypeOperationRequest { + name: string; + type: string; + pluginsCatalogRegisterPluginWithTypeRequest: PluginsCatalogRegisterPluginWithTypeRequest; +} + +export interface SystemApiPluginsCatalogRemovePluginRequest { + name: string; +} + +export interface SystemApiPluginsCatalogRemovePluginWithTypeRequest { + name: string; + type: string; +} + +export interface SystemApiPluginsReloadBackendsOperationRequest { + pluginsReloadBackendsRequest: PluginsReloadBackendsRequest; +} + +export interface SystemApiPluginsRuntimesCatalogListPluginsRuntimes0Request { + list: PluginsRuntimesCatalogListPluginsRuntimes0ListEnum; +} + +export interface SystemApiPluginsRuntimesCatalogReadPluginRuntimeConfigurationRequest { + name: string; + type: string; +} + +export interface SystemApiPluginsRuntimesCatalogRegisterPluginRuntimeOperationRequest { + name: string; + type: string; + pluginsRuntimesCatalogRegisterPluginRuntimeRequest: PluginsRuntimesCatalogRegisterPluginRuntimeRequest; +} + +export interface SystemApiPluginsRuntimesCatalogRemovePluginRuntimeRequest { + name: string; + type: string; +} + +export interface SystemApiPoliciesDeleteAclPolicyRequest { + name: string; +} + +export interface SystemApiPoliciesDeleteAclPolicy2Request { + name: string; +} + +export interface SystemApiPoliciesDeletePasswordPolicyRequest { + name: string; +} + +export interface SystemApiPoliciesGeneratePasswordFromPasswordPolicyRequest { + name: string; +} + +export interface SystemApiPoliciesListAclPoliciesRequest { + list: PoliciesListAclPoliciesListEnum; +} + +export interface SystemApiPoliciesListAclPolicies3Request { + list: PoliciesListAclPolicies3ListEnum; +} + +export interface SystemApiPoliciesListPasswordPoliciesRequest { + list: PoliciesListPasswordPoliciesListEnum; +} + +export interface SystemApiPoliciesReadAclPolicyRequest { + name: string; +} + +export interface SystemApiPoliciesReadAclPolicy2Request { + name: string; +} + +export interface SystemApiPoliciesReadPasswordPolicyRequest { + name: string; +} + +export interface SystemApiPoliciesWriteAclPolicyOperationRequest { + name: string; + policiesWriteAclPolicyRequest: PoliciesWriteAclPolicyRequest; +} + +export interface SystemApiPoliciesWriteAclPolicy2OperationRequest { + name: string; + policiesWriteAclPolicy2Request: PoliciesWriteAclPolicy2Request; +} + +export interface SystemApiPoliciesWritePasswordPolicyOperationRequest { + name: string; + policiesWritePasswordPolicyRequest: PoliciesWritePasswordPolicyRequest; +} + +export interface SystemApiQueryTokenAccessorCapabilitiesOperationRequest { + queryTokenAccessorCapabilitiesRequest: QueryTokenAccessorCapabilitiesRequest; +} + +export interface SystemApiQueryTokenCapabilitiesOperationRequest { + queryTokenCapabilitiesRequest: QueryTokenCapabilitiesRequest; +} + +export interface SystemApiQueryTokenSelfCapabilitiesOperationRequest { + queryTokenSelfCapabilitiesRequest: QueryTokenSelfCapabilitiesRequest; +} + +export interface SystemApiRateLimitQuotasConfigureOperationRequest { + rateLimitQuotasConfigureRequest: RateLimitQuotasConfigureRequest; +} + +export interface SystemApiRateLimitQuotasDeleteRequest { + name: string; +} + +export interface SystemApiRateLimitQuotasListRequest { + list: RateLimitQuotasListListEnum; +} + +export interface SystemApiRateLimitQuotasReadRequest { + name: string; +} + +export interface SystemApiRateLimitQuotasWriteOperationRequest { + name: string; + rateLimitQuotasWriteRequest: RateLimitQuotasWriteRequest; +} + +export interface SystemApiRawDeleteRequest { + path: string; +} + +export interface SystemApiRawListRequest { + path: string; + list: RawListListEnum; +} + +export interface SystemApiRawReadRequest { + path: string; +} + +export interface SystemApiRawWriteOperationRequest { + path: string; + rawWriteRequest: RawWriteRequest; +} + +export interface SystemApiReadWrappingPropertiesOperationRequest { + readWrappingPropertiesRequest: ReadWrappingPropertiesRequest; +} + +export interface SystemApiReadWrappingProperties2Request { + token?: string; +} + +export interface SystemApiRekeyAttemptInitializeOperationRequest { + rekeyAttemptInitializeRequest: RekeyAttemptInitializeRequest; +} + +export interface SystemApiRekeyAttemptUpdateOperationRequest { + rekeyAttemptUpdateRequest: RekeyAttemptUpdateRequest; +} + +export interface SystemApiRekeyVerificationUpdateOperationRequest { + rekeyVerificationUpdateRequest: RekeyVerificationUpdateRequest; +} + +export interface SystemApiReloadPluginsOperationRequest { + name: string; + type: string; + reloadPluginsRequest: ReloadPluginsRequest; +} + +export interface SystemApiReloadSubsystemRequest { + subsystem: string; +} + +export interface SystemApiRemountOperationRequest { + remountRequest: RemountRequest; +} + +export interface SystemApiRemountStatusRequest { + migrationId: string; +} + +export interface SystemApiRewrapOperationRequest { + rewrapRequest: RewrapRequest; +} + +export interface SystemApiRootTokenGenerationInitializeOperationRequest { + rootTokenGenerationInitializeRequest: RootTokenGenerationInitializeRequest; +} + +export interface SystemApiRootTokenGenerationInitialize2OperationRequest { + rootTokenGenerationInitialize2Request: RootTokenGenerationInitialize2Request; +} + +export interface SystemApiRootTokenGenerationUpdateOperationRequest { + rootTokenGenerationUpdateRequest: RootTokenGenerationUpdateRequest; +} + +export interface SystemApiSubscriptionsCreateRequest { + id: string; + plugin: string; +} + +export interface SystemApiSubscriptionsCreate0Request { + id: string; + plugin: string; +} + +export interface SystemApiSubscriptionsListEventsSubscriptionsRequest { + list: SubscriptionsListEventsSubscriptionsListEnum; +} + +export interface SystemApiSubscriptionsWriteEventsSubscriptionsOperationRequest { + subscriptionsWriteEventsSubscriptionsRequest: SubscriptionsWriteEventsSubscriptionsRequest; +} + +export interface SystemApiSystemDeleteManagedKeysTypeNameRequest { + name: string; + type: string; +} + +export interface SystemApiSystemDeleteMfaMethodDuoNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteMfaMethodOktaNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteMfaMethodPingidNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteMfaMethodTotpNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteNamespacesPathRequest { + path: string; +} + +export interface SystemApiSystemDeletePoliciesEgpNameRequest { + name: string; +} + +export interface SystemApiSystemDeletePoliciesRgpNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteQuotasLeaseCountNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteReplicationPerformancePrimaryPathsFilterIdRequest { + id: string; +} + +export interface SystemApiSystemDeleteStorageRaftSnapshotAutoConfigNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteSyncDestinationsAwsSmNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteSyncDestinationsAzureKvNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteSyncDestinationsGcpSmNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteSyncDestinationsGhNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteSyncDestinationsInMemNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteSyncDestinationsVercelProjectNameRequest { + name: string; +} + +export interface SystemApiSystemDeleteSyncGithubAppsNameRequest { + name: string; +} + +export interface SystemApiSystemListManagedKeysTypeRequest { + type: string; + list: SystemListManagedKeysTypeListEnum; +} + +export interface SystemApiSystemListMfaMethodRequest { + list: SystemListMfaMethodListEnum; +} + +export interface SystemApiSystemListNamespacesRequest { + list: SystemListNamespacesListEnum; +} + +export interface SystemApiSystemListPoliciesEgpRequest { + list: SystemListPoliciesEgpListEnum; +} + +export interface SystemApiSystemListPoliciesRgpRequest { + list: SystemListPoliciesRgpListEnum; +} + +export interface SystemApiSystemListQuotasLeaseCountRequest { + list: SystemListQuotasLeaseCountListEnum; +} + +export interface SystemApiSystemListStorageRaftSnapshotAutoConfigRequest { + list: SystemListStorageRaftSnapshotAutoConfigListEnum; +} + +export interface SystemApiSystemListSyncAssociationsRequest { + list: SystemListSyncAssociationsListEnum; +} + +export interface SystemApiSystemListSyncDestinationsRequest { + list: SystemListSyncDestinationsListEnum; +} + +export interface SystemApiSystemListSyncDestinationsTypeRequest { + type: string; + list: SystemListSyncDestinationsTypeListEnum; +} + +export interface SystemApiSystemListSyncGithubAppsRequest { + list: SystemListSyncGithubAppsListEnum; +} + +export interface SystemApiSystemReadManagedKeysTypeNameRequest { + name: string; + type: string; +} + +export interface SystemApiSystemReadMfaMethodDuoNameRequest { + name: string; +} + +export interface SystemApiSystemReadMfaMethodOktaNameRequest { + name: string; +} + +export interface SystemApiSystemReadMfaMethodPingidNameRequest { + name: string; +} + +export interface SystemApiSystemReadMfaMethodTotpNameRequest { + name: string; +} + +export interface SystemApiSystemReadMfaMethodTotpNameGenerateRequest { + name: string; +} + +export interface SystemApiSystemReadNamespacesPathRequest { + path: string; +} + +export interface SystemApiSystemReadPoliciesEgpNameRequest { + name: string; +} + +export interface SystemApiSystemReadPoliciesRgpNameRequest { + name: string; +} + +export interface SystemApiSystemReadQuotasLeaseCountNameRequest { + name: string; +} + +export interface SystemApiSystemReadReplicationPerformancePrimaryDynamicFilterIdRequest { + id: string; +} + +export interface SystemApiSystemReadReplicationPerformancePrimaryPathsFilterIdRequest { + id: string; +} + +export interface SystemApiSystemReadReplicationPerformanceSecondaryDynamicFilterIdRequest { + id: string; +} + +export interface SystemApiSystemReadStorageRaftSnapshotAutoConfigNameRequest { + name: string; +} + +export interface SystemApiSystemReadStorageRaftSnapshotAutoStatusNameRequest { + name: string; +} + +export interface SystemApiSystemReadSyncAssociationsMountSecretNameRequest { + mount: string; + secretName: string; +} + +export interface SystemApiSystemReadSyncDestinationsAwsSmNameRequest { + name: string; +} + +export interface SystemApiSystemReadSyncDestinationsAzureKvNameRequest { + name: string; +} + +export interface SystemApiSystemReadSyncDestinationsGcpSmNameRequest { + name: string; +} + +export interface SystemApiSystemReadSyncDestinationsGhNameRequest { + name: string; +} + +export interface SystemApiSystemReadSyncDestinationsInMemNameRequest { + name: string; +} + +export interface SystemApiSystemReadSyncDestinationsTypeNameAssociationsRequest { + name: string; + type: string; +} + +export interface SystemApiSystemReadSyncDestinationsVercelProjectNameRequest { + name: string; +} + +export interface SystemApiSystemReadSyncGithubAppsNameRequest { + name: string; +} + +export interface SystemApiSystemWriteConfigControlGroupOperationRequest { + systemWriteConfigControlGroupRequest: SystemWriteConfigControlGroupRequest; +} + +export interface SystemApiSystemWriteConfigGroupPolicyApplicationOperationRequest { + systemWriteConfigGroupPolicyApplicationRequest: SystemWriteConfigGroupPolicyApplicationRequest; +} + +export interface SystemApiSystemWriteControlGroupAuthorizeOperationRequest { + systemWriteControlGroupAuthorizeRequest: SystemWriteControlGroupAuthorizeRequest; +} + +export interface SystemApiSystemWriteControlGroupRequestOperationRequest { + systemWriteControlGroupRequestRequest: SystemWriteControlGroupRequestRequest; +} + +export interface SystemApiSystemWriteInternalCountersActivityWriteOperationRequest { + systemWriteInternalCountersActivityWriteRequest: SystemWriteInternalCountersActivityWriteRequest; +} + +export interface SystemApiSystemWriteManagedKeysTypeNameOperationRequest { + name: string; + type: string; + systemWriteManagedKeysTypeNameRequest: SystemWriteManagedKeysTypeNameRequest; +} + +export interface SystemApiSystemWriteManagedKeysTypeNameTestSignOperationRequest { + name: string; + type: string; + systemWriteManagedKeysTypeNameTestSignRequest: SystemWriteManagedKeysTypeNameTestSignRequest; +} + +export interface SystemApiSystemWriteMfaMethodDuoNameOperationRequest { + name: string; + systemWriteMfaMethodDuoNameRequest: SystemWriteMfaMethodDuoNameRequest; +} + +export interface SystemApiSystemWriteMfaMethodOktaNameOperationRequest { + name: string; + systemWriteMfaMethodOktaNameRequest: SystemWriteMfaMethodOktaNameRequest; +} + +export interface SystemApiSystemWriteMfaMethodPingidNameOperationRequest { + name: string; + systemWriteMfaMethodPingidNameRequest: SystemWriteMfaMethodPingidNameRequest; +} + +export interface SystemApiSystemWriteMfaMethodTotpNameOperationRequest { + name: string; + systemWriteMfaMethodTotpNameRequest: SystemWriteMfaMethodTotpNameRequest; +} + +export interface SystemApiSystemWriteMfaMethodTotpNameAdminDestroyOperationRequest { + name: string; + systemWriteMfaMethodTotpNameAdminDestroyRequest: SystemWriteMfaMethodTotpNameAdminDestroyRequest; +} + +export interface SystemApiSystemWriteMfaMethodTotpNameAdminGenerateOperationRequest { + name: string; + systemWriteMfaMethodTotpNameAdminGenerateRequest: SystemWriteMfaMethodTotpNameAdminGenerateRequest; +} + +export interface SystemApiSystemWriteNamespacesApiLockLockPathRequest { + path: string; +} + +export interface SystemApiSystemWriteNamespacesApiLockUnlockOperationRequest { + systemWriteNamespacesApiLockUnlockRequest: SystemWriteNamespacesApiLockUnlockRequest; +} + +export interface SystemApiSystemWriteNamespacesApiLockUnlockPathOperationRequest { + path: string; + systemWriteNamespacesApiLockUnlockPathRequest: SystemWriteNamespacesApiLockUnlockPathRequest; +} + +export interface SystemApiSystemWriteNamespacesPathOperationRequest { + path: string; + systemWriteNamespacesPathRequest: SystemWriteNamespacesPathRequest; +} + +export interface SystemApiSystemWritePoliciesEgpNameOperationRequest { + name: string; + systemWritePoliciesEgpNameRequest: SystemWritePoliciesEgpNameRequest; +} + +export interface SystemApiSystemWritePoliciesRgpNameOperationRequest { + name: string; + systemWritePoliciesRgpNameRequest: SystemWritePoliciesRgpNameRequest; +} + +export interface SystemApiSystemWriteQuotasLeaseCountNameOperationRequest { + name: string; + systemWriteQuotasLeaseCountNameRequest: SystemWriteQuotasLeaseCountNameRequest; +} + +export interface SystemApiSystemWriteReplicationDrPrimaryEnableOperationRequest { + systemWriteReplicationDrPrimaryEnableRequest: SystemWriteReplicationDrPrimaryEnableRequest; +} + +export interface SystemApiSystemWriteReplicationDrPrimaryRevokeSecondaryOperationRequest { + systemWriteReplicationDrPrimaryRevokeSecondaryRequest: SystemWriteReplicationDrPrimaryRevokeSecondaryRequest; +} + +export interface SystemApiSystemWriteReplicationDrPrimarySecondaryTokenOperationRequest { + systemWriteReplicationDrPrimarySecondaryTokenRequest: SystemWriteReplicationDrPrimarySecondaryTokenRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryConfigReloadSubsystemRequest { + subsystem: string; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryDisableOperationRequest { + systemWriteReplicationDrSecondaryDisableRequest: SystemWriteReplicationDrSecondaryDisableRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryEnableOperationRequest { + systemWriteReplicationDrSecondaryEnableRequest: SystemWriteReplicationDrSecondaryEnableRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryMerkleCheckOperationRequest { + systemWriteReplicationDrSecondaryMerkleCheckRequest: SystemWriteReplicationDrSecondaryMerkleCheckRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryOperationTokenDeleteOperationRequest { + systemWriteReplicationDrSecondaryOperationTokenDeleteRequest: SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryPromoteOperationRequest { + systemWriteReplicationDrSecondaryPromoteRequest: SystemWriteReplicationDrSecondaryPromoteRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryRecoverOperationRequest { + systemWriteReplicationDrSecondaryRecoverRequest: SystemWriteReplicationDrSecondaryRecoverRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryReindexOperationRequest { + systemWriteReplicationDrSecondaryReindexRequest: SystemWriteReplicationDrSecondaryReindexRequest; +} + +export interface SystemApiSystemWriteReplicationDrSecondaryUpdatePrimaryOperationRequest { + systemWriteReplicationDrSecondaryUpdatePrimaryRequest: SystemWriteReplicationDrSecondaryUpdatePrimaryRequest; +} + +export interface SystemApiSystemWriteReplicationForceCorruptionOperationRequest { + systemWriteReplicationForceCorruptionRequest: SystemWriteReplicationForceCorruptionRequest; +} + +export interface SystemApiSystemWriteReplicationPerformancePrimaryEnableOperationRequest { + systemWriteReplicationPerformancePrimaryEnableRequest: SystemWriteReplicationPerformancePrimaryEnableRequest; +} + +export interface SystemApiSystemWriteReplicationPerformancePrimaryPathsFilterIdOperationRequest { + id: string; + systemWriteReplicationPerformancePrimaryPathsFilterIdRequest: SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest; +} + +export interface SystemApiSystemWriteReplicationPerformancePrimaryRevokeSecondaryOperationRequest { + systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest: SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest; +} + +export interface SystemApiSystemWriteReplicationPerformancePrimarySecondaryTokenOperationRequest { + systemWriteReplicationPerformancePrimarySecondaryTokenRequest: SystemWriteReplicationPerformancePrimarySecondaryTokenRequest; +} + +export interface SystemApiSystemWriteReplicationPerformanceSecondaryEnableOperationRequest { + systemWriteReplicationPerformanceSecondaryEnableRequest: SystemWriteReplicationPerformanceSecondaryEnableRequest; +} + +export interface SystemApiSystemWriteReplicationPerformanceSecondaryPromoteOperationRequest { + systemWriteReplicationPerformanceSecondaryPromoteRequest: SystemWriteReplicationPerformanceSecondaryPromoteRequest; +} + +export interface SystemApiSystemWriteReplicationPerformanceSecondaryUpdatePrimaryOperationRequest { + systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest: SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest; +} + +export interface SystemApiSystemWriteReplicationPrimaryEnableOperationRequest { + systemWriteReplicationPrimaryEnableRequest: SystemWriteReplicationPrimaryEnableRequest; +} + +export interface SystemApiSystemWriteReplicationPrimaryRevokeSecondaryOperationRequest { + systemWriteReplicationPrimaryRevokeSecondaryRequest: SystemWriteReplicationPrimaryRevokeSecondaryRequest; +} + +export interface SystemApiSystemWriteReplicationPrimarySecondaryTokenOperationRequest { + systemWriteReplicationPrimarySecondaryTokenRequest: SystemWriteReplicationPrimarySecondaryTokenRequest; +} + +export interface SystemApiSystemWriteReplicationReindexOperationRequest { + systemWriteReplicationReindexRequest: SystemWriteReplicationReindexRequest; +} + +export interface SystemApiSystemWriteReplicationSecondaryEnableOperationRequest { + systemWriteReplicationSecondaryEnableRequest: SystemWriteReplicationSecondaryEnableRequest; +} + +export interface SystemApiSystemWriteReplicationSecondaryPromoteOperationRequest { + systemWriteReplicationSecondaryPromoteRequest: SystemWriteReplicationSecondaryPromoteRequest; +} + +export interface SystemApiSystemWriteReplicationSecondaryUpdatePrimaryOperationRequest { + systemWriteReplicationSecondaryUpdatePrimaryRequest: SystemWriteReplicationSecondaryUpdatePrimaryRequest; +} + +export interface SystemApiSystemWriteStorageRaftSnapshotAutoConfigNameOperationRequest { + name: string; + systemWriteStorageRaftSnapshotAutoConfigNameRequest: SystemWriteStorageRaftSnapshotAutoConfigNameRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsAwsSmNameOperationRequest { + name: string; + systemWriteSyncDestinationsAwsSmNameRequest: SystemWriteSyncDestinationsAwsSmNameRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsAzureKvNameOperationRequest { + name: string; + systemWriteSyncDestinationsAzureKvNameRequest: SystemWriteSyncDestinationsAzureKvNameRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsGcpSmNameOperationRequest { + name: string; + systemWriteSyncDestinationsGcpSmNameRequest: SystemWriteSyncDestinationsGcpSmNameRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsGhNameOperationRequest { + name: string; + systemWriteSyncDestinationsGhNameRequest: SystemWriteSyncDestinationsGhNameRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsInMemNameOperationRequest { + name: string; + systemWriteSyncDestinationsInMemNameRequest: SystemWriteSyncDestinationsInMemNameRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsTypeNameAssociationsRemoveOperationRequest { + name: string; + type: string; + systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest: SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsTypeNameAssociationsSetOperationRequest { + name: string; + type: string; + systemWriteSyncDestinationsTypeNameAssociationsSetRequest: SystemWriteSyncDestinationsTypeNameAssociationsSetRequest; +} + +export interface SystemApiSystemWriteSyncDestinationsVercelProjectNameOperationRequest { + name: string; + systemWriteSyncDestinationsVercelProjectNameRequest: SystemWriteSyncDestinationsVercelProjectNameRequest; +} + +export interface SystemApiSystemWriteSyncGithubAppsNameOperationRequest { + name: string; + systemWriteSyncGithubAppsNameRequest: SystemWriteSyncGithubAppsNameRequest; +} + +export interface SystemApiSystemWriteUtilizationOperationRequest { + systemWriteUtilizationRequest: SystemWriteUtilizationRequest; +} + +export interface SystemApiUiConfigDeleteCustomMessageRequest { + id: string; +} + +export interface SystemApiUiConfigListCustomMessagesRequest { + list: UiConfigListCustomMessagesListEnum; +} + +export interface SystemApiUiConfigReadCustomMessageRequest { + id: string; +} + +export interface SystemApiUiConfigUpdateCustomMessageOperationRequest { + id: string; + uiConfigUpdateCustomMessageRequest: UiConfigUpdateCustomMessageRequest; +} + +export interface SystemApiUiHeadersConfigureOperationRequest { + header: string; + uiHeadersConfigureRequest: UiHeadersConfigureRequest; +} + +export interface SystemApiUiHeadersDeleteConfigurationRequest { + header: string; +} + +export interface SystemApiUiHeadersListRequest { + list: UiHeadersListListEnum; +} + +export interface SystemApiUiHeadersReadConfigurationRequest { + header: string; +} + +export interface SystemApiUnsealOperationRequest { + unsealRequest: UnsealRequest; +} + +export interface SystemApiUnwrapOperationRequest { + unwrapRequest: UnwrapRequest; +} + +export interface SystemApiVersionHistoryRequest { + list: VersionHistoryListEnum; +} + +export interface SystemApiWellKnownListLabelsRequest { + list: WellKnownListLabelsListEnum; +} + +export interface SystemApiWellKnownReadLabelRequest { + label: string; +} + +export interface SystemApiWrapRequest { + requestBody: { [key: string]: any }; +} + +/** + * + */ +export class SystemApi extends runtime.BaseAPI { + /** + * Activate a flagged feature. + */ + async activationFlagsActivateRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/activation-flags/activation-test/activate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Activate a flagged feature. + */ + async activationFlagsActivate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.activationFlagsActivateRaw(initOverrides); + } + + /** + * Activate a flagged feature. + */ + async activationFlagsActivate_1Raw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/activation-flags/force-identity-deduplication/activate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Activate a flagged feature. + */ + async activationFlagsActivate_1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.activationFlagsActivate_1Raw(initOverrides); + } + + /** + * Activate a flagged feature. + */ + async activationFlagsActivate_2Raw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/activation-flags/secrets-sync/activate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Activate a flagged feature. + */ + async activationFlagsActivate_2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.activationFlagsActivate_2Raw(initOverrides); + } + + /** + */ + async auditingCalculateHashRaw( + requestParameters: SystemApiAuditingCalculateHashOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling auditingCalculateHash().' + ); + } + + if (requestParameters['auditingCalculateHashRequest'] == null) { + throw new runtime.RequiredError( + 'auditingCalculateHashRequest', + 'Required parameter "auditingCalculateHashRequest" was null or undefined when calling auditingCalculateHash().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/audit-hash/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AuditingCalculateHashRequestToJSON(requestParameters['auditingCalculateHashRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AuditingCalculateHashResponseFromJSON(jsonValue) + ); + } + + /** + */ + async auditingCalculateHash( + path: string, + auditingCalculateHashRequest: AuditingCalculateHashRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.auditingCalculateHashRaw( + { path: path, auditingCalculateHashRequest: auditingCalculateHashRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Disable the audit device at the given path. + */ + async auditingDisableDeviceRaw( + requestParameters: SystemApiAuditingDisableDeviceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling auditingDisableDevice().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/audit/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Disable the audit device at the given path. + */ + async auditingDisableDevice( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.auditingDisableDeviceRaw({ path: path }, initOverrides); + } + + /** + * Disable auditing of the given request header. + */ + async auditingDisableRequestHeaderRaw( + requestParameters: SystemApiAuditingDisableRequestHeaderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['header'] == null) { + throw new runtime.RequiredError( + 'header', + 'Required parameter "header" was null or undefined when calling auditingDisableRequestHeader().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/auditing/request-headers/{header}`.replace( + `{${'header'}}`, + encodeURIComponent(String(requestParameters['header'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Disable auditing of the given request header. + */ + async auditingDisableRequestHeader( + header: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.auditingDisableRequestHeaderRaw({ header: header }, initOverrides); + } + + /** + * Enable a new audit device at the supplied path. + */ + async auditingEnableDeviceRaw( + requestParameters: SystemApiAuditingEnableDeviceOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling auditingEnableDevice().' + ); + } + + if (requestParameters['auditingEnableDeviceRequest'] == null) { + throw new runtime.RequiredError( + 'auditingEnableDeviceRequest', + 'Required parameter "auditingEnableDeviceRequest" was null or undefined when calling auditingEnableDevice().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/audit/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AuditingEnableDeviceRequestToJSON(requestParameters['auditingEnableDeviceRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Enable a new audit device at the supplied path. + */ + async auditingEnableDevice( + path: string, + auditingEnableDeviceRequest: AuditingEnableDeviceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.auditingEnableDeviceRaw( + { path: path, auditingEnableDeviceRequest: auditingEnableDeviceRequest }, + initOverrides + ); + } + + /** + * Enable auditing of a header. + */ + async auditingEnableRequestHeaderRaw( + requestParameters: SystemApiAuditingEnableRequestHeaderOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['header'] == null) { + throw new runtime.RequiredError( + 'header', + 'Required parameter "header" was null or undefined when calling auditingEnableRequestHeader().' + ); + } + + if (requestParameters['auditingEnableRequestHeaderRequest'] == null) { + throw new runtime.RequiredError( + 'auditingEnableRequestHeaderRequest', + 'Required parameter "auditingEnableRequestHeaderRequest" was null or undefined when calling auditingEnableRequestHeader().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/config/auditing/request-headers/{header}`.replace( + `{${'header'}}`, + encodeURIComponent(String(requestParameters['header'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AuditingEnableRequestHeaderRequestToJSON( + requestParameters['auditingEnableRequestHeaderRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Enable auditing of a header. + */ + async auditingEnableRequestHeader( + header: string, + auditingEnableRequestHeaderRequest: AuditingEnableRequestHeaderRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.auditingEnableRequestHeaderRaw( + { header: header, auditingEnableRequestHeaderRequest: auditingEnableRequestHeaderRequest }, + initOverrides + ); + } + + /** + * List the enabled audit devices. + */ + async auditingListEnabledDevicesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/audit`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * List the enabled audit devices. + */ + async auditingListEnabledDevices( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.auditingListEnabledDevicesRaw(initOverrides); + } + + /** + * List the request headers that are configured to be audited. + */ + async auditingListRequestHeadersRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/auditing/request-headers`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AuditingListRequestHeadersResponseFromJSON(jsonValue) + ); + } + + /** + * List the request headers that are configured to be audited. + */ + async auditingListRequestHeaders( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.auditingListRequestHeadersRaw(initOverrides); + return await response.value(); + } + + /** + * List the information for the given request header. + */ + async auditingReadRequestHeaderInformationRaw( + requestParameters: SystemApiAuditingReadRequestHeaderInformationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['header'] == null) { + throw new runtime.RequiredError( + 'header', + 'Required parameter "header" was null or undefined when calling auditingReadRequestHeaderInformation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/auditing/request-headers/{header}`.replace( + `{${'header'}}`, + encodeURIComponent(String(requestParameters['header'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * List the information for the given request header. + */ + async auditingReadRequestHeaderInformation( + header: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.auditingReadRequestHeaderInformationRaw({ header: header }, initOverrides); + } + + /** + * Disable the auth method at the given auth path + */ + async authDisableMethodRaw( + requestParameters: SystemApiAuthDisableMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling authDisableMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/auth/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Disable the auth method at the given auth path + */ + async authDisableMethod( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.authDisableMethodRaw({ path: path }, initOverrides); + } + + /** + * After enabling, the auth method can be accessed and configured via the auth path specified as part of the URL. This auth path will be nested under the auth prefix. For example, enable the \"foo\" auth method will make it accessible at /auth/foo. + * Enables a new auth method. + */ + async authEnableMethodRaw( + requestParameters: SystemApiAuthEnableMethodOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling authEnableMethod().' + ); + } + + if (requestParameters['authEnableMethodRequest'] == null) { + throw new runtime.RequiredError( + 'authEnableMethodRequest', + 'Required parameter "authEnableMethodRequest" was null or undefined when calling authEnableMethod().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/auth/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AuthEnableMethodRequestToJSON(requestParameters['authEnableMethodRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * After enabling, the auth method can be accessed and configured via the auth path specified as part of the URL. This auth path will be nested under the auth prefix. For example, enable the \"foo\" auth method will make it accessible at /auth/foo. + * Enables a new auth method. + */ + async authEnableMethod( + path: string, + authEnableMethodRequest: AuthEnableMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.authEnableMethodRaw( + { path: path, authEnableMethodRequest: authEnableMethodRequest }, + initOverrides + ); + } + + /** + */ + async authListEnabledMethodsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/auth`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async authListEnabledMethods(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.authListEnabledMethodsRaw(initOverrides); + } + + /** + * Read the configuration of the auth engine at the given path. + */ + async authReadConfigurationRaw( + requestParameters: SystemApiAuthReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling authReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/auth/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AuthReadConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + * Read the configuration of the auth engine at the given path. + */ + async authReadConfiguration( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.authReadConfigurationRaw({ path: path }, initOverrides); + return await response.value(); + } + + /** + * This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`. + * Reads the given auth path\'s configuration. + */ + async authReadTuningInformationRaw( + requestParameters: SystemApiAuthReadTuningInformationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling authReadTuningInformation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/auth/{path}/tune`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + AuthReadTuningInformationResponseFromJSON(jsonValue) + ); + } + + /** + * This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`. + * Reads the given auth path\'s configuration. + */ + async authReadTuningInformation( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.authReadTuningInformationRaw({ path: path }, initOverrides); + return await response.value(); + } + + /** + * This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`. + * Tune configuration parameters for a given auth path. + */ + async authTuneConfigurationParametersRaw( + requestParameters: SystemApiAuthTuneConfigurationParametersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling authTuneConfigurationParameters().' + ); + } + + if (requestParameters['authTuneConfigurationParametersRequest'] == null) { + throw new runtime.RequiredError( + 'authTuneConfigurationParametersRequest', + 'Required parameter "authTuneConfigurationParametersRequest" was null or undefined when calling authTuneConfigurationParameters().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/auth/{path}/tune`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AuthTuneConfigurationParametersRequestToJSON( + requestParameters['authTuneConfigurationParametersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint requires sudo capability on the final path, but the same functionality can be achieved without sudo via `sys/mounts/auth/[auth-path]/tune`. + * Tune configuration parameters for a given auth path. + */ + async authTuneConfigurationParameters( + path: string, + authTuneConfigurationParametersRequest: AuthTuneConfigurationParametersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.authTuneConfigurationParametersRaw( + { path: path, authTuneConfigurationParametersRequest: authTuneConfigurationParametersRequest }, + initOverrides + ); + } + + /** + * Information about the host instance that this Vault server is running on. The information that gets collected includes host hardware information, and CPU, disk, and memory utilization + * Information about the host instance that this Vault server is running on. + */ + async collectHostInformationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/host-info`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + CollectHostInformationResponseFromJSON(jsonValue) + ); + } + + /** + * Information about the host instance that this Vault server is running on. The information that gets collected includes host hardware information, and CPU, disk, and memory utilization + * Information about the host instance that this Vault server is running on. + */ + async collectHostInformation( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.collectHostInformationRaw(initOverrides); + return await response.value(); + } + + /** + * This path responds to the following HTTP methods. GET / Returns a map of in-flight requests. + * reports in-flight requests + */ + async collectInFlightRequestInformationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/in-flight-req`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This path responds to the following HTTP methods. GET / Returns a map of in-flight requests. + * reports in-flight requests + */ + async collectInFlightRequestInformation( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.collectInFlightRequestInformationRaw(initOverrides); + } + + /** + * Configure the CORS settings. + */ + async corsConfigureRaw( + requestParameters: SystemApiCorsConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['corsConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'corsConfigureRequest', + 'Required parameter "corsConfigureRequest" was null or undefined when calling corsConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/config/cors`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CorsConfigureRequestToJSON(requestParameters['corsConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure the CORS settings. + */ + async corsConfigure( + corsConfigureRequest: CorsConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.corsConfigureRaw({ corsConfigureRequest: corsConfigureRequest }, initOverrides); + } + + /** + * Remove any CORS settings. + */ + async corsDeleteConfigurationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/cors`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove any CORS settings. + */ + async corsDeleteConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.corsDeleteConfigurationRaw(initOverrides); + } + + /** + * Return the current CORS settings. + */ + async corsReadConfigurationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/cors`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + CorsReadConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + * Return the current CORS settings. + */ + async corsReadConfiguration( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.corsReadConfigurationRaw(initOverrides); + return await response.value(); + } + + /** + * Create custom message + */ + async createCustomMessageRaw( + requestParameters: SystemApiCreateCustomMessageOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['createCustomMessageRequest'] == null) { + throw new runtime.RequiredError( + 'createCustomMessageRequest', + 'Required parameter "createCustomMessageRequest" was null or undefined when calling createCustomMessage().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/config/ui/custom-messages`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateCustomMessageRequestToJSON(requestParameters['createCustomMessageRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create custom message + */ + async createCustomMessage( + createCustomMessageRequest: CreateCustomMessageRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.createCustomMessageRaw( + { createCustomMessageRequest: createCustomMessageRequest }, + initOverrides + ); + } + + /** + * Decodes the encoded token with the otp. + */ + async decodeTokenRaw( + requestParameters: SystemApiDecodeTokenOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['decodeTokenRequest'] == null) { + throw new runtime.RequiredError( + 'decodeTokenRequest', + 'Required parameter "decodeTokenRequest" was null or undefined when calling decodeToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/decode-token`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: DecodeTokenRequestToJSON(requestParameters['decodeTokenRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Decodes the encoded token with the otp. + */ + async decodeToken( + decodeTokenRequest: DecodeTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.decodeTokenRaw({ decodeTokenRequest: decodeTokenRequest }, initOverrides); + } + + /** + */ + async encryptionKeyConfigureRotationRaw( + requestParameters: SystemApiEncryptionKeyConfigureRotationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['encryptionKeyConfigureRotationRequest'] == null) { + throw new runtime.RequiredError( + 'encryptionKeyConfigureRotationRequest', + 'Required parameter "encryptionKeyConfigureRotationRequest" was null or undefined when calling encryptionKeyConfigureRotation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/rotate/config`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: EncryptionKeyConfigureRotationRequestToJSON( + requestParameters['encryptionKeyConfigureRotationRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async encryptionKeyConfigureRotation( + encryptionKeyConfigureRotationRequest: EncryptionKeyConfigureRotationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.encryptionKeyConfigureRotationRaw( + { encryptionKeyConfigureRotationRequest: encryptionKeyConfigureRotationRequest }, + initOverrides + ); + } + + /** + */ + async encryptionKeyReadRotationConfigurationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rotate/config`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + EncryptionKeyReadRotationConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async encryptionKeyReadRotationConfiguration( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.encryptionKeyReadRotationConfigurationRaw(initOverrides); + return await response.value(); + } + + /** + */ + async encryptionKeyRotateRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rotate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async encryptionKeyRotate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.encryptionKeyRotateRaw(initOverrides); + } + + /** + * Provides information about the backend encryption key. + */ + async encryptionKeyStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/key-status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Provides information about the backend encryption key. + */ + async encryptionKeyStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.encryptionKeyStatusRaw(initOverrides); + } + + /** + */ + async generateHashRaw( + requestParameters: SystemApiGenerateHashOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['generateHashRequest'] == null) { + throw new runtime.RequiredError( + 'generateHashRequest', + 'Required parameter "generateHashRequest" was null or undefined when calling generateHash().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/tools/hash`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GenerateHashRequestToJSON(requestParameters['generateHashRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => GenerateHashResponseFromJSON(jsonValue)); + } + + /** + */ + async generateHash( + generateHashRequest: GenerateHashRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.generateHashRaw({ generateHashRequest: generateHashRequest }, initOverrides); + return await response.value(); + } + + /** + */ + async generateHashWithAlgorithmRaw( + requestParameters: SystemApiGenerateHashWithAlgorithmOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlalgorithm'] == null) { + throw new runtime.RequiredError( + 'urlalgorithm', + 'Required parameter "urlalgorithm" was null or undefined when calling generateHashWithAlgorithm().' + ); + } + + if (requestParameters['generateHashWithAlgorithmRequest'] == null) { + throw new runtime.RequiredError( + 'generateHashWithAlgorithmRequest', + 'Required parameter "generateHashWithAlgorithmRequest" was null or undefined when calling generateHashWithAlgorithm().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/tools/hash/{urlalgorithm}`.replace( + `{${'urlalgorithm'}}`, + encodeURIComponent(String(requestParameters['urlalgorithm'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GenerateHashWithAlgorithmRequestToJSON(requestParameters['generateHashWithAlgorithmRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + GenerateHashWithAlgorithmResponseFromJSON(jsonValue) + ); + } + + /** + */ + async generateHashWithAlgorithm( + urlalgorithm: string, + generateHashWithAlgorithmRequest: GenerateHashWithAlgorithmRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.generateHashWithAlgorithmRaw( + { urlalgorithm: urlalgorithm, generateHashWithAlgorithmRequest: generateHashWithAlgorithmRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async generateRandomRaw( + requestParameters: SystemApiGenerateRandomOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['generateRandomRequest'] == null) { + throw new runtime.RequiredError( + 'generateRandomRequest', + 'Required parameter "generateRandomRequest" was null or undefined when calling generateRandom().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/tools/random`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GenerateRandomRequestToJSON(requestParameters['generateRandomRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => GenerateRandomResponseFromJSON(jsonValue)); + } + + /** + */ + async generateRandom( + generateRandomRequest: GenerateRandomRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.generateRandomRaw( + { generateRandomRequest: generateRandomRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async generateRandomWithBytesRaw( + requestParameters: SystemApiGenerateRandomWithBytesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlbytes'] == null) { + throw new runtime.RequiredError( + 'urlbytes', + 'Required parameter "urlbytes" was null or undefined when calling generateRandomWithBytes().' + ); + } + + if (requestParameters['generateRandomWithBytesRequest'] == null) { + throw new runtime.RequiredError( + 'generateRandomWithBytesRequest', + 'Required parameter "generateRandomWithBytesRequest" was null or undefined when calling generateRandomWithBytes().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/tools/random/{urlbytes}`.replace( + `{${'urlbytes'}}`, + encodeURIComponent(String(requestParameters['urlbytes'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GenerateRandomWithBytesRequestToJSON(requestParameters['generateRandomWithBytesRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + GenerateRandomWithBytesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async generateRandomWithBytes( + urlbytes: string, + generateRandomWithBytesRequest: GenerateRandomWithBytesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.generateRandomWithBytesRaw( + { urlbytes: urlbytes, generateRandomWithBytesRequest: generateRandomWithBytesRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async generateRandomWithSourceRaw( + requestParameters: SystemApiGenerateRandomWithSourceOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['source'] == null) { + throw new runtime.RequiredError( + 'source', + 'Required parameter "source" was null or undefined when calling generateRandomWithSource().' + ); + } + + if (requestParameters['generateRandomWithSourceRequest'] == null) { + throw new runtime.RequiredError( + 'generateRandomWithSourceRequest', + 'Required parameter "generateRandomWithSourceRequest" was null or undefined when calling generateRandomWithSource().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/tools/random/{source}`.replace( + `{${'source'}}`, + encodeURIComponent(String(requestParameters['source'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GenerateRandomWithSourceRequestToJSON(requestParameters['generateRandomWithSourceRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + GenerateRandomWithSourceResponseFromJSON(jsonValue) + ); + } + + /** + */ + async generateRandomWithSource( + source: string, + generateRandomWithSourceRequest: GenerateRandomWithSourceRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.generateRandomWithSourceRaw( + { source: source, generateRandomWithSourceRequest: generateRandomWithSourceRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async generateRandomWithSourceAndBytesRaw( + requestParameters: SystemApiGenerateRandomWithSourceAndBytesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['source'] == null) { + throw new runtime.RequiredError( + 'source', + 'Required parameter "source" was null or undefined when calling generateRandomWithSourceAndBytes().' + ); + } + + if (requestParameters['urlbytes'] == null) { + throw new runtime.RequiredError( + 'urlbytes', + 'Required parameter "urlbytes" was null or undefined when calling generateRandomWithSourceAndBytes().' + ); + } + + if (requestParameters['generateRandomWithSourceAndBytesRequest'] == null) { + throw new runtime.RequiredError( + 'generateRandomWithSourceAndBytesRequest', + 'Required parameter "generateRandomWithSourceAndBytesRequest" was null or undefined when calling generateRandomWithSourceAndBytes().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/tools/random/{source}/{urlbytes}` + .replace(`{${'source'}}`, encodeURIComponent(String(requestParameters['source']))) + .replace(`{${'urlbytes'}}`, encodeURIComponent(String(requestParameters['urlbytes']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: GenerateRandomWithSourceAndBytesRequestToJSON( + requestParameters['generateRandomWithSourceAndBytesRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + GenerateRandomWithSourceAndBytesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async generateRandomWithSourceAndBytes( + source: string, + urlbytes: string, + generateRandomWithSourceAndBytesRequest: GenerateRandomWithSourceAndBytesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.generateRandomWithSourceAndBytesRaw( + { + source: source, + urlbytes: urlbytes, + generateRandomWithSourceAndBytesRequest: generateRandomWithSourceAndBytesRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + * Check the HA status of a Vault cluster + */ + async haStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/ha-status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => HaStatusResponseFromJSON(jsonValue)); + } + + /** + * Check the HA status of a Vault cluster + */ + async haStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.haStatusRaw(initOverrides); + return await response.value(); + } + + /** + * The Vault must not have been previously initialized. The recovery options, as well as the stored shares option, are only available when using Vault HSM. + * Initialize a new Vault. + */ + async initializeRaw( + requestParameters: SystemApiInitializeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['initializeRequest'] == null) { + throw new runtime.RequiredError( + 'initializeRequest', + 'Required parameter "initializeRequest" was null or undefined when calling initialize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/init`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: InitializeRequestToJSON(requestParameters['initializeRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The Vault must not have been previously initialized. The recovery options, as well as the stored shares option, are only available when using Vault HSM. + * Initialize a new Vault. + */ + async initialize( + initializeRequest: InitializeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.initializeRaw({ initializeRequest: initializeRequest }, initOverrides); + } + + /** + * Enable or disable collection of client count, set retention period, or set default reporting period. + */ + async internalClientActivityConfigureRaw( + requestParameters: SystemApiInternalClientActivityConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['internalClientActivityConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'internalClientActivityConfigureRequest', + 'Required parameter "internalClientActivityConfigureRequest" was null or undefined when calling internalClientActivityConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/internal/counters/config`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: InternalClientActivityConfigureRequestToJSON( + requestParameters['internalClientActivityConfigureRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Enable or disable collection of client count, set retention period, or set default reporting period. + */ + async internalClientActivityConfigure( + internalClientActivityConfigureRequest: InternalClientActivityConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalClientActivityConfigureRaw( + { internalClientActivityConfigureRequest: internalClientActivityConfigureRequest }, + initOverrides + ); + } + + /** + * Report the client count metrics, for this namespace and all child namespaces. + */ + async internalClientActivityExportRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/counters/activity/export`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Report the client count metrics, for this namespace and all child namespaces. + */ + async internalClientActivityExport( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalClientActivityExportRaw(initOverrides); + } + + /** + * Read the client count tracking configuration. + */ + async internalClientActivityReadConfigurationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/counters/config`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the client count tracking configuration. + */ + async internalClientActivityReadConfiguration( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalClientActivityReadConfigurationRaw(initOverrides); + } + + /** + * Report the client count metrics, for this namespace and all child namespaces. + */ + async internalClientActivityReportCountsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/counters/activity`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Report the client count metrics, for this namespace and all child namespaces. + */ + async internalClientActivityReportCounts( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalClientActivityReportCountsRaw(initOverrides); + } + + /** + * Report the number of clients for this month, for this namespace and all child namespaces. + */ + async internalClientActivityReportCountsThisMonthRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/counters/activity/monthly`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Report the number of clients for this month, for this namespace and all child namespaces. + */ + async internalClientActivityReportCountsThisMonth( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalClientActivityReportCountsThisMonthRaw(initOverrides); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalCountEntitiesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/counters/entities`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalCountEntitiesResponseFromJSON(jsonValue) + ); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalCountEntities( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalCountEntitiesRaw(initOverrides); + return await response.value(); + } + + /** + * Backwards compatibility is not guaranteed for this API + * @deprecated + */ + async internalCountRequestsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/counters/requests`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Backwards compatibility is not guaranteed for this API + * @deprecated + */ + async internalCountRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.internalCountRequestsRaw(initOverrides); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalCountTokensRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/counters/tokens`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalCountTokensResponseFromJSON(jsonValue) + ); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalCountTokens( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalCountTokensRaw(initOverrides); + return await response.value(); + } + + /** + */ + async internalGenerateOpenApiDocumentRaw( + requestParameters: SystemApiInternalGenerateOpenApiDocumentRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + if (requestParameters['context'] != null) { + queryParameters['context'] = requestParameters['context']; + } + + if (requestParameters['genericMountPaths'] != null) { + queryParameters['generic_mount_paths'] = requestParameters['genericMountPaths']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/specs/openapi`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async internalGenerateOpenApiDocument( + context?: string, + genericMountPaths?: boolean, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalGenerateOpenApiDocumentRaw( + { context: context, genericMountPaths: genericMountPaths }, + initOverrides + ); + } + + /** + */ + async internalGenerateOpenApiDocumentWithParametersRaw( + requestParameters: SystemApiInternalGenerateOpenApiDocumentWithParametersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['internalGenerateOpenApiDocumentWithParametersRequest'] == null) { + throw new runtime.RequiredError( + 'internalGenerateOpenApiDocumentWithParametersRequest', + 'Required parameter "internalGenerateOpenApiDocumentWithParametersRequest" was null or undefined when calling internalGenerateOpenApiDocumentWithParameters().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/internal/specs/openapi`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: InternalGenerateOpenApiDocumentWithParametersRequestToJSON( + requestParameters['internalGenerateOpenApiDocumentWithParametersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async internalGenerateOpenApiDocumentWithParameters( + internalGenerateOpenApiDocumentWithParametersRequest: InternalGenerateOpenApiDocumentWithParametersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalGenerateOpenApiDocumentWithParametersRaw( + { + internalGenerateOpenApiDocumentWithParametersRequest: + internalGenerateOpenApiDocumentWithParametersRequest, + }, + initOverrides + ); + } + + /** + * Expose the route entry and mount entry tables present in the router + */ + async internalInspectRouterRaw( + requestParameters: SystemApiInternalInspectRouterRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['tag'] == null) { + throw new runtime.RequiredError( + 'tag', + 'Required parameter "tag" was null or undefined when calling internalInspectRouter().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/inspect/router/{tag}`.replace( + `{${'tag'}}`, + encodeURIComponent(String(requestParameters['tag'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Expose the route entry and mount entry tables present in the router + */ + async internalInspectRouter( + tag: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.internalInspectRouterRaw({ tag: tag }, initOverrides); + } + + /** + * Lists enabled feature flags. + */ + async internalUiListEnabledFeatureFlagsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/ui/feature-flags`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalUiListEnabledFeatureFlagsResponseFromJSON(jsonValue) + ); + } + + /** + * Lists enabled feature flags. + */ + async internalUiListEnabledFeatureFlags( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalUiListEnabledFeatureFlagsRaw(initOverrides); + return await response.value(); + } + + /** + * Lists all enabled and visible auth and secrets mounts. + */ + async internalUiListEnabledVisibleMountsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/ui/mounts`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalUiListEnabledVisibleMountsResponseFromJSON(jsonValue) + ); + } + + /** + * Lists all enabled and visible auth and secrets mounts. + */ + async internalUiListEnabledVisibleMounts( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalUiListEnabledVisibleMountsRaw(initOverrides); + return await response.value(); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalUiListNamespacesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/ui/namespaces`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalUiListNamespacesResponseFromJSON(jsonValue) + ); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalUiListNamespaces( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalUiListNamespacesRaw(initOverrides); + return await response.value(); + } + + /** + * Retrieves Active post-login Custom Messages + */ + async internalUiReadAuthenticatedActiveCustomMessagesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/ui/authenticated-messages`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalUiReadAuthenticatedActiveCustomMessagesResponseFromJSON(jsonValue) + ); + } + + /** + * Retrieves Active post-login Custom Messages + */ + async internalUiReadAuthenticatedActiveCustomMessages( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalUiReadAuthenticatedActiveCustomMessagesRaw(initOverrides); + return await response.value(); + } + + /** + * Return information about the given mount. + */ + async internalUiReadMountInformationRaw( + requestParameters: SystemApiInternalUiReadMountInformationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling internalUiReadMountInformation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/ui/mounts/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalUiReadMountInformationResponseFromJSON(jsonValue) + ); + } + + /** + * Return information about the given mount. + */ + async internalUiReadMountInformation( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalUiReadMountInformationRaw({ path: path }, initOverrides); + return await response.value(); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalUiReadResultantAclRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/ui/resultant-acl`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalUiReadResultantAclResponseFromJSON(jsonValue) + ); + } + + /** + * Backwards compatibility is not guaranteed for this API + */ + async internalUiReadResultantAcl( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalUiReadResultantAclRaw(initOverrides); + switch (response.raw.status) { + case 200: + return await response.value(); + case 204: + return null; + default: + return await response.value(); + } + } + + /** + * Retrieves Active pre-login Custom Messages + */ + async internalUiReadUnauthenticatedActiveCustomMessagesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/ui/unauthenticated-messages`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + InternalUiReadUnauthenticatedActiveCustomMessagesResponseFromJSON(jsonValue) + ); + } + + /** + * Retrieves Active pre-login Custom Messages + */ + async internalUiReadUnauthenticatedActiveCustomMessages( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.internalUiReadUnauthenticatedActiveCustomMessagesRaw(initOverrides); + return await response.value(); + } + + /** + * Returns the high availability status and current leader instance of Vault. + */ + async leaderStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/leader`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => LeaderStatusResponseFromJSON(jsonValue)); + } + + /** + * Returns the high availability status and current leader instance of Vault. + */ + async leaderStatus( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.leaderStatusRaw(initOverrides); + return await response.value(); + } + + /** + */ + async leasesCountRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/leases/count`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => LeasesCountResponseFromJSON(jsonValue)); + } + + /** + */ + async leasesCount( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.leasesCountRaw(initOverrides); + return await response.value(); + } + + /** + * Unlike `/sys/leases/revoke-prefix`, this path ignores backend errors encountered during revocation. This is potentially very dangerous and should only be used in specific emergency situations where errors in the backend or the connected backend service prevent normal revocation. By ignoring these errors, Vault abdicates responsibility for ensuring that the issued credentials or secrets are properly revoked and/or cleaned up. Access to this endpoint should be tightly controlled. + * Revokes all secrets or tokens generated under a given prefix immediately + */ + async leasesForceRevokeLeaseWithPrefixRaw( + requestParameters: SystemApiLeasesForceRevokeLeaseWithPrefixRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['prefix'] == null) { + throw new runtime.RequiredError( + 'prefix', + 'Required parameter "prefix" was null or undefined when calling leasesForceRevokeLeaseWithPrefix().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/leases/revoke-force/{prefix}`.replace( + `{${'prefix'}}`, + encodeURIComponent(String(requestParameters['prefix'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Unlike `/sys/leases/revoke-prefix`, this path ignores backend errors encountered during revocation. This is potentially very dangerous and should only be used in specific emergency situations where errors in the backend or the connected backend service prevent normal revocation. By ignoring these errors, Vault abdicates responsibility for ensuring that the issued credentials or secrets are properly revoked and/or cleaned up. Access to this endpoint should be tightly controlled. + * Revokes all secrets or tokens generated under a given prefix immediately + */ + async leasesForceRevokeLeaseWithPrefix( + prefix: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesForceRevokeLeaseWithPrefixRaw({ prefix: prefix }, initOverrides); + } + + /** + * Unlike `/sys/leases/revoke-prefix`, this path ignores backend errors encountered during revocation. This is potentially very dangerous and should only be used in specific emergency situations where errors in the backend or the connected backend service prevent normal revocation. By ignoring these errors, Vault abdicates responsibility for ensuring that the issued credentials or secrets are properly revoked and/or cleaned up. Access to this endpoint should be tightly controlled. + * Revokes all secrets or tokens generated under a given prefix immediately + */ + async leasesForceRevokeLeaseWithPrefix2Raw( + requestParameters: SystemApiLeasesForceRevokeLeaseWithPrefix2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['prefix'] == null) { + throw new runtime.RequiredError( + 'prefix', + 'Required parameter "prefix" was null or undefined when calling leasesForceRevokeLeaseWithPrefix2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/revoke-force/{prefix}`.replace( + `{${'prefix'}}`, + encodeURIComponent(String(requestParameters['prefix'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Unlike `/sys/leases/revoke-prefix`, this path ignores backend errors encountered during revocation. This is potentially very dangerous and should only be used in specific emergency situations where errors in the backend or the connected backend service prevent normal revocation. By ignoring these errors, Vault abdicates responsibility for ensuring that the issued credentials or secrets are properly revoked and/or cleaned up. Access to this endpoint should be tightly controlled. + * Revokes all secrets or tokens generated under a given prefix immediately + */ + async leasesForceRevokeLeaseWithPrefix2( + prefix: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesForceRevokeLeaseWithPrefix2Raw({ prefix: prefix }, initOverrides); + } + + /** + */ + async leasesListRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/leases`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => LeasesListResponseFromJSON(jsonValue)); + } + + /** + */ + async leasesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.leasesListRaw(initOverrides); + return await response.value(); + } + + /** + */ + async leasesLookUpRaw( + requestParameters: SystemApiLeasesLookUpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['prefix'] == null) { + throw new runtime.RequiredError( + 'prefix', + 'Required parameter "prefix" was null or undefined when calling leasesLookUp().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling leasesLookUp().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/leases/lookup/{prefix}/`.replace( + `{${'prefix'}}`, + encodeURIComponent(String(requestParameters['prefix'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => LeasesLookUpResponseFromJSON(jsonValue)); + } + + /** + */ + async leasesLookUp( + prefix: string, + list: LeasesLookUpListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.leasesLookUpRaw({ prefix: prefix, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async leasesReadLeaseRaw( + requestParameters: SystemApiLeasesReadLeaseOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['leasesReadLeaseRequest'] == null) { + throw new runtime.RequiredError( + 'leasesReadLeaseRequest', + 'Required parameter "leasesReadLeaseRequest" was null or undefined when calling leasesReadLease().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/leases/lookup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesReadLeaseRequestToJSON(requestParameters['leasesReadLeaseRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => LeasesReadLeaseResponseFromJSON(jsonValue)); + } + + /** + */ + async leasesReadLease( + leasesReadLeaseRequest: LeasesReadLeaseRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.leasesReadLeaseRaw( + { leasesReadLeaseRequest: leasesReadLeaseRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLeaseRaw( + requestParameters: SystemApiLeasesRenewLeaseOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['leasesRenewLeaseRequest'] == null) { + throw new runtime.RequiredError( + 'leasesRenewLeaseRequest', + 'Required parameter "leasesRenewLeaseRequest" was null or undefined when calling leasesRenewLease().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/leases/renew`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRenewLeaseRequestToJSON(requestParameters['leasesRenewLeaseRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLease( + leasesRenewLeaseRequest: LeasesRenewLeaseRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRenewLeaseRaw({ leasesRenewLeaseRequest: leasesRenewLeaseRequest }, initOverrides); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLease2Raw( + requestParameters: SystemApiLeasesRenewLease2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['leasesRenewLease2Request'] == null) { + throw new runtime.RequiredError( + 'leasesRenewLease2Request', + 'Required parameter "leasesRenewLease2Request" was null or undefined when calling leasesRenewLease2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/renew`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRenewLease2RequestToJSON(requestParameters['leasesRenewLease2Request']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLease2( + leasesRenewLease2Request: LeasesRenewLease2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRenewLease2Raw({ leasesRenewLease2Request: leasesRenewLease2Request }, initOverrides); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLeaseWithIdRaw( + requestParameters: SystemApiLeasesRenewLeaseWithIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlLeaseId'] == null) { + throw new runtime.RequiredError( + 'urlLeaseId', + 'Required parameter "urlLeaseId" was null or undefined when calling leasesRenewLeaseWithId().' + ); + } + + if (requestParameters['leasesRenewLeaseWithIdRequest'] == null) { + throw new runtime.RequiredError( + 'leasesRenewLeaseWithIdRequest', + 'Required parameter "leasesRenewLeaseWithIdRequest" was null or undefined when calling leasesRenewLeaseWithId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/leases/renew/{url_lease_id}`.replace( + `{${'url_lease_id'}}`, + encodeURIComponent(String(requestParameters['urlLeaseId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRenewLeaseWithIdRequestToJSON(requestParameters['leasesRenewLeaseWithIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLeaseWithId( + urlLeaseId: string, + leasesRenewLeaseWithIdRequest: LeasesRenewLeaseWithIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRenewLeaseWithIdRaw( + { urlLeaseId: urlLeaseId, leasesRenewLeaseWithIdRequest: leasesRenewLeaseWithIdRequest }, + initOverrides + ); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLeaseWithId2Raw( + requestParameters: SystemApiLeasesRenewLeaseWithId2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlLeaseId'] == null) { + throw new runtime.RequiredError( + 'urlLeaseId', + 'Required parameter "urlLeaseId" was null or undefined when calling leasesRenewLeaseWithId2().' + ); + } + + if (requestParameters['leasesRenewLeaseWithId2Request'] == null) { + throw new runtime.RequiredError( + 'leasesRenewLeaseWithId2Request', + 'Required parameter "leasesRenewLeaseWithId2Request" was null or undefined when calling leasesRenewLeaseWithId2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/renew/{url_lease_id}`.replace( + `{${'url_lease_id'}}`, + encodeURIComponent(String(requestParameters['urlLeaseId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRenewLeaseWithId2RequestToJSON(requestParameters['leasesRenewLeaseWithId2Request']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Renews a lease, requesting to extend the lease. + */ + async leasesRenewLeaseWithId2( + urlLeaseId: string, + leasesRenewLeaseWithId2Request: LeasesRenewLeaseWithId2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRenewLeaseWithId2Raw( + { urlLeaseId: urlLeaseId, leasesRenewLeaseWithId2Request: leasesRenewLeaseWithId2Request }, + initOverrides + ); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLeaseRaw( + requestParameters: SystemApiLeasesRevokeLeaseOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['leasesRevokeLeaseRequest'] == null) { + throw new runtime.RequiredError( + 'leasesRevokeLeaseRequest', + 'Required parameter "leasesRevokeLeaseRequest" was null or undefined when calling leasesRevokeLease().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/leases/revoke`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRevokeLeaseRequestToJSON(requestParameters['leasesRevokeLeaseRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLease( + leasesRevokeLeaseRequest: LeasesRevokeLeaseRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRevokeLeaseRaw({ leasesRevokeLeaseRequest: leasesRevokeLeaseRequest }, initOverrides); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLease2Raw( + requestParameters: SystemApiLeasesRevokeLease2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['leasesRevokeLease2Request'] == null) { + throw new runtime.RequiredError( + 'leasesRevokeLease2Request', + 'Required parameter "leasesRevokeLease2Request" was null or undefined when calling leasesRevokeLease2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/revoke`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRevokeLease2RequestToJSON(requestParameters['leasesRevokeLease2Request']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLease2( + leasesRevokeLease2Request: LeasesRevokeLease2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRevokeLease2Raw({ leasesRevokeLease2Request: leasesRevokeLease2Request }, initOverrides); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLeaseWithIdRaw( + requestParameters: SystemApiLeasesRevokeLeaseWithIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlLeaseId'] == null) { + throw new runtime.RequiredError( + 'urlLeaseId', + 'Required parameter "urlLeaseId" was null or undefined when calling leasesRevokeLeaseWithId().' + ); + } + + if (requestParameters['leasesRevokeLeaseWithIdRequest'] == null) { + throw new runtime.RequiredError( + 'leasesRevokeLeaseWithIdRequest', + 'Required parameter "leasesRevokeLeaseWithIdRequest" was null or undefined when calling leasesRevokeLeaseWithId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/leases/revoke/{url_lease_id}`.replace( + `{${'url_lease_id'}}`, + encodeURIComponent(String(requestParameters['urlLeaseId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRevokeLeaseWithIdRequestToJSON(requestParameters['leasesRevokeLeaseWithIdRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLeaseWithId( + urlLeaseId: string, + leasesRevokeLeaseWithIdRequest: LeasesRevokeLeaseWithIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRevokeLeaseWithIdRaw( + { urlLeaseId: urlLeaseId, leasesRevokeLeaseWithIdRequest: leasesRevokeLeaseWithIdRequest }, + initOverrides + ); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLeaseWithId2Raw( + requestParameters: SystemApiLeasesRevokeLeaseWithId2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['urlLeaseId'] == null) { + throw new runtime.RequiredError( + 'urlLeaseId', + 'Required parameter "urlLeaseId" was null or undefined when calling leasesRevokeLeaseWithId2().' + ); + } + + if (requestParameters['leasesRevokeLeaseWithId2Request'] == null) { + throw new runtime.RequiredError( + 'leasesRevokeLeaseWithId2Request', + 'Required parameter "leasesRevokeLeaseWithId2Request" was null or undefined when calling leasesRevokeLeaseWithId2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/revoke/{url_lease_id}`.replace( + `{${'url_lease_id'}}`, + encodeURIComponent(String(requestParameters['urlLeaseId'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRevokeLeaseWithId2RequestToJSON(requestParameters['leasesRevokeLeaseWithId2Request']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revokes a lease immediately. + */ + async leasesRevokeLeaseWithId2( + urlLeaseId: string, + leasesRevokeLeaseWithId2Request: LeasesRevokeLeaseWithId2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRevokeLeaseWithId2Raw( + { urlLeaseId: urlLeaseId, leasesRevokeLeaseWithId2Request: leasesRevokeLeaseWithId2Request }, + initOverrides + ); + } + + /** + * Revokes all secrets (via a lease ID prefix) or tokens (via the tokens\' path property) generated under a given prefix immediately. + */ + async leasesRevokeLeaseWithPrefixRaw( + requestParameters: SystemApiLeasesRevokeLeaseWithPrefixOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['prefix'] == null) { + throw new runtime.RequiredError( + 'prefix', + 'Required parameter "prefix" was null or undefined when calling leasesRevokeLeaseWithPrefix().' + ); + } + + if (requestParameters['leasesRevokeLeaseWithPrefixRequest'] == null) { + throw new runtime.RequiredError( + 'leasesRevokeLeaseWithPrefixRequest', + 'Required parameter "leasesRevokeLeaseWithPrefixRequest" was null or undefined when calling leasesRevokeLeaseWithPrefix().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/leases/revoke-prefix/{prefix}`.replace( + `{${'prefix'}}`, + encodeURIComponent(String(requestParameters['prefix'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRevokeLeaseWithPrefixRequestToJSON( + requestParameters['leasesRevokeLeaseWithPrefixRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revokes all secrets (via a lease ID prefix) or tokens (via the tokens\' path property) generated under a given prefix immediately. + */ + async leasesRevokeLeaseWithPrefix( + prefix: string, + leasesRevokeLeaseWithPrefixRequest: LeasesRevokeLeaseWithPrefixRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRevokeLeaseWithPrefixRaw( + { prefix: prefix, leasesRevokeLeaseWithPrefixRequest: leasesRevokeLeaseWithPrefixRequest }, + initOverrides + ); + } + + /** + * Revokes all secrets (via a lease ID prefix) or tokens (via the tokens\' path property) generated under a given prefix immediately. + */ + async leasesRevokeLeaseWithPrefix2Raw( + requestParameters: SystemApiLeasesRevokeLeaseWithPrefix2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['prefix'] == null) { + throw new runtime.RequiredError( + 'prefix', + 'Required parameter "prefix" was null or undefined when calling leasesRevokeLeaseWithPrefix2().' + ); + } + + if (requestParameters['leasesRevokeLeaseWithPrefix2Request'] == null) { + throw new runtime.RequiredError( + 'leasesRevokeLeaseWithPrefix2Request', + 'Required parameter "leasesRevokeLeaseWithPrefix2Request" was null or undefined when calling leasesRevokeLeaseWithPrefix2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/revoke-prefix/{prefix}`.replace( + `{${'prefix'}}`, + encodeURIComponent(String(requestParameters['prefix'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LeasesRevokeLeaseWithPrefix2RequestToJSON( + requestParameters['leasesRevokeLeaseWithPrefix2Request'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revokes all secrets (via a lease ID prefix) or tokens (via the tokens\' path property) generated under a given prefix immediately. + */ + async leasesRevokeLeaseWithPrefix2( + prefix: string, + leasesRevokeLeaseWithPrefix2Request: LeasesRevokeLeaseWithPrefix2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.leasesRevokeLeaseWithPrefix2Raw( + { prefix: prefix, leasesRevokeLeaseWithPrefix2Request: leasesRevokeLeaseWithPrefix2Request }, + initOverrides + ); + } + + /** + */ + async leasesTidyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/leases/tidy`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async leasesTidy(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.leasesTidyRaw(initOverrides); + } + + /** + * Returns the available and enabled experiments + */ + async listExperimentalFeaturesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/experiments`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the available and enabled experiments + */ + async listExperimentalFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.listExperimentalFeaturesRaw(initOverrides); + } + + /** + * Report the locked user count metrics, for this namespace and all child namespaces. + */ + async lockedUsersListRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/locked-users`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Report the locked user count metrics, for this namespace and all child namespaces. + */ + async lockedUsersList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.lockedUsersListRaw(initOverrides); + } + + /** + * Unlocks the user with given mount_accessor and alias_identifier + */ + async lockedUsersUnlockRaw( + requestParameters: SystemApiLockedUsersUnlockRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['aliasIdentifier'] == null) { + throw new runtime.RequiredError( + 'aliasIdentifier', + 'Required parameter "aliasIdentifier" was null or undefined when calling lockedUsersUnlock().' + ); + } + + if (requestParameters['mountAccessor'] == null) { + throw new runtime.RequiredError( + 'mountAccessor', + 'Required parameter "mountAccessor" was null or undefined when calling lockedUsersUnlock().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/locked-users/{mount_accessor}/unlock/{alias_identifier}` + .replace( + `{${'alias_identifier'}}`, + encodeURIComponent(String(requestParameters['aliasIdentifier'])) + ) + .replace(`{${'mount_accessor'}}`, encodeURIComponent(String(requestParameters['mountAccessor']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Unlocks the user with given mount_accessor and alias_identifier + */ + async lockedUsersUnlock( + aliasIdentifier: string, + mountAccessor: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.lockedUsersUnlockRaw( + { aliasIdentifier: aliasIdentifier, mountAccessor: mountAccessor }, + initOverrides + ); + } + + /** + * Read the log level for all existing loggers. + */ + async loggersReadVerbosityLevelRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/loggers`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the log level for all existing loggers. + */ + async loggersReadVerbosityLevel(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.loggersReadVerbosityLevelRaw(initOverrides); + } + + /** + * Read the log level for a single logger. + */ + async loggersReadVerbosityLevelForRaw( + requestParameters: SystemApiLoggersReadVerbosityLevelForRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling loggersReadVerbosityLevelFor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/loggers/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the log level for a single logger. + */ + async loggersReadVerbosityLevelFor( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.loggersReadVerbosityLevelForRaw({ name: name }, initOverrides); + } + + /** + * Revert the all loggers to use log level provided in config. + */ + async loggersRevertVerbosityLevelRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/loggers`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revert the all loggers to use log level provided in config. + */ + async loggersRevertVerbosityLevel( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.loggersRevertVerbosityLevelRaw(initOverrides); + } + + /** + * Revert a single logger to use log level provided in config. + */ + async loggersRevertVerbosityLevelForRaw( + requestParameters: SystemApiLoggersRevertVerbosityLevelForRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling loggersRevertVerbosityLevelFor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/loggers/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Revert a single logger to use log level provided in config. + */ + async loggersRevertVerbosityLevelFor( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.loggersRevertVerbosityLevelForRaw({ name: name }, initOverrides); + } + + /** + * Modify the log level for all existing loggers. + */ + async loggersUpdateVerbosityLevelRaw( + requestParameters: SystemApiLoggersUpdateVerbosityLevelOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['loggersUpdateVerbosityLevelRequest'] == null) { + throw new runtime.RequiredError( + 'loggersUpdateVerbosityLevelRequest', + 'Required parameter "loggersUpdateVerbosityLevelRequest" was null or undefined when calling loggersUpdateVerbosityLevel().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/loggers`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LoggersUpdateVerbosityLevelRequestToJSON( + requestParameters['loggersUpdateVerbosityLevelRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Modify the log level for all existing loggers. + */ + async loggersUpdateVerbosityLevel( + loggersUpdateVerbosityLevelRequest: LoggersUpdateVerbosityLevelRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.loggersUpdateVerbosityLevelRaw( + { loggersUpdateVerbosityLevelRequest: loggersUpdateVerbosityLevelRequest }, + initOverrides + ); + } + + /** + * Modify the log level of a single logger. + */ + async loggersUpdateVerbosityLevelForRaw( + requestParameters: SystemApiLoggersUpdateVerbosityLevelForOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling loggersUpdateVerbosityLevelFor().' + ); + } + + if (requestParameters['loggersUpdateVerbosityLevelForRequest'] == null) { + throw new runtime.RequiredError( + 'loggersUpdateVerbosityLevelForRequest', + 'Required parameter "loggersUpdateVerbosityLevelForRequest" was null or undefined when calling loggersUpdateVerbosityLevelFor().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/loggers/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: LoggersUpdateVerbosityLevelForRequestToJSON( + requestParameters['loggersUpdateVerbosityLevelForRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Modify the log level of a single logger. + */ + async loggersUpdateVerbosityLevelFor( + name: string, + loggersUpdateVerbosityLevelForRequest: LoggersUpdateVerbosityLevelForRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.loggersUpdateVerbosityLevelForRaw( + { name: name, loggersUpdateVerbosityLevelForRequest: loggersUpdateVerbosityLevelForRequest }, + initOverrides + ); + } + + /** + */ + async metricsRaw( + requestParameters: SystemApiMetricsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/metrics`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async metrics(format?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.metricsRaw({ format: format }, initOverrides); + } + + /** + * Validates the login for the given MFA methods. Upon successful validation, it returns an auth response containing the client token + */ + async mfaValidateRaw( + requestParameters: SystemApiMfaValidateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mfaValidateRequest'] == null) { + throw new runtime.RequiredError( + 'mfaValidateRequest', + 'Required parameter "mfaValidateRequest" was null or undefined when calling mfaValidate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mfa/validate`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MfaValidateRequestToJSON(requestParameters['mfaValidateRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Validates the login for the given MFA methods. Upon successful validation, it returns an auth response containing the client token + */ + async mfaValidate( + mfaValidateRequest: MfaValidateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mfaValidateRaw({ mfaValidateRequest: mfaValidateRequest }, initOverrides); + } + + /** + */ + async monitorRaw( + requestParameters: SystemApiMonitorRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + if (requestParameters['logFormat'] != null) { + queryParameters['log_format'] = requestParameters['logFormat']; + } + + if (requestParameters['logLevel'] != null) { + queryParameters['log_level'] = requestParameters['logLevel']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/monitor`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async monitor( + logFormat?: string, + logLevel?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.monitorRaw({ logFormat: logFormat, logLevel: logLevel }, initOverrides); + } + + /** + * Disable the mount point specified at the given path. + */ + async mountsDisableSecretsEngineRaw( + requestParameters: SystemApiMountsDisableSecretsEngineRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling mountsDisableSecretsEngine().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mounts/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Disable the mount point specified at the given path. + */ + async mountsDisableSecretsEngine( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mountsDisableSecretsEngineRaw({ path: path }, initOverrides); + } + + /** + * Enable a new secrets engine at the given path. + */ + async mountsEnableSecretsEngineRaw( + requestParameters: SystemApiMountsEnableSecretsEngineOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling mountsEnableSecretsEngine().' + ); + } + + if (requestParameters['mountsEnableSecretsEngineRequest'] == null) { + throw new runtime.RequiredError( + 'mountsEnableSecretsEngineRequest', + 'Required parameter "mountsEnableSecretsEngineRequest" was null or undefined when calling mountsEnableSecretsEngine().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mounts/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MountsEnableSecretsEngineRequestToJSON(requestParameters['mountsEnableSecretsEngineRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Enable a new secrets engine at the given path. + */ + async mountsEnableSecretsEngine( + path: string, + mountsEnableSecretsEngineRequest: MountsEnableSecretsEngineRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mountsEnableSecretsEngineRaw( + { path: path, mountsEnableSecretsEngineRequest: mountsEnableSecretsEngineRequest }, + initOverrides + ); + } + + /** + */ + async mountsListSecretsEnginesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mounts`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async mountsListSecretsEngines(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.mountsListSecretsEnginesRaw(initOverrides); + } + + /** + * Read the configuration of the secret engine at the given path. + */ + async mountsReadConfigurationRaw( + requestParameters: SystemApiMountsReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling mountsReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mounts/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + MountsReadConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + * Read the configuration of the secret engine at the given path. + */ + async mountsReadConfiguration( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mountsReadConfigurationRaw({ path: path }, initOverrides); + return await response.value(); + } + + /** + */ + async mountsReadTuningInformationRaw( + requestParameters: SystemApiMountsReadTuningInformationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling mountsReadTuningInformation().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mounts/{path}/tune`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + MountsReadTuningInformationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async mountsReadTuningInformation( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.mountsReadTuningInformationRaw({ path: path }, initOverrides); + return await response.value(); + } + + /** + */ + async mountsTuneConfigurationParametersRaw( + requestParameters: SystemApiMountsTuneConfigurationParametersOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling mountsTuneConfigurationParameters().' + ); + } + + if (requestParameters['mountsTuneConfigurationParametersRequest'] == null) { + throw new runtime.RequiredError( + 'mountsTuneConfigurationParametersRequest', + 'Required parameter "mountsTuneConfigurationParametersRequest" was null or undefined when calling mountsTuneConfigurationParameters().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mounts/{path}/tune`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: MountsTuneConfigurationParametersRequestToJSON( + requestParameters['mountsTuneConfigurationParametersRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async mountsTuneConfigurationParameters( + path: string, + mountsTuneConfigurationParametersRequest: MountsTuneConfigurationParametersRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.mountsTuneConfigurationParametersRaw( + { path: path, mountsTuneConfigurationParametersRequest: mountsTuneConfigurationParametersRequest }, + initOverrides + ); + } + + /** + */ + async pluginsCatalogListPluginsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/catalog`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsCatalogListPluginsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pluginsCatalogListPlugins( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsCatalogListPluginsRaw(initOverrides); + return await response.value(); + } + + /** + * List the plugins in the catalog. + */ + async pluginsCatalogListPluginsWithTypeRaw( + requestParameters: SystemApiPluginsCatalogListPluginsWithTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsCatalogListPluginsWithType().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pluginsCatalogListPluginsWithType().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/catalog/{type}/`.replace( + `{${'type'}}`, + encodeURIComponent(String(requestParameters['type'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsCatalogListPluginsWithTypeResponseFromJSON(jsonValue) + ); + } + + /** + * List the plugins in the catalog. + */ + async pluginsCatalogListPluginsWithType( + type: string, + list: PluginsCatalogListPluginsWithTypeListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsCatalogListPluginsWithTypeRaw( + { type: type, list: list }, + initOverrides + ); + return await response.value(); + } + + /** + * Create or update the pinned version for a plugin with a given type and name. + */ + async pluginsCatalogPinsCreatePinnedVersionRaw( + requestParameters: SystemApiPluginsCatalogPinsCreatePinnedVersionOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogPinsCreatePinnedVersion().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsCatalogPinsCreatePinnedVersion().' + ); + } + + if (requestParameters['pluginsCatalogPinsCreatePinnedVersionRequest'] == null) { + throw new runtime.RequiredError( + 'pluginsCatalogPinsCreatePinnedVersionRequest', + 'Required parameter "pluginsCatalogPinsCreatePinnedVersionRequest" was null or undefined when calling pluginsCatalogPinsCreatePinnedVersion().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/plugins/pins/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PluginsCatalogPinsCreatePinnedVersionRequestToJSON( + requestParameters['pluginsCatalogPinsCreatePinnedVersionRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Create or update the pinned version for a plugin with a given type and name. + */ + async pluginsCatalogPinsCreatePinnedVersion( + name: string, + type: string, + pluginsCatalogPinsCreatePinnedVersionRequest: PluginsCatalogPinsCreatePinnedVersionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsCatalogPinsCreatePinnedVersionRaw( + { + name: name, + type: type, + pluginsCatalogPinsCreatePinnedVersionRequest: pluginsCatalogPinsCreatePinnedVersionRequest, + }, + initOverrides + ); + } + + /** + */ + async pluginsCatalogPinsListPinnedVersionsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/pins`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsCatalogPinsListPinnedVersionsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pluginsCatalogPinsListPinnedVersions( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsCatalogPinsListPinnedVersionsRaw(initOverrides); + return await response.value(); + } + + /** + * Return the pinned version for the plugin with the given type and name. + */ + async pluginsCatalogPinsReadPinnedVersionRaw( + requestParameters: SystemApiPluginsCatalogPinsReadPinnedVersionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogPinsReadPinnedVersion().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsCatalogPinsReadPinnedVersion().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/pins/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsCatalogPinsReadPinnedVersionResponseFromJSON(jsonValue) + ); + } + + /** + * Return the pinned version for the plugin with the given type and name. + */ + async pluginsCatalogPinsReadPinnedVersion( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsCatalogPinsReadPinnedVersionRaw( + { name: name, type: type }, + initOverrides + ); + return await response.value(); + } + + /** + * Remove any pinned version for the plugin with the given type and name. + */ + async pluginsCatalogPinsRemovePinnedVersionRaw( + requestParameters: SystemApiPluginsCatalogPinsRemovePinnedVersionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogPinsRemovePinnedVersion().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsCatalogPinsRemovePinnedVersion().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/pins/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove any pinned version for the plugin with the given type and name. + */ + async pluginsCatalogPinsRemovePinnedVersion( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsCatalogPinsRemovePinnedVersionRaw({ name: name, type: type }, initOverrides); + } + + /** + * Return the configuration data for the plugin with the given name. + */ + async pluginsCatalogReadPluginConfigurationRaw( + requestParameters: SystemApiPluginsCatalogReadPluginConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogReadPluginConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/catalog/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsCatalogReadPluginConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + * Return the configuration data for the plugin with the given name. + */ + async pluginsCatalogReadPluginConfiguration( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsCatalogReadPluginConfigurationRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + * Return the configuration data for the plugin with the given name. + */ + async pluginsCatalogReadPluginConfigurationWithTypeRaw( + requestParameters: SystemApiPluginsCatalogReadPluginConfigurationWithTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogReadPluginConfigurationWithType().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsCatalogReadPluginConfigurationWithType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/catalog/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsCatalogReadPluginConfigurationWithTypeResponseFromJSON(jsonValue) + ); + } + + /** + * Return the configuration data for the plugin with the given name. + */ + async pluginsCatalogReadPluginConfigurationWithType( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsCatalogReadPluginConfigurationWithTypeRaw( + { name: name, type: type }, + initOverrides + ); + return await response.value(); + } + + /** + * Register a new plugin, or updates an existing one with the supplied name. + */ + async pluginsCatalogRegisterPluginRaw( + requestParameters: SystemApiPluginsCatalogRegisterPluginOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogRegisterPlugin().' + ); + } + + if (requestParameters['pluginsCatalogRegisterPluginRequest'] == null) { + throw new runtime.RequiredError( + 'pluginsCatalogRegisterPluginRequest', + 'Required parameter "pluginsCatalogRegisterPluginRequest" was null or undefined when calling pluginsCatalogRegisterPlugin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/plugins/catalog/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PluginsCatalogRegisterPluginRequestToJSON( + requestParameters['pluginsCatalogRegisterPluginRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Register a new plugin, or updates an existing one with the supplied name. + */ + async pluginsCatalogRegisterPlugin( + name: string, + pluginsCatalogRegisterPluginRequest: PluginsCatalogRegisterPluginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsCatalogRegisterPluginRaw( + { name: name, pluginsCatalogRegisterPluginRequest: pluginsCatalogRegisterPluginRequest }, + initOverrides + ); + } + + /** + * Register a new plugin, or updates an existing one with the supplied name. + */ + async pluginsCatalogRegisterPluginWithTypeRaw( + requestParameters: SystemApiPluginsCatalogRegisterPluginWithTypeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogRegisterPluginWithType().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsCatalogRegisterPluginWithType().' + ); + } + + if (requestParameters['pluginsCatalogRegisterPluginWithTypeRequest'] == null) { + throw new runtime.RequiredError( + 'pluginsCatalogRegisterPluginWithTypeRequest', + 'Required parameter "pluginsCatalogRegisterPluginWithTypeRequest" was null or undefined when calling pluginsCatalogRegisterPluginWithType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/plugins/catalog/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PluginsCatalogRegisterPluginWithTypeRequestToJSON( + requestParameters['pluginsCatalogRegisterPluginWithTypeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Register a new plugin, or updates an existing one with the supplied name. + */ + async pluginsCatalogRegisterPluginWithType( + name: string, + type: string, + pluginsCatalogRegisterPluginWithTypeRequest: PluginsCatalogRegisterPluginWithTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsCatalogRegisterPluginWithTypeRaw( + { + name: name, + type: type, + pluginsCatalogRegisterPluginWithTypeRequest: pluginsCatalogRegisterPluginWithTypeRequest, + }, + initOverrides + ); + } + + /** + * Remove the plugin with the given name. + */ + async pluginsCatalogRemovePluginRaw( + requestParameters: SystemApiPluginsCatalogRemovePluginRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogRemovePlugin().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/catalog/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove the plugin with the given name. + */ + async pluginsCatalogRemovePlugin( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsCatalogRemovePluginRaw({ name: name }, initOverrides); + } + + /** + * Remove the plugin with the given name. + */ + async pluginsCatalogRemovePluginWithTypeRaw( + requestParameters: SystemApiPluginsCatalogRemovePluginWithTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsCatalogRemovePluginWithType().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsCatalogRemovePluginWithType().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/catalog/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove the plugin with the given name. + */ + async pluginsCatalogRemovePluginWithType( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsCatalogRemovePluginWithTypeRaw({ name: name, type: type }, initOverrides); + } + + /** + * Either the plugin name (`plugin`) or the desired plugin backend mounts (`mounts`) must be provided, but not both. In the case that the plugin name is provided, all mounted paths that use that plugin backend will be reloaded. If (`scope`) is provided and is (`global`), the plugin(s) are reloaded globally. + * Reload mounted plugin backends. + */ + async pluginsReloadBackendsRaw( + requestParameters: SystemApiPluginsReloadBackendsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['pluginsReloadBackendsRequest'] == null) { + throw new runtime.RequiredError( + 'pluginsReloadBackendsRequest', + 'Required parameter "pluginsReloadBackendsRequest" was null or undefined when calling pluginsReloadBackends().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/plugins/reload/backend`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PluginsReloadBackendsRequestToJSON(requestParameters['pluginsReloadBackendsRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsReloadBackendsResponseFromJSON(jsonValue) + ); + } + + /** + * Either the plugin name (`plugin`) or the desired plugin backend mounts (`mounts`) must be provided, but not both. In the case that the plugin name is provided, all mounted paths that use that plugin backend will be reloaded. If (`scope`) is provided and is (`global`), the plugin(s) are reloaded globally. + * Reload mounted plugin backends. + */ + async pluginsReloadBackends( + pluginsReloadBackendsRequest: PluginsReloadBackendsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsReloadBackendsRaw( + { pluginsReloadBackendsRequest: pluginsReloadBackendsRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async pluginsRuntimesCatalogListPluginsRuntimesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/runtimes/catalog`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pluginsRuntimesCatalogListPluginsRuntimes( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsRuntimesCatalogListPluginsRuntimesRaw(initOverrides); + return await response.value(); + } + + /** + */ + async pluginsRuntimesCatalogListPluginsRuntimes_3Raw( + requestParameters: SystemApiPluginsRuntimesCatalogListPluginsRuntimes0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling pluginsRuntimesCatalogListPluginsRuntimes_3().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/runtimes/catalog/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async pluginsRuntimesCatalogListPluginsRuntimes_3( + list: PluginsRuntimesCatalogListPluginsRuntimes0ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsRuntimesCatalogListPluginsRuntimes_3Raw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Return the configuration data for the plugin runtime with the given name. + */ + async pluginsRuntimesCatalogReadPluginRuntimeConfigurationRaw( + requestParameters: SystemApiPluginsRuntimesCatalogReadPluginRuntimeConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsRuntimesCatalogReadPluginRuntimeConfiguration().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsRuntimesCatalogReadPluginRuntimeConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/runtimes/catalog/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + * Return the configuration data for the plugin runtime with the given name. + */ + async pluginsRuntimesCatalogReadPluginRuntimeConfiguration( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.pluginsRuntimesCatalogReadPluginRuntimeConfigurationRaw( + { name: name, type: type }, + initOverrides + ); + return await response.value(); + } + + /** + * Register a new plugin runtime, or updates an existing one with the supplied name. + */ + async pluginsRuntimesCatalogRegisterPluginRuntimeRaw( + requestParameters: SystemApiPluginsRuntimesCatalogRegisterPluginRuntimeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsRuntimesCatalogRegisterPluginRuntime().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsRuntimesCatalogRegisterPluginRuntime().' + ); + } + + if (requestParameters['pluginsRuntimesCatalogRegisterPluginRuntimeRequest'] == null) { + throw new runtime.RequiredError( + 'pluginsRuntimesCatalogRegisterPluginRuntimeRequest', + 'Required parameter "pluginsRuntimesCatalogRegisterPluginRuntimeRequest" was null or undefined when calling pluginsRuntimesCatalogRegisterPluginRuntime().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/plugins/runtimes/catalog/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PluginsRuntimesCatalogRegisterPluginRuntimeRequestToJSON( + requestParameters['pluginsRuntimesCatalogRegisterPluginRuntimeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Register a new plugin runtime, or updates an existing one with the supplied name. + */ + async pluginsRuntimesCatalogRegisterPluginRuntime( + name: string, + type: string, + pluginsRuntimesCatalogRegisterPluginRuntimeRequest: PluginsRuntimesCatalogRegisterPluginRuntimeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsRuntimesCatalogRegisterPluginRuntimeRaw( + { + name: name, + type: type, + pluginsRuntimesCatalogRegisterPluginRuntimeRequest: + pluginsRuntimesCatalogRegisterPluginRuntimeRequest, + }, + initOverrides + ); + } + + /** + * Remove the plugin runtime with the given name. + */ + async pluginsRuntimesCatalogRemovePluginRuntimeRaw( + requestParameters: SystemApiPluginsRuntimesCatalogRemovePluginRuntimeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling pluginsRuntimesCatalogRemovePluginRuntime().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling pluginsRuntimesCatalogRemovePluginRuntime().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/runtimes/catalog/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove the plugin runtime with the given name. + */ + async pluginsRuntimesCatalogRemovePluginRuntime( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pluginsRuntimesCatalogRemovePluginRuntimeRaw({ name: name, type: type }, initOverrides); + } + + /** + * Delete the ACL policy with the given name. + */ + async policiesDeleteAclPolicyRaw( + requestParameters: SystemApiPoliciesDeleteAclPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesDeleteAclPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/acl/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the ACL policy with the given name. + */ + async policiesDeleteAclPolicy( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.policiesDeleteAclPolicyRaw({ name: name }, initOverrides); + } + + /** + * Delete the policy with the given name. + */ + async policiesDeleteAclPolicy2Raw( + requestParameters: SystemApiPoliciesDeleteAclPolicy2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesDeleteAclPolicy2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policy/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the policy with the given name. + */ + async policiesDeleteAclPolicy2( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.policiesDeleteAclPolicy2Raw({ name: name }, initOverrides); + } + + /** + * Delete a password policy. + */ + async policiesDeletePasswordPolicyRaw( + requestParameters: SystemApiPoliciesDeletePasswordPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesDeletePasswordPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/password/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete a password policy. + */ + async policiesDeletePasswordPolicy( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.policiesDeletePasswordPolicyRaw({ name: name }, initOverrides); + } + + /** + * Generate a password from an existing password policy. + */ + async policiesGeneratePasswordFromPasswordPolicyRaw( + requestParameters: SystemApiPoliciesGeneratePasswordFromPasswordPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesGeneratePasswordFromPasswordPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/password/{name}/generate`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PoliciesGeneratePasswordFromPasswordPolicyResponseFromJSON(jsonValue) + ); + } + + /** + * Generate a password from an existing password policy. + */ + async policiesGeneratePasswordFromPasswordPolicy( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesGeneratePasswordFromPasswordPolicyRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async policiesListAclPoliciesRaw( + requestParameters: SystemApiPoliciesListAclPoliciesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling policiesListAclPolicies().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/acl/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PoliciesListAclPoliciesResponseFromJSON(jsonValue) + ); + } + + /** + */ + async policiesListAclPolicies( + list: PoliciesListAclPoliciesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesListAclPoliciesRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async policiesListAclPolicies2Raw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policy`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PoliciesListAclPolicies2ResponseFromJSON(jsonValue) + ); + } + + /** + */ + async policiesListAclPolicies2( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesListAclPolicies2Raw(initOverrides); + return await response.value(); + } + + /** + */ + async policiesListAclPolicies3Raw( + requestParameters: SystemApiPoliciesListAclPolicies3Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling policiesListAclPolicies3().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policy/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PoliciesListAclPolicies3ResponseFromJSON(jsonValue) + ); + } + + /** + */ + async policiesListAclPolicies3( + list: PoliciesListAclPolicies3ListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesListAclPolicies3Raw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List the existing password policies. + */ + async policiesListPasswordPoliciesRaw( + requestParameters: SystemApiPoliciesListPasswordPoliciesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling policiesListPasswordPolicies().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/password/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List the existing password policies. + */ + async policiesListPasswordPolicies( + list: PoliciesListPasswordPoliciesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesListPasswordPoliciesRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Retrieve information about the named ACL policy. + */ + async policiesReadAclPolicyRaw( + requestParameters: SystemApiPoliciesReadAclPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesReadAclPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/acl/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PoliciesReadAclPolicyResponseFromJSON(jsonValue) + ); + } + + /** + * Retrieve information about the named ACL policy. + */ + async policiesReadAclPolicy( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesReadAclPolicyRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + * Retrieve the policy body for the named policy. + */ + async policiesReadAclPolicy2Raw( + requestParameters: SystemApiPoliciesReadAclPolicy2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesReadAclPolicy2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policy/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PoliciesReadAclPolicy2ResponseFromJSON(jsonValue) + ); + } + + /** + * Retrieve the policy body for the named policy. + */ + async policiesReadAclPolicy2( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesReadAclPolicy2Raw({ name: name }, initOverrides); + return await response.value(); + } + + /** + * Retrieve an existing password policy. + */ + async policiesReadPasswordPolicyRaw( + requestParameters: SystemApiPoliciesReadPasswordPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesReadPasswordPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/password/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + PoliciesReadPasswordPolicyResponseFromJSON(jsonValue) + ); + } + + /** + * Retrieve an existing password policy. + */ + async policiesReadPasswordPolicy( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.policiesReadPasswordPolicyRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + * Add a new or update an existing ACL policy. + */ + async policiesWriteAclPolicyRaw( + requestParameters: SystemApiPoliciesWriteAclPolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesWriteAclPolicy().' + ); + } + + if (requestParameters['policiesWriteAclPolicyRequest'] == null) { + throw new runtime.RequiredError( + 'policiesWriteAclPolicyRequest', + 'Required parameter "policiesWriteAclPolicyRequest" was null or undefined when calling policiesWriteAclPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/policies/acl/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PoliciesWriteAclPolicyRequestToJSON(requestParameters['policiesWriteAclPolicyRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Add a new or update an existing ACL policy. + */ + async policiesWriteAclPolicy( + name: string, + policiesWriteAclPolicyRequest: PoliciesWriteAclPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.policiesWriteAclPolicyRaw( + { name: name, policiesWriteAclPolicyRequest: policiesWriteAclPolicyRequest }, + initOverrides + ); + } + + /** + * Add a new or update an existing policy. + */ + async policiesWriteAclPolicy2Raw( + requestParameters: SystemApiPoliciesWriteAclPolicy2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesWriteAclPolicy2().' + ); + } + + if (requestParameters['policiesWriteAclPolicy2Request'] == null) { + throw new runtime.RequiredError( + 'policiesWriteAclPolicy2Request', + 'Required parameter "policiesWriteAclPolicy2Request" was null or undefined when calling policiesWriteAclPolicy2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/policy/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PoliciesWriteAclPolicy2RequestToJSON(requestParameters['policiesWriteAclPolicy2Request']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Add a new or update an existing policy. + */ + async policiesWriteAclPolicy2( + name: string, + policiesWriteAclPolicy2Request: PoliciesWriteAclPolicy2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.policiesWriteAclPolicy2Raw( + { name: name, policiesWriteAclPolicy2Request: policiesWriteAclPolicy2Request }, + initOverrides + ); + } + + /** + * Add a new or update an existing password policy. + */ + async policiesWritePasswordPolicyRaw( + requestParameters: SystemApiPoliciesWritePasswordPolicyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling policiesWritePasswordPolicy().' + ); + } + + if (requestParameters['policiesWritePasswordPolicyRequest'] == null) { + throw new runtime.RequiredError( + 'policiesWritePasswordPolicyRequest', + 'Required parameter "policiesWritePasswordPolicyRequest" was null or undefined when calling policiesWritePasswordPolicy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/policies/password/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: PoliciesWritePasswordPolicyRequestToJSON( + requestParameters['policiesWritePasswordPolicyRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Add a new or update an existing password policy. + */ + async policiesWritePasswordPolicy( + name: string, + policiesWritePasswordPolicyRequest: PoliciesWritePasswordPolicyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.policiesWritePasswordPolicyRaw( + { name: name, policiesWritePasswordPolicyRequest: policiesWritePasswordPolicyRequest }, + initOverrides + ); + } + + /** + * Returns stack traces that led to blocking on synchronization primitives + * Returns stack traces that led to blocking on synchronization primitives + */ + async pprofBlockingRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/block`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns stack traces that led to blocking on synchronization primitives + * Returns stack traces that led to blocking on synchronization primitives + */ + async pprofBlocking(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofBlockingRaw(initOverrides); + } + + /** + * Returns the running program\'s command line, with arguments separated by NUL bytes. + * Returns the running program\'s command line. + */ + async pprofCommandLineRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/cmdline`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the running program\'s command line, with arguments separated by NUL bytes. + * Returns the running program\'s command line. + */ + async pprofCommandLine(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofCommandLineRaw(initOverrides); + } + + /** + * Returns a pprof-formatted cpu profile payload. Profiling lasts for duration specified in seconds GET parameter, or for 30 seconds if not specified. + * Returns a pprof-formatted cpu profile payload. + */ + async pprofCpuProfileRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/profile`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns a pprof-formatted cpu profile payload. Profiling lasts for duration specified in seconds GET parameter, or for 30 seconds if not specified. + * Returns a pprof-formatted cpu profile payload. + */ + async pprofCpuProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofCpuProfileRaw(initOverrides); + } + + /** + * Returns the execution trace in binary form. Tracing lasts for duration specified in seconds GET parameter, or for 1 second if not specified. + * Returns the execution trace in binary form. + */ + async pprofExecutionTraceRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/trace`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the execution trace in binary form. Tracing lasts for duration specified in seconds GET parameter, or for 1 second if not specified. + * Returns the execution trace in binary form. + */ + async pprofExecutionTrace(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofExecutionTraceRaw(initOverrides); + } + + /** + * Returns stack traces of all current goroutines. + * Returns stack traces of all current goroutines. + */ + async pprofGoroutinesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/goroutine`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns stack traces of all current goroutines. + * Returns stack traces of all current goroutines. + */ + async pprofGoroutines(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofGoroutinesRaw(initOverrides); + } + + /** + * Returns an HTML page listing the available profiles. This should be mainly accessed via browsers or applications that can render pages. + * Returns an HTML page listing the available profiles. + */ + async pprofIndexRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns an HTML page listing the available profiles. This should be mainly accessed via browsers or applications that can render pages. + * Returns an HTML page listing the available profiles. + */ + async pprofIndex(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofIndexRaw(initOverrides); + } + + /** + * Returns a sampling of all past memory allocations. + * Returns a sampling of all past memory allocations. + */ + async pprofMemoryAllocationsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/allocs`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns a sampling of all past memory allocations. + * Returns a sampling of all past memory allocations. + */ + async pprofMemoryAllocations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofMemoryAllocationsRaw(initOverrides); + } + + /** + * Returns a sampling of memory allocations of live object. + * Returns a sampling of memory allocations of live object. + */ + async pprofMemoryAllocationsLiveRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/heap`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns a sampling of memory allocations of live object. + * Returns a sampling of memory allocations of live object. + */ + async pprofMemoryAllocationsLive( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.pprofMemoryAllocationsLiveRaw(initOverrides); + } + + /** + * Returns stack traces of holders of contended mutexes + * Returns stack traces of holders of contended mutexes + */ + async pprofMutexesRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/mutex`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns stack traces of holders of contended mutexes + * Returns stack traces of holders of contended mutexes + */ + async pprofMutexes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofMutexesRaw(initOverrides); + } + + /** + * Returns the program counters listed in the request. + * Returns the program counters listed in the request. + */ + async pprofSymbolsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/symbol`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the program counters listed in the request. + * Returns the program counters listed in the request. + */ + async pprofSymbols(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofSymbolsRaw(initOverrides); + } + + /** + * Returns stack traces that led to the creation of new OS threads + * Returns stack traces that led to the creation of new OS threads + */ + async pprofThreadCreationsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/pprof/threadcreate`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns stack traces that led to the creation of new OS threads + * Returns stack traces that led to the creation of new OS threads + */ + async pprofThreadCreations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.pprofThreadCreationsRaw(initOverrides); + } + + /** + */ + async queryTokenAccessorCapabilitiesRaw( + requestParameters: SystemApiQueryTokenAccessorCapabilitiesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['queryTokenAccessorCapabilitiesRequest'] == null) { + throw new runtime.RequiredError( + 'queryTokenAccessorCapabilitiesRequest', + 'Required parameter "queryTokenAccessorCapabilitiesRequest" was null or undefined when calling queryTokenAccessorCapabilities().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/capabilities-accessor`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: QueryTokenAccessorCapabilitiesRequestToJSON( + requestParameters['queryTokenAccessorCapabilitiesRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async queryTokenAccessorCapabilities( + queryTokenAccessorCapabilitiesRequest: QueryTokenAccessorCapabilitiesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.queryTokenAccessorCapabilitiesRaw( + { queryTokenAccessorCapabilitiesRequest: queryTokenAccessorCapabilitiesRequest }, + initOverrides + ); + } + + /** + */ + async queryTokenCapabilitiesRaw( + requestParameters: SystemApiQueryTokenCapabilitiesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['queryTokenCapabilitiesRequest'] == null) { + throw new runtime.RequiredError( + 'queryTokenCapabilitiesRequest', + 'Required parameter "queryTokenCapabilitiesRequest" was null or undefined when calling queryTokenCapabilities().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/capabilities`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: QueryTokenCapabilitiesRequestToJSON(requestParameters['queryTokenCapabilitiesRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async queryTokenCapabilities( + queryTokenCapabilitiesRequest: QueryTokenCapabilitiesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.queryTokenCapabilitiesRaw( + { queryTokenCapabilitiesRequest: queryTokenCapabilitiesRequest }, + initOverrides + ); + } + + /** + */ + async queryTokenSelfCapabilitiesRaw( + requestParameters: SystemApiQueryTokenSelfCapabilitiesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['queryTokenSelfCapabilitiesRequest'] == null) { + throw new runtime.RequiredError( + 'queryTokenSelfCapabilitiesRequest', + 'Required parameter "queryTokenSelfCapabilitiesRequest" was null or undefined when calling queryTokenSelfCapabilities().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/capabilities-self`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: QueryTokenSelfCapabilitiesRequestToJSON(requestParameters['queryTokenSelfCapabilitiesRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async queryTokenSelfCapabilities( + queryTokenSelfCapabilitiesRequest: QueryTokenSelfCapabilitiesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.queryTokenSelfCapabilitiesRaw( + { queryTokenSelfCapabilitiesRequest: queryTokenSelfCapabilitiesRequest }, + initOverrides + ); + } + + /** + */ + async rateLimitQuotasConfigureRaw( + requestParameters: SystemApiRateLimitQuotasConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rateLimitQuotasConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'rateLimitQuotasConfigureRequest', + 'Required parameter "rateLimitQuotasConfigureRequest" was null or undefined when calling rateLimitQuotasConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/quotas/config`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RateLimitQuotasConfigureRequestToJSON(requestParameters['rateLimitQuotasConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async rateLimitQuotasConfigure( + rateLimitQuotasConfigureRequest: RateLimitQuotasConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rateLimitQuotasConfigureRaw( + { rateLimitQuotasConfigureRequest: rateLimitQuotasConfigureRequest }, + initOverrides + ); + } + + /** + */ + async rateLimitQuotasDeleteRaw( + requestParameters: SystemApiRateLimitQuotasDeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling rateLimitQuotasDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/quotas/rate-limit/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async rateLimitQuotasDelete( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rateLimitQuotasDeleteRaw({ name: name }, initOverrides); + } + + /** + */ + async rateLimitQuotasListRaw( + requestParameters: SystemApiRateLimitQuotasListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling rateLimitQuotasList().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/quotas/rate-limit/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async rateLimitQuotasList( + list: RateLimitQuotasListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rateLimitQuotasListRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async rateLimitQuotasReadRaw( + requestParameters: SystemApiRateLimitQuotasReadRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling rateLimitQuotasRead().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/quotas/rate-limit/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RateLimitQuotasReadResponseFromJSON(jsonValue) + ); + } + + /** + */ + async rateLimitQuotasRead( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rateLimitQuotasReadRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async rateLimitQuotasReadConfigurationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/quotas/config`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RateLimitQuotasReadConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + */ + async rateLimitQuotasReadConfiguration( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rateLimitQuotasReadConfigurationRaw(initOverrides); + return await response.value(); + } + + /** + */ + async rateLimitQuotasWriteRaw( + requestParameters: SystemApiRateLimitQuotasWriteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling rateLimitQuotasWrite().' + ); + } + + if (requestParameters['rateLimitQuotasWriteRequest'] == null) { + throw new runtime.RequiredError( + 'rateLimitQuotasWriteRequest', + 'Required parameter "rateLimitQuotasWriteRequest" was null or undefined when calling rateLimitQuotasWrite().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/quotas/rate-limit/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RateLimitQuotasWriteRequestToJSON(requestParameters['rateLimitQuotasWriteRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async rateLimitQuotasWrite( + name: string, + rateLimitQuotasWriteRequest: RateLimitQuotasWriteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rateLimitQuotasWriteRaw( + { name: name, rateLimitQuotasWriteRequest: rateLimitQuotasWriteRequest }, + initOverrides + ); + } + + /** + * Delete the key with given path. + */ + async rawDeleteRaw( + requestParameters: SystemApiRawDeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling rawDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/raw/{path}`.replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the key with given path. + */ + async rawDelete(path: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.rawDeleteRaw({ path: path }, initOverrides); + } + + /** + * Return a list keys for a given path prefix. + */ + async rawListRaw( + requestParameters: SystemApiRawListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling rawList().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling rawList().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/raw/{path}/`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Return a list keys for a given path prefix. + */ + async rawList( + path: string, + list: RawListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rawListRaw({ path: path, list: list }, initOverrides); + return await response.value(); + } + + /** + * Read the value of the key at the given path. + */ + async rawReadRaw( + requestParameters: SystemApiRawReadRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling rawRead().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/raw/{path}`.replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => RawReadResponseFromJSON(jsonValue)); + } + + /** + * Read the value of the key at the given path. + */ + async rawRead( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rawReadRaw({ path: path }, initOverrides); + return await response.value(); + } + + /** + * Update the value of the key at the given path. + */ + async rawWriteRaw( + requestParameters: SystemApiRawWriteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling rawWrite().' + ); + } + + if (requestParameters['rawWriteRequest'] == null) { + throw new runtime.RequiredError( + 'rawWriteRequest', + 'Required parameter "rawWriteRequest" was null or undefined when calling rawWrite().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/raw/{path}`.replace(`{${'path'}}`, encodeURIComponent(String(requestParameters['path']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RawWriteRequestToJSON(requestParameters['rawWriteRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update the value of the key at the given path. + */ + async rawWrite( + path: string, + rawWriteRequest: RawWriteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rawWriteRaw({ path: path, rawWriteRequest: rawWriteRequest }, initOverrides); + } + + /** + * Returns the available and activated activation-flagged features. + */ + async readActivationFlagsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/activation-flags`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the available and activated activation-flagged features. + */ + async readActivationFlags(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.readActivationFlagsRaw(initOverrides); + } + + /** + * Returns the health status of Vault. + */ + async readHealthStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/health`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the health status of Vault. + */ + async readHealthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.readHealthStatusRaw(initOverrides); + } + + /** + * Returns the initialization status of Vault. + */ + async readInitializationStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/init`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Returns the initialization status of Vault. + */ + async readInitializationStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.readInitializationStatusRaw(initOverrides); + } + + /** + * The sanitized output strips configuration values in the storage, HA storage, and seals stanzas, which may contain sensitive values such as API tokens. It also removes any token or secret fields in other stanzas, such as the circonus_api_token from telemetry. + * Return a sanitized version of the Vault server configuration. + */ + async readSanitizedConfigurationStateRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/state/sanitized`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The sanitized output strips configuration values in the storage, HA storage, and seals stanzas, which may contain sensitive values such as API tokens. It also removes any token or secret fields in other stanzas, such as the circonus_api_token from telemetry. + * Return a sanitized version of the Vault server configuration. + */ + async readSanitizedConfigurationState( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.readSanitizedConfigurationStateRaw(initOverrides); + } + + /** + * Read the current Census agent\'s snapshot fields. + */ + async readVerbosityLevelForRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/census/snapshot`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current Census agent\'s snapshot fields. + */ + async readVerbosityLevelFor(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.readVerbosityLevelForRaw(initOverrides); + } + + /** + * Read the current status of the request limiter. + */ + async readVerbosityLevelFor_4Raw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/internal/request-limiter/status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read the current status of the request limiter. + */ + async readVerbosityLevelFor_4(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.readVerbosityLevelFor_4Raw(initOverrides); + } + + /** + * Look up wrapping properties for the given token. + */ + async readWrappingPropertiesRaw( + requestParameters: SystemApiReadWrappingPropertiesOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['readWrappingPropertiesRequest'] == null) { + throw new runtime.RequiredError( + 'readWrappingPropertiesRequest', + 'Required parameter "readWrappingPropertiesRequest" was null or undefined when calling readWrappingProperties().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/wrapping/lookup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReadWrappingPropertiesRequestToJSON(requestParameters['readWrappingPropertiesRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + ReadWrappingPropertiesResponseFromJSON(jsonValue) + ); + } + + /** + * Look up wrapping properties for the given token. + */ + async readWrappingProperties( + readWrappingPropertiesRequest: ReadWrappingPropertiesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.readWrappingPropertiesRaw( + { readWrappingPropertiesRequest: readWrappingPropertiesRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Look up wrapping properties for the requester\'s token. + */ + async readWrappingProperties2Raw( + requestParameters: SystemApiReadWrappingProperties2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + if (requestParameters['token'] != null) { + queryParameters['token'] = requestParameters['token']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/wrapping/lookup`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + ReadWrappingProperties2ResponseFromJSON(jsonValue) + ); + } + + /** + * Look up wrapping properties for the requester\'s token. + */ + async readWrappingProperties2( + token?: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.readWrappingProperties2Raw({ token: token }, initOverrides); + return await response.value(); + } + + /** + * This clears the rekey settings as well as any progress made. This must be called to change the parameters of the rekey. Note: verification is still a part of a rekey. If rekeying is canceled during the verification flow, the current unseal keys remain valid. + * Cancels any in-progress rekey. + */ + async rekeyAttemptCancelRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/init`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This clears the rekey settings as well as any progress made. This must be called to change the parameters of the rekey. Note: verification is still a part of a rekey. If rekeying is canceled during the verification flow, the current unseal keys remain valid. + * Cancels any in-progress rekey. + */ + async rekeyAttemptCancel(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.rekeyAttemptCancelRaw(initOverrides); + } + + /** + * Only a single rekey attempt can take place at a time, and changing the parameters of a rekey requires canceling and starting a new rekey, which will also provide a new nonce. + * Initializes a new rekey attempt. + */ + async rekeyAttemptInitializeRaw( + requestParameters: SystemApiRekeyAttemptInitializeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rekeyAttemptInitializeRequest'] == null) { + throw new runtime.RequiredError( + 'rekeyAttemptInitializeRequest', + 'Required parameter "rekeyAttemptInitializeRequest" was null or undefined when calling rekeyAttemptInitialize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/rekey/init`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RekeyAttemptInitializeRequestToJSON(requestParameters['rekeyAttemptInitializeRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyAttemptInitializeResponseFromJSON(jsonValue) + ); + } + + /** + * Only a single rekey attempt can take place at a time, and changing the parameters of a rekey requires canceling and starting a new rekey, which will also provide a new nonce. + * Initializes a new rekey attempt. + */ + async rekeyAttemptInitialize( + rekeyAttemptInitializeRequest: RekeyAttemptInitializeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyAttemptInitializeRaw( + { rekeyAttemptInitializeRequest: rekeyAttemptInitializeRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Reads the configuration and progress of the current rekey attempt. + */ + async rekeyAttemptReadProgressRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/init`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyAttemptReadProgressResponseFromJSON(jsonValue) + ); + } + + /** + * Reads the configuration and progress of the current rekey attempt. + */ + async rekeyAttemptReadProgress( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyAttemptReadProgressRaw(initOverrides); + return await response.value(); + } + + /** + * Enter a single unseal key share to progress the rekey of the Vault. + */ + async rekeyAttemptUpdateRaw( + requestParameters: SystemApiRekeyAttemptUpdateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rekeyAttemptUpdateRequest'] == null) { + throw new runtime.RequiredError( + 'rekeyAttemptUpdateRequest', + 'Required parameter "rekeyAttemptUpdateRequest" was null or undefined when calling rekeyAttemptUpdate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/rekey/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RekeyAttemptUpdateRequestToJSON(requestParameters['rekeyAttemptUpdateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyAttemptUpdateResponseFromJSON(jsonValue) + ); + } + + /** + * Enter a single unseal key share to progress the rekey of the Vault. + */ + async rekeyAttemptUpdate( + rekeyAttemptUpdateRequest: RekeyAttemptUpdateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyAttemptUpdateRaw( + { rekeyAttemptUpdateRequest: rekeyAttemptUpdateRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Delete the backup copy of PGP-encrypted unseal keys. + */ + async rekeyDeleteBackupKeyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/backup`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete the backup copy of PGP-encrypted unseal keys. + */ + async rekeyDeleteBackupKey(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.rekeyDeleteBackupKeyRaw(initOverrides); + } + + /** + */ + async rekeyDeleteBackupRecoveryKeyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/recovery-key-backup`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async rekeyDeleteBackupRecoveryKey( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rekeyDeleteBackupRecoveryKeyRaw(initOverrides); + } + + /** + * Return the backup copy of PGP-encrypted unseal keys. + */ + async rekeyReadBackupKeyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/backup`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyReadBackupKeyResponseFromJSON(jsonValue) + ); + } + + /** + * Return the backup copy of PGP-encrypted unseal keys. + */ + async rekeyReadBackupKey( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyReadBackupKeyRaw(initOverrides); + return await response.value(); + } + + /** + */ + async rekeyReadBackupRecoveryKeyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/recovery-key-backup`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyReadBackupRecoveryKeyResponseFromJSON(jsonValue) + ); + } + + /** + */ + async rekeyReadBackupRecoveryKey( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyReadBackupRecoveryKeyRaw(initOverrides); + return await response.value(); + } + + /** + * This clears any progress made and resets the nonce. Unlike a `DELETE` against `sys/rekey/init`, this only resets the current verification operation, not the entire rekey atttempt. + * Cancel any in-progress rekey verification operation. + */ + async rekeyVerificationCancelRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/verify`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyVerificationCancelResponseFromJSON(jsonValue) + ); + } + + /** + * This clears any progress made and resets the nonce. Unlike a `DELETE` against `sys/rekey/init`, this only resets the current verification operation, not the entire rekey atttempt. + * Cancel any in-progress rekey verification operation. + */ + async rekeyVerificationCancel( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyVerificationCancelRaw(initOverrides); + return await response.value(); + } + + /** + * Read the configuration and progress of the current rekey verification attempt. + */ + async rekeyVerificationReadProgressRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/rekey/verify`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyVerificationReadProgressResponseFromJSON(jsonValue) + ); + } + + /** + * Read the configuration and progress of the current rekey verification attempt. + */ + async rekeyVerificationReadProgress( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyVerificationReadProgressRaw(initOverrides); + return await response.value(); + } + + /** + * Enter a single new key share to progress the rekey verification operation. + */ + async rekeyVerificationUpdateRaw( + requestParameters: SystemApiRekeyVerificationUpdateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rekeyVerificationUpdateRequest'] == null) { + throw new runtime.RequiredError( + 'rekeyVerificationUpdateRequest', + 'Required parameter "rekeyVerificationUpdateRequest" was null or undefined when calling rekeyVerificationUpdate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/rekey/verify`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RekeyVerificationUpdateRequestToJSON(requestParameters['rekeyVerificationUpdateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RekeyVerificationUpdateResponseFromJSON(jsonValue) + ); + } + + /** + * Enter a single new key share to progress the rekey verification operation. + */ + async rekeyVerificationUpdate( + rekeyVerificationUpdateRequest: RekeyVerificationUpdateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rekeyVerificationUpdateRaw( + { rekeyVerificationUpdateRequest: rekeyVerificationUpdateRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Reload all plugins of a specific name and type across all namespaces. If \"scope\" is provided and is \"global\", the plugin is reloaded across all nodes and clusters. If a new plugin version has been pinned, this will ensure all instances start using the new version. + * Reload all instances of a specific plugin. + */ + async reloadPluginsRaw( + requestParameters: SystemApiReloadPluginsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling reloadPlugins().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling reloadPlugins().' + ); + } + + if (requestParameters['reloadPluginsRequest'] == null) { + throw new runtime.RequiredError( + 'reloadPluginsRequest', + 'Required parameter "reloadPluginsRequest" was null or undefined when calling reloadPlugins().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/plugins/reload/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: ReloadPluginsRequestToJSON(requestParameters['reloadPluginsRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => ReloadPluginsResponseFromJSON(jsonValue)); + } + + /** + * Reload all plugins of a specific name and type across all namespaces. If \"scope\" is provided and is \"global\", the plugin is reloaded across all nodes and clusters. If a new plugin version has been pinned, this will ensure all instances start using the new version. + * Reload all instances of a specific plugin. + */ + async reloadPlugins( + name: string, + type: string, + reloadPluginsRequest: ReloadPluginsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.reloadPluginsRaw( + { name: name, type: type, reloadPluginsRequest: reloadPluginsRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Reload the given subsystem + */ + async reloadSubsystemRaw( + requestParameters: SystemApiReloadSubsystemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['subsystem'] == null) { + throw new runtime.RequiredError( + 'subsystem', + 'Required parameter "subsystem" was null or undefined when calling reloadSubsystem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/reload/{subsystem}`.replace( + `{${'subsystem'}}`, + encodeURIComponent(String(requestParameters['subsystem'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Reload the given subsystem + */ + async reloadSubsystem( + subsystem: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.reloadSubsystemRaw({ subsystem: subsystem }, initOverrides); + } + + /** + * Initiate a mount migration + */ + async remountRaw( + requestParameters: SystemApiRemountOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['remountRequest'] == null) { + throw new runtime.RequiredError( + 'remountRequest', + 'Required parameter "remountRequest" was null or undefined when calling remount().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/remount`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RemountRequestToJSON(requestParameters['remountRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => RemountResponseFromJSON(jsonValue)); + } + + /** + * Initiate a mount migration + */ + async remount( + remountRequest: RemountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.remountRaw({ remountRequest: remountRequest }, initOverrides); + return await response.value(); + } + + /** + * Check status of a mount migration + */ + async remountStatusRaw( + requestParameters: SystemApiRemountStatusRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['migrationId'] == null) { + throw new runtime.RequiredError( + 'migrationId', + 'Required parameter "migrationId" was null or undefined when calling remountStatus().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/remount/status/{migration_id}`.replace( + `{${'migration_id'}}`, + encodeURIComponent(String(requestParameters['migrationId'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => RemountStatusResponseFromJSON(jsonValue)); + } + + /** + * Check status of a mount migration + */ + async remountStatus( + migrationId: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.remountStatusRaw({ migrationId: migrationId }, initOverrides); + return await response.value(); + } + + /** + */ + async rewrapRaw( + requestParameters: SystemApiRewrapOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rewrapRequest'] == null) { + throw new runtime.RequiredError( + 'rewrapRequest', + 'Required parameter "rewrapRequest" was null or undefined when calling rewrap().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/wrapping/rewrap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RewrapRequestToJSON(requestParameters['rewrapRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async rewrap( + rewrapRequest: RewrapRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rewrapRaw({ rewrapRequest: rewrapRequest }, initOverrides); + } + + /** + * Cancels any in-progress root generation attempt. + */ + async rootTokenGenerationCancelRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/generate-root/attempt`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Cancels any in-progress root generation attempt. + */ + async rootTokenGenerationCancel(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.rootTokenGenerationCancelRaw(initOverrides); + } + + /** + * Cancels any in-progress root generation attempt. + */ + async rootTokenGenerationCancel2Raw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/generate-root`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Cancels any in-progress root generation attempt. + */ + async rootTokenGenerationCancel2( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.rootTokenGenerationCancel2Raw(initOverrides); + } + + /** + * Only a single root generation attempt can take place at a time. One (and only one) of otp or pgp_key are required. + * Initializes a new root generation attempt. + */ + async rootTokenGenerationInitializeRaw( + requestParameters: SystemApiRootTokenGenerationInitializeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rootTokenGenerationInitializeRequest'] == null) { + throw new runtime.RequiredError( + 'rootTokenGenerationInitializeRequest', + 'Required parameter "rootTokenGenerationInitializeRequest" was null or undefined when calling rootTokenGenerationInitialize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/generate-root/attempt`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RootTokenGenerationInitializeRequestToJSON( + requestParameters['rootTokenGenerationInitializeRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RootTokenGenerationInitializeResponseFromJSON(jsonValue) + ); + } + + /** + * Only a single root generation attempt can take place at a time. One (and only one) of otp or pgp_key are required. + * Initializes a new root generation attempt. + */ + async rootTokenGenerationInitialize( + rootTokenGenerationInitializeRequest: RootTokenGenerationInitializeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rootTokenGenerationInitializeRaw( + { rootTokenGenerationInitializeRequest: rootTokenGenerationInitializeRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Only a single root generation attempt can take place at a time. One (and only one) of otp or pgp_key are required. + * Initializes a new root generation attempt. + */ + async rootTokenGenerationInitialize2Raw( + requestParameters: SystemApiRootTokenGenerationInitialize2OperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rootTokenGenerationInitialize2Request'] == null) { + throw new runtime.RequiredError( + 'rootTokenGenerationInitialize2Request', + 'Required parameter "rootTokenGenerationInitialize2Request" was null or undefined when calling rootTokenGenerationInitialize2().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/generate-root`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RootTokenGenerationInitialize2RequestToJSON( + requestParameters['rootTokenGenerationInitialize2Request'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RootTokenGenerationInitialize2ResponseFromJSON(jsonValue) + ); + } + + /** + * Only a single root generation attempt can take place at a time. One (and only one) of otp or pgp_key are required. + * Initializes a new root generation attempt. + */ + async rootTokenGenerationInitialize2( + rootTokenGenerationInitialize2Request: RootTokenGenerationInitialize2Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rootTokenGenerationInitialize2Raw( + { rootTokenGenerationInitialize2Request: rootTokenGenerationInitialize2Request }, + initOverrides + ); + return await response.value(); + } + + /** + * Read the configuration and progress of the current root generation attempt. + */ + async rootTokenGenerationReadProgressRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/generate-root/attempt`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RootTokenGenerationReadProgressResponseFromJSON(jsonValue) + ); + } + + /** + * Read the configuration and progress of the current root generation attempt. + */ + async rootTokenGenerationReadProgress( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rootTokenGenerationReadProgressRaw(initOverrides); + return await response.value(); + } + + /** + * Read the configuration and progress of the current root generation attempt. + */ + async rootTokenGenerationReadProgress2Raw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/generate-root`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RootTokenGenerationReadProgress2ResponseFromJSON(jsonValue) + ); + } + + /** + * Read the configuration and progress of the current root generation attempt. + */ + async rootTokenGenerationReadProgress2( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rootTokenGenerationReadProgress2Raw(initOverrides); + return await response.value(); + } + + /** + * If the threshold number of unseal key shares is reached, Vault will complete the root generation and issue the new token. Otherwise, this API must be called multiple times until that threshold is met. The attempt nonce must be provided with each call. + * Enter a single unseal key share to progress the root generation attempt. + */ + async rootTokenGenerationUpdateRaw( + requestParameters: SystemApiRootTokenGenerationUpdateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['rootTokenGenerationUpdateRequest'] == null) { + throw new runtime.RequiredError( + 'rootTokenGenerationUpdateRequest', + 'Required parameter "rootTokenGenerationUpdateRequest" was null or undefined when calling rootTokenGenerationUpdate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/generate-root/update`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: RootTokenGenerationUpdateRequestToJSON(requestParameters['rootTokenGenerationUpdateRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + RootTokenGenerationUpdateResponseFromJSON(jsonValue) + ); + } + + /** + * If the threshold number of unseal key shares is reached, Vault will complete the root generation and issue the new token. Otherwise, this API must be called multiple times until that threshold is met. The attempt nonce must be provided with each call. + * Enter a single unseal key share to progress the root generation attempt. + */ + async rootTokenGenerationUpdate( + rootTokenGenerationUpdateRequest: RootTokenGenerationUpdateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.rootTokenGenerationUpdateRaw( + { rootTokenGenerationUpdateRequest: rootTokenGenerationUpdateRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Seal the Vault. + */ + async sealRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/seal`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Seal the Vault. + */ + async seal(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.sealRaw(initOverrides); + } + + /** + * Check the seal status of a Vault. + */ + async sealStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/seal-status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => SealStatusResponseFromJSON(jsonValue)); + } + + /** + * Check the seal status of a Vault. + */ + async sealStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.sealStatusRaw(initOverrides); + return await response.value(); + } + + /** + * This endpoint forces the node to give up active status. If the node does not have active status, this endpoint does nothing. Note that the node will sleep for ten seconds before attempting to grab the active lock again, but if no standby nodes grab the active lock in the interim, the same node may become the active node again. + * Cause the node to give up active status. + */ + async stepDownLeaderRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/step-down`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint forces the node to give up active status. If the node does not have active status, this endpoint does nothing. Note that the node will sleep for ten seconds before attempting to grab the active lock again, but if no standby nodes grab the active lock in the interim, the same node may become the active node again. + * Cause the node to give up active status. + */ + async stepDownLeader(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.stepDownLeaderRaw(initOverrides); + } + + /** + * Returns the specified event notification subscription. + */ + async subscriptionsCreateRaw( + requestParameters: SystemApiSubscriptionsCreateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling subscriptionsCreate().' + ); + } + + if (requestParameters['plugin'] == null) { + throw new runtime.RequiredError( + 'plugin', + 'Required parameter "plugin" was null or undefined when calling subscriptionsCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/events/subscriptions/{plugin}/{id}` + .replace(`{${'id'}}`, encodeURIComponent(String(requestParameters['id']))) + .replace(`{${'plugin'}}`, encodeURIComponent(String(requestParameters['plugin']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SubscriptionsCreateResponseFromJSON(jsonValue) + ); + } + + /** + * Returns the specified event notification subscription. + */ + async subscriptionsCreate( + id: string, + plugin: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.subscriptionsCreateRaw({ id: id, plugin: plugin }, initOverrides); + return await response.value(); + } + + /** + * Deletes the specified event notification subscription and stops sending event notifications to it. + */ + async subscriptionsCreate_5Raw( + requestParameters: SystemApiSubscriptionsCreate0Request, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling subscriptionsCreate_5().' + ); + } + + if (requestParameters['plugin'] == null) { + throw new runtime.RequiredError( + 'plugin', + 'Required parameter "plugin" was null or undefined when calling subscriptionsCreate_5().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/events/subscriptions/{plugin}/{id}` + .replace(`{${'id'}}`, encodeURIComponent(String(requestParameters['id']))) + .replace(`{${'plugin'}}`, encodeURIComponent(String(requestParameters['plugin']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Deletes the specified event notification subscription and stops sending event notifications to it. + */ + async subscriptionsCreate_5( + id: string, + plugin: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.subscriptionsCreate_5Raw({ id: id, plugin: plugin }, initOverrides); + } + + /** + * Listing event notifications subscriptions + */ + async subscriptionsListEventsSubscriptionsRaw( + requestParameters: SystemApiSubscriptionsListEventsSubscriptionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling subscriptionsListEventsSubscriptions().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/events/subscriptions/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SubscriptionsListEventsSubscriptionsResponseFromJSON(jsonValue) + ); + } + + /** + * Listing event notifications subscriptions + */ + async subscriptionsListEventsSubscriptions( + list: SubscriptionsListEventsSubscriptionsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.subscriptionsListEventsSubscriptionsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Listing event notifications subscriptions + */ + async subscriptionsReadEventsSubscriptionsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/events/subscriptions`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SubscriptionsReadEventsSubscriptionsResponseFromJSON(jsonValue) + ); + } + + /** + * Listing event notifications subscriptions + */ + async subscriptionsReadEventsSubscriptions( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.subscriptionsReadEventsSubscriptionsRaw(initOverrides); + return await response.value(); + } + + /** + * Creates a new event notification subscription and starts to send events to it. + */ + async subscriptionsWriteEventsSubscriptionsRaw( + requestParameters: SystemApiSubscriptionsWriteEventsSubscriptionsOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['subscriptionsWriteEventsSubscriptionsRequest'] == null) { + throw new runtime.RequiredError( + 'subscriptionsWriteEventsSubscriptionsRequest', + 'Required parameter "subscriptionsWriteEventsSubscriptionsRequest" was null or undefined when calling subscriptionsWriteEventsSubscriptions().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/events/subscriptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SubscriptionsWriteEventsSubscriptionsRequestToJSON( + requestParameters['subscriptionsWriteEventsSubscriptionsRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SubscriptionsWriteEventsSubscriptionsResponseFromJSON(jsonValue) + ); + } + + /** + * Creates a new event notification subscription and starts to send events to it. + */ + async subscriptionsWriteEventsSubscriptions( + subscriptionsWriteEventsSubscriptionsRequest: SubscriptionsWriteEventsSubscriptionsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.subscriptionsWriteEventsSubscriptionsRaw( + { subscriptionsWriteEventsSubscriptionsRequest: subscriptionsWriteEventsSubscriptionsRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Configure control group global settings. + */ + async systemDeleteConfigControlGroupRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/control-group`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure control group global settings. + */ + async systemDeleteConfigControlGroup( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteConfigControlGroupRaw(initOverrides); + } + + /** + */ + async systemDeleteManagedKeysTypeNameRaw( + requestParameters: SystemApiSystemDeleteManagedKeysTypeNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteManagedKeysTypeName().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemDeleteManagedKeysTypeName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/managed-keys/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteManagedKeysTypeName( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteManagedKeysTypeNameRaw({ name: name, type: type }, initOverrides); + } + + /** + * Defines or updates a Duo MFA method. + */ + async systemDeleteMfaMethodDuoNameRaw( + requestParameters: SystemApiSystemDeleteMfaMethodDuoNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteMfaMethodDuoName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/duo/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a Duo MFA method. + */ + async systemDeleteMfaMethodDuoName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteMfaMethodDuoNameRaw({ name: name }, initOverrides); + } + + /** + * Defines or updates an Okta MFA method. + */ + async systemDeleteMfaMethodOktaNameRaw( + requestParameters: SystemApiSystemDeleteMfaMethodOktaNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteMfaMethodOktaName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/okta/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates an Okta MFA method. + */ + async systemDeleteMfaMethodOktaName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteMfaMethodOktaNameRaw({ name: name }, initOverrides); + } + + /** + * Defines or updates a PingID MFA method. + */ + async systemDeleteMfaMethodPingidNameRaw( + requestParameters: SystemApiSystemDeleteMfaMethodPingidNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteMfaMethodPingidName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/pingid/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a PingID MFA method. + */ + async systemDeleteMfaMethodPingidName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteMfaMethodPingidNameRaw({ name: name }, initOverrides); + } + + /** + * Defines or updates a TOTP MFA method. + */ + async systemDeleteMfaMethodTotpNameRaw( + requestParameters: SystemApiSystemDeleteMfaMethodTotpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteMfaMethodTotpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/totp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a TOTP MFA method. + */ + async systemDeleteMfaMethodTotpName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteMfaMethodTotpNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteNamespacesPathRaw( + requestParameters: SystemApiSystemDeleteNamespacesPathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling systemDeleteNamespacesPath().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/namespaces/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteNamespacesPath( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteNamespacesPathRaw({ path: path }, initOverrides); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemDeletePoliciesEgpNameRaw( + requestParameters: SystemApiSystemDeletePoliciesEgpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeletePoliciesEgpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/egp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemDeletePoliciesEgpName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeletePoliciesEgpNameRaw({ name: name }, initOverrides); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemDeletePoliciesRgpNameRaw( + requestParameters: SystemApiSystemDeletePoliciesRgpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeletePoliciesRgpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/rgp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemDeletePoliciesRgpName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeletePoliciesRgpNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteQuotasLeaseCountNameRaw( + requestParameters: SystemApiSystemDeleteQuotasLeaseCountNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteQuotasLeaseCountName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/quotas/lease-count/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteQuotasLeaseCountName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteQuotasLeaseCountNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteReplicationPerformancePrimaryPathsFilterIdRaw( + requestParameters: SystemApiSystemDeleteReplicationPerformancePrimaryPathsFilterIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling systemDeleteReplicationPerformancePrimaryPathsFilterId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/paths-filter/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteReplicationPerformancePrimaryPathsFilterId( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteReplicationPerformancePrimaryPathsFilterIdRaw({ id: id }, initOverrides); + } + + /** + * Delete automated raft snapshot configuration + */ + async systemDeleteStorageRaftSnapshotAutoConfigNameRaw( + requestParameters: SystemApiSystemDeleteStorageRaftSnapshotAutoConfigNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteStorageRaftSnapshotAutoConfigName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/storage/raft/snapshot-auto/config/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Delete automated raft snapshot configuration + */ + async systemDeleteStorageRaftSnapshotAutoConfigName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteStorageRaftSnapshotAutoConfigNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteSyncConfigRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/config`, + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemDeleteSyncConfigResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemDeleteSyncConfig( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemDeleteSyncConfigRaw(initOverrides); + return await response.value(); + } + + /** + */ + async systemDeleteSyncDestinationsAwsSmNameRaw( + requestParameters: SystemApiSystemDeleteSyncDestinationsAwsSmNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteSyncDestinationsAwsSmName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/aws-sm/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteSyncDestinationsAwsSmName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteSyncDestinationsAwsSmNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteSyncDestinationsAzureKvNameRaw( + requestParameters: SystemApiSystemDeleteSyncDestinationsAzureKvNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteSyncDestinationsAzureKvName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/azure-kv/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteSyncDestinationsAzureKvName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteSyncDestinationsAzureKvNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteSyncDestinationsGcpSmNameRaw( + requestParameters: SystemApiSystemDeleteSyncDestinationsGcpSmNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteSyncDestinationsGcpSmName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/gcp-sm/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteSyncDestinationsGcpSmName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteSyncDestinationsGcpSmNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteSyncDestinationsGhNameRaw( + requestParameters: SystemApiSystemDeleteSyncDestinationsGhNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteSyncDestinationsGhName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/gh/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteSyncDestinationsGhName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteSyncDestinationsGhNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteSyncDestinationsInMemNameRaw( + requestParameters: SystemApiSystemDeleteSyncDestinationsInMemNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteSyncDestinationsInMemName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/in-mem/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteSyncDestinationsInMemName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteSyncDestinationsInMemNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteSyncDestinationsVercelProjectNameRaw( + requestParameters: SystemApiSystemDeleteSyncDestinationsVercelProjectNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteSyncDestinationsVercelProjectName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/vercel-project/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemDeleteSyncDestinationsVercelProjectName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemDeleteSyncDestinationsVercelProjectNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemDeleteSyncGithubAppsNameRaw( + requestParameters: SystemApiSystemDeleteSyncGithubAppsNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemDeleteSyncGithubAppsName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/github-apps/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemDeleteSyncGithubAppsNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemDeleteSyncGithubAppsName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemDeleteSyncGithubAppsNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async systemListManagedKeysTypeRaw( + requestParameters: SystemApiSystemListManagedKeysTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemListManagedKeysType().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListManagedKeysType().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/managed-keys/{type}/`.replace( + `{${'type'}}`, + encodeURIComponent(String(requestParameters['type'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async systemListManagedKeysType( + type: string, + list: SystemListManagedKeysTypeListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListManagedKeysTypeRaw({ type: type, list: list }, initOverrides); + return await response.value(); + } + + /** + * Lists all the available MFA methods by their name. + */ + async systemListMfaMethodRaw( + requestParameters: SystemApiSystemListMfaMethodRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListMfaMethod().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * Lists all the available MFA methods by their name. + */ + async systemListMfaMethod( + list: SystemListMfaMethodListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListMfaMethodRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async systemListNamespacesRaw( + requestParameters: SystemApiSystemListNamespacesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListNamespaces().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/namespaces/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async systemListNamespaces( + list: SystemListNamespacesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListNamespacesRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List the configured access control policies. + */ + async systemListPoliciesEgpRaw( + requestParameters: SystemApiSystemListPoliciesEgpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListPoliciesEgp().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/egp/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List the configured access control policies. + */ + async systemListPoliciesEgp( + list: SystemListPoliciesEgpListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListPoliciesEgpRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List the configured access control policies. + */ + async systemListPoliciesRgpRaw( + requestParameters: SystemApiSystemListPoliciesRgpRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListPoliciesRgp().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/rgp/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List the configured access control policies. + */ + async systemListPoliciesRgp( + list: SystemListPoliciesRgpListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListPoliciesRgpRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async systemListQuotasLeaseCountRaw( + requestParameters: SystemApiSystemListQuotasLeaseCountRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListQuotasLeaseCount().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/quotas/lease-count/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + */ + async systemListQuotasLeaseCount( + list: SystemListQuotasLeaseCountListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListQuotasLeaseCountRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * List automated raft snapshot configurations + */ + async systemListStorageRaftSnapshotAutoConfigRaw( + requestParameters: SystemApiSystemListStorageRaftSnapshotAutoConfigRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListStorageRaftSnapshotAutoConfig().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/storage/raft/snapshot-auto/config/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => StandardListResponseFromJSON(jsonValue)); + } + + /** + * List automated raft snapshot configurations + */ + async systemListStorageRaftSnapshotAutoConfig( + list: SystemListStorageRaftSnapshotAutoConfigListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListStorageRaftSnapshotAutoConfigRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async systemListSyncAssociationsRaw( + requestParameters: SystemApiSystemListSyncAssociationsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListSyncAssociations().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/associations/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemListSyncAssociationsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemListSyncAssociations( + list: SystemListSyncAssociationsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListSyncAssociationsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async systemListSyncDestinationsRaw( + requestParameters: SystemApiSystemListSyncDestinationsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListSyncDestinations().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemListSyncDestinationsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemListSyncDestinations( + list: SystemListSyncDestinationsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListSyncDestinationsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async systemListSyncDestinationsTypeRaw( + requestParameters: SystemApiSystemListSyncDestinationsTypeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemListSyncDestinationsType().' + ); + } + + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListSyncDestinationsType().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/{type}/`.replace( + `{${'type'}}`, + encodeURIComponent(String(requestParameters['type'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemListSyncDestinationsTypeResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemListSyncDestinationsType( + type: string, + list: SystemListSyncDestinationsTypeListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListSyncDestinationsTypeRaw({ type: type, list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async systemListSyncGithubAppsRaw( + requestParameters: SystemApiSystemListSyncGithubAppsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling systemListSyncGithubApps().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/github-apps/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemListSyncGithubAppsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemListSyncGithubApps( + list: SystemListSyncGithubAppsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemListSyncGithubAppsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Configure control group global settings. + */ + async systemReadConfigControlGroupRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/control-group`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure control group global settings. + */ + async systemReadConfigControlGroup( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadConfigControlGroupRaw(initOverrides); + } + + /** + * Gets the current status of the policy application mode for Vault. + * Gets the current status of the policy application mode for Vault. + */ + async systemReadConfigGroupPolicyApplicationRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/group-policy-application`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadConfigGroupPolicyApplicationResponseFromJSON(jsonValue) + ); + } + + /** + * Gets the current status of the policy application mode for Vault. + * Gets the current status of the policy application mode for Vault. + */ + async systemReadConfigGroupPolicyApplication( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadConfigGroupPolicyApplicationRaw(initOverrides); + return await response.value(); + } + + /** + * The path responds to the following HTTP methods. GET / Returns information on the installed license POST Sets the license for the server + */ + async systemReadLicenseStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/license/status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The path responds to the following HTTP methods. GET / Returns information on the installed license POST Sets the license for the server + */ + async systemReadLicenseStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.systemReadLicenseStatusRaw(initOverrides); + } + + /** + */ + async systemReadManagedKeysTypeNameRaw( + requestParameters: SystemApiSystemReadManagedKeysTypeNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadManagedKeysTypeName().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemReadManagedKeysTypeName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/managed-keys/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadManagedKeysTypeName( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadManagedKeysTypeNameRaw({ name: name, type: type }, initOverrides); + } + + /** + * Defines or updates a Duo MFA method. + */ + async systemReadMfaMethodDuoNameRaw( + requestParameters: SystemApiSystemReadMfaMethodDuoNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadMfaMethodDuoName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/duo/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a Duo MFA method. + */ + async systemReadMfaMethodDuoName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadMfaMethodDuoNameRaw({ name: name }, initOverrides); + } + + /** + * Defines or updates an Okta MFA method. + */ + async systemReadMfaMethodOktaNameRaw( + requestParameters: SystemApiSystemReadMfaMethodOktaNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadMfaMethodOktaName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/okta/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates an Okta MFA method. + */ + async systemReadMfaMethodOktaName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadMfaMethodOktaNameRaw({ name: name }, initOverrides); + } + + /** + * Defines or updates a PingID MFA method. + */ + async systemReadMfaMethodPingidNameRaw( + requestParameters: SystemApiSystemReadMfaMethodPingidNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadMfaMethodPingidName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/pingid/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a PingID MFA method. + */ + async systemReadMfaMethodPingidName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadMfaMethodPingidNameRaw({ name: name }, initOverrides); + } + + /** + * Defines or updates a TOTP MFA method. + */ + async systemReadMfaMethodTotpNameRaw( + requestParameters: SystemApiSystemReadMfaMethodTotpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadMfaMethodTotpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/totp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a TOTP MFA method. + */ + async systemReadMfaMethodTotpName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadMfaMethodTotpNameRaw({ name: name }, initOverrides); + } + + /** + * Generates a TOTP secret for the given method name on the entity of the calling token. + */ + async systemReadMfaMethodTotpNameGenerateRaw( + requestParameters: SystemApiSystemReadMfaMethodTotpNameGenerateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadMfaMethodTotpNameGenerate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/mfa/method/totp/{name}/generate`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generates a TOTP secret for the given method name on the entity of the calling token. + */ + async systemReadMfaMethodTotpNameGenerate( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadMfaMethodTotpNameGenerateRaw({ name: name }, initOverrides); + } + + /** + */ + async systemReadNamespacesPathRaw( + requestParameters: SystemApiSystemReadNamespacesPathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling systemReadNamespacesPath().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/namespaces/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadNamespacesPath( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadNamespacesPathRaw({ path: path }, initOverrides); + } + + /** + * The reload_id returned by a cluster scoped reload must be provided. + * Get the status of a cluster-scoped reload. + */ + async systemReadPluginsReloadBackendStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/plugins/reload/backend/status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The reload_id returned by a cluster scoped reload must be provided. + * Get the status of a cluster-scoped reload. + */ + async systemReadPluginsReloadBackendStatus( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadPluginsReloadBackendStatusRaw(initOverrides); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemReadPoliciesEgpNameRaw( + requestParameters: SystemApiSystemReadPoliciesEgpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadPoliciesEgpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/egp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemReadPoliciesEgpName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadPoliciesEgpNameRaw({ name: name }, initOverrides); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemReadPoliciesRgpNameRaw( + requestParameters: SystemApiSystemReadPoliciesRgpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadPoliciesRgpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/policies/rgp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemReadPoliciesRgpName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadPoliciesRgpNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemReadQuotasLeaseCountNameRaw( + requestParameters: SystemApiSystemReadQuotasLeaseCountNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadQuotasLeaseCountName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/quotas/lease-count/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadQuotasLeaseCountName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadQuotasLeaseCountNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemReadReplicationDrSecondaryLicenseStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/license/status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadReplicationDrSecondaryLicenseStatus( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadReplicationDrSecondaryLicenseStatusRaw(initOverrides); + } + + /** + */ + async systemReadReplicationDrStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/dr/status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadReplicationDrStatus( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadReplicationDrStatusRaw(initOverrides); + } + + /** + */ + async systemReadReplicationPerformancePrimaryDynamicFilterIdRaw( + requestParameters: SystemApiSystemReadReplicationPerformancePrimaryDynamicFilterIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling systemReadReplicationPerformancePrimaryDynamicFilterId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/dynamic-filter/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadReplicationPerformancePrimaryDynamicFilterId( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadReplicationPerformancePrimaryDynamicFilterIdRaw({ id: id }, initOverrides); + } + + /** + */ + async systemReadReplicationPerformancePrimaryPathsFilterIdRaw( + requestParameters: SystemApiSystemReadReplicationPerformancePrimaryPathsFilterIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling systemReadReplicationPerformancePrimaryPathsFilterId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/paths-filter/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadReplicationPerformancePrimaryPathsFilterId( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadReplicationPerformancePrimaryPathsFilterIdRaw({ id: id }, initOverrides); + } + + /** + */ + async systemReadReplicationPerformanceSecondaryDynamicFilterIdRaw( + requestParameters: SystemApiSystemReadReplicationPerformanceSecondaryDynamicFilterIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling systemReadReplicationPerformanceSecondaryDynamicFilterId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/secondary/dynamic-filter/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadReplicationPerformanceSecondaryDynamicFilterId( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadReplicationPerformanceSecondaryDynamicFilterIdRaw({ id: id }, initOverrides); + } + + /** + */ + async systemReadReplicationPerformanceStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadReplicationPerformanceStatus( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadReplicationPerformanceStatusRaw(initOverrides); + } + + /** + */ + async systemReadReplicationStatusRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemReadReplicationStatus( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadReplicationStatusRaw(initOverrides); + } + + /** + * Retrieve the state of any ongoing seal rewrap process + */ + async systemReadSealwrapRewrapRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sealwrap/rewrap`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Retrieve the state of any ongoing seal rewrap process + */ + async systemReadSealwrapRewrap(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.systemReadSealwrapRewrapRaw(initOverrides); + } + + /** + * Read automated raft snapshot configuration + */ + async systemReadStorageRaftSnapshotAutoConfigNameRaw( + requestParameters: SystemApiSystemReadStorageRaftSnapshotAutoConfigNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadStorageRaftSnapshotAutoConfigName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/storage/raft/snapshot-auto/config/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read automated raft snapshot configuration + */ + async systemReadStorageRaftSnapshotAutoConfigName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadStorageRaftSnapshotAutoConfigNameRaw({ name: name }, initOverrides); + } + + /** + * Read status of automated raft snapshots + */ + async systemReadStorageRaftSnapshotAutoStatusNameRaw( + requestParameters: SystemApiSystemReadStorageRaftSnapshotAutoStatusNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadStorageRaftSnapshotAutoStatusName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/storage/raft/snapshot-auto/status/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read status of automated raft snapshots + */ + async systemReadStorageRaftSnapshotAutoStatusName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemReadStorageRaftSnapshotAutoStatusNameRaw({ name: name }, initOverrides); + } + + /** + */ + async systemReadSyncAssociationsDestinationsRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/associations/destinations`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncAssociationsDestinationsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncAssociationsDestinations( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncAssociationsDestinationsRaw(initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncAssociationsMountSecretNameRaw( + requestParameters: SystemApiSystemReadSyncAssociationsMountSecretNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['mount'] == null) { + throw new runtime.RequiredError( + 'mount', + 'Required parameter "mount" was null or undefined when calling systemReadSyncAssociationsMountSecretName().' + ); + } + + if (requestParameters['secretName'] == null) { + throw new runtime.RequiredError( + 'secretName', + 'Required parameter "secretName" was null or undefined when calling systemReadSyncAssociationsMountSecretName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/associations/{mount}/{secret_name}` + .replace(`{${'mount'}}`, encodeURIComponent(String(requestParameters['mount']))) + .replace(`{${'secret_name'}}`, encodeURIComponent(String(requestParameters['secretName']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncAssociationsMountSecretNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncAssociationsMountSecretName( + mount: string, + secretName: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncAssociationsMountSecretNameRaw( + { mount: mount, secretName: secretName }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemReadSyncConfigRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/config`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncConfigResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncConfig( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncConfigRaw(initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncDestinationsAwsSmNameRaw( + requestParameters: SystemApiSystemReadSyncDestinationsAwsSmNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncDestinationsAwsSmName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/aws-sm/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncDestinationsAwsSmNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncDestinationsAwsSmName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncDestinationsAwsSmNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncDestinationsAzureKvNameRaw( + requestParameters: SystemApiSystemReadSyncDestinationsAzureKvNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncDestinationsAzureKvName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/azure-kv/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncDestinationsAzureKvNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncDestinationsAzureKvName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncDestinationsAzureKvNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncDestinationsGcpSmNameRaw( + requestParameters: SystemApiSystemReadSyncDestinationsGcpSmNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncDestinationsGcpSmName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/gcp-sm/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncDestinationsGcpSmNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncDestinationsGcpSmName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncDestinationsGcpSmNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncDestinationsGhNameRaw( + requestParameters: SystemApiSystemReadSyncDestinationsGhNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncDestinationsGhName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/gh/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncDestinationsGhNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncDestinationsGhName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncDestinationsGhNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncDestinationsInMemNameRaw( + requestParameters: SystemApiSystemReadSyncDestinationsInMemNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncDestinationsInMemName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/in-mem/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncDestinationsInMemNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncDestinationsInMemName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncDestinationsInMemNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncDestinationsTypeNameAssociationsRaw( + requestParameters: SystemApiSystemReadSyncDestinationsTypeNameAssociationsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncDestinationsTypeNameAssociations().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemReadSyncDestinationsTypeNameAssociations().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/{type}/{name}/associations` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncDestinationsTypeNameAssociationsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncDestinationsTypeNameAssociations( + name: string, + type: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncDestinationsTypeNameAssociationsRaw( + { name: name, type: type }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemReadSyncDestinationsVercelProjectNameRaw( + requestParameters: SystemApiSystemReadSyncDestinationsVercelProjectNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncDestinationsVercelProjectName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/destinations/vercel-project/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncDestinationsVercelProjectNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncDestinationsVercelProjectName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncDestinationsVercelProjectNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + */ + async systemReadSyncGithubAppsNameRaw( + requestParameters: SystemApiSystemReadSyncGithubAppsNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemReadSyncGithubAppsName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sync/github-apps/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemReadSyncGithubAppsNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemReadSyncGithubAppsName( + name: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemReadSyncGithubAppsNameRaw({ name: name }, initOverrides); + return await response.value(); + } + + /** + * Configure control group global settings. + */ + async systemWriteConfigControlGroupRaw( + requestParameters: SystemApiSystemWriteConfigControlGroupOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteConfigControlGroupRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteConfigControlGroupRequest', + 'Required parameter "systemWriteConfigControlGroupRequest" was null or undefined when calling systemWriteConfigControlGroup().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/config/control-group`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteConfigControlGroupRequestToJSON( + requestParameters['systemWriteConfigControlGroupRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure control group global settings. + */ + async systemWriteConfigControlGroup( + systemWriteConfigControlGroupRequest: SystemWriteConfigControlGroupRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteConfigControlGroupRaw( + { systemWriteConfigControlGroupRequest: systemWriteConfigControlGroupRequest }, + initOverrides + ); + } + + /** + * The group_policy_application_mode must be provided, as within_namespace_hierarchy or any. + * Updates the policy application mode for Vault. + */ + async systemWriteConfigGroupPolicyApplicationRaw( + requestParameters: SystemApiSystemWriteConfigGroupPolicyApplicationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteConfigGroupPolicyApplicationRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteConfigGroupPolicyApplicationRequest', + 'Required parameter "systemWriteConfigGroupPolicyApplicationRequest" was null or undefined when calling systemWriteConfigGroupPolicyApplication().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/config/group-policy-application`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteConfigGroupPolicyApplicationRequestToJSON( + requestParameters['systemWriteConfigGroupPolicyApplicationRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * The group_policy_application_mode must be provided, as within_namespace_hierarchy or any. + * Updates the policy application mode for Vault. + */ + async systemWriteConfigGroupPolicyApplication( + systemWriteConfigGroupPolicyApplicationRequest: SystemWriteConfigGroupPolicyApplicationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteConfigGroupPolicyApplicationRaw( + { systemWriteConfigGroupPolicyApplicationRequest: systemWriteConfigGroupPolicyApplicationRequest }, + initOverrides + ); + } + + /** + * Authorize a control group request + */ + async systemWriteControlGroupAuthorizeRaw( + requestParameters: SystemApiSystemWriteControlGroupAuthorizeOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteControlGroupAuthorizeRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteControlGroupAuthorizeRequest', + 'Required parameter "systemWriteControlGroupAuthorizeRequest" was null or undefined when calling systemWriteControlGroupAuthorize().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/control-group/authorize`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteControlGroupAuthorizeRequestToJSON( + requestParameters['systemWriteControlGroupAuthorizeRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Authorize a control group request + */ + async systemWriteControlGroupAuthorize( + systemWriteControlGroupAuthorizeRequest: SystemWriteControlGroupAuthorizeRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteControlGroupAuthorizeRaw( + { systemWriteControlGroupAuthorizeRequest: systemWriteControlGroupAuthorizeRequest }, + initOverrides + ); + } + + /** + * Check the status of a control group request + */ + async systemWriteControlGroupRequestRaw( + requestParameters: SystemApiSystemWriteControlGroupRequestOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteControlGroupRequestRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteControlGroupRequestRequest', + 'Required parameter "systemWriteControlGroupRequestRequest" was null or undefined when calling systemWriteControlGroupRequest().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/control-group/request`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteControlGroupRequestRequestToJSON( + requestParameters['systemWriteControlGroupRequestRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Check the status of a control group request + */ + async systemWriteControlGroupRequest( + systemWriteControlGroupRequestRequest: SystemWriteControlGroupRequestRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteControlGroupRequestRaw( + { systemWriteControlGroupRequestRequest: systemWriteControlGroupRequestRequest }, + initOverrides + ); + } + + /** + * Write activity log data + */ + async systemWriteInternalCountersActivityWriteRaw( + requestParameters: SystemApiSystemWriteInternalCountersActivityWriteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteInternalCountersActivityWriteRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteInternalCountersActivityWriteRequest', + 'Required parameter "systemWriteInternalCountersActivityWriteRequest" was null or undefined when calling systemWriteInternalCountersActivityWrite().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/internal/counters/activity/write`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteInternalCountersActivityWriteRequestToJSON( + requestParameters['systemWriteInternalCountersActivityWriteRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Write activity log data + */ + async systemWriteInternalCountersActivityWrite( + systemWriteInternalCountersActivityWriteRequest: SystemWriteInternalCountersActivityWriteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteInternalCountersActivityWriteRaw( + { systemWriteInternalCountersActivityWriteRequest: systemWriteInternalCountersActivityWriteRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteManagedKeysTypeNameRaw( + requestParameters: SystemApiSystemWriteManagedKeysTypeNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteManagedKeysTypeName().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemWriteManagedKeysTypeName().' + ); + } + + if (requestParameters['systemWriteManagedKeysTypeNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteManagedKeysTypeNameRequest', + 'Required parameter "systemWriteManagedKeysTypeNameRequest" was null or undefined when calling systemWriteManagedKeysTypeName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/managed-keys/{type}/{name}` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteManagedKeysTypeNameRequestToJSON( + requestParameters['systemWriteManagedKeysTypeNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteManagedKeysTypeName( + name: string, + type: string, + systemWriteManagedKeysTypeNameRequest: SystemWriteManagedKeysTypeNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteManagedKeysTypeNameRaw( + { + name: name, + type: type, + systemWriteManagedKeysTypeNameRequest: systemWriteManagedKeysTypeNameRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteManagedKeysTypeNameTestSignRaw( + requestParameters: SystemApiSystemWriteManagedKeysTypeNameTestSignOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteManagedKeysTypeNameTestSign().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemWriteManagedKeysTypeNameTestSign().' + ); + } + + if (requestParameters['systemWriteManagedKeysTypeNameTestSignRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteManagedKeysTypeNameTestSignRequest', + 'Required parameter "systemWriteManagedKeysTypeNameTestSignRequest" was null or undefined when calling systemWriteManagedKeysTypeNameTestSign().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/managed-keys/{type}/{name}/test/sign` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteManagedKeysTypeNameTestSignRequestToJSON( + requestParameters['systemWriteManagedKeysTypeNameTestSignRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteManagedKeysTypeNameTestSign( + name: string, + type: string, + systemWriteManagedKeysTypeNameTestSignRequest: SystemWriteManagedKeysTypeNameTestSignRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteManagedKeysTypeNameTestSignRaw( + { + name: name, + type: type, + systemWriteManagedKeysTypeNameTestSignRequest: systemWriteManagedKeysTypeNameTestSignRequest, + }, + initOverrides + ); + } + + /** + * Defines or updates a Duo MFA method. + */ + async systemWriteMfaMethodDuoNameRaw( + requestParameters: SystemApiSystemWriteMfaMethodDuoNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteMfaMethodDuoName().' + ); + } + + if (requestParameters['systemWriteMfaMethodDuoNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteMfaMethodDuoNameRequest', + 'Required parameter "systemWriteMfaMethodDuoNameRequest" was null or undefined when calling systemWriteMfaMethodDuoName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mfa/method/duo/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteMfaMethodDuoNameRequestToJSON( + requestParameters['systemWriteMfaMethodDuoNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a Duo MFA method. + */ + async systemWriteMfaMethodDuoName( + name: string, + systemWriteMfaMethodDuoNameRequest: SystemWriteMfaMethodDuoNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteMfaMethodDuoNameRaw( + { name: name, systemWriteMfaMethodDuoNameRequest: systemWriteMfaMethodDuoNameRequest }, + initOverrides + ); + } + + /** + * Defines or updates an Okta MFA method. + */ + async systemWriteMfaMethodOktaNameRaw( + requestParameters: SystemApiSystemWriteMfaMethodOktaNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteMfaMethodOktaName().' + ); + } + + if (requestParameters['systemWriteMfaMethodOktaNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteMfaMethodOktaNameRequest', + 'Required parameter "systemWriteMfaMethodOktaNameRequest" was null or undefined when calling systemWriteMfaMethodOktaName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mfa/method/okta/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteMfaMethodOktaNameRequestToJSON( + requestParameters['systemWriteMfaMethodOktaNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates an Okta MFA method. + */ + async systemWriteMfaMethodOktaName( + name: string, + systemWriteMfaMethodOktaNameRequest: SystemWriteMfaMethodOktaNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteMfaMethodOktaNameRaw( + { name: name, systemWriteMfaMethodOktaNameRequest: systemWriteMfaMethodOktaNameRequest }, + initOverrides + ); + } + + /** + * Defines or updates a PingID MFA method. + */ + async systemWriteMfaMethodPingidNameRaw( + requestParameters: SystemApiSystemWriteMfaMethodPingidNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteMfaMethodPingidName().' + ); + } + + if (requestParameters['systemWriteMfaMethodPingidNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteMfaMethodPingidNameRequest', + 'Required parameter "systemWriteMfaMethodPingidNameRequest" was null or undefined when calling systemWriteMfaMethodPingidName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mfa/method/pingid/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteMfaMethodPingidNameRequestToJSON( + requestParameters['systemWriteMfaMethodPingidNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a PingID MFA method. + */ + async systemWriteMfaMethodPingidName( + name: string, + systemWriteMfaMethodPingidNameRequest: SystemWriteMfaMethodPingidNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteMfaMethodPingidNameRaw( + { name: name, systemWriteMfaMethodPingidNameRequest: systemWriteMfaMethodPingidNameRequest }, + initOverrides + ); + } + + /** + * Defines or updates a TOTP MFA method. + */ + async systemWriteMfaMethodTotpNameRaw( + requestParameters: SystemApiSystemWriteMfaMethodTotpNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteMfaMethodTotpName().' + ); + } + + if (requestParameters['systemWriteMfaMethodTotpNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteMfaMethodTotpNameRequest', + 'Required parameter "systemWriteMfaMethodTotpNameRequest" was null or undefined when calling systemWriteMfaMethodTotpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mfa/method/totp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteMfaMethodTotpNameRequestToJSON( + requestParameters['systemWriteMfaMethodTotpNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Defines or updates a TOTP MFA method. + */ + async systemWriteMfaMethodTotpName( + name: string, + systemWriteMfaMethodTotpNameRequest: SystemWriteMfaMethodTotpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteMfaMethodTotpNameRaw( + { name: name, systemWriteMfaMethodTotpNameRequest: systemWriteMfaMethodTotpNameRequest }, + initOverrides + ); + } + + /** + * Deletes the TOTP secret for the given method name on the given entity. + */ + async systemWriteMfaMethodTotpNameAdminDestroyRaw( + requestParameters: SystemApiSystemWriteMfaMethodTotpNameAdminDestroyOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteMfaMethodTotpNameAdminDestroy().' + ); + } + + if (requestParameters['systemWriteMfaMethodTotpNameAdminDestroyRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteMfaMethodTotpNameAdminDestroyRequest', + 'Required parameter "systemWriteMfaMethodTotpNameAdminDestroyRequest" was null or undefined when calling systemWriteMfaMethodTotpNameAdminDestroy().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mfa/method/totp/{name}/admin-destroy`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteMfaMethodTotpNameAdminDestroyRequestToJSON( + requestParameters['systemWriteMfaMethodTotpNameAdminDestroyRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Deletes the TOTP secret for the given method name on the given entity. + */ + async systemWriteMfaMethodTotpNameAdminDestroy( + name: string, + systemWriteMfaMethodTotpNameAdminDestroyRequest: SystemWriteMfaMethodTotpNameAdminDestroyRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteMfaMethodTotpNameAdminDestroyRaw( + { + name: name, + systemWriteMfaMethodTotpNameAdminDestroyRequest: systemWriteMfaMethodTotpNameAdminDestroyRequest, + }, + initOverrides + ); + } + + /** + * Generates a TOTP secret for the given method name on the given entity. + */ + async systemWriteMfaMethodTotpNameAdminGenerateRaw( + requestParameters: SystemApiSystemWriteMfaMethodTotpNameAdminGenerateOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteMfaMethodTotpNameAdminGenerate().' + ); + } + + if (requestParameters['systemWriteMfaMethodTotpNameAdminGenerateRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteMfaMethodTotpNameAdminGenerateRequest', + 'Required parameter "systemWriteMfaMethodTotpNameAdminGenerateRequest" was null or undefined when calling systemWriteMfaMethodTotpNameAdminGenerate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/mfa/method/totp/{name}/admin-generate`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteMfaMethodTotpNameAdminGenerateRequestToJSON( + requestParameters['systemWriteMfaMethodTotpNameAdminGenerateRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Generates a TOTP secret for the given method name on the given entity. + */ + async systemWriteMfaMethodTotpNameAdminGenerate( + name: string, + systemWriteMfaMethodTotpNameAdminGenerateRequest: SystemWriteMfaMethodTotpNameAdminGenerateRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteMfaMethodTotpNameAdminGenerateRaw( + { + name: name, + systemWriteMfaMethodTotpNameAdminGenerateRequest: systemWriteMfaMethodTotpNameAdminGenerateRequest, + }, + initOverrides + ); + } + + /** + * Lock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockLockRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/namespaces/api-lock/lock`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Lock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockLock( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteNamespacesApiLockLockRaw(initOverrides); + } + + /** + * Lock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockLockPathRaw( + requestParameters: SystemApiSystemWriteNamespacesApiLockLockPathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling systemWriteNamespacesApiLockLockPath().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/namespaces/api-lock/lock/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Lock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockLockPath( + path: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteNamespacesApiLockLockPathRaw({ path: path }, initOverrides); + } + + /** + * Unlock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockUnlockRaw( + requestParameters: SystemApiSystemWriteNamespacesApiLockUnlockOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteNamespacesApiLockUnlockRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteNamespacesApiLockUnlockRequest', + 'Required parameter "systemWriteNamespacesApiLockUnlockRequest" was null or undefined when calling systemWriteNamespacesApiLockUnlock().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/namespaces/api-lock/unlock`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteNamespacesApiLockUnlockRequestToJSON( + requestParameters['systemWriteNamespacesApiLockUnlockRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Unlock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockUnlock( + systemWriteNamespacesApiLockUnlockRequest: SystemWriteNamespacesApiLockUnlockRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteNamespacesApiLockUnlockRaw( + { systemWriteNamespacesApiLockUnlockRequest: systemWriteNamespacesApiLockUnlockRequest }, + initOverrides + ); + } + + /** + * Unlock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockUnlockPathRaw( + requestParameters: SystemApiSystemWriteNamespacesApiLockUnlockPathOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling systemWriteNamespacesApiLockUnlockPath().' + ); + } + + if (requestParameters['systemWriteNamespacesApiLockUnlockPathRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteNamespacesApiLockUnlockPathRequest', + 'Required parameter "systemWriteNamespacesApiLockUnlockPathRequest" was null or undefined when calling systemWriteNamespacesApiLockUnlockPath().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/namespaces/api-lock/unlock/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteNamespacesApiLockUnlockPathRequestToJSON( + requestParameters['systemWriteNamespacesApiLockUnlockPathRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Unlock the API for a namespace and its descendants + */ + async systemWriteNamespacesApiLockUnlockPath( + path: string, + systemWriteNamespacesApiLockUnlockPathRequest: SystemWriteNamespacesApiLockUnlockPathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteNamespacesApiLockUnlockPathRaw( + { + path: path, + systemWriteNamespacesApiLockUnlockPathRequest: systemWriteNamespacesApiLockUnlockPathRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteNamespacesPathRaw( + requestParameters: SystemApiSystemWriteNamespacesPathOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['path'] == null) { + throw new runtime.RequiredError( + 'path', + 'Required parameter "path" was null or undefined when calling systemWriteNamespacesPath().' + ); + } + + if (requestParameters['systemWriteNamespacesPathRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteNamespacesPathRequest', + 'Required parameter "systemWriteNamespacesPathRequest" was null or undefined when calling systemWriteNamespacesPath().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/namespaces/{path}`.replace( + `{${'path'}}`, + encodeURIComponent(String(requestParameters['path'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteNamespacesPathRequestToJSON(requestParameters['systemWriteNamespacesPathRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteNamespacesPath( + path: string, + systemWriteNamespacesPathRequest: SystemWriteNamespacesPathRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteNamespacesPathRaw( + { path: path, systemWriteNamespacesPathRequest: systemWriteNamespacesPathRequest }, + initOverrides + ); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemWritePoliciesEgpNameRaw( + requestParameters: SystemApiSystemWritePoliciesEgpNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWritePoliciesEgpName().' + ); + } + + if (requestParameters['systemWritePoliciesEgpNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWritePoliciesEgpNameRequest', + 'Required parameter "systemWritePoliciesEgpNameRequest" was null or undefined when calling systemWritePoliciesEgpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/policies/egp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWritePoliciesEgpNameRequestToJSON(requestParameters['systemWritePoliciesEgpNameRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemWritePoliciesEgpName( + name: string, + systemWritePoliciesEgpNameRequest: SystemWritePoliciesEgpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWritePoliciesEgpNameRaw( + { name: name, systemWritePoliciesEgpNameRequest: systemWritePoliciesEgpNameRequest }, + initOverrides + ); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemWritePoliciesRgpNameRaw( + requestParameters: SystemApiSystemWritePoliciesRgpNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWritePoliciesRgpName().' + ); + } + + if (requestParameters['systemWritePoliciesRgpNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWritePoliciesRgpNameRequest', + 'Required parameter "systemWritePoliciesRgpNameRequest" was null or undefined when calling systemWritePoliciesRgpName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/policies/rgp/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWritePoliciesRgpNameRequestToJSON(requestParameters['systemWritePoliciesRgpNameRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Read, Modify, or Delete an access control policy. + */ + async systemWritePoliciesRgpName( + name: string, + systemWritePoliciesRgpNameRequest: SystemWritePoliciesRgpNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWritePoliciesRgpNameRaw( + { name: name, systemWritePoliciesRgpNameRequest: systemWritePoliciesRgpNameRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteQuotasLeaseCountNameRaw( + requestParameters: SystemApiSystemWriteQuotasLeaseCountNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteQuotasLeaseCountName().' + ); + } + + if (requestParameters['systemWriteQuotasLeaseCountNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteQuotasLeaseCountNameRequest', + 'Required parameter "systemWriteQuotasLeaseCountNameRequest" was null or undefined when calling systemWriteQuotasLeaseCountName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/quotas/lease-count/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteQuotasLeaseCountNameRequestToJSON( + requestParameters['systemWriteQuotasLeaseCountNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteQuotasLeaseCountName( + name: string, + systemWriteQuotasLeaseCountNameRequest: SystemWriteQuotasLeaseCountNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteQuotasLeaseCountNameRaw( + { name: name, systemWriteQuotasLeaseCountNameRequest: systemWriteQuotasLeaseCountNameRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrPrimaryDemoteRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/dr/primary/demote`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrPrimaryDemote( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrPrimaryDemoteRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationDrPrimaryDisableRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/dr/primary/disable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrPrimaryDisable( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrPrimaryDisableRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationDrPrimaryEnableRaw( + requestParameters: SystemApiSystemWriteReplicationDrPrimaryEnableOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrPrimaryEnableRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrPrimaryEnableRequest', + 'Required parameter "systemWriteReplicationDrPrimaryEnableRequest" was null or undefined when calling systemWriteReplicationDrPrimaryEnable().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/primary/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrPrimaryEnableRequestToJSON( + requestParameters['systemWriteReplicationDrPrimaryEnableRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrPrimaryEnable( + systemWriteReplicationDrPrimaryEnableRequest: SystemWriteReplicationDrPrimaryEnableRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrPrimaryEnableRaw( + { systemWriteReplicationDrPrimaryEnableRequest: systemWriteReplicationDrPrimaryEnableRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrPrimaryRevokeSecondaryRaw( + requestParameters: SystemApiSystemWriteReplicationDrPrimaryRevokeSecondaryOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrPrimaryRevokeSecondaryRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrPrimaryRevokeSecondaryRequest', + 'Required parameter "systemWriteReplicationDrPrimaryRevokeSecondaryRequest" was null or undefined when calling systemWriteReplicationDrPrimaryRevokeSecondary().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/primary/revoke-secondary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrPrimaryRevokeSecondaryRequestToJSON( + requestParameters['systemWriteReplicationDrPrimaryRevokeSecondaryRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrPrimaryRevokeSecondary( + systemWriteReplicationDrPrimaryRevokeSecondaryRequest: SystemWriteReplicationDrPrimaryRevokeSecondaryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrPrimaryRevokeSecondaryRaw( + { + systemWriteReplicationDrPrimaryRevokeSecondaryRequest: + systemWriteReplicationDrPrimaryRevokeSecondaryRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrPrimarySecondaryTokenRaw( + requestParameters: SystemApiSystemWriteReplicationDrPrimarySecondaryTokenOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrPrimarySecondaryTokenRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrPrimarySecondaryTokenRequest', + 'Required parameter "systemWriteReplicationDrPrimarySecondaryTokenRequest" was null or undefined when calling systemWriteReplicationDrPrimarySecondaryToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/primary/secondary-token`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrPrimarySecondaryTokenRequestToJSON( + requestParameters['systemWriteReplicationDrPrimarySecondaryTokenRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrPrimarySecondaryToken( + systemWriteReplicationDrPrimarySecondaryTokenRequest: SystemWriteReplicationDrPrimarySecondaryTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrPrimarySecondaryTokenRaw( + { + systemWriteReplicationDrPrimarySecondaryTokenRequest: + systemWriteReplicationDrPrimarySecondaryTokenRequest, + }, + initOverrides + ); + } + + /** + * Reload the given subsystem + */ + async systemWriteReplicationDrSecondaryConfigReloadSubsystemRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryConfigReloadSubsystemRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['subsystem'] == null) { + throw new runtime.RequiredError( + 'subsystem', + 'Required parameter "subsystem" was null or undefined when calling systemWriteReplicationDrSecondaryConfigReloadSubsystem().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/config/reload/{subsystem}`.replace( + `{${'subsystem'}}`, + encodeURIComponent(String(requestParameters['subsystem'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Reload the given subsystem + */ + async systemWriteReplicationDrSecondaryConfigReloadSubsystem( + subsystem: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryConfigReloadSubsystemRaw( + { subsystem: subsystem }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryDisableRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryDisableOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryDisableRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryDisableRequest', + 'Required parameter "systemWriteReplicationDrSecondaryDisableRequest" was null or undefined when calling systemWriteReplicationDrSecondaryDisable().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/disable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryDisableRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryDisableRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryDisable( + systemWriteReplicationDrSecondaryDisableRequest: SystemWriteReplicationDrSecondaryDisableRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryDisableRaw( + { systemWriteReplicationDrSecondaryDisableRequest: systemWriteReplicationDrSecondaryDisableRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryEnableRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryEnableOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryEnableRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryEnableRequest', + 'Required parameter "systemWriteReplicationDrSecondaryEnableRequest" was null or undefined when calling systemWriteReplicationDrSecondaryEnable().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryEnableRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryEnableRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryEnable( + systemWriteReplicationDrSecondaryEnableRequest: SystemWriteReplicationDrSecondaryEnableRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryEnableRaw( + { systemWriteReplicationDrSecondaryEnableRequest: systemWriteReplicationDrSecondaryEnableRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryGeneratePublicKeyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/generate-public-key`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryGeneratePublicKey( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryGeneratePublicKeyRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationDrSecondaryMerkleCheckRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryMerkleCheckOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryMerkleCheckRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryMerkleCheckRequest', + 'Required parameter "systemWriteReplicationDrSecondaryMerkleCheckRequest" was null or undefined when calling systemWriteReplicationDrSecondaryMerkleCheck().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/merkle-check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryMerkleCheckRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryMerkleCheckRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryMerkleCheck( + systemWriteReplicationDrSecondaryMerkleCheckRequest: SystemWriteReplicationDrSecondaryMerkleCheckRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryMerkleCheckRaw( + { + systemWriteReplicationDrSecondaryMerkleCheckRequest: + systemWriteReplicationDrSecondaryMerkleCheckRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryOperationTokenDeleteRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryOperationTokenDeleteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryOperationTokenDeleteRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryOperationTokenDeleteRequest', + 'Required parameter "systemWriteReplicationDrSecondaryOperationTokenDeleteRequest" was null or undefined when calling systemWriteReplicationDrSecondaryOperationTokenDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/operation-token/delete`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryOperationTokenDeleteRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryOperationTokenDelete( + systemWriteReplicationDrSecondaryOperationTokenDeleteRequest: SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryOperationTokenDeleteRaw( + { + systemWriteReplicationDrSecondaryOperationTokenDeleteRequest: + systemWriteReplicationDrSecondaryOperationTokenDeleteRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryPromoteRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryPromoteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryPromoteRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryPromoteRequest', + 'Required parameter "systemWriteReplicationDrSecondaryPromoteRequest" was null or undefined when calling systemWriteReplicationDrSecondaryPromote().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/promote`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryPromoteRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryPromoteRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryPromote( + systemWriteReplicationDrSecondaryPromoteRequest: SystemWriteReplicationDrSecondaryPromoteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryPromoteRaw( + { systemWriteReplicationDrSecondaryPromoteRequest: systemWriteReplicationDrSecondaryPromoteRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryRecoverRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryRecoverOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryRecoverRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryRecoverRequest', + 'Required parameter "systemWriteReplicationDrSecondaryRecoverRequest" was null or undefined when calling systemWriteReplicationDrSecondaryRecover().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/recover`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryRecoverRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryRecoverRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryRecover( + systemWriteReplicationDrSecondaryRecoverRequest: SystemWriteReplicationDrSecondaryRecoverRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryRecoverRaw( + { systemWriteReplicationDrSecondaryRecoverRequest: systemWriteReplicationDrSecondaryRecoverRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryReindexRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryReindexOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryReindexRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryReindexRequest', + 'Required parameter "systemWriteReplicationDrSecondaryReindexRequest" was null or undefined when calling systemWriteReplicationDrSecondaryReindex().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/reindex`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryReindexRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryReindexRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryReindex( + systemWriteReplicationDrSecondaryReindexRequest: SystemWriteReplicationDrSecondaryReindexRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryReindexRaw( + { systemWriteReplicationDrSecondaryReindexRequest: systemWriteReplicationDrSecondaryReindexRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationDrSecondaryUpdatePrimaryRaw( + requestParameters: SystemApiSystemWriteReplicationDrSecondaryUpdatePrimaryOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationDrSecondaryUpdatePrimaryRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationDrSecondaryUpdatePrimaryRequest', + 'Required parameter "systemWriteReplicationDrSecondaryUpdatePrimaryRequest" was null or undefined when calling systemWriteReplicationDrSecondaryUpdatePrimary().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/dr/secondary/update-primary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationDrSecondaryUpdatePrimaryRequestToJSON( + requestParameters['systemWriteReplicationDrSecondaryUpdatePrimaryRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationDrSecondaryUpdatePrimary( + systemWriteReplicationDrSecondaryUpdatePrimaryRequest: SystemWriteReplicationDrSecondaryUpdatePrimaryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationDrSecondaryUpdatePrimaryRaw( + { + systemWriteReplicationDrSecondaryUpdatePrimaryRequest: + systemWriteReplicationDrSecondaryUpdatePrimaryRequest, + }, + initOverrides + ); + } + + /** + * force corrupting stuff + */ + async systemWriteReplicationForceCorruptionRaw( + requestParameters: SystemApiSystemWriteReplicationForceCorruptionOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationForceCorruptionRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationForceCorruptionRequest', + 'Required parameter "systemWriteReplicationForceCorruptionRequest" was null or undefined when calling systemWriteReplicationForceCorruption().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/force-corruption`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationForceCorruptionRequestToJSON( + requestParameters['systemWriteReplicationForceCorruptionRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * force corrupting stuff + */ + async systemWriteReplicationForceCorruption( + systemWriteReplicationForceCorruptionRequest: SystemWriteReplicationForceCorruptionRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationForceCorruptionRaw( + { systemWriteReplicationForceCorruptionRequest: systemWriteReplicationForceCorruptionRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationMerkleCheckRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/merkle-check`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationMerkleCheck( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationMerkleCheckRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryDemoteRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/demote`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryDemote( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformancePrimaryDemoteRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryDisableRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/disable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryDisable( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformancePrimaryDisableRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryEnableRaw( + requestParameters: SystemApiSystemWriteReplicationPerformancePrimaryEnableOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPerformancePrimaryEnableRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPerformancePrimaryEnableRequest', + 'Required parameter "systemWriteReplicationPerformancePrimaryEnableRequest" was null or undefined when calling systemWriteReplicationPerformancePrimaryEnable().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPerformancePrimaryEnableRequestToJSON( + requestParameters['systemWriteReplicationPerformancePrimaryEnableRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryEnable( + systemWriteReplicationPerformancePrimaryEnableRequest: SystemWriteReplicationPerformancePrimaryEnableRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformancePrimaryEnableRaw( + { + systemWriteReplicationPerformancePrimaryEnableRequest: + systemWriteReplicationPerformancePrimaryEnableRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryPathsFilterIdRaw( + requestParameters: SystemApiSystemWriteReplicationPerformancePrimaryPathsFilterIdOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling systemWriteReplicationPerformancePrimaryPathsFilterId().' + ); + } + + if (requestParameters['systemWriteReplicationPerformancePrimaryPathsFilterIdRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPerformancePrimaryPathsFilterIdRequest', + 'Required parameter "systemWriteReplicationPerformancePrimaryPathsFilterIdRequest" was null or undefined when calling systemWriteReplicationPerformancePrimaryPathsFilterId().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/paths-filter/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestToJSON( + requestParameters['systemWriteReplicationPerformancePrimaryPathsFilterIdRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryPathsFilterId( + id: string, + systemWriteReplicationPerformancePrimaryPathsFilterIdRequest: SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformancePrimaryPathsFilterIdRaw( + { + id: id, + systemWriteReplicationPerformancePrimaryPathsFilterIdRequest: + systemWriteReplicationPerformancePrimaryPathsFilterIdRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryRevokeSecondaryRaw( + requestParameters: SystemApiSystemWriteReplicationPerformancePrimaryRevokeSecondaryOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest', + 'Required parameter "systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest" was null or undefined when calling systemWriteReplicationPerformancePrimaryRevokeSecondary().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/revoke-secondary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestToJSON( + requestParameters['systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformancePrimaryRevokeSecondary( + systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest: SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformancePrimaryRevokeSecondaryRaw( + { + systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest: + systemWriteReplicationPerformancePrimaryRevokeSecondaryRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPerformancePrimarySecondaryTokenRaw( + requestParameters: SystemApiSystemWriteReplicationPerformancePrimarySecondaryTokenOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPerformancePrimarySecondaryTokenRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPerformancePrimarySecondaryTokenRequest', + 'Required parameter "systemWriteReplicationPerformancePrimarySecondaryTokenRequest" was null or undefined when calling systemWriteReplicationPerformancePrimarySecondaryToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/performance/primary/secondary-token`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPerformancePrimarySecondaryTokenRequestToJSON( + requestParameters['systemWriteReplicationPerformancePrimarySecondaryTokenRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformancePrimarySecondaryToken( + systemWriteReplicationPerformancePrimarySecondaryTokenRequest: SystemWriteReplicationPerformancePrimarySecondaryTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformancePrimarySecondaryTokenRaw( + { + systemWriteReplicationPerformancePrimarySecondaryTokenRequest: + systemWriteReplicationPerformancePrimarySecondaryTokenRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryDisableRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/secondary/disable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryDisable( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformanceSecondaryDisableRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryEnableRaw( + requestParameters: SystemApiSystemWriteReplicationPerformanceSecondaryEnableOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPerformanceSecondaryEnableRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPerformanceSecondaryEnableRequest', + 'Required parameter "systemWriteReplicationPerformanceSecondaryEnableRequest" was null or undefined when calling systemWriteReplicationPerformanceSecondaryEnable().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/performance/secondary/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPerformanceSecondaryEnableRequestToJSON( + requestParameters['systemWriteReplicationPerformanceSecondaryEnableRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryEnable( + systemWriteReplicationPerformanceSecondaryEnableRequest: SystemWriteReplicationPerformanceSecondaryEnableRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformanceSecondaryEnableRaw( + { + systemWriteReplicationPerformanceSecondaryEnableRequest: + systemWriteReplicationPerformanceSecondaryEnableRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryGeneratePublicKeyRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/performance/secondary/generate-public-key`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryGeneratePublicKey( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformanceSecondaryGeneratePublicKeyRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryPromoteRaw( + requestParameters: SystemApiSystemWriteReplicationPerformanceSecondaryPromoteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPerformanceSecondaryPromoteRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPerformanceSecondaryPromoteRequest', + 'Required parameter "systemWriteReplicationPerformanceSecondaryPromoteRequest" was null or undefined when calling systemWriteReplicationPerformanceSecondaryPromote().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/performance/secondary/promote`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPerformanceSecondaryPromoteRequestToJSON( + requestParameters['systemWriteReplicationPerformanceSecondaryPromoteRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryPromote( + systemWriteReplicationPerformanceSecondaryPromoteRequest: SystemWriteReplicationPerformanceSecondaryPromoteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformanceSecondaryPromoteRaw( + { + systemWriteReplicationPerformanceSecondaryPromoteRequest: + systemWriteReplicationPerformanceSecondaryPromoteRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryUpdatePrimaryRaw( + requestParameters: SystemApiSystemWriteReplicationPerformanceSecondaryUpdatePrimaryOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest', + 'Required parameter "systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest" was null or undefined when calling systemWriteReplicationPerformanceSecondaryUpdatePrimary().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/performance/secondary/update-primary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestToJSON( + requestParameters['systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPerformanceSecondaryUpdatePrimary( + systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest: SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPerformanceSecondaryUpdatePrimaryRaw( + { + systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest: + systemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPrimaryDemoteRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/primary/demote`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPrimaryDemote( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPrimaryDemoteRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationPrimaryDisableRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/primary/disable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPrimaryDisable( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPrimaryDisableRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationPrimaryEnableRaw( + requestParameters: SystemApiSystemWriteReplicationPrimaryEnableOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPrimaryEnableRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPrimaryEnableRequest', + 'Required parameter "systemWriteReplicationPrimaryEnableRequest" was null or undefined when calling systemWriteReplicationPrimaryEnable().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/primary/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPrimaryEnableRequestToJSON( + requestParameters['systemWriteReplicationPrimaryEnableRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPrimaryEnable( + systemWriteReplicationPrimaryEnableRequest: SystemWriteReplicationPrimaryEnableRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPrimaryEnableRaw( + { systemWriteReplicationPrimaryEnableRequest: systemWriteReplicationPrimaryEnableRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPrimaryRevokeSecondaryRaw( + requestParameters: SystemApiSystemWriteReplicationPrimaryRevokeSecondaryOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPrimaryRevokeSecondaryRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPrimaryRevokeSecondaryRequest', + 'Required parameter "systemWriteReplicationPrimaryRevokeSecondaryRequest" was null or undefined when calling systemWriteReplicationPrimaryRevokeSecondary().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/primary/revoke-secondary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPrimaryRevokeSecondaryRequestToJSON( + requestParameters['systemWriteReplicationPrimaryRevokeSecondaryRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPrimaryRevokeSecondary( + systemWriteReplicationPrimaryRevokeSecondaryRequest: SystemWriteReplicationPrimaryRevokeSecondaryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPrimaryRevokeSecondaryRaw( + { + systemWriteReplicationPrimaryRevokeSecondaryRequest: + systemWriteReplicationPrimaryRevokeSecondaryRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationPrimarySecondaryTokenRaw( + requestParameters: SystemApiSystemWriteReplicationPrimarySecondaryTokenOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationPrimarySecondaryTokenRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationPrimarySecondaryTokenRequest', + 'Required parameter "systemWriteReplicationPrimarySecondaryTokenRequest" was null or undefined when calling systemWriteReplicationPrimarySecondaryToken().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/primary/secondary-token`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationPrimarySecondaryTokenRequestToJSON( + requestParameters['systemWriteReplicationPrimarySecondaryTokenRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationPrimarySecondaryToken( + systemWriteReplicationPrimarySecondaryTokenRequest: SystemWriteReplicationPrimarySecondaryTokenRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationPrimarySecondaryTokenRaw( + { + systemWriteReplicationPrimarySecondaryTokenRequest: + systemWriteReplicationPrimarySecondaryTokenRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationRecoverRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/recover`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationRecover( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationRecoverRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationReindexRaw( + requestParameters: SystemApiSystemWriteReplicationReindexOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationReindexRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationReindexRequest', + 'Required parameter "systemWriteReplicationReindexRequest" was null or undefined when calling systemWriteReplicationReindex().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/reindex`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationReindexRequestToJSON( + requestParameters['systemWriteReplicationReindexRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationReindex( + systemWriteReplicationReindexRequest: SystemWriteReplicationReindexRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationReindexRaw( + { systemWriteReplicationReindexRequest: systemWriteReplicationReindexRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationSecondaryDisableRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/replication/secondary/disable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationSecondaryDisable( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationSecondaryDisableRaw(initOverrides); + } + + /** + */ + async systemWriteReplicationSecondaryEnableRaw( + requestParameters: SystemApiSystemWriteReplicationSecondaryEnableOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationSecondaryEnableRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationSecondaryEnableRequest', + 'Required parameter "systemWriteReplicationSecondaryEnableRequest" was null or undefined when calling systemWriteReplicationSecondaryEnable().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/secondary/enable`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationSecondaryEnableRequestToJSON( + requestParameters['systemWriteReplicationSecondaryEnableRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationSecondaryEnable( + systemWriteReplicationSecondaryEnableRequest: SystemWriteReplicationSecondaryEnableRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationSecondaryEnableRaw( + { systemWriteReplicationSecondaryEnableRequest: systemWriteReplicationSecondaryEnableRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationSecondaryPromoteRaw( + requestParameters: SystemApiSystemWriteReplicationSecondaryPromoteOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationSecondaryPromoteRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationSecondaryPromoteRequest', + 'Required parameter "systemWriteReplicationSecondaryPromoteRequest" was null or undefined when calling systemWriteReplicationSecondaryPromote().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/secondary/promote`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationSecondaryPromoteRequestToJSON( + requestParameters['systemWriteReplicationSecondaryPromoteRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationSecondaryPromote( + systemWriteReplicationSecondaryPromoteRequest: SystemWriteReplicationSecondaryPromoteRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationSecondaryPromoteRaw( + { systemWriteReplicationSecondaryPromoteRequest: systemWriteReplicationSecondaryPromoteRequest }, + initOverrides + ); + } + + /** + */ + async systemWriteReplicationSecondaryUpdatePrimaryRaw( + requestParameters: SystemApiSystemWriteReplicationSecondaryUpdatePrimaryOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteReplicationSecondaryUpdatePrimaryRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteReplicationSecondaryUpdatePrimaryRequest', + 'Required parameter "systemWriteReplicationSecondaryUpdatePrimaryRequest" was null or undefined when calling systemWriteReplicationSecondaryUpdatePrimary().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/replication/secondary/update-primary`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteReplicationSecondaryUpdatePrimaryRequestToJSON( + requestParameters['systemWriteReplicationSecondaryUpdatePrimaryRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async systemWriteReplicationSecondaryUpdatePrimary( + systemWriteReplicationSecondaryUpdatePrimaryRequest: SystemWriteReplicationSecondaryUpdatePrimaryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteReplicationSecondaryUpdatePrimaryRaw( + { + systemWriteReplicationSecondaryUpdatePrimaryRequest: + systemWriteReplicationSecondaryUpdatePrimaryRequest, + }, + initOverrides + ); + } + + /** + * Start a seal rewrap process + */ + async systemWriteSealwrapRewrapRaw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/sealwrap/rewrap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Start a seal rewrap process + */ + async systemWriteSealwrapRewrap(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.systemWriteSealwrapRewrapRaw(initOverrides); + } + + /** + * Update automated raft snapshot configuration + */ + async systemWriteStorageRaftSnapshotAutoConfigNameRaw( + requestParameters: SystemApiSystemWriteStorageRaftSnapshotAutoConfigNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteStorageRaftSnapshotAutoConfigName().' + ); + } + + if (requestParameters['systemWriteStorageRaftSnapshotAutoConfigNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteStorageRaftSnapshotAutoConfigNameRequest', + 'Required parameter "systemWriteStorageRaftSnapshotAutoConfigNameRequest" was null or undefined when calling systemWriteStorageRaftSnapshotAutoConfigName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/storage/raft/snapshot-auto/config/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteStorageRaftSnapshotAutoConfigNameRequestToJSON( + requestParameters['systemWriteStorageRaftSnapshotAutoConfigNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Update automated raft snapshot configuration + */ + async systemWriteStorageRaftSnapshotAutoConfigName( + name: string, + systemWriteStorageRaftSnapshotAutoConfigNameRequest: SystemWriteStorageRaftSnapshotAutoConfigNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.systemWriteStorageRaftSnapshotAutoConfigNameRaw( + { + name: name, + systemWriteStorageRaftSnapshotAutoConfigNameRequest: + systemWriteStorageRaftSnapshotAutoConfigNameRequest, + }, + initOverrides + ); + } + + /** + */ + async systemWriteSyncDestinationsAwsSmNameRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsAwsSmNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsAwsSmName().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsAwsSmNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsAwsSmNameRequest', + 'Required parameter "systemWriteSyncDestinationsAwsSmNameRequest" was null or undefined when calling systemWriteSyncDestinationsAwsSmName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/aws-sm/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsAwsSmNameRequestToJSON( + requestParameters['systemWriteSyncDestinationsAwsSmNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsAwsSmNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsAwsSmName( + name: string, + systemWriteSyncDestinationsAwsSmNameRequest: SystemWriteSyncDestinationsAwsSmNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsAwsSmNameRaw( + { + name: name, + systemWriteSyncDestinationsAwsSmNameRequest: systemWriteSyncDestinationsAwsSmNameRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncDestinationsAzureKvNameRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsAzureKvNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsAzureKvName().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsAzureKvNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsAzureKvNameRequest', + 'Required parameter "systemWriteSyncDestinationsAzureKvNameRequest" was null or undefined when calling systemWriteSyncDestinationsAzureKvName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/azure-kv/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsAzureKvNameRequestToJSON( + requestParameters['systemWriteSyncDestinationsAzureKvNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsAzureKvNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsAzureKvName( + name: string, + systemWriteSyncDestinationsAzureKvNameRequest: SystemWriteSyncDestinationsAzureKvNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsAzureKvNameRaw( + { + name: name, + systemWriteSyncDestinationsAzureKvNameRequest: systemWriteSyncDestinationsAzureKvNameRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncDestinationsGcpSmNameRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsGcpSmNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsGcpSmName().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsGcpSmNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsGcpSmNameRequest', + 'Required parameter "systemWriteSyncDestinationsGcpSmNameRequest" was null or undefined when calling systemWriteSyncDestinationsGcpSmName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/gcp-sm/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsGcpSmNameRequestToJSON( + requestParameters['systemWriteSyncDestinationsGcpSmNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsGcpSmNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsGcpSmName( + name: string, + systemWriteSyncDestinationsGcpSmNameRequest: SystemWriteSyncDestinationsGcpSmNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsGcpSmNameRaw( + { + name: name, + systemWriteSyncDestinationsGcpSmNameRequest: systemWriteSyncDestinationsGcpSmNameRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncDestinationsGhNameRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsGhNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsGhName().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsGhNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsGhNameRequest', + 'Required parameter "systemWriteSyncDestinationsGhNameRequest" was null or undefined when calling systemWriteSyncDestinationsGhName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/gh/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsGhNameRequestToJSON( + requestParameters['systemWriteSyncDestinationsGhNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsGhNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsGhName( + name: string, + systemWriteSyncDestinationsGhNameRequest: SystemWriteSyncDestinationsGhNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsGhNameRaw( + { name: name, systemWriteSyncDestinationsGhNameRequest: systemWriteSyncDestinationsGhNameRequest }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncDestinationsInMemNameRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsInMemNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsInMemName().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsInMemNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsInMemNameRequest', + 'Required parameter "systemWriteSyncDestinationsInMemNameRequest" was null or undefined when calling systemWriteSyncDestinationsInMemName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/in-mem/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsInMemNameRequestToJSON( + requestParameters['systemWriteSyncDestinationsInMemNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsInMemNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsInMemName( + name: string, + systemWriteSyncDestinationsInMemNameRequest: SystemWriteSyncDestinationsInMemNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsInMemNameRaw( + { + name: name, + systemWriteSyncDestinationsInMemNameRequest: systemWriteSyncDestinationsInMemNameRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncDestinationsTypeNameAssociationsRemoveRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsTypeNameAssociationsRemoveOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsTypeNameAssociationsRemove().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemWriteSyncDestinationsTypeNameAssociationsRemove().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest', + 'Required parameter "systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest" was null or undefined when calling systemWriteSyncDestinationsTypeNameAssociationsRemove().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/{type}/{name}/associations/remove` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestToJSON( + requestParameters['systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsTypeNameAssociationsRemove( + name: string, + type: string, + systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest: SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsTypeNameAssociationsRemoveRaw( + { + name: name, + type: type, + systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest: + systemWriteSyncDestinationsTypeNameAssociationsRemoveRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncDestinationsTypeNameAssociationsSetRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsTypeNameAssociationsSetOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsTypeNameAssociationsSet().' + ); + } + + if (requestParameters['type'] == null) { + throw new runtime.RequiredError( + 'type', + 'Required parameter "type" was null or undefined when calling systemWriteSyncDestinationsTypeNameAssociationsSet().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsTypeNameAssociationsSetRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsTypeNameAssociationsSetRequest', + 'Required parameter "systemWriteSyncDestinationsTypeNameAssociationsSetRequest" was null or undefined when calling systemWriteSyncDestinationsTypeNameAssociationsSet().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/{type}/{name}/associations/set` + .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters['name']))) + .replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsTypeNameAssociationsSetRequestToJSON( + requestParameters['systemWriteSyncDestinationsTypeNameAssociationsSetRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsTypeNameAssociationsSetResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsTypeNameAssociationsSet( + name: string, + type: string, + systemWriteSyncDestinationsTypeNameAssociationsSetRequest: SystemWriteSyncDestinationsTypeNameAssociationsSetRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsTypeNameAssociationsSetRaw( + { + name: name, + type: type, + systemWriteSyncDestinationsTypeNameAssociationsSetRequest: + systemWriteSyncDestinationsTypeNameAssociationsSetRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncDestinationsVercelProjectNameRaw( + requestParameters: SystemApiSystemWriteSyncDestinationsVercelProjectNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncDestinationsVercelProjectName().' + ); + } + + if (requestParameters['systemWriteSyncDestinationsVercelProjectNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncDestinationsVercelProjectNameRequest', + 'Required parameter "systemWriteSyncDestinationsVercelProjectNameRequest" was null or undefined when calling systemWriteSyncDestinationsVercelProjectName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/destinations/vercel-project/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncDestinationsVercelProjectNameRequestToJSON( + requestParameters['systemWriteSyncDestinationsVercelProjectNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncDestinationsVercelProjectNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncDestinationsVercelProjectName( + name: string, + systemWriteSyncDestinationsVercelProjectNameRequest: SystemWriteSyncDestinationsVercelProjectNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncDestinationsVercelProjectNameRaw( + { + name: name, + systemWriteSyncDestinationsVercelProjectNameRequest: + systemWriteSyncDestinationsVercelProjectNameRequest, + }, + initOverrides + ); + return await response.value(); + } + + /** + */ + async systemWriteSyncGithubAppsNameRaw( + requestParameters: SystemApiSystemWriteSyncGithubAppsNameOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError( + 'name', + 'Required parameter "name" was null or undefined when calling systemWriteSyncGithubAppsName().' + ); + } + + if (requestParameters['systemWriteSyncGithubAppsNameRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteSyncGithubAppsNameRequest', + 'Required parameter "systemWriteSyncGithubAppsNameRequest" was null or undefined when calling systemWriteSyncGithubAppsName().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/sync/github-apps/{name}`.replace( + `{${'name'}}`, + encodeURIComponent(String(requestParameters['name'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteSyncGithubAppsNameRequestToJSON( + requestParameters['systemWriteSyncGithubAppsNameRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteSyncGithubAppsNameResponseFromJSON(jsonValue) + ); + } + + /** + */ + async systemWriteSyncGithubAppsName( + name: string, + systemWriteSyncGithubAppsNameRequest: SystemWriteSyncGithubAppsNameRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteSyncGithubAppsNameRaw( + { name: name, systemWriteSyncGithubAppsNameRequest: systemWriteSyncGithubAppsNameRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Gets manual license reporting data + * returns manual license reporting report data + */ + async systemWriteUtilizationRaw( + requestParameters: SystemApiSystemWriteUtilizationOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['systemWriteUtilizationRequest'] == null) { + throw new runtime.RequiredError( + 'systemWriteUtilizationRequest', + 'Required parameter "systemWriteUtilizationRequest" was null or undefined when calling systemWriteUtilization().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/utilization`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SystemWriteUtilizationRequestToJSON(requestParameters['systemWriteUtilizationRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + SystemWriteUtilizationResponseFromJSON(jsonValue) + ); + } + + /** + * Gets manual license reporting data + * returns manual license reporting report data + */ + async systemWriteUtilization( + systemWriteUtilizationRequest: SystemWriteUtilizationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.systemWriteUtilizationRaw( + { systemWriteUtilizationRequest: systemWriteUtilizationRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Delete custom message + */ + async uiConfigDeleteCustomMessageRaw( + requestParameters: SystemApiUiConfigDeleteCustomMessageRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling uiConfigDeleteCustomMessage().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/ui/custom-messages/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + UiConfigDeleteCustomMessageResponseFromJSON(jsonValue) + ); + } + + /** + * Delete custom message + */ + async uiConfigDeleteCustomMessage( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.uiConfigDeleteCustomMessageRaw({ id: id }, initOverrides); + return await response.value(); + } + + /** + * Lists custom messages + */ + async uiConfigListCustomMessagesRaw( + requestParameters: SystemApiUiConfigListCustomMessagesRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling uiConfigListCustomMessages().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/ui/custom-messages/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Lists custom messages + */ + async uiConfigListCustomMessages( + list: UiConfigListCustomMessagesListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.uiConfigListCustomMessagesRaw({ list: list }, initOverrides); + } + + /** + * Read custom message + */ + async uiConfigReadCustomMessageRaw( + requestParameters: SystemApiUiConfigReadCustomMessageRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling uiConfigReadCustomMessage().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/ui/custom-messages/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + UiConfigReadCustomMessageResponseFromJSON(jsonValue) + ); + } + + /** + * Read custom message + */ + async uiConfigReadCustomMessage( + id: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.uiConfigReadCustomMessageRaw({ id: id }, initOverrides); + return await response.value(); + } + + /** + * Update custom message + */ + async uiConfigUpdateCustomMessageRaw( + requestParameters: SystemApiUiConfigUpdateCustomMessageOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling uiConfigUpdateCustomMessage().' + ); + } + + if (requestParameters['uiConfigUpdateCustomMessageRequest'] == null) { + throw new runtime.RequiredError( + 'uiConfigUpdateCustomMessageRequest', + 'Required parameter "uiConfigUpdateCustomMessageRequest" was null or undefined when calling uiConfigUpdateCustomMessage().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/config/ui/custom-messages/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(requestParameters['id'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UiConfigUpdateCustomMessageRequestToJSON( + requestParameters['uiConfigUpdateCustomMessageRequest'] + ), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + UiConfigUpdateCustomMessageResponseFromJSON(jsonValue) + ); + } + + /** + * Update custom message + */ + async uiConfigUpdateCustomMessage( + id: string, + uiConfigUpdateCustomMessageRequest: UiConfigUpdateCustomMessageRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.uiConfigUpdateCustomMessageRaw( + { id: id, uiConfigUpdateCustomMessageRequest: uiConfigUpdateCustomMessageRequest }, + initOverrides + ); + return await response.value(); + } + + /** + * Configure the values to be returned for the UI header. + */ + async uiHeadersConfigureRaw( + requestParameters: SystemApiUiHeadersConfigureOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['header'] == null) { + throw new runtime.RequiredError( + 'header', + 'Required parameter "header" was null or undefined when calling uiHeadersConfigure().' + ); + } + + if (requestParameters['uiHeadersConfigureRequest'] == null) { + throw new runtime.RequiredError( + 'uiHeadersConfigureRequest', + 'Required parameter "uiHeadersConfigureRequest" was null or undefined when calling uiHeadersConfigure().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/config/ui/headers/{header}`.replace( + `{${'header'}}`, + encodeURIComponent(String(requestParameters['header'])) + ), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UiHeadersConfigureRequestToJSON(requestParameters['uiHeadersConfigureRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Configure the values to be returned for the UI header. + */ + async uiHeadersConfigure( + header: string, + uiHeadersConfigureRequest: UiHeadersConfigureRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.uiHeadersConfigureRaw( + { header: header, uiHeadersConfigureRequest: uiHeadersConfigureRequest }, + initOverrides + ); + } + + /** + * Remove a UI header. + */ + async uiHeadersDeleteConfigurationRaw( + requestParameters: SystemApiUiHeadersDeleteConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['header'] == null) { + throw new runtime.RequiredError( + 'header', + 'Required parameter "header" was null or undefined when calling uiHeadersDeleteConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/ui/headers/{header}`.replace( + `{${'header'}}`, + encodeURIComponent(String(requestParameters['header'])) + ), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + * Remove a UI header. + */ + async uiHeadersDeleteConfiguration( + header: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.uiHeadersDeleteConfigurationRaw({ header: header }, initOverrides); + } + + /** + * Return a list of configured UI headers. + */ + async uiHeadersListRaw( + requestParameters: SystemApiUiHeadersListRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling uiHeadersList().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/ui/headers/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => UiHeadersListResponseFromJSON(jsonValue)); + } + + /** + * Return a list of configured UI headers. + */ + async uiHeadersList( + list: UiHeadersListListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.uiHeadersListRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + * Return the given UI header\'s configuration + */ + async uiHeadersReadConfigurationRaw( + requestParameters: SystemApiUiHeadersReadConfigurationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['header'] == null) { + throw new runtime.RequiredError( + 'header', + 'Required parameter "header" was null or undefined when calling uiHeadersReadConfiguration().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/config/ui/headers/{header}`.replace( + `{${'header'}}`, + encodeURIComponent(String(requestParameters['header'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + UiHeadersReadConfigurationResponseFromJSON(jsonValue) + ); + } + + /** + * Return the given UI header\'s configuration + */ + async uiHeadersReadConfiguration( + header: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.uiHeadersReadConfigurationRaw({ header: header }, initOverrides); + return await response.value(); + } + + /** + * Unseal the Vault. + */ + async unsealRaw( + requestParameters: SystemApiUnsealOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['unsealRequest'] == null) { + throw new runtime.RequiredError( + 'unsealRequest', + 'Required parameter "unsealRequest" was null or undefined when calling unseal().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/unseal`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UnsealRequestToJSON(requestParameters['unsealRequest']), + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => UnsealResponseFromJSON(jsonValue)); + } + + /** + * Unseal the Vault. + */ + async unseal( + unsealRequest: UnsealRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.unsealRaw({ unsealRequest: unsealRequest }, initOverrides); + return await response.value(); + } + + /** + */ + async unwrapRaw( + requestParameters: SystemApiUnwrapOperationRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['unwrapRequest'] == null) { + throw new runtime.RequiredError( + 'unwrapRequest', + 'Required parameter "unwrapRequest" was null or undefined when calling unwrap().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/wrapping/unwrap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: UnwrapRequestToJSON(requestParameters['unwrapRequest']), + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async unwrap( + unwrapRequest: UnwrapRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.unwrapRaw({ unwrapRequest: unwrapRequest }, initOverrides); + } + + /** + * Returns map of historical version change entries + */ + async versionHistoryRaw( + requestParameters: SystemApiVersionHistoryRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling versionHistory().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/version-history/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => VersionHistoryResponseFromJSON(jsonValue)); + } + + /** + * Returns map of historical version change entries + */ + async versionHistory( + list: VersionHistoryListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.versionHistoryRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async wellKnownListLabelsRaw( + requestParameters: SystemApiWellKnownListLabelsRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['list'] == null) { + throw new runtime.RequiredError( + 'list', + 'Required parameter "list" was null or undefined when calling wellKnownListLabels().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['list'] != null) { + queryParameters['list'] = requestParameters['list']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/well-known/`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + WellKnownListLabelsResponseFromJSON(jsonValue) + ); + } + + /** + */ + async wellKnownListLabels( + list: WellKnownListLabelsListEnum, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.wellKnownListLabelsRaw({ list: list }, initOverrides); + return await response.value(); + } + + /** + */ + async wellKnownListLabels2Raw( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/well-known`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + WellKnownListLabels2ResponseFromJSON(jsonValue) + ); + } + + /** + */ + async wellKnownListLabels2( + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.wellKnownListLabels2Raw(initOverrides); + return await response.value(); + } + + /** + * Retrieve the associated mount information for a registered well-known label. + */ + async wellKnownReadLabelRaw( + requestParameters: SystemApiWellKnownReadLabelRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['label'] == null) { + throw new runtime.RequiredError( + 'label', + 'Required parameter "label" was null or undefined when calling wellKnownReadLabel().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + const response = await this.request( + { + path: `/sys/well-known/{label}`.replace( + `{${'label'}}`, + encodeURIComponent(String(requestParameters['label'])) + ), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, + initOverrides + ); + + return new runtime.JSONApiResponse(response, (jsonValue) => + WellKnownReadLabelResponseFromJSON(jsonValue) + ); + } + + /** + * Retrieve the associated mount information for a registered well-known label. + */ + async wellKnownReadLabel( + label: string, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + const response = await this.wellKnownReadLabelRaw({ label: label }, initOverrides); + return await response.value(); + } + + /** + */ + async wrapRaw( + requestParameters: SystemApiWrapRequest, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise> { + if (requestParameters['requestBody'] == null) { + throw new runtime.RequiredError( + 'requestBody', + 'Required parameter "requestBody" was null or undefined when calling wrap().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + const response = await this.request( + { + path: `/sys/wrapping/wrap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: requestParameters['requestBody'], + }, + initOverrides + ); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async wrap( + requestBody: { [key: string]: any }, + initOverrides?: RequestInit | runtime.InitOverrideFunction + ): Promise { + await this.wrapRaw({ requestBody: requestBody }, initOverrides); + } +} + +/** + * @export + * @enum {string} + */ +export enum LeasesLookUpListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PluginsCatalogListPluginsWithTypeListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PluginsRuntimesCatalogListPluginsRuntimes0ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PoliciesListAclPoliciesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PoliciesListAclPolicies3ListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum PoliciesListPasswordPoliciesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum RateLimitQuotasListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum RawListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SubscriptionsListEventsSubscriptionsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListManagedKeysTypeListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListMfaMethodListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListNamespacesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListPoliciesEgpListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListPoliciesRgpListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListQuotasLeaseCountListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListStorageRaftSnapshotAutoConfigListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListSyncAssociationsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListSyncDestinationsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListSyncDestinationsTypeListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum SystemListSyncGithubAppsListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum UiConfigListCustomMessagesListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum UiHeadersListListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum VersionHistoryListEnum { + TRUE = 'true', +} +/** + * @export + * @enum {string} + */ +export enum WellKnownListLabelsListEnum { + TRUE = 'true', +} diff --git a/ui/api-client/src/apis/index.ts b/ui/api-client/src/apis/index.ts new file mode 100644 index 0000000000..5b6aca2a20 --- /dev/null +++ b/ui/api-client/src/apis/index.ts @@ -0,0 +1,6 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AuthApi'; +export * from './IdentityApi'; +export * from './SecretsApi'; +export * from './SystemApi'; diff --git a/ui/api-client/src/index.ts b/ui/api-client/src/index.ts new file mode 100644 index 0000000000..bebe8bbbe2 --- /dev/null +++ b/ui/api-client/src/index.ts @@ -0,0 +1,5 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/ui/api-client/src/models/AliCloudConfigureRequest.ts b/ui/api-client/src/models/AliCloudConfigureRequest.ts new file mode 100644 index 0000000000..a8599d5577 --- /dev/null +++ b/ui/api-client/src/models/AliCloudConfigureRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AliCloudConfigureRequest + */ +export interface AliCloudConfigureRequest { + /** + * Access key with appropriate permissions. + * @type {string} + * @memberof AliCloudConfigureRequest + */ + accessKey?: string; + /** + * Secret key with appropriate permissions. + * @type {string} + * @memberof AliCloudConfigureRequest + */ + secretKey?: string; +} + +/** + * Check if a given object implements the AliCloudConfigureRequest interface. + */ +export function instanceOfAliCloudConfigureRequest(value: object): value is AliCloudConfigureRequest { + return true; +} + +export function AliCloudConfigureRequestFromJSON(json: any): AliCloudConfigureRequest { + return AliCloudConfigureRequestFromJSONTyped(json, false); +} + +export function AliCloudConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AliCloudConfigureRequest { + if (json == null) { + return json; + } + return { + accessKey: json['access_key'] == null ? undefined : json['access_key'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + }; +} + +export function AliCloudConfigureRequestToJSON(json: any): AliCloudConfigureRequest { + return AliCloudConfigureRequestToJSONTyped(json, false); +} + +export function AliCloudConfigureRequestToJSONTyped( + value?: AliCloudConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_key: value['accessKey'], + secret_key: value['secretKey'], + }; +} diff --git a/ui/api-client/src/models/AliCloudLoginRequest.ts b/ui/api-client/src/models/AliCloudLoginRequest.ts new file mode 100644 index 0000000000..98663f09e0 --- /dev/null +++ b/ui/api-client/src/models/AliCloudLoginRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AliCloudLoginRequest + */ +export interface AliCloudLoginRequest { + /** + * The request headers. This must include the headers over which AliCloud has included a signature. + * @type {string} + * @memberof AliCloudLoginRequest + */ + identityRequestHeaders?: string; + /** + * Base64-encoded full URL against which to make the AliCloud request. + * @type {string} + * @memberof AliCloudLoginRequest + */ + identityRequestUrl?: string; + /** + * Name of the role against which the login is being attempted. If a matching role is not found, login fails. + * @type {string} + * @memberof AliCloudLoginRequest + */ + role: string; +} + +/** + * Check if a given object implements the AliCloudLoginRequest interface. + */ +export function instanceOfAliCloudLoginRequest(value: object): value is AliCloudLoginRequest { + if (!('role' in value) || value['role'] === undefined) return false; + return true; +} + +export function AliCloudLoginRequestFromJSON(json: any): AliCloudLoginRequest { + return AliCloudLoginRequestFromJSONTyped(json, false); +} + +export function AliCloudLoginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AliCloudLoginRequest { + if (json == null) { + return json; + } + return { + identityRequestHeaders: + json['identity_request_headers'] == null ? undefined : json['identity_request_headers'], + identityRequestUrl: json['identity_request_url'] == null ? undefined : json['identity_request_url'], + role: json['role'], + }; +} + +export function AliCloudLoginRequestToJSON(json: any): AliCloudLoginRequest { + return AliCloudLoginRequestToJSONTyped(json, false); +} + +export function AliCloudLoginRequestToJSONTyped( + value?: AliCloudLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + identity_request_headers: value['identityRequestHeaders'], + identity_request_url: value['identityRequestUrl'], + role: value['role'], + }; +} diff --git a/ui/api-client/src/models/AliCloudWriteAuthRoleRequest.ts b/ui/api-client/src/models/AliCloudWriteAuthRoleRequest.ts new file mode 100644 index 0000000000..9290c6d394 --- /dev/null +++ b/ui/api-client/src/models/AliCloudWriteAuthRoleRequest.ts @@ -0,0 +1,186 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AliCloudWriteAuthRoleRequest + */ +export interface AliCloudWriteAuthRoleRequest { + /** + * ARN of the RAM to bind to this role. + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + */ + arn?: string; + /** + * Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. + * @type {Array} + * @memberof AliCloudWriteAuthRoleRequest + * @deprecated + */ + boundCidrs?: Array; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + * @deprecated + */ + maxTtl?: string; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof AliCloudWriteAuthRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof AliCloudWriteAuthRoleRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the AliCloudWriteAuthRoleRequest interface. + */ +export function instanceOfAliCloudWriteAuthRoleRequest(value: object): value is AliCloudWriteAuthRoleRequest { + return true; +} + +export function AliCloudWriteAuthRoleRequestFromJSON(json: any): AliCloudWriteAuthRoleRequest { + return AliCloudWriteAuthRoleRequestFromJSONTyped(json, false); +} + +export function AliCloudWriteAuthRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AliCloudWriteAuthRoleRequest { + if (json == null) { + return json; + } + return { + arn: json['arn'] == null ? undefined : json['arn'], + boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AliCloudWriteAuthRoleRequestToJSON(json: any): AliCloudWriteAuthRoleRequest { + return AliCloudWriteAuthRoleRequestToJSONTyped(json, false); +} + +export function AliCloudWriteAuthRoleRequestToJSONTyped( + value?: AliCloudWriteAuthRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + arn: value['arn'], + bound_cidrs: value['boundCidrs'], + max_ttl: value['maxTtl'], + period: value['period'], + policies: value['policies'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AliCloudWriteRoleRequest.ts b/ui/api-client/src/models/AliCloudWriteRoleRequest.ts new file mode 100644 index 0000000000..b9f98b4bc9 --- /dev/null +++ b/ui/api-client/src/models/AliCloudWriteRoleRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AliCloudWriteRoleRequest + */ +export interface AliCloudWriteRoleRequest { + /** + * JSON of policies to be dynamically applied to users of this role. + * @type {string} + * @memberof AliCloudWriteRoleRequest + */ + inlinePolicies?: string; + /** + * The maximum allowed lifetime of tokens issued using this role. + * @type {string} + * @memberof AliCloudWriteRoleRequest + */ + maxTtl?: string; + /** + * The name and type of each remote policy to be applied. Example: "name:AliyunRDSReadOnlyAccess,type:System". + * @type {Array} + * @memberof AliCloudWriteRoleRequest + */ + remotePolicies?: Array; + /** + * ARN of the role to be assumed. If provided, inline_policies and remote_policies should be blank. At creation time, this role must have configured trusted actors, and the access key and secret that will be used to assume the role (in /config) must qualify as a trusted actor. + * @type {string} + * @memberof AliCloudWriteRoleRequest + */ + roleArn?: string; + /** + * Duration in seconds after which the issued token should expire. Defaults to 0, in which case the value will fallback to the system/mount defaults. + * @type {string} + * @memberof AliCloudWriteRoleRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the AliCloudWriteRoleRequest interface. + */ +export function instanceOfAliCloudWriteRoleRequest(value: object): value is AliCloudWriteRoleRequest { + return true; +} + +export function AliCloudWriteRoleRequestFromJSON(json: any): AliCloudWriteRoleRequest { + return AliCloudWriteRoleRequestFromJSONTyped(json, false); +} + +export function AliCloudWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AliCloudWriteRoleRequest { + if (json == null) { + return json; + } + return { + inlinePolicies: json['inline_policies'] == null ? undefined : json['inline_policies'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + remotePolicies: json['remote_policies'] == null ? undefined : json['remote_policies'], + roleArn: json['role_arn'] == null ? undefined : json['role_arn'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AliCloudWriteRoleRequestToJSON(json: any): AliCloudWriteRoleRequest { + return AliCloudWriteRoleRequestToJSONTyped(json, false); +} + +export function AliCloudWriteRoleRequestToJSONTyped( + value?: AliCloudWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + inline_policies: value['inlinePolicies'], + max_ttl: value['maxTtl'], + remote_policies: value['remotePolicies'], + role_arn: value['roleArn'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AliasCreateRequest.ts b/ui/api-client/src/models/AliasCreateRequest.ts new file mode 100644 index 0000000000..4ff48f5de1 --- /dev/null +++ b/ui/api-client/src/models/AliasCreateRequest.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AliasCreateRequest + */ +export interface AliasCreateRequest { + /** + * Entity ID to which this alias belongs to + * @type {string} + * @memberof AliasCreateRequest + */ + canonicalId?: string; + /** + * Entity ID to which this alias belongs to. This field is deprecated in favor of 'canonical_id'. + * @type {string} + * @memberof AliasCreateRequest + */ + entityId?: string; + /** + * ID of the alias + * @type {string} + * @memberof AliasCreateRequest + */ + id?: string; + /** + * Mount accessor to which this alias belongs to + * @type {string} + * @memberof AliasCreateRequest + */ + mountAccessor?: string; + /** + * Name of the alias + * @type {string} + * @memberof AliasCreateRequest + */ + name?: string; +} + +/** + * Check if a given object implements the AliasCreateRequest interface. + */ +export function instanceOfAliasCreateRequest(value: object): value is AliasCreateRequest { + return true; +} + +export function AliasCreateRequestFromJSON(json: any): AliasCreateRequest { + return AliasCreateRequestFromJSONTyped(json, false); +} + +export function AliasCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AliasCreateRequest { + if (json == null) { + return json; + } + return { + canonicalId: json['canonical_id'] == null ? undefined : json['canonical_id'], + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + id: json['id'] == null ? undefined : json['id'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function AliasCreateRequestToJSON(json: any): AliasCreateRequest { + return AliasCreateRequestToJSONTyped(json, false); +} + +export function AliasCreateRequestToJSONTyped( + value?: AliasCreateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + canonical_id: value['canonicalId'], + entity_id: value['entityId'], + id: value['id'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/AliasUpdateByIdRequest.ts b/ui/api-client/src/models/AliasUpdateByIdRequest.ts new file mode 100644 index 0000000000..df8f445e98 --- /dev/null +++ b/ui/api-client/src/models/AliasUpdateByIdRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AliasUpdateByIdRequest + */ +export interface AliasUpdateByIdRequest { + /** + * Entity ID to which this alias should be tied to + * @type {string} + * @memberof AliasUpdateByIdRequest + */ + canonicalId?: string; + /** + * Entity ID to which this alias should be tied to. This field is deprecated in favor of 'canonical_id'. + * @type {string} + * @memberof AliasUpdateByIdRequest + */ + entityId?: string; + /** + * Mount accessor to which this alias belongs to + * @type {string} + * @memberof AliasUpdateByIdRequest + */ + mountAccessor?: string; + /** + * Name of the alias + * @type {string} + * @memberof AliasUpdateByIdRequest + */ + name?: string; +} + +/** + * Check if a given object implements the AliasUpdateByIdRequest interface. + */ +export function instanceOfAliasUpdateByIdRequest(value: object): value is AliasUpdateByIdRequest { + return true; +} + +export function AliasUpdateByIdRequestFromJSON(json: any): AliasUpdateByIdRequest { + return AliasUpdateByIdRequestFromJSONTyped(json, false); +} + +export function AliasUpdateByIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AliasUpdateByIdRequest { + if (json == null) { + return json; + } + return { + canonicalId: json['canonical_id'] == null ? undefined : json['canonical_id'], + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function AliasUpdateByIdRequestToJSON(json: any): AliasUpdateByIdRequest { + return AliasUpdateByIdRequestToJSONTyped(json, false); +} + +export function AliasUpdateByIdRequestToJSONTyped( + value?: AliasUpdateByIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + canonical_id: value['canonicalId'], + entity_id: value['entityId'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/AppRoleDestroySecretIdByAccessorRequest.ts b/ui/api-client/src/models/AppRoleDestroySecretIdByAccessorRequest.ts new file mode 100644 index 0000000000..6f19878d7e --- /dev/null +++ b/ui/api-client/src/models/AppRoleDestroySecretIdByAccessorRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleDestroySecretIdByAccessorRequest + */ +export interface AppRoleDestroySecretIdByAccessorRequest { + /** + * Accessor of the SecretID + * @type {string} + * @memberof AppRoleDestroySecretIdByAccessorRequest + */ + secretIdAccessor?: string; +} + +/** + * Check if a given object implements the AppRoleDestroySecretIdByAccessorRequest interface. + */ +export function instanceOfAppRoleDestroySecretIdByAccessorRequest( + value: object +): value is AppRoleDestroySecretIdByAccessorRequest { + return true; +} + +export function AppRoleDestroySecretIdByAccessorRequestFromJSON( + json: any +): AppRoleDestroySecretIdByAccessorRequest { + return AppRoleDestroySecretIdByAccessorRequestFromJSONTyped(json, false); +} + +export function AppRoleDestroySecretIdByAccessorRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleDestroySecretIdByAccessorRequest { + if (json == null) { + return json; + } + return { + secretIdAccessor: json['secret_id_accessor'] == null ? undefined : json['secret_id_accessor'], + }; +} + +export function AppRoleDestroySecretIdByAccessorRequestToJSON( + json: any +): AppRoleDestroySecretIdByAccessorRequest { + return AppRoleDestroySecretIdByAccessorRequestToJSONTyped(json, false); +} + +export function AppRoleDestroySecretIdByAccessorRequestToJSONTyped( + value?: AppRoleDestroySecretIdByAccessorRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_accessor: value['secretIdAccessor'], + }; +} diff --git a/ui/api-client/src/models/AppRoleDestroySecretIdRequest.ts b/ui/api-client/src/models/AppRoleDestroySecretIdRequest.ts new file mode 100644 index 0000000000..2d2263b261 --- /dev/null +++ b/ui/api-client/src/models/AppRoleDestroySecretIdRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleDestroySecretIdRequest + */ +export interface AppRoleDestroySecretIdRequest { + /** + * SecretID attached to the role. + * @type {string} + * @memberof AppRoleDestroySecretIdRequest + */ + secretId?: string; +} + +/** + * Check if a given object implements the AppRoleDestroySecretIdRequest interface. + */ +export function instanceOfAppRoleDestroySecretIdRequest( + value: object +): value is AppRoleDestroySecretIdRequest { + return true; +} + +export function AppRoleDestroySecretIdRequestFromJSON(json: any): AppRoleDestroySecretIdRequest { + return AppRoleDestroySecretIdRequestFromJSONTyped(json, false); +} + +export function AppRoleDestroySecretIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleDestroySecretIdRequest { + if (json == null) { + return json; + } + return { + secretId: json['secret_id'] == null ? undefined : json['secret_id'], + }; +} + +export function AppRoleDestroySecretIdRequestToJSON(json: any): AppRoleDestroySecretIdRequest { + return AppRoleDestroySecretIdRequestToJSONTyped(json, false); +} + +export function AppRoleDestroySecretIdRequestToJSONTyped( + value?: AppRoleDestroySecretIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id: value['secretId'], + }; +} diff --git a/ui/api-client/src/models/AppRoleLoginRequest.ts b/ui/api-client/src/models/AppRoleLoginRequest.ts new file mode 100644 index 0000000000..d568c82c50 --- /dev/null +++ b/ui/api-client/src/models/AppRoleLoginRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleLoginRequest + */ +export interface AppRoleLoginRequest { + /** + * Unique identifier of the Role. Required to be supplied when the 'bind_secret_id' constraint is set. + * @type {string} + * @memberof AppRoleLoginRequest + */ + roleId?: string; + /** + * SecretID belong to the App role + * @type {string} + * @memberof AppRoleLoginRequest + */ + secretId?: string; +} + +/** + * Check if a given object implements the AppRoleLoginRequest interface. + */ +export function instanceOfAppRoleLoginRequest(value: object): value is AppRoleLoginRequest { + return true; +} + +export function AppRoleLoginRequestFromJSON(json: any): AppRoleLoginRequest { + return AppRoleLoginRequestFromJSONTyped(json, false); +} + +export function AppRoleLoginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleLoginRequest { + if (json == null) { + return json; + } + return { + roleId: json['role_id'] == null ? undefined : json['role_id'], + secretId: json['secret_id'] == null ? undefined : json['secret_id'], + }; +} + +export function AppRoleLoginRequestToJSON(json: any): AppRoleLoginRequest { + return AppRoleLoginRequestToJSONTyped(json, false); +} + +export function AppRoleLoginRequestToJSONTyped( + value?: AppRoleLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + role_id: value['roleId'], + secret_id: value['secretId'], + }; +} diff --git a/ui/api-client/src/models/AppRoleLoginResponse.ts b/ui/api-client/src/models/AppRoleLoginResponse.ts new file mode 100644 index 0000000000..bb9577d0d0 --- /dev/null +++ b/ui/api-client/src/models/AppRoleLoginResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleLoginResponse + */ +export interface AppRoleLoginResponse { + /** + * + * @type {string} + * @memberof AppRoleLoginResponse + */ + role?: string; +} + +/** + * Check if a given object implements the AppRoleLoginResponse interface. + */ +export function instanceOfAppRoleLoginResponse(value: object): value is AppRoleLoginResponse { + return true; +} + +export function AppRoleLoginResponseFromJSON(json: any): AppRoleLoginResponse { + return AppRoleLoginResponseFromJSONTyped(json, false); +} + +export function AppRoleLoginResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleLoginResponse { + if (json == null) { + return json; + } + return { + role: json['role'] == null ? undefined : json['role'], + }; +} + +export function AppRoleLoginResponseToJSON(json: any): AppRoleLoginResponse { + return AppRoleLoginResponseToJSONTyped(json, false); +} + +export function AppRoleLoginResponseToJSONTyped( + value?: AppRoleLoginResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + role: value['role'], + }; +} diff --git a/ui/api-client/src/models/AppRoleLookUpSecretIdByAccessorRequest.ts b/ui/api-client/src/models/AppRoleLookUpSecretIdByAccessorRequest.ts new file mode 100644 index 0000000000..f6427f78e3 --- /dev/null +++ b/ui/api-client/src/models/AppRoleLookUpSecretIdByAccessorRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleLookUpSecretIdByAccessorRequest + */ +export interface AppRoleLookUpSecretIdByAccessorRequest { + /** + * Accessor of the SecretID + * @type {string} + * @memberof AppRoleLookUpSecretIdByAccessorRequest + */ + secretIdAccessor?: string; +} + +/** + * Check if a given object implements the AppRoleLookUpSecretIdByAccessorRequest interface. + */ +export function instanceOfAppRoleLookUpSecretIdByAccessorRequest( + value: object +): value is AppRoleLookUpSecretIdByAccessorRequest { + return true; +} + +export function AppRoleLookUpSecretIdByAccessorRequestFromJSON( + json: any +): AppRoleLookUpSecretIdByAccessorRequest { + return AppRoleLookUpSecretIdByAccessorRequestFromJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdByAccessorRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleLookUpSecretIdByAccessorRequest { + if (json == null) { + return json; + } + return { + secretIdAccessor: json['secret_id_accessor'] == null ? undefined : json['secret_id_accessor'], + }; +} + +export function AppRoleLookUpSecretIdByAccessorRequestToJSON( + json: any +): AppRoleLookUpSecretIdByAccessorRequest { + return AppRoleLookUpSecretIdByAccessorRequestToJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdByAccessorRequestToJSONTyped( + value?: AppRoleLookUpSecretIdByAccessorRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_accessor: value['secretIdAccessor'], + }; +} diff --git a/ui/api-client/src/models/AppRoleLookUpSecretIdByAccessorResponse.ts b/ui/api-client/src/models/AppRoleLookUpSecretIdByAccessorResponse.ts new file mode 100644 index 0000000000..017eb35a3e --- /dev/null +++ b/ui/api-client/src/models/AppRoleLookUpSecretIdByAccessorResponse.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleLookUpSecretIdByAccessorResponse + */ +export interface AppRoleLookUpSecretIdByAccessorResponse { + /** + * List of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. + * @type {Array} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + cidrList?: Array; + /** + * + * @type {Date} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + creationTime?: Date; + /** + * + * @type {Date} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + expirationTime?: Date; + /** + * + * @type {Date} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + lastUpdatedTime?: Date; + /** + * + * @type {object} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + metadata?: object; + /** + * Accessor of the secret ID + * @type {string} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + secretIdAccessor?: string; + /** + * Number of times a secret ID can access the role, after which the secret ID will expire. + * @type {number} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + secretIdNumUses?: number; + /** + * Duration in seconds after which the issued secret ID expires. + * @type {number} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + secretIdTtl?: number; + /** + * List of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. + * @type {Array} + * @memberof AppRoleLookUpSecretIdByAccessorResponse + */ + tokenBoundCidrs?: Array; +} + +/** + * Check if a given object implements the AppRoleLookUpSecretIdByAccessorResponse interface. + */ +export function instanceOfAppRoleLookUpSecretIdByAccessorResponse( + value: object +): value is AppRoleLookUpSecretIdByAccessorResponse { + return true; +} + +export function AppRoleLookUpSecretIdByAccessorResponseFromJSON( + json: any +): AppRoleLookUpSecretIdByAccessorResponse { + return AppRoleLookUpSecretIdByAccessorResponseFromJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdByAccessorResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleLookUpSecretIdByAccessorResponse { + if (json == null) { + return json; + } + return { + cidrList: json['cidr_list'] == null ? undefined : json['cidr_list'], + creationTime: json['creation_time'] == null ? undefined : new Date(json['creation_time']), + expirationTime: json['expiration_time'] == null ? undefined : new Date(json['expiration_time']), + lastUpdatedTime: json['last_updated_time'] == null ? undefined : new Date(json['last_updated_time']), + metadata: json['metadata'] == null ? undefined : json['metadata'], + secretIdAccessor: json['secret_id_accessor'] == null ? undefined : json['secret_id_accessor'], + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + }; +} + +export function AppRoleLookUpSecretIdByAccessorResponseToJSON( + json: any +): AppRoleLookUpSecretIdByAccessorResponse { + return AppRoleLookUpSecretIdByAccessorResponseToJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdByAccessorResponseToJSONTyped( + value?: AppRoleLookUpSecretIdByAccessorResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cidr_list: value['cidrList'], + creation_time: value['creationTime'] == null ? undefined : value['creationTime'].toISOString(), + expiration_time: value['expirationTime'] == null ? undefined : value['expirationTime'].toISOString(), + last_updated_time: value['lastUpdatedTime'] == null ? undefined : value['lastUpdatedTime'].toISOString(), + metadata: value['metadata'], + secret_id_accessor: value['secretIdAccessor'], + secret_id_num_uses: value['secretIdNumUses'], + secret_id_ttl: value['secretIdTtl'], + token_bound_cidrs: value['tokenBoundCidrs'], + }; +} diff --git a/ui/api-client/src/models/AppRoleLookUpSecretIdRequest.ts b/ui/api-client/src/models/AppRoleLookUpSecretIdRequest.ts new file mode 100644 index 0000000000..08c9ae7e29 --- /dev/null +++ b/ui/api-client/src/models/AppRoleLookUpSecretIdRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleLookUpSecretIdRequest + */ +export interface AppRoleLookUpSecretIdRequest { + /** + * SecretID attached to the role. + * @type {string} + * @memberof AppRoleLookUpSecretIdRequest + */ + secretId?: string; +} + +/** + * Check if a given object implements the AppRoleLookUpSecretIdRequest interface. + */ +export function instanceOfAppRoleLookUpSecretIdRequest(value: object): value is AppRoleLookUpSecretIdRequest { + return true; +} + +export function AppRoleLookUpSecretIdRequestFromJSON(json: any): AppRoleLookUpSecretIdRequest { + return AppRoleLookUpSecretIdRequestFromJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleLookUpSecretIdRequest { + if (json == null) { + return json; + } + return { + secretId: json['secret_id'] == null ? undefined : json['secret_id'], + }; +} + +export function AppRoleLookUpSecretIdRequestToJSON(json: any): AppRoleLookUpSecretIdRequest { + return AppRoleLookUpSecretIdRequestToJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdRequestToJSONTyped( + value?: AppRoleLookUpSecretIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id: value['secretId'], + }; +} diff --git a/ui/api-client/src/models/AppRoleLookUpSecretIdResponse.ts b/ui/api-client/src/models/AppRoleLookUpSecretIdResponse.ts new file mode 100644 index 0000000000..e8406b0d2e --- /dev/null +++ b/ui/api-client/src/models/AppRoleLookUpSecretIdResponse.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleLookUpSecretIdResponse + */ +export interface AppRoleLookUpSecretIdResponse { + /** + * List of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. + * @type {Array} + * @memberof AppRoleLookUpSecretIdResponse + */ + cidrList?: Array; + /** + * + * @type {Date} + * @memberof AppRoleLookUpSecretIdResponse + */ + creationTime?: Date; + /** + * + * @type {Date} + * @memberof AppRoleLookUpSecretIdResponse + */ + expirationTime?: Date; + /** + * + * @type {Date} + * @memberof AppRoleLookUpSecretIdResponse + */ + lastUpdatedTime?: Date; + /** + * + * @type {object} + * @memberof AppRoleLookUpSecretIdResponse + */ + metadata?: object; + /** + * Accessor of the secret ID + * @type {string} + * @memberof AppRoleLookUpSecretIdResponse + */ + secretIdAccessor?: string; + /** + * Number of times a secret ID can access the role, after which the secret ID will expire. + * @type {number} + * @memberof AppRoleLookUpSecretIdResponse + */ + secretIdNumUses?: number; + /** + * Duration in seconds after which the issued secret ID expires. + * @type {number} + * @memberof AppRoleLookUpSecretIdResponse + */ + secretIdTtl?: number; + /** + * List of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. + * @type {Array} + * @memberof AppRoleLookUpSecretIdResponse + */ + tokenBoundCidrs?: Array; +} + +/** + * Check if a given object implements the AppRoleLookUpSecretIdResponse interface. + */ +export function instanceOfAppRoleLookUpSecretIdResponse( + value: object +): value is AppRoleLookUpSecretIdResponse { + return true; +} + +export function AppRoleLookUpSecretIdResponseFromJSON(json: any): AppRoleLookUpSecretIdResponse { + return AppRoleLookUpSecretIdResponseFromJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleLookUpSecretIdResponse { + if (json == null) { + return json; + } + return { + cidrList: json['cidr_list'] == null ? undefined : json['cidr_list'], + creationTime: json['creation_time'] == null ? undefined : new Date(json['creation_time']), + expirationTime: json['expiration_time'] == null ? undefined : new Date(json['expiration_time']), + lastUpdatedTime: json['last_updated_time'] == null ? undefined : new Date(json['last_updated_time']), + metadata: json['metadata'] == null ? undefined : json['metadata'], + secretIdAccessor: json['secret_id_accessor'] == null ? undefined : json['secret_id_accessor'], + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + }; +} + +export function AppRoleLookUpSecretIdResponseToJSON(json: any): AppRoleLookUpSecretIdResponse { + return AppRoleLookUpSecretIdResponseToJSONTyped(json, false); +} + +export function AppRoleLookUpSecretIdResponseToJSONTyped( + value?: AppRoleLookUpSecretIdResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cidr_list: value['cidrList'], + creation_time: value['creationTime'] == null ? undefined : value['creationTime'].toISOString(), + expiration_time: value['expirationTime'] == null ? undefined : value['expirationTime'].toISOString(), + last_updated_time: value['lastUpdatedTime'] == null ? undefined : value['lastUpdatedTime'].toISOString(), + metadata: value['metadata'], + secret_id_accessor: value['secretIdAccessor'], + secret_id_num_uses: value['secretIdNumUses'], + secret_id_ttl: value['secretIdTtl'], + token_bound_cidrs: value['tokenBoundCidrs'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadBindSecretIdResponse.ts b/ui/api-client/src/models/AppRoleReadBindSecretIdResponse.ts new file mode 100644 index 0000000000..f30cbe7ebd --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadBindSecretIdResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadBindSecretIdResponse + */ +export interface AppRoleReadBindSecretIdResponse { + /** + * Impose secret_id to be presented when logging in using this role. Defaults to 'true'. + * @type {boolean} + * @memberof AppRoleReadBindSecretIdResponse + */ + bindSecretId?: boolean; +} + +/** + * Check if a given object implements the AppRoleReadBindSecretIdResponse interface. + */ +export function instanceOfAppRoleReadBindSecretIdResponse( + value: object +): value is AppRoleReadBindSecretIdResponse { + return true; +} + +export function AppRoleReadBindSecretIdResponseFromJSON(json: any): AppRoleReadBindSecretIdResponse { + return AppRoleReadBindSecretIdResponseFromJSONTyped(json, false); +} + +export function AppRoleReadBindSecretIdResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadBindSecretIdResponse { + if (json == null) { + return json; + } + return { + bindSecretId: json['bind_secret_id'] == null ? undefined : json['bind_secret_id'], + }; +} + +export function AppRoleReadBindSecretIdResponseToJSON(json: any): AppRoleReadBindSecretIdResponse { + return AppRoleReadBindSecretIdResponseToJSONTyped(json, false); +} + +export function AppRoleReadBindSecretIdResponseToJSONTyped( + value?: AppRoleReadBindSecretIdResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bind_secret_id: value['bindSecretId'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadBoundCidrListResponse.ts b/ui/api-client/src/models/AppRoleReadBoundCidrListResponse.ts new file mode 100644 index 0000000000..ce7fc27a54 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadBoundCidrListResponse.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadBoundCidrListResponse + */ +export interface AppRoleReadBoundCidrListResponse { + /** + * Deprecated: Please use "secret_id_bound_cidrs" instead. Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. + * @type {Array} + * @memberof AppRoleReadBoundCidrListResponse + * @deprecated + */ + boundCidrList?: Array; +} + +/** + * Check if a given object implements the AppRoleReadBoundCidrListResponse interface. + */ +export function instanceOfAppRoleReadBoundCidrListResponse( + value: object +): value is AppRoleReadBoundCidrListResponse { + return true; +} + +export function AppRoleReadBoundCidrListResponseFromJSON(json: any): AppRoleReadBoundCidrListResponse { + return AppRoleReadBoundCidrListResponseFromJSONTyped(json, false); +} + +export function AppRoleReadBoundCidrListResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadBoundCidrListResponse { + if (json == null) { + return json; + } + return { + boundCidrList: json['bound_cidr_list'] == null ? undefined : json['bound_cidr_list'], + }; +} + +export function AppRoleReadBoundCidrListResponseToJSON(json: any): AppRoleReadBoundCidrListResponse { + return AppRoleReadBoundCidrListResponseToJSONTyped(json, false); +} + +export function AppRoleReadBoundCidrListResponseToJSONTyped( + value?: AppRoleReadBoundCidrListResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bound_cidr_list: value['boundCidrList'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadLocalSecretIdsResponse.ts b/ui/api-client/src/models/AppRoleReadLocalSecretIdsResponse.ts new file mode 100644 index 0000000000..7683fe2e19 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadLocalSecretIdsResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadLocalSecretIdsResponse + */ +export interface AppRoleReadLocalSecretIdsResponse { + /** + * If true, the secret identifiers generated using this role will be cluster local. This can only be set during role creation and once set, it can't be reset later + * @type {boolean} + * @memberof AppRoleReadLocalSecretIdsResponse + */ + localSecretIds?: boolean; +} + +/** + * Check if a given object implements the AppRoleReadLocalSecretIdsResponse interface. + */ +export function instanceOfAppRoleReadLocalSecretIdsResponse( + value: object +): value is AppRoleReadLocalSecretIdsResponse { + return true; +} + +export function AppRoleReadLocalSecretIdsResponseFromJSON(json: any): AppRoleReadLocalSecretIdsResponse { + return AppRoleReadLocalSecretIdsResponseFromJSONTyped(json, false); +} + +export function AppRoleReadLocalSecretIdsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadLocalSecretIdsResponse { + if (json == null) { + return json; + } + return { + localSecretIds: json['local_secret_ids'] == null ? undefined : json['local_secret_ids'], + }; +} + +export function AppRoleReadLocalSecretIdsResponseToJSON(json: any): AppRoleReadLocalSecretIdsResponse { + return AppRoleReadLocalSecretIdsResponseToJSONTyped(json, false); +} + +export function AppRoleReadLocalSecretIdsResponseToJSONTyped( + value?: AppRoleReadLocalSecretIdsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + local_secret_ids: value['localSecretIds'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadPeriodResponse.ts b/ui/api-client/src/models/AppRoleReadPeriodResponse.ts new file mode 100644 index 0000000000..dd16c7cd12 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadPeriodResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadPeriodResponse + */ +export interface AppRoleReadPeriodResponse { + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {number} + * @memberof AppRoleReadPeriodResponse + * @deprecated + */ + period?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {number} + * @memberof AppRoleReadPeriodResponse + */ + tokenPeriod?: number; +} + +/** + * Check if a given object implements the AppRoleReadPeriodResponse interface. + */ +export function instanceOfAppRoleReadPeriodResponse(value: object): value is AppRoleReadPeriodResponse { + return true; +} + +export function AppRoleReadPeriodResponseFromJSON(json: any): AppRoleReadPeriodResponse { + return AppRoleReadPeriodResponseFromJSONTyped(json, false); +} + +export function AppRoleReadPeriodResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadPeriodResponse { + if (json == null) { + return json; + } + return { + period: json['period'] == null ? undefined : json['period'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + }; +} + +export function AppRoleReadPeriodResponseToJSON(json: any): AppRoleReadPeriodResponse { + return AppRoleReadPeriodResponseToJSONTyped(json, false); +} + +export function AppRoleReadPeriodResponseToJSONTyped( + value?: AppRoleReadPeriodResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + period: value['period'], + token_period: value['tokenPeriod'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadPoliciesResponse.ts b/ui/api-client/src/models/AppRoleReadPoliciesResponse.ts new file mode 100644 index 0000000000..d629e43b2c --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadPoliciesResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadPoliciesResponse + */ +export interface AppRoleReadPoliciesResponse { + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof AppRoleReadPoliciesResponse + * @deprecated + */ + policies?: Array; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof AppRoleReadPoliciesResponse + */ + tokenPolicies?: Array; +} + +/** + * Check if a given object implements the AppRoleReadPoliciesResponse interface. + */ +export function instanceOfAppRoleReadPoliciesResponse(value: object): value is AppRoleReadPoliciesResponse { + return true; +} + +export function AppRoleReadPoliciesResponseFromJSON(json: any): AppRoleReadPoliciesResponse { + return AppRoleReadPoliciesResponseFromJSONTyped(json, false); +} + +export function AppRoleReadPoliciesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadPoliciesResponse { + if (json == null) { + return json; + } + return { + policies: json['policies'] == null ? undefined : json['policies'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + }; +} + +export function AppRoleReadPoliciesResponseToJSON(json: any): AppRoleReadPoliciesResponse { + return AppRoleReadPoliciesResponseToJSONTyped(json, false); +} + +export function AppRoleReadPoliciesResponseToJSONTyped( + value?: AppRoleReadPoliciesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policies: value['policies'], + token_policies: value['tokenPolicies'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadRoleIdResponse.ts b/ui/api-client/src/models/AppRoleReadRoleIdResponse.ts new file mode 100644 index 0000000000..3f78144429 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadRoleIdResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadRoleIdResponse + */ +export interface AppRoleReadRoleIdResponse { + /** + * Identifier of the role. Defaults to a UUID. + * @type {string} + * @memberof AppRoleReadRoleIdResponse + */ + roleId?: string; +} + +/** + * Check if a given object implements the AppRoleReadRoleIdResponse interface. + */ +export function instanceOfAppRoleReadRoleIdResponse(value: object): value is AppRoleReadRoleIdResponse { + return true; +} + +export function AppRoleReadRoleIdResponseFromJSON(json: any): AppRoleReadRoleIdResponse { + return AppRoleReadRoleIdResponseFromJSONTyped(json, false); +} + +export function AppRoleReadRoleIdResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadRoleIdResponse { + if (json == null) { + return json; + } + return { + roleId: json['role_id'] == null ? undefined : json['role_id'], + }; +} + +export function AppRoleReadRoleIdResponseToJSON(json: any): AppRoleReadRoleIdResponse { + return AppRoleReadRoleIdResponseToJSONTyped(json, false); +} + +export function AppRoleReadRoleIdResponseToJSONTyped( + value?: AppRoleReadRoleIdResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + role_id: value['roleId'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadRoleResponse.ts b/ui/api-client/src/models/AppRoleReadRoleResponse.ts new file mode 100644 index 0000000000..86b2c2f1d6 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadRoleResponse.ts @@ -0,0 +1,191 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadRoleResponse + */ +export interface AppRoleReadRoleResponse { + /** + * Impose secret ID to be presented when logging in using this role. + * @type {boolean} + * @memberof AppRoleReadRoleResponse + */ + bindSecretId?: boolean; + /** + * If true, the secret identifiers generated using this role will be cluster local. This can only be set during role creation and once set, it can't be reset later + * @type {boolean} + * @memberof AppRoleReadRoleResponse + */ + localSecretIds?: boolean; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {number} + * @memberof AppRoleReadRoleResponse + * @deprecated + */ + period?: number; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof AppRoleReadRoleResponse + * @deprecated + */ + policies?: Array; + /** + * Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. + * @type {Array} + * @memberof AppRoleReadRoleResponse + */ + secretIdBoundCidrs?: Array; + /** + * Number of times a secret ID can access the role, after which the secret ID will expire. + * @type {number} + * @memberof AppRoleReadRoleResponse + */ + secretIdNumUses?: number; + /** + * Duration in seconds after which the issued secret ID expires. + * @type {number} + * @memberof AppRoleReadRoleResponse + */ + secretIdTtl?: number; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof AppRoleReadRoleResponse + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {number} + * @memberof AppRoleReadRoleResponse + */ + tokenExplicitMaxTtl?: number; + /** + * The maximum lifetime of the generated token + * @type {number} + * @memberof AppRoleReadRoleResponse + */ + tokenMaxTtl?: number; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof AppRoleReadRoleResponse + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof AppRoleReadRoleResponse + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. + * @type {number} + * @memberof AppRoleReadRoleResponse + */ + tokenPeriod?: number; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof AppRoleReadRoleResponse + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {number} + * @memberof AppRoleReadRoleResponse + */ + tokenTtl?: number; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof AppRoleReadRoleResponse + */ + tokenType?: string; +} + +/** + * Check if a given object implements the AppRoleReadRoleResponse interface. + */ +export function instanceOfAppRoleReadRoleResponse(value: object): value is AppRoleReadRoleResponse { + return true; +} + +export function AppRoleReadRoleResponseFromJSON(json: any): AppRoleReadRoleResponse { + return AppRoleReadRoleResponseFromJSONTyped(json, false); +} + +export function AppRoleReadRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadRoleResponse { + if (json == null) { + return json; + } + return { + bindSecretId: json['bind_secret_id'] == null ? undefined : json['bind_secret_id'], + localSecretIds: json['local_secret_ids'] == null ? undefined : json['local_secret_ids'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + secretIdBoundCidrs: json['secret_id_bound_cidrs'] == null ? undefined : json['secret_id_bound_cidrs'], + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + }; +} + +export function AppRoleReadRoleResponseToJSON(json: any): AppRoleReadRoleResponse { + return AppRoleReadRoleResponseToJSONTyped(json, false); +} + +export function AppRoleReadRoleResponseToJSONTyped( + value?: AppRoleReadRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bind_secret_id: value['bindSecretId'], + local_secret_ids: value['localSecretIds'], + period: value['period'], + policies: value['policies'], + secret_id_bound_cidrs: value['secretIdBoundCidrs'], + secret_id_num_uses: value['secretIdNumUses'], + secret_id_ttl: value['secretIdTtl'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadSecretIdBoundCidrsResponse.ts b/ui/api-client/src/models/AppRoleReadSecretIdBoundCidrsResponse.ts new file mode 100644 index 0000000000..ff92c21991 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadSecretIdBoundCidrsResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadSecretIdBoundCidrsResponse + */ +export interface AppRoleReadSecretIdBoundCidrsResponse { + /** + * Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. + * @type {Array} + * @memberof AppRoleReadSecretIdBoundCidrsResponse + */ + secretIdBoundCidrs?: Array; +} + +/** + * Check if a given object implements the AppRoleReadSecretIdBoundCidrsResponse interface. + */ +export function instanceOfAppRoleReadSecretIdBoundCidrsResponse( + value: object +): value is AppRoleReadSecretIdBoundCidrsResponse { + return true; +} + +export function AppRoleReadSecretIdBoundCidrsResponseFromJSON( + json: any +): AppRoleReadSecretIdBoundCidrsResponse { + return AppRoleReadSecretIdBoundCidrsResponseFromJSONTyped(json, false); +} + +export function AppRoleReadSecretIdBoundCidrsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadSecretIdBoundCidrsResponse { + if (json == null) { + return json; + } + return { + secretIdBoundCidrs: json['secret_id_bound_cidrs'] == null ? undefined : json['secret_id_bound_cidrs'], + }; +} + +export function AppRoleReadSecretIdBoundCidrsResponseToJSON( + json: any +): AppRoleReadSecretIdBoundCidrsResponse { + return AppRoleReadSecretIdBoundCidrsResponseToJSONTyped(json, false); +} + +export function AppRoleReadSecretIdBoundCidrsResponseToJSONTyped( + value?: AppRoleReadSecretIdBoundCidrsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_bound_cidrs: value['secretIdBoundCidrs'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadSecretIdNumUsesResponse.ts b/ui/api-client/src/models/AppRoleReadSecretIdNumUsesResponse.ts new file mode 100644 index 0000000000..0615fdc4fa --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadSecretIdNumUsesResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadSecretIdNumUsesResponse + */ +export interface AppRoleReadSecretIdNumUsesResponse { + /** + * Number of times a secret ID can access the role, after which the SecretID will expire. Defaults to 0 meaning that the secret ID is of unlimited use. + * @type {number} + * @memberof AppRoleReadSecretIdNumUsesResponse + */ + secretIdNumUses?: number; +} + +/** + * Check if a given object implements the AppRoleReadSecretIdNumUsesResponse interface. + */ +export function instanceOfAppRoleReadSecretIdNumUsesResponse( + value: object +): value is AppRoleReadSecretIdNumUsesResponse { + return true; +} + +export function AppRoleReadSecretIdNumUsesResponseFromJSON(json: any): AppRoleReadSecretIdNumUsesResponse { + return AppRoleReadSecretIdNumUsesResponseFromJSONTyped(json, false); +} + +export function AppRoleReadSecretIdNumUsesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadSecretIdNumUsesResponse { + if (json == null) { + return json; + } + return { + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + }; +} + +export function AppRoleReadSecretIdNumUsesResponseToJSON(json: any): AppRoleReadSecretIdNumUsesResponse { + return AppRoleReadSecretIdNumUsesResponseToJSONTyped(json, false); +} + +export function AppRoleReadSecretIdNumUsesResponseToJSONTyped( + value?: AppRoleReadSecretIdNumUsesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_num_uses: value['secretIdNumUses'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadSecretIdTtlResponse.ts b/ui/api-client/src/models/AppRoleReadSecretIdTtlResponse.ts new file mode 100644 index 0000000000..01bb65310f --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadSecretIdTtlResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadSecretIdTtlResponse + */ +export interface AppRoleReadSecretIdTtlResponse { + /** + * Duration in seconds after which the issued secret ID should expire. Defaults to 0, meaning no expiration. + * @type {number} + * @memberof AppRoleReadSecretIdTtlResponse + */ + secretIdTtl?: number; +} + +/** + * Check if a given object implements the AppRoleReadSecretIdTtlResponse interface. + */ +export function instanceOfAppRoleReadSecretIdTtlResponse( + value: object +): value is AppRoleReadSecretIdTtlResponse { + return true; +} + +export function AppRoleReadSecretIdTtlResponseFromJSON(json: any): AppRoleReadSecretIdTtlResponse { + return AppRoleReadSecretIdTtlResponseFromJSONTyped(json, false); +} + +export function AppRoleReadSecretIdTtlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadSecretIdTtlResponse { + if (json == null) { + return json; + } + return { + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + }; +} + +export function AppRoleReadSecretIdTtlResponseToJSON(json: any): AppRoleReadSecretIdTtlResponse { + return AppRoleReadSecretIdTtlResponseToJSONTyped(json, false); +} + +export function AppRoleReadSecretIdTtlResponseToJSONTyped( + value?: AppRoleReadSecretIdTtlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_ttl: value['secretIdTtl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadTokenBoundCidrsResponse.ts b/ui/api-client/src/models/AppRoleReadTokenBoundCidrsResponse.ts new file mode 100644 index 0000000000..dcb9d852a8 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadTokenBoundCidrsResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadTokenBoundCidrsResponse + */ +export interface AppRoleReadTokenBoundCidrsResponse { + /** + * Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. + * @type {Array} + * @memberof AppRoleReadTokenBoundCidrsResponse + */ + tokenBoundCidrs?: Array; +} + +/** + * Check if a given object implements the AppRoleReadTokenBoundCidrsResponse interface. + */ +export function instanceOfAppRoleReadTokenBoundCidrsResponse( + value: object +): value is AppRoleReadTokenBoundCidrsResponse { + return true; +} + +export function AppRoleReadTokenBoundCidrsResponseFromJSON(json: any): AppRoleReadTokenBoundCidrsResponse { + return AppRoleReadTokenBoundCidrsResponseFromJSONTyped(json, false); +} + +export function AppRoleReadTokenBoundCidrsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadTokenBoundCidrsResponse { + if (json == null) { + return json; + } + return { + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + }; +} + +export function AppRoleReadTokenBoundCidrsResponseToJSON(json: any): AppRoleReadTokenBoundCidrsResponse { + return AppRoleReadTokenBoundCidrsResponseToJSONTyped(json, false); +} + +export function AppRoleReadTokenBoundCidrsResponseToJSONTyped( + value?: AppRoleReadTokenBoundCidrsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_bound_cidrs: value['tokenBoundCidrs'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadTokenMaxTtlResponse.ts b/ui/api-client/src/models/AppRoleReadTokenMaxTtlResponse.ts new file mode 100644 index 0000000000..75ce86367c --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadTokenMaxTtlResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadTokenMaxTtlResponse + */ +export interface AppRoleReadTokenMaxTtlResponse { + /** + * The maximum lifetime of the generated token + * @type {number} + * @memberof AppRoleReadTokenMaxTtlResponse + */ + tokenMaxTtl?: number; +} + +/** + * Check if a given object implements the AppRoleReadTokenMaxTtlResponse interface. + */ +export function instanceOfAppRoleReadTokenMaxTtlResponse( + value: object +): value is AppRoleReadTokenMaxTtlResponse { + return true; +} + +export function AppRoleReadTokenMaxTtlResponseFromJSON(json: any): AppRoleReadTokenMaxTtlResponse { + return AppRoleReadTokenMaxTtlResponseFromJSONTyped(json, false); +} + +export function AppRoleReadTokenMaxTtlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadTokenMaxTtlResponse { + if (json == null) { + return json; + } + return { + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + }; +} + +export function AppRoleReadTokenMaxTtlResponseToJSON(json: any): AppRoleReadTokenMaxTtlResponse { + return AppRoleReadTokenMaxTtlResponseToJSONTyped(json, false); +} + +export function AppRoleReadTokenMaxTtlResponseToJSONTyped( + value?: AppRoleReadTokenMaxTtlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_max_ttl: value['tokenMaxTtl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadTokenNumUsesResponse.ts b/ui/api-client/src/models/AppRoleReadTokenNumUsesResponse.ts new file mode 100644 index 0000000000..042a638565 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadTokenNumUsesResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadTokenNumUsesResponse + */ +export interface AppRoleReadTokenNumUsesResponse { + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof AppRoleReadTokenNumUsesResponse + */ + tokenNumUses?: number; +} + +/** + * Check if a given object implements the AppRoleReadTokenNumUsesResponse interface. + */ +export function instanceOfAppRoleReadTokenNumUsesResponse( + value: object +): value is AppRoleReadTokenNumUsesResponse { + return true; +} + +export function AppRoleReadTokenNumUsesResponseFromJSON(json: any): AppRoleReadTokenNumUsesResponse { + return AppRoleReadTokenNumUsesResponseFromJSONTyped(json, false); +} + +export function AppRoleReadTokenNumUsesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadTokenNumUsesResponse { + if (json == null) { + return json; + } + return { + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + }; +} + +export function AppRoleReadTokenNumUsesResponseToJSON(json: any): AppRoleReadTokenNumUsesResponse { + return AppRoleReadTokenNumUsesResponseToJSONTyped(json, false); +} + +export function AppRoleReadTokenNumUsesResponseToJSONTyped( + value?: AppRoleReadTokenNumUsesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_num_uses: value['tokenNumUses'], + }; +} diff --git a/ui/api-client/src/models/AppRoleReadTokenTtlResponse.ts b/ui/api-client/src/models/AppRoleReadTokenTtlResponse.ts new file mode 100644 index 0000000000..5c0cdbd559 --- /dev/null +++ b/ui/api-client/src/models/AppRoleReadTokenTtlResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleReadTokenTtlResponse + */ +export interface AppRoleReadTokenTtlResponse { + /** + * The initial ttl of the token to generate + * @type {number} + * @memberof AppRoleReadTokenTtlResponse + */ + tokenTtl?: number; +} + +/** + * Check if a given object implements the AppRoleReadTokenTtlResponse interface. + */ +export function instanceOfAppRoleReadTokenTtlResponse(value: object): value is AppRoleReadTokenTtlResponse { + return true; +} + +export function AppRoleReadTokenTtlResponseFromJSON(json: any): AppRoleReadTokenTtlResponse { + return AppRoleReadTokenTtlResponseFromJSONTyped(json, false); +} + +export function AppRoleReadTokenTtlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleReadTokenTtlResponse { + if (json == null) { + return json; + } + return { + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + }; +} + +export function AppRoleReadTokenTtlResponseToJSON(json: any): AppRoleReadTokenTtlResponse { + return AppRoleReadTokenTtlResponseToJSONTyped(json, false); +} + +export function AppRoleReadTokenTtlResponseToJSONTyped( + value?: AppRoleReadTokenTtlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_ttl: value['tokenTtl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteBindSecretIdRequest.ts b/ui/api-client/src/models/AppRoleWriteBindSecretIdRequest.ts new file mode 100644 index 0000000000..0af4aa60ef --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteBindSecretIdRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteBindSecretIdRequest + */ +export interface AppRoleWriteBindSecretIdRequest { + /** + * Impose secret_id to be presented when logging in using this role. + * @type {boolean} + * @memberof AppRoleWriteBindSecretIdRequest + */ + bindSecretId?: boolean; +} + +/** + * Check if a given object implements the AppRoleWriteBindSecretIdRequest interface. + */ +export function instanceOfAppRoleWriteBindSecretIdRequest( + value: object +): value is AppRoleWriteBindSecretIdRequest { + return true; +} + +export function AppRoleWriteBindSecretIdRequestFromJSON(json: any): AppRoleWriteBindSecretIdRequest { + return AppRoleWriteBindSecretIdRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteBindSecretIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteBindSecretIdRequest { + if (json == null) { + return json; + } + return { + bindSecretId: json['bind_secret_id'] == null ? undefined : json['bind_secret_id'], + }; +} + +export function AppRoleWriteBindSecretIdRequestToJSON(json: any): AppRoleWriteBindSecretIdRequest { + return AppRoleWriteBindSecretIdRequestToJSONTyped(json, false); +} + +export function AppRoleWriteBindSecretIdRequestToJSONTyped( + value?: AppRoleWriteBindSecretIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bind_secret_id: value['bindSecretId'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteBoundCidrListRequest.ts b/ui/api-client/src/models/AppRoleWriteBoundCidrListRequest.ts new file mode 100644 index 0000000000..0ffbab2c17 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteBoundCidrListRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteBoundCidrListRequest + */ +export interface AppRoleWriteBoundCidrListRequest { + /** + * Deprecated: Please use "secret_id_bound_cidrs" instead. Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. + * @type {Array} + * @memberof AppRoleWriteBoundCidrListRequest + */ + boundCidrList?: Array; +} + +/** + * Check if a given object implements the AppRoleWriteBoundCidrListRequest interface. + */ +export function instanceOfAppRoleWriteBoundCidrListRequest( + value: object +): value is AppRoleWriteBoundCidrListRequest { + return true; +} + +export function AppRoleWriteBoundCidrListRequestFromJSON(json: any): AppRoleWriteBoundCidrListRequest { + return AppRoleWriteBoundCidrListRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteBoundCidrListRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteBoundCidrListRequest { + if (json == null) { + return json; + } + return { + boundCidrList: json['bound_cidr_list'] == null ? undefined : json['bound_cidr_list'], + }; +} + +export function AppRoleWriteBoundCidrListRequestToJSON(json: any): AppRoleWriteBoundCidrListRequest { + return AppRoleWriteBoundCidrListRequestToJSONTyped(json, false); +} + +export function AppRoleWriteBoundCidrListRequestToJSONTyped( + value?: AppRoleWriteBoundCidrListRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bound_cidr_list: value['boundCidrList'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteCustomSecretIdRequest.ts b/ui/api-client/src/models/AppRoleWriteCustomSecretIdRequest.ts new file mode 100644 index 0000000000..ec7b4cd9bf --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteCustomSecretIdRequest.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteCustomSecretIdRequest + */ +export interface AppRoleWriteCustomSecretIdRequest { + /** + * Comma separated string or list of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. + * @type {Array} + * @memberof AppRoleWriteCustomSecretIdRequest + */ + cidrList?: Array; + /** + * Metadata to be tied to the SecretID. This should be a JSON formatted string containing metadata in key value pairs. + * @type {string} + * @memberof AppRoleWriteCustomSecretIdRequest + */ + metadata?: string; + /** + * Number of times this SecretID can be used, after which the SecretID expires. Overrides secret_id_num_uses role option when supplied. May not be higher than role's secret_id_num_uses. + * @type {number} + * @memberof AppRoleWriteCustomSecretIdRequest + */ + numUses?: number; + /** + * SecretID to be attached to the role. + * @type {string} + * @memberof AppRoleWriteCustomSecretIdRequest + */ + secretId?: string; + /** + * Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can use the returned token. Should be a subset of the token CIDR blocks listed on the role, if any. + * @type {Array} + * @memberof AppRoleWriteCustomSecretIdRequest + */ + tokenBoundCidrs?: Array; + /** + * Duration in seconds after which this SecretID expires. Overrides secret_id_ttl role option when supplied. May not be longer than role's secret_id_ttl. + * @type {string} + * @memberof AppRoleWriteCustomSecretIdRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the AppRoleWriteCustomSecretIdRequest interface. + */ +export function instanceOfAppRoleWriteCustomSecretIdRequest( + value: object +): value is AppRoleWriteCustomSecretIdRequest { + return true; +} + +export function AppRoleWriteCustomSecretIdRequestFromJSON(json: any): AppRoleWriteCustomSecretIdRequest { + return AppRoleWriteCustomSecretIdRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteCustomSecretIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteCustomSecretIdRequest { + if (json == null) { + return json; + } + return { + cidrList: json['cidr_list'] == null ? undefined : json['cidr_list'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + secretId: json['secret_id'] == null ? undefined : json['secret_id'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AppRoleWriteCustomSecretIdRequestToJSON(json: any): AppRoleWriteCustomSecretIdRequest { + return AppRoleWriteCustomSecretIdRequestToJSONTyped(json, false); +} + +export function AppRoleWriteCustomSecretIdRequestToJSONTyped( + value?: AppRoleWriteCustomSecretIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cidr_list: value['cidrList'], + metadata: value['metadata'], + num_uses: value['numUses'], + secret_id: value['secretId'], + token_bound_cidrs: value['tokenBoundCidrs'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteCustomSecretIdResponse.ts b/ui/api-client/src/models/AppRoleWriteCustomSecretIdResponse.ts new file mode 100644 index 0000000000..7543990065 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteCustomSecretIdResponse.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteCustomSecretIdResponse + */ +export interface AppRoleWriteCustomSecretIdResponse { + /** + * Secret ID attached to the role. + * @type {string} + * @memberof AppRoleWriteCustomSecretIdResponse + */ + secretId?: string; + /** + * Accessor of the secret ID + * @type {string} + * @memberof AppRoleWriteCustomSecretIdResponse + */ + secretIdAccessor?: string; + /** + * Number of times a secret ID can access the role, after which the secret ID will expire. + * @type {number} + * @memberof AppRoleWriteCustomSecretIdResponse + */ + secretIdNumUses?: number; + /** + * Duration in seconds after which the issued secret ID expires. + * @type {number} + * @memberof AppRoleWriteCustomSecretIdResponse + */ + secretIdTtl?: number; +} + +/** + * Check if a given object implements the AppRoleWriteCustomSecretIdResponse interface. + */ +export function instanceOfAppRoleWriteCustomSecretIdResponse( + value: object +): value is AppRoleWriteCustomSecretIdResponse { + return true; +} + +export function AppRoleWriteCustomSecretIdResponseFromJSON(json: any): AppRoleWriteCustomSecretIdResponse { + return AppRoleWriteCustomSecretIdResponseFromJSONTyped(json, false); +} + +export function AppRoleWriteCustomSecretIdResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteCustomSecretIdResponse { + if (json == null) { + return json; + } + return { + secretId: json['secret_id'] == null ? undefined : json['secret_id'], + secretIdAccessor: json['secret_id_accessor'] == null ? undefined : json['secret_id_accessor'], + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + }; +} + +export function AppRoleWriteCustomSecretIdResponseToJSON(json: any): AppRoleWriteCustomSecretIdResponse { + return AppRoleWriteCustomSecretIdResponseToJSONTyped(json, false); +} + +export function AppRoleWriteCustomSecretIdResponseToJSONTyped( + value?: AppRoleWriteCustomSecretIdResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id: value['secretId'], + secret_id_accessor: value['secretIdAccessor'], + secret_id_num_uses: value['secretIdNumUses'], + secret_id_ttl: value['secretIdTtl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWritePeriodRequest.ts b/ui/api-client/src/models/AppRoleWritePeriodRequest.ts new file mode 100644 index 0000000000..1a0170c61d --- /dev/null +++ b/ui/api-client/src/models/AppRoleWritePeriodRequest.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWritePeriodRequest + */ +export interface AppRoleWritePeriodRequest { + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof AppRoleWritePeriodRequest + * @deprecated + */ + period?: string; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof AppRoleWritePeriodRequest + */ + tokenPeriod?: string; +} + +/** + * Check if a given object implements the AppRoleWritePeriodRequest interface. + */ +export function instanceOfAppRoleWritePeriodRequest(value: object): value is AppRoleWritePeriodRequest { + return true; +} + +export function AppRoleWritePeriodRequestFromJSON(json: any): AppRoleWritePeriodRequest { + return AppRoleWritePeriodRequestFromJSONTyped(json, false); +} + +export function AppRoleWritePeriodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWritePeriodRequest { + if (json == null) { + return json; + } + return { + period: json['period'] == null ? undefined : json['period'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + }; +} + +export function AppRoleWritePeriodRequestToJSON(json: any): AppRoleWritePeriodRequest { + return AppRoleWritePeriodRequestToJSONTyped(json, false); +} + +export function AppRoleWritePeriodRequestToJSONTyped( + value?: AppRoleWritePeriodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + period: value['period'], + token_period: value['tokenPeriod'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWritePoliciesRequest.ts b/ui/api-client/src/models/AppRoleWritePoliciesRequest.ts new file mode 100644 index 0000000000..ed72f8974d --- /dev/null +++ b/ui/api-client/src/models/AppRoleWritePoliciesRequest.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWritePoliciesRequest + */ +export interface AppRoleWritePoliciesRequest { + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof AppRoleWritePoliciesRequest + * @deprecated + */ + policies?: Array; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof AppRoleWritePoliciesRequest + */ + tokenPolicies?: Array; +} + +/** + * Check if a given object implements the AppRoleWritePoliciesRequest interface. + */ +export function instanceOfAppRoleWritePoliciesRequest(value: object): value is AppRoleWritePoliciesRequest { + return true; +} + +export function AppRoleWritePoliciesRequestFromJSON(json: any): AppRoleWritePoliciesRequest { + return AppRoleWritePoliciesRequestFromJSONTyped(json, false); +} + +export function AppRoleWritePoliciesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWritePoliciesRequest { + if (json == null) { + return json; + } + return { + policies: json['policies'] == null ? undefined : json['policies'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + }; +} + +export function AppRoleWritePoliciesRequestToJSON(json: any): AppRoleWritePoliciesRequest { + return AppRoleWritePoliciesRequestToJSONTyped(json, false); +} + +export function AppRoleWritePoliciesRequestToJSONTyped( + value?: AppRoleWritePoliciesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policies: value['policies'], + token_policies: value['tokenPolicies'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteRoleIdRequest.ts b/ui/api-client/src/models/AppRoleWriteRoleIdRequest.ts new file mode 100644 index 0000000000..a803ed4a26 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteRoleIdRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteRoleIdRequest + */ +export interface AppRoleWriteRoleIdRequest { + /** + * Identifier of the role. Defaults to a UUID. + * @type {string} + * @memberof AppRoleWriteRoleIdRequest + */ + roleId?: string; +} + +/** + * Check if a given object implements the AppRoleWriteRoleIdRequest interface. + */ +export function instanceOfAppRoleWriteRoleIdRequest(value: object): value is AppRoleWriteRoleIdRequest { + return true; +} + +export function AppRoleWriteRoleIdRequestFromJSON(json: any): AppRoleWriteRoleIdRequest { + return AppRoleWriteRoleIdRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteRoleIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteRoleIdRequest { + if (json == null) { + return json; + } + return { + roleId: json['role_id'] == null ? undefined : json['role_id'], + }; +} + +export function AppRoleWriteRoleIdRequestToJSON(json: any): AppRoleWriteRoleIdRequest { + return AppRoleWriteRoleIdRequestToJSONTyped(json, false); +} + +export function AppRoleWriteRoleIdRequestToJSONTyped( + value?: AppRoleWriteRoleIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + role_id: value['roleId'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteRoleRequest.ts b/ui/api-client/src/models/AppRoleWriteRoleRequest.ts new file mode 100644 index 0000000000..30a16b4115 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteRoleRequest.ts @@ -0,0 +1,208 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteRoleRequest + */ +export interface AppRoleWriteRoleRequest { + /** + * Impose secret_id to be presented when logging in using this role. Defaults to 'true'. + * @type {boolean} + * @memberof AppRoleWriteRoleRequest + */ + bindSecretId?: boolean; + /** + * Use "secret_id_bound_cidrs" instead. + * @type {Array} + * @memberof AppRoleWriteRoleRequest + * @deprecated + */ + boundCidrList?: Array; + /** + * If set, the secret IDs generated using this role will be cluster local. This can only be set during role creation and once set, it can't be reset later. + * @type {boolean} + * @memberof AppRoleWriteRoleRequest + */ + localSecretIds?: boolean; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof AppRoleWriteRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof AppRoleWriteRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Identifier of the role. Defaults to a UUID. + * @type {string} + * @memberof AppRoleWriteRoleRequest + */ + roleId?: string; + /** + * Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. + * @type {Array} + * @memberof AppRoleWriteRoleRequest + */ + secretIdBoundCidrs?: Array; + /** + * Number of times a SecretID can access the role, after which the SecretID will expire. Defaults to 0 meaning that the the secret_id is of unlimited use. + * @type {number} + * @memberof AppRoleWriteRoleRequest + */ + secretIdNumUses?: number; + /** + * Duration in seconds after which the issued SecretID should expire. Defaults to 0, meaning no expiration. + * @type {string} + * @memberof AppRoleWriteRoleRequest + */ + secretIdTtl?: string; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof AppRoleWriteRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof AppRoleWriteRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof AppRoleWriteRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof AppRoleWriteRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof AppRoleWriteRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof AppRoleWriteRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof AppRoleWriteRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof AppRoleWriteRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof AppRoleWriteRoleRequest + */ + tokenType?: string; +} + +/** + * Check if a given object implements the AppRoleWriteRoleRequest interface. + */ +export function instanceOfAppRoleWriteRoleRequest(value: object): value is AppRoleWriteRoleRequest { + return true; +} + +export function AppRoleWriteRoleRequestFromJSON(json: any): AppRoleWriteRoleRequest { + return AppRoleWriteRoleRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteRoleRequest { + if (json == null) { + return json; + } + return { + bindSecretId: json['bind_secret_id'] == null ? undefined : json['bind_secret_id'], + boundCidrList: json['bound_cidr_list'] == null ? undefined : json['bound_cidr_list'], + localSecretIds: json['local_secret_ids'] == null ? undefined : json['local_secret_ids'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + roleId: json['role_id'] == null ? undefined : json['role_id'], + secretIdBoundCidrs: json['secret_id_bound_cidrs'] == null ? undefined : json['secret_id_bound_cidrs'], + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + }; +} + +export function AppRoleWriteRoleRequestToJSON(json: any): AppRoleWriteRoleRequest { + return AppRoleWriteRoleRequestToJSONTyped(json, false); +} + +export function AppRoleWriteRoleRequestToJSONTyped( + value?: AppRoleWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bind_secret_id: value['bindSecretId'], + bound_cidr_list: value['boundCidrList'], + local_secret_ids: value['localSecretIds'], + period: value['period'], + policies: value['policies'], + role_id: value['roleId'], + secret_id_bound_cidrs: value['secretIdBoundCidrs'], + secret_id_num_uses: value['secretIdNumUses'], + secret_id_ttl: value['secretIdTtl'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteSecretIdBoundCidrsRequest.ts b/ui/api-client/src/models/AppRoleWriteSecretIdBoundCidrsRequest.ts new file mode 100644 index 0000000000..5cd141a3db --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteSecretIdBoundCidrsRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteSecretIdBoundCidrsRequest + */ +export interface AppRoleWriteSecretIdBoundCidrsRequest { + /** + * Comma separated string or list of CIDR blocks. If set, specifies the blocks of IP addresses which can perform the login operation. + * @type {Array} + * @memberof AppRoleWriteSecretIdBoundCidrsRequest + */ + secretIdBoundCidrs?: Array; +} + +/** + * Check if a given object implements the AppRoleWriteSecretIdBoundCidrsRequest interface. + */ +export function instanceOfAppRoleWriteSecretIdBoundCidrsRequest( + value: object +): value is AppRoleWriteSecretIdBoundCidrsRequest { + return true; +} + +export function AppRoleWriteSecretIdBoundCidrsRequestFromJSON( + json: any +): AppRoleWriteSecretIdBoundCidrsRequest { + return AppRoleWriteSecretIdBoundCidrsRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdBoundCidrsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteSecretIdBoundCidrsRequest { + if (json == null) { + return json; + } + return { + secretIdBoundCidrs: json['secret_id_bound_cidrs'] == null ? undefined : json['secret_id_bound_cidrs'], + }; +} + +export function AppRoleWriteSecretIdBoundCidrsRequestToJSON( + json: any +): AppRoleWriteSecretIdBoundCidrsRequest { + return AppRoleWriteSecretIdBoundCidrsRequestToJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdBoundCidrsRequestToJSONTyped( + value?: AppRoleWriteSecretIdBoundCidrsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_bound_cidrs: value['secretIdBoundCidrs'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteSecretIdNumUsesRequest.ts b/ui/api-client/src/models/AppRoleWriteSecretIdNumUsesRequest.ts new file mode 100644 index 0000000000..71ac78f291 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteSecretIdNumUsesRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteSecretIdNumUsesRequest + */ +export interface AppRoleWriteSecretIdNumUsesRequest { + /** + * Number of times a SecretID can access the role, after which the SecretID will expire. + * @type {number} + * @memberof AppRoleWriteSecretIdNumUsesRequest + */ + secretIdNumUses?: number; +} + +/** + * Check if a given object implements the AppRoleWriteSecretIdNumUsesRequest interface. + */ +export function instanceOfAppRoleWriteSecretIdNumUsesRequest( + value: object +): value is AppRoleWriteSecretIdNumUsesRequest { + return true; +} + +export function AppRoleWriteSecretIdNumUsesRequestFromJSON(json: any): AppRoleWriteSecretIdNumUsesRequest { + return AppRoleWriteSecretIdNumUsesRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdNumUsesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteSecretIdNumUsesRequest { + if (json == null) { + return json; + } + return { + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + }; +} + +export function AppRoleWriteSecretIdNumUsesRequestToJSON(json: any): AppRoleWriteSecretIdNumUsesRequest { + return AppRoleWriteSecretIdNumUsesRequestToJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdNumUsesRequestToJSONTyped( + value?: AppRoleWriteSecretIdNumUsesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_num_uses: value['secretIdNumUses'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteSecretIdRequest.ts b/ui/api-client/src/models/AppRoleWriteSecretIdRequest.ts new file mode 100644 index 0000000000..4069613d00 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteSecretIdRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteSecretIdRequest + */ +export interface AppRoleWriteSecretIdRequest { + /** + * Comma separated string or list of CIDR blocks enforcing secret IDs to be used from specific set of IP addresses. If 'bound_cidr_list' is set on the role, then the list of CIDR blocks listed here should be a subset of the CIDR blocks listed on the role. + * @type {Array} + * @memberof AppRoleWriteSecretIdRequest + */ + cidrList?: Array; + /** + * Metadata to be tied to the SecretID. This should be a JSON formatted string containing the metadata in key value pairs. + * @type {string} + * @memberof AppRoleWriteSecretIdRequest + */ + metadata?: string; + /** + * Number of times this SecretID can be used, after which the SecretID expires. Overrides secret_id_num_uses role option when supplied. May not be higher than role's secret_id_num_uses. + * @type {number} + * @memberof AppRoleWriteSecretIdRequest + */ + numUses?: number; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof AppRoleWriteSecretIdRequest + */ + tokenBoundCidrs?: Array; + /** + * Duration in seconds after which this SecretID expires. Overrides secret_id_ttl role option when supplied. May not be longer than role's secret_id_ttl. + * @type {string} + * @memberof AppRoleWriteSecretIdRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the AppRoleWriteSecretIdRequest interface. + */ +export function instanceOfAppRoleWriteSecretIdRequest(value: object): value is AppRoleWriteSecretIdRequest { + return true; +} + +export function AppRoleWriteSecretIdRequestFromJSON(json: any): AppRoleWriteSecretIdRequest { + return AppRoleWriteSecretIdRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteSecretIdRequest { + if (json == null) { + return json; + } + return { + cidrList: json['cidr_list'] == null ? undefined : json['cidr_list'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AppRoleWriteSecretIdRequestToJSON(json: any): AppRoleWriteSecretIdRequest { + return AppRoleWriteSecretIdRequestToJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdRequestToJSONTyped( + value?: AppRoleWriteSecretIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cidr_list: value['cidrList'], + metadata: value['metadata'], + num_uses: value['numUses'], + token_bound_cidrs: value['tokenBoundCidrs'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteSecretIdResponse.ts b/ui/api-client/src/models/AppRoleWriteSecretIdResponse.ts new file mode 100644 index 0000000000..84a759fdb1 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteSecretIdResponse.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteSecretIdResponse + */ +export interface AppRoleWriteSecretIdResponse { + /** + * Secret ID attached to the role. + * @type {string} + * @memberof AppRoleWriteSecretIdResponse + */ + secretId?: string; + /** + * Accessor of the secret ID + * @type {string} + * @memberof AppRoleWriteSecretIdResponse + */ + secretIdAccessor?: string; + /** + * Number of times a secret ID can access the role, after which the secret ID will expire. + * @type {number} + * @memberof AppRoleWriteSecretIdResponse + */ + secretIdNumUses?: number; + /** + * Duration in seconds after which the issued secret ID expires. + * @type {number} + * @memberof AppRoleWriteSecretIdResponse + */ + secretIdTtl?: number; +} + +/** + * Check if a given object implements the AppRoleWriteSecretIdResponse interface. + */ +export function instanceOfAppRoleWriteSecretIdResponse(value: object): value is AppRoleWriteSecretIdResponse { + return true; +} + +export function AppRoleWriteSecretIdResponseFromJSON(json: any): AppRoleWriteSecretIdResponse { + return AppRoleWriteSecretIdResponseFromJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteSecretIdResponse { + if (json == null) { + return json; + } + return { + secretId: json['secret_id'] == null ? undefined : json['secret_id'], + secretIdAccessor: json['secret_id_accessor'] == null ? undefined : json['secret_id_accessor'], + secretIdNumUses: json['secret_id_num_uses'] == null ? undefined : json['secret_id_num_uses'], + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + }; +} + +export function AppRoleWriteSecretIdResponseToJSON(json: any): AppRoleWriteSecretIdResponse { + return AppRoleWriteSecretIdResponseToJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdResponseToJSONTyped( + value?: AppRoleWriteSecretIdResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id: value['secretId'], + secret_id_accessor: value['secretIdAccessor'], + secret_id_num_uses: value['secretIdNumUses'], + secret_id_ttl: value['secretIdTtl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteSecretIdTtlRequest.ts b/ui/api-client/src/models/AppRoleWriteSecretIdTtlRequest.ts new file mode 100644 index 0000000000..108dd830fb --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteSecretIdTtlRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteSecretIdTtlRequest + */ +export interface AppRoleWriteSecretIdTtlRequest { + /** + * Duration in seconds after which the issued SecretID should expire. Defaults to 0, meaning no expiration. + * @type {string} + * @memberof AppRoleWriteSecretIdTtlRequest + */ + secretIdTtl?: string; +} + +/** + * Check if a given object implements the AppRoleWriteSecretIdTtlRequest interface. + */ +export function instanceOfAppRoleWriteSecretIdTtlRequest( + value: object +): value is AppRoleWriteSecretIdTtlRequest { + return true; +} + +export function AppRoleWriteSecretIdTtlRequestFromJSON(json: any): AppRoleWriteSecretIdTtlRequest { + return AppRoleWriteSecretIdTtlRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdTtlRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteSecretIdTtlRequest { + if (json == null) { + return json; + } + return { + secretIdTtl: json['secret_id_ttl'] == null ? undefined : json['secret_id_ttl'], + }; +} + +export function AppRoleWriteSecretIdTtlRequestToJSON(json: any): AppRoleWriteSecretIdTtlRequest { + return AppRoleWriteSecretIdTtlRequestToJSONTyped(json, false); +} + +export function AppRoleWriteSecretIdTtlRequestToJSONTyped( + value?: AppRoleWriteSecretIdTtlRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + secret_id_ttl: value['secretIdTtl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteTokenBoundCidrsRequest.ts b/ui/api-client/src/models/AppRoleWriteTokenBoundCidrsRequest.ts new file mode 100644 index 0000000000..6f694b6384 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteTokenBoundCidrsRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteTokenBoundCidrsRequest + */ +export interface AppRoleWriteTokenBoundCidrsRequest { + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof AppRoleWriteTokenBoundCidrsRequest + */ + tokenBoundCidrs?: Array; +} + +/** + * Check if a given object implements the AppRoleWriteTokenBoundCidrsRequest interface. + */ +export function instanceOfAppRoleWriteTokenBoundCidrsRequest( + value: object +): value is AppRoleWriteTokenBoundCidrsRequest { + return true; +} + +export function AppRoleWriteTokenBoundCidrsRequestFromJSON(json: any): AppRoleWriteTokenBoundCidrsRequest { + return AppRoleWriteTokenBoundCidrsRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteTokenBoundCidrsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteTokenBoundCidrsRequest { + if (json == null) { + return json; + } + return { + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + }; +} + +export function AppRoleWriteTokenBoundCidrsRequestToJSON(json: any): AppRoleWriteTokenBoundCidrsRequest { + return AppRoleWriteTokenBoundCidrsRequestToJSONTyped(json, false); +} + +export function AppRoleWriteTokenBoundCidrsRequestToJSONTyped( + value?: AppRoleWriteTokenBoundCidrsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_bound_cidrs: value['tokenBoundCidrs'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteTokenMaxTtlRequest.ts b/ui/api-client/src/models/AppRoleWriteTokenMaxTtlRequest.ts new file mode 100644 index 0000000000..e7fded4b00 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteTokenMaxTtlRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteTokenMaxTtlRequest + */ +export interface AppRoleWriteTokenMaxTtlRequest { + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof AppRoleWriteTokenMaxTtlRequest + */ + tokenMaxTtl?: string; +} + +/** + * Check if a given object implements the AppRoleWriteTokenMaxTtlRequest interface. + */ +export function instanceOfAppRoleWriteTokenMaxTtlRequest( + value: object +): value is AppRoleWriteTokenMaxTtlRequest { + return true; +} + +export function AppRoleWriteTokenMaxTtlRequestFromJSON(json: any): AppRoleWriteTokenMaxTtlRequest { + return AppRoleWriteTokenMaxTtlRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteTokenMaxTtlRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteTokenMaxTtlRequest { + if (json == null) { + return json; + } + return { + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + }; +} + +export function AppRoleWriteTokenMaxTtlRequestToJSON(json: any): AppRoleWriteTokenMaxTtlRequest { + return AppRoleWriteTokenMaxTtlRequestToJSONTyped(json, false); +} + +export function AppRoleWriteTokenMaxTtlRequestToJSONTyped( + value?: AppRoleWriteTokenMaxTtlRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_max_ttl: value['tokenMaxTtl'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteTokenNumUsesRequest.ts b/ui/api-client/src/models/AppRoleWriteTokenNumUsesRequest.ts new file mode 100644 index 0000000000..73911e446c --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteTokenNumUsesRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteTokenNumUsesRequest + */ +export interface AppRoleWriteTokenNumUsesRequest { + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof AppRoleWriteTokenNumUsesRequest + */ + tokenNumUses?: number; +} + +/** + * Check if a given object implements the AppRoleWriteTokenNumUsesRequest interface. + */ +export function instanceOfAppRoleWriteTokenNumUsesRequest( + value: object +): value is AppRoleWriteTokenNumUsesRequest { + return true; +} + +export function AppRoleWriteTokenNumUsesRequestFromJSON(json: any): AppRoleWriteTokenNumUsesRequest { + return AppRoleWriteTokenNumUsesRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteTokenNumUsesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteTokenNumUsesRequest { + if (json == null) { + return json; + } + return { + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + }; +} + +export function AppRoleWriteTokenNumUsesRequestToJSON(json: any): AppRoleWriteTokenNumUsesRequest { + return AppRoleWriteTokenNumUsesRequestToJSONTyped(json, false); +} + +export function AppRoleWriteTokenNumUsesRequestToJSONTyped( + value?: AppRoleWriteTokenNumUsesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_num_uses: value['tokenNumUses'], + }; +} diff --git a/ui/api-client/src/models/AppRoleWriteTokenTtlRequest.ts b/ui/api-client/src/models/AppRoleWriteTokenTtlRequest.ts new file mode 100644 index 0000000000..c5cf03eac2 --- /dev/null +++ b/ui/api-client/src/models/AppRoleWriteTokenTtlRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AppRoleWriteTokenTtlRequest + */ +export interface AppRoleWriteTokenTtlRequest { + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof AppRoleWriteTokenTtlRequest + */ + tokenTtl?: string; +} + +/** + * Check if a given object implements the AppRoleWriteTokenTtlRequest interface. + */ +export function instanceOfAppRoleWriteTokenTtlRequest(value: object): value is AppRoleWriteTokenTtlRequest { + return true; +} + +export function AppRoleWriteTokenTtlRequestFromJSON(json: any): AppRoleWriteTokenTtlRequest { + return AppRoleWriteTokenTtlRequestFromJSONTyped(json, false); +} + +export function AppRoleWriteTokenTtlRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AppRoleWriteTokenTtlRequest { + if (json == null) { + return json; + } + return { + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + }; +} + +export function AppRoleWriteTokenTtlRequestToJSON(json: any): AppRoleWriteTokenTtlRequest { + return AppRoleWriteTokenTtlRequestToJSONTyped(json, false); +} + +export function AppRoleWriteTokenTtlRequestToJSONTyped( + value?: AppRoleWriteTokenTtlRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token_ttl: value['tokenTtl'], + }; +} diff --git a/ui/api-client/src/models/AuditingCalculateHashRequest.ts b/ui/api-client/src/models/AuditingCalculateHashRequest.ts new file mode 100644 index 0000000000..725c370138 --- /dev/null +++ b/ui/api-client/src/models/AuditingCalculateHashRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuditingCalculateHashRequest + */ +export interface AuditingCalculateHashRequest { + /** + * + * @type {string} + * @memberof AuditingCalculateHashRequest + */ + input?: string; +} + +/** + * Check if a given object implements the AuditingCalculateHashRequest interface. + */ +export function instanceOfAuditingCalculateHashRequest(value: object): value is AuditingCalculateHashRequest { + return true; +} + +export function AuditingCalculateHashRequestFromJSON(json: any): AuditingCalculateHashRequest { + return AuditingCalculateHashRequestFromJSONTyped(json, false); +} + +export function AuditingCalculateHashRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuditingCalculateHashRequest { + if (json == null) { + return json; + } + return { + input: json['input'] == null ? undefined : json['input'], + }; +} + +export function AuditingCalculateHashRequestToJSON(json: any): AuditingCalculateHashRequest { + return AuditingCalculateHashRequestToJSONTyped(json, false); +} + +export function AuditingCalculateHashRequestToJSONTyped( + value?: AuditingCalculateHashRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + input: value['input'], + }; +} diff --git a/ui/api-client/src/models/AuditingCalculateHashResponse.ts b/ui/api-client/src/models/AuditingCalculateHashResponse.ts new file mode 100644 index 0000000000..de67faae3e --- /dev/null +++ b/ui/api-client/src/models/AuditingCalculateHashResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuditingCalculateHashResponse + */ +export interface AuditingCalculateHashResponse { + /** + * + * @type {string} + * @memberof AuditingCalculateHashResponse + */ + hash?: string; +} + +/** + * Check if a given object implements the AuditingCalculateHashResponse interface. + */ +export function instanceOfAuditingCalculateHashResponse( + value: object +): value is AuditingCalculateHashResponse { + return true; +} + +export function AuditingCalculateHashResponseFromJSON(json: any): AuditingCalculateHashResponse { + return AuditingCalculateHashResponseFromJSONTyped(json, false); +} + +export function AuditingCalculateHashResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuditingCalculateHashResponse { + if (json == null) { + return json; + } + return { + hash: json['hash'] == null ? undefined : json['hash'], + }; +} + +export function AuditingCalculateHashResponseToJSON(json: any): AuditingCalculateHashResponse { + return AuditingCalculateHashResponseToJSONTyped(json, false); +} + +export function AuditingCalculateHashResponseToJSONTyped( + value?: AuditingCalculateHashResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + hash: value['hash'], + }; +} diff --git a/ui/api-client/src/models/AuditingEnableDeviceRequest.ts b/ui/api-client/src/models/AuditingEnableDeviceRequest.ts new file mode 100644 index 0000000000..a5636a00e8 --- /dev/null +++ b/ui/api-client/src/models/AuditingEnableDeviceRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuditingEnableDeviceRequest + */ +export interface AuditingEnableDeviceRequest { + /** + * User-friendly description for this audit backend. + * @type {string} + * @memberof AuditingEnableDeviceRequest + */ + description?: string; + /** + * Mark the mount as a local mount, which is not replicated and is unaffected by replication. + * @type {boolean} + * @memberof AuditingEnableDeviceRequest + */ + local?: boolean; + /** + * Configuration options for the audit backend. + * @type {object} + * @memberof AuditingEnableDeviceRequest + */ + options?: object; + /** + * The type of the backend. Example: "mysql" + * @type {string} + * @memberof AuditingEnableDeviceRequest + */ + type?: string; +} + +/** + * Check if a given object implements the AuditingEnableDeviceRequest interface. + */ +export function instanceOfAuditingEnableDeviceRequest(value: object): value is AuditingEnableDeviceRequest { + return true; +} + +export function AuditingEnableDeviceRequestFromJSON(json: any): AuditingEnableDeviceRequest { + return AuditingEnableDeviceRequestFromJSONTyped(json, false); +} + +export function AuditingEnableDeviceRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuditingEnableDeviceRequest { + if (json == null) { + return json; + } + return { + description: json['description'] == null ? undefined : json['description'], + local: json['local'] == null ? undefined : json['local'], + options: json['options'] == null ? undefined : json['options'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function AuditingEnableDeviceRequestToJSON(json: any): AuditingEnableDeviceRequest { + return AuditingEnableDeviceRequestToJSONTyped(json, false); +} + +export function AuditingEnableDeviceRequestToJSONTyped( + value?: AuditingEnableDeviceRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + description: value['description'], + local: value['local'], + options: value['options'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/AuditingEnableRequestHeaderRequest.ts b/ui/api-client/src/models/AuditingEnableRequestHeaderRequest.ts new file mode 100644 index 0000000000..4149e71c40 --- /dev/null +++ b/ui/api-client/src/models/AuditingEnableRequestHeaderRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuditingEnableRequestHeaderRequest + */ +export interface AuditingEnableRequestHeaderRequest { + /** + * + * @type {boolean} + * @memberof AuditingEnableRequestHeaderRequest + */ + hmac?: boolean; +} + +/** + * Check if a given object implements the AuditingEnableRequestHeaderRequest interface. + */ +export function instanceOfAuditingEnableRequestHeaderRequest( + value: object +): value is AuditingEnableRequestHeaderRequest { + return true; +} + +export function AuditingEnableRequestHeaderRequestFromJSON(json: any): AuditingEnableRequestHeaderRequest { + return AuditingEnableRequestHeaderRequestFromJSONTyped(json, false); +} + +export function AuditingEnableRequestHeaderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuditingEnableRequestHeaderRequest { + if (json == null) { + return json; + } + return { + hmac: json['hmac'] == null ? undefined : json['hmac'], + }; +} + +export function AuditingEnableRequestHeaderRequestToJSON(json: any): AuditingEnableRequestHeaderRequest { + return AuditingEnableRequestHeaderRequestToJSONTyped(json, false); +} + +export function AuditingEnableRequestHeaderRequestToJSONTyped( + value?: AuditingEnableRequestHeaderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + hmac: value['hmac'], + }; +} diff --git a/ui/api-client/src/models/AuditingListRequestHeadersResponse.ts b/ui/api-client/src/models/AuditingListRequestHeadersResponse.ts new file mode 100644 index 0000000000..4041b06b9e --- /dev/null +++ b/ui/api-client/src/models/AuditingListRequestHeadersResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuditingListRequestHeadersResponse + */ +export interface AuditingListRequestHeadersResponse { + /** + * + * @type {object} + * @memberof AuditingListRequestHeadersResponse + */ + headers?: object; +} + +/** + * Check if a given object implements the AuditingListRequestHeadersResponse interface. + */ +export function instanceOfAuditingListRequestHeadersResponse( + value: object +): value is AuditingListRequestHeadersResponse { + return true; +} + +export function AuditingListRequestHeadersResponseFromJSON(json: any): AuditingListRequestHeadersResponse { + return AuditingListRequestHeadersResponseFromJSONTyped(json, false); +} + +export function AuditingListRequestHeadersResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuditingListRequestHeadersResponse { + if (json == null) { + return json; + } + return { + headers: json['headers'] == null ? undefined : json['headers'], + }; +} + +export function AuditingListRequestHeadersResponseToJSON(json: any): AuditingListRequestHeadersResponse { + return AuditingListRequestHeadersResponseToJSONTyped(json, false); +} + +export function AuditingListRequestHeadersResponseToJSONTyped( + value?: AuditingListRequestHeadersResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + headers: value['headers'], + }; +} diff --git a/ui/api-client/src/models/AuthEnableMethodRequest.ts b/ui/api-client/src/models/AuthEnableMethodRequest.ts new file mode 100644 index 0000000000..a5436f0c34 --- /dev/null +++ b/ui/api-client/src/models/AuthEnableMethodRequest.ts @@ -0,0 +1,133 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuthEnableMethodRequest + */ +export interface AuthEnableMethodRequest { + /** + * Configuration for this mount, such as plugin_name. + * @type {object} + * @memberof AuthEnableMethodRequest + */ + config?: object; + /** + * User-friendly description for this credential backend. + * @type {string} + * @memberof AuthEnableMethodRequest + */ + description?: string; + /** + * Whether to give the mount access to Vault's external entropy. + * @type {boolean} + * @memberof AuthEnableMethodRequest + */ + externalEntropyAccess?: boolean; + /** + * Mark the mount as a local mount, which is not replicated and is unaffected by replication. + * @type {boolean} + * @memberof AuthEnableMethodRequest + */ + local?: boolean; + /** + * The options to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof AuthEnableMethodRequest + */ + options?: object; + /** + * Name of the auth plugin to use based from the name in the plugin catalog. + * @type {string} + * @memberof AuthEnableMethodRequest + */ + pluginName?: string; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof AuthEnableMethodRequest + */ + pluginVersion?: string; + /** + * Whether to turn on seal wrapping for the mount. + * @type {boolean} + * @memberof AuthEnableMethodRequest + */ + sealWrap?: boolean; + /** + * The type of the backend. Example: "userpass" + * @type {string} + * @memberof AuthEnableMethodRequest + */ + type?: string; +} + +/** + * Check if a given object implements the AuthEnableMethodRequest interface. + */ +export function instanceOfAuthEnableMethodRequest(value: object): value is AuthEnableMethodRequest { + return true; +} + +export function AuthEnableMethodRequestFromJSON(json: any): AuthEnableMethodRequest { + return AuthEnableMethodRequestFromJSONTyped(json, false); +} + +export function AuthEnableMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuthEnableMethodRequest { + if (json == null) { + return json; + } + return { + config: json['config'] == null ? undefined : json['config'], + description: json['description'] == null ? undefined : json['description'], + externalEntropyAccess: + json['external_entropy_access'] == null ? undefined : json['external_entropy_access'], + local: json['local'] == null ? undefined : json['local'], + options: json['options'] == null ? undefined : json['options'], + pluginName: json['plugin_name'] == null ? undefined : json['plugin_name'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + sealWrap: json['seal_wrap'] == null ? undefined : json['seal_wrap'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function AuthEnableMethodRequestToJSON(json: any): AuthEnableMethodRequest { + return AuthEnableMethodRequestToJSONTyped(json, false); +} + +export function AuthEnableMethodRequestToJSONTyped( + value?: AuthEnableMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + config: value['config'], + description: value['description'], + external_entropy_access: value['externalEntropyAccess'], + local: value['local'], + options: value['options'], + plugin_name: value['pluginName'], + plugin_version: value['pluginVersion'], + seal_wrap: value['sealWrap'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/AuthReadConfigurationResponse.ts b/ui/api-client/src/models/AuthReadConfigurationResponse.ts new file mode 100644 index 0000000000..3695b79957 --- /dev/null +++ b/ui/api-client/src/models/AuthReadConfigurationResponse.ts @@ -0,0 +1,167 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuthReadConfigurationResponse + */ +export interface AuthReadConfigurationResponse { + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + accessor?: string; + /** + * + * @type {object} + * @memberof AuthReadConfigurationResponse + */ + config?: object; + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + deprecationStatus?: string; + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + description?: string; + /** + * + * @type {boolean} + * @memberof AuthReadConfigurationResponse + */ + externalEntropyAccess?: boolean; + /** + * + * @type {boolean} + * @memberof AuthReadConfigurationResponse + */ + local?: boolean; + /** + * + * @type {object} + * @memberof AuthReadConfigurationResponse + */ + options?: object; + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + pluginVersion?: string; + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + runningPluginVersion?: string; + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + runningSha256?: string; + /** + * + * @type {boolean} + * @memberof AuthReadConfigurationResponse + */ + sealWrap?: boolean; + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + type?: string; + /** + * + * @type {string} + * @memberof AuthReadConfigurationResponse + */ + uuid?: string; +} + +/** + * Check if a given object implements the AuthReadConfigurationResponse interface. + */ +export function instanceOfAuthReadConfigurationResponse( + value: object +): value is AuthReadConfigurationResponse { + return true; +} + +export function AuthReadConfigurationResponseFromJSON(json: any): AuthReadConfigurationResponse { + return AuthReadConfigurationResponseFromJSONTyped(json, false); +} + +export function AuthReadConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuthReadConfigurationResponse { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + config: json['config'] == null ? undefined : json['config'], + deprecationStatus: json['deprecation_status'] == null ? undefined : json['deprecation_status'], + description: json['description'] == null ? undefined : json['description'], + externalEntropyAccess: + json['external_entropy_access'] == null ? undefined : json['external_entropy_access'], + local: json['local'] == null ? undefined : json['local'], + options: json['options'] == null ? undefined : json['options'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + runningPluginVersion: json['running_plugin_version'] == null ? undefined : json['running_plugin_version'], + runningSha256: json['running_sha256'] == null ? undefined : json['running_sha256'], + sealWrap: json['seal_wrap'] == null ? undefined : json['seal_wrap'], + type: json['type'] == null ? undefined : json['type'], + uuid: json['uuid'] == null ? undefined : json['uuid'], + }; +} + +export function AuthReadConfigurationResponseToJSON(json: any): AuthReadConfigurationResponse { + return AuthReadConfigurationResponseToJSONTyped(json, false); +} + +export function AuthReadConfigurationResponseToJSONTyped( + value?: AuthReadConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + config: value['config'], + deprecation_status: value['deprecationStatus'], + description: value['description'], + external_entropy_access: value['externalEntropyAccess'], + local: value['local'], + options: value['options'], + plugin_version: value['pluginVersion'], + running_plugin_version: value['runningPluginVersion'], + running_sha256: value['runningSha256'], + seal_wrap: value['sealWrap'], + type: value['type'], + uuid: value['uuid'], + }; +} diff --git a/ui/api-client/src/models/AuthReadTuningInformationResponse.ts b/ui/api-client/src/models/AuthReadTuningInformationResponse.ts new file mode 100644 index 0000000000..971bab8e0e --- /dev/null +++ b/ui/api-client/src/models/AuthReadTuningInformationResponse.ts @@ -0,0 +1,231 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuthReadTuningInformationResponse + */ +export interface AuthReadTuningInformationResponse { + /** + * + * @type {Array} + * @memberof AuthReadTuningInformationResponse + */ + allowedManagedKeys?: Array; + /** + * + * @type {Array} + * @memberof AuthReadTuningInformationResponse + */ + allowedResponseHeaders?: Array; + /** + * + * @type {Array} + * @memberof AuthReadTuningInformationResponse + */ + auditNonHmacRequestKeys?: Array; + /** + * + * @type {Array} + * @memberof AuthReadTuningInformationResponse + */ + auditNonHmacResponseKeys?: Array; + /** + * + * @type {number} + * @memberof AuthReadTuningInformationResponse + */ + defaultLeaseTtl?: number; + /** + * + * @type {string} + * @memberof AuthReadTuningInformationResponse + */ + description?: string; + /** + * + * @type {boolean} + * @memberof AuthReadTuningInformationResponse + */ + externalEntropyAccess?: boolean; + /** + * + * @type {boolean} + * @memberof AuthReadTuningInformationResponse + */ + forceNoCache?: boolean; + /** + * + * @type {string} + * @memberof AuthReadTuningInformationResponse + */ + identityTokenKey?: string; + /** + * + * @type {string} + * @memberof AuthReadTuningInformationResponse + */ + listingVisibility?: string; + /** + * + * @type {number} + * @memberof AuthReadTuningInformationResponse + */ + maxLeaseTtl?: number; + /** + * + * @type {object} + * @memberof AuthReadTuningInformationResponse + */ + options?: object; + /** + * + * @type {Array} + * @memberof AuthReadTuningInformationResponse + */ + passthroughRequestHeaders?: Array; + /** + * + * @type {string} + * @memberof AuthReadTuningInformationResponse + */ + pluginVersion?: string; + /** + * + * @type {string} + * @memberof AuthReadTuningInformationResponse + */ + tokenType?: string; + /** + * + * @type {boolean} + * @memberof AuthReadTuningInformationResponse + */ + trimRequestTrailingSlashes?: boolean; + /** + * + * @type {number} + * @memberof AuthReadTuningInformationResponse + */ + userLockoutCounterResetDuration?: number; + /** + * + * @type {boolean} + * @memberof AuthReadTuningInformationResponse + */ + userLockoutDisable?: boolean; + /** + * + * @type {number} + * @memberof AuthReadTuningInformationResponse + */ + userLockoutDuration?: number; + /** + * + * @type {number} + * @memberof AuthReadTuningInformationResponse + */ + userLockoutThreshold?: number; +} + +/** + * Check if a given object implements the AuthReadTuningInformationResponse interface. + */ +export function instanceOfAuthReadTuningInformationResponse( + value: object +): value is AuthReadTuningInformationResponse { + return true; +} + +export function AuthReadTuningInformationResponseFromJSON(json: any): AuthReadTuningInformationResponse { + return AuthReadTuningInformationResponseFromJSONTyped(json, false); +} + +export function AuthReadTuningInformationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuthReadTuningInformationResponse { + if (json == null) { + return json; + } + return { + allowedManagedKeys: json['allowed_managed_keys'] == null ? undefined : json['allowed_managed_keys'], + allowedResponseHeaders: + json['allowed_response_headers'] == null ? undefined : json['allowed_response_headers'], + auditNonHmacRequestKeys: + json['audit_non_hmac_request_keys'] == null ? undefined : json['audit_non_hmac_request_keys'], + auditNonHmacResponseKeys: + json['audit_non_hmac_response_keys'] == null ? undefined : json['audit_non_hmac_response_keys'], + defaultLeaseTtl: json['default_lease_ttl'] == null ? undefined : json['default_lease_ttl'], + description: json['description'] == null ? undefined : json['description'], + externalEntropyAccess: + json['external_entropy_access'] == null ? undefined : json['external_entropy_access'], + forceNoCache: json['force_no_cache'] == null ? undefined : json['force_no_cache'], + identityTokenKey: json['identity_token_key'] == null ? undefined : json['identity_token_key'], + listingVisibility: json['listing_visibility'] == null ? undefined : json['listing_visibility'], + maxLeaseTtl: json['max_lease_ttl'] == null ? undefined : json['max_lease_ttl'], + options: json['options'] == null ? undefined : json['options'], + passthroughRequestHeaders: + json['passthrough_request_headers'] == null ? undefined : json['passthrough_request_headers'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + trimRequestTrailingSlashes: + json['trim_request_trailing_slashes'] == null ? undefined : json['trim_request_trailing_slashes'], + userLockoutCounterResetDuration: + json['user_lockout_counter_reset_duration'] == null + ? undefined + : json['user_lockout_counter_reset_duration'], + userLockoutDisable: json['user_lockout_disable'] == null ? undefined : json['user_lockout_disable'], + userLockoutDuration: json['user_lockout_duration'] == null ? undefined : json['user_lockout_duration'], + userLockoutThreshold: json['user_lockout_threshold'] == null ? undefined : json['user_lockout_threshold'], + }; +} + +export function AuthReadTuningInformationResponseToJSON(json: any): AuthReadTuningInformationResponse { + return AuthReadTuningInformationResponseToJSONTyped(json, false); +} + +export function AuthReadTuningInformationResponseToJSONTyped( + value?: AuthReadTuningInformationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_managed_keys: value['allowedManagedKeys'], + allowed_response_headers: value['allowedResponseHeaders'], + audit_non_hmac_request_keys: value['auditNonHmacRequestKeys'], + audit_non_hmac_response_keys: value['auditNonHmacResponseKeys'], + default_lease_ttl: value['defaultLeaseTtl'], + description: value['description'], + external_entropy_access: value['externalEntropyAccess'], + force_no_cache: value['forceNoCache'], + identity_token_key: value['identityTokenKey'], + listing_visibility: value['listingVisibility'], + max_lease_ttl: value['maxLeaseTtl'], + options: value['options'], + passthrough_request_headers: value['passthroughRequestHeaders'], + plugin_version: value['pluginVersion'], + token_type: value['tokenType'], + trim_request_trailing_slashes: value['trimRequestTrailingSlashes'], + user_lockout_counter_reset_duration: value['userLockoutCounterResetDuration'], + user_lockout_disable: value['userLockoutDisable'], + user_lockout_duration: value['userLockoutDuration'], + user_lockout_threshold: value['userLockoutThreshold'], + }; +} diff --git a/ui/api-client/src/models/AuthTuneConfigurationParametersRequest.ts b/ui/api-client/src/models/AuthTuneConfigurationParametersRequest.ts new file mode 100644 index 0000000000..493e0321aa --- /dev/null +++ b/ui/api-client/src/models/AuthTuneConfigurationParametersRequest.ts @@ -0,0 +1,183 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AuthTuneConfigurationParametersRequest + */ +export interface AuthTuneConfigurationParametersRequest { + /** + * A list of headers to whitelist and allow a plugin to set on responses. + * @type {Array} + * @memberof AuthTuneConfigurationParametersRequest + */ + allowedResponseHeaders?: Array; + /** + * The list of keys in the request data object that will not be HMAC'd by audit devices. + * @type {Array} + * @memberof AuthTuneConfigurationParametersRequest + */ + auditNonHmacRequestKeys?: Array; + /** + * The list of keys in the response data object that will not be HMAC'd by audit devices. + * @type {Array} + * @memberof AuthTuneConfigurationParametersRequest + */ + auditNonHmacResponseKeys?: Array; + /** + * The default lease TTL for this mount. + * @type {string} + * @memberof AuthTuneConfigurationParametersRequest + */ + defaultLeaseTtl?: string; + /** + * User-friendly description for this credential backend. + * @type {string} + * @memberof AuthTuneConfigurationParametersRequest + */ + description?: string; + /** + * The name of the key used to sign plugin identity tokens. Defaults to the default key. + * @type {string} + * @memberof AuthTuneConfigurationParametersRequest + */ + identityTokenKey?: string; + /** + * Determines the visibility of the mount in the UI-specific listing endpoint. Accepted value are 'unauth' and 'hidden', with the empty default ('') behaving like 'hidden'. + * @type {string} + * @memberof AuthTuneConfigurationParametersRequest + */ + listingVisibility?: string; + /** + * The max lease TTL for this mount. + * @type {string} + * @memberof AuthTuneConfigurationParametersRequest + */ + maxLeaseTtl?: string; + /** + * The options to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof AuthTuneConfigurationParametersRequest + */ + options?: object; + /** + * A list of headers to whitelist and pass from the request to the plugin. + * @type {Array} + * @memberof AuthTuneConfigurationParametersRequest + */ + passthroughRequestHeaders?: Array; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof AuthTuneConfigurationParametersRequest + */ + pluginVersion?: string; + /** + * The type of token to issue (service or batch). + * @type {string} + * @memberof AuthTuneConfigurationParametersRequest + */ + tokenType?: string; + /** + * + * @type {boolean} + * @memberof AuthTuneConfigurationParametersRequest + */ + trimRequestTrailingSlashes?: boolean; + /** + * The user lockout configuration to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof AuthTuneConfigurationParametersRequest + */ + userLockoutConfig?: object; +} + +/** + * Check if a given object implements the AuthTuneConfigurationParametersRequest interface. + */ +export function instanceOfAuthTuneConfigurationParametersRequest( + value: object +): value is AuthTuneConfigurationParametersRequest { + return true; +} + +export function AuthTuneConfigurationParametersRequestFromJSON( + json: any +): AuthTuneConfigurationParametersRequest { + return AuthTuneConfigurationParametersRequestFromJSONTyped(json, false); +} + +export function AuthTuneConfigurationParametersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AuthTuneConfigurationParametersRequest { + if (json == null) { + return json; + } + return { + allowedResponseHeaders: + json['allowed_response_headers'] == null ? undefined : json['allowed_response_headers'], + auditNonHmacRequestKeys: + json['audit_non_hmac_request_keys'] == null ? undefined : json['audit_non_hmac_request_keys'], + auditNonHmacResponseKeys: + json['audit_non_hmac_response_keys'] == null ? undefined : json['audit_non_hmac_response_keys'], + defaultLeaseTtl: json['default_lease_ttl'] == null ? undefined : json['default_lease_ttl'], + description: json['description'] == null ? undefined : json['description'], + identityTokenKey: json['identity_token_key'] == null ? undefined : json['identity_token_key'], + listingVisibility: json['listing_visibility'] == null ? undefined : json['listing_visibility'], + maxLeaseTtl: json['max_lease_ttl'] == null ? undefined : json['max_lease_ttl'], + options: json['options'] == null ? undefined : json['options'], + passthroughRequestHeaders: + json['passthrough_request_headers'] == null ? undefined : json['passthrough_request_headers'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + trimRequestTrailingSlashes: + json['trim_request_trailing_slashes'] == null ? undefined : json['trim_request_trailing_slashes'], + userLockoutConfig: json['user_lockout_config'] == null ? undefined : json['user_lockout_config'], + }; +} + +export function AuthTuneConfigurationParametersRequestToJSON( + json: any +): AuthTuneConfigurationParametersRequest { + return AuthTuneConfigurationParametersRequestToJSONTyped(json, false); +} + +export function AuthTuneConfigurationParametersRequestToJSONTyped( + value?: AuthTuneConfigurationParametersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_response_headers: value['allowedResponseHeaders'], + audit_non_hmac_request_keys: value['auditNonHmacRequestKeys'], + audit_non_hmac_response_keys: value['auditNonHmacResponseKeys'], + default_lease_ttl: value['defaultLeaseTtl'], + description: value['description'], + identity_token_key: value['identityTokenKey'], + listing_visibility: value['listingVisibility'], + max_lease_ttl: value['maxLeaseTtl'], + options: value['options'], + passthrough_request_headers: value['passthroughRequestHeaders'], + plugin_version: value['pluginVersion'], + token_type: value['tokenType'], + trim_request_trailing_slashes: value['trimRequestTrailingSlashes'], + user_lockout_config: value['userLockoutConfig'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureCertificateRequest.ts b/ui/api-client/src/models/AwsConfigureCertificateRequest.ts new file mode 100644 index 0000000000..6623d348bb --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureCertificateRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureCertificateRequest + */ +export interface AwsConfigureCertificateRequest { + /** + * Base64 encoded AWS Public cert required to verify PKCS7 signature of the EC2 instance metadata. + * @type {string} + * @memberof AwsConfigureCertificateRequest + */ + awsPublicCert?: string; + /** + * Takes the value of either "pkcs7" or "identity", indicating the type of document which can be verified using the given certificate. The reason is that the PKCS#7 document will have a DSA digest and the identity signature will have an RSA signature, and accordingly the public certificates to verify those also vary. Defaults to "pkcs7". + * @type {string} + * @memberof AwsConfigureCertificateRequest + */ + type?: string; +} + +/** + * Check if a given object implements the AwsConfigureCertificateRequest interface. + */ +export function instanceOfAwsConfigureCertificateRequest( + value: object +): value is AwsConfigureCertificateRequest { + return true; +} + +export function AwsConfigureCertificateRequestFromJSON(json: any): AwsConfigureCertificateRequest { + return AwsConfigureCertificateRequestFromJSONTyped(json, false); +} + +export function AwsConfigureCertificateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureCertificateRequest { + if (json == null) { + return json; + } + return { + awsPublicCert: json['aws_public_cert'] == null ? undefined : json['aws_public_cert'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function AwsConfigureCertificateRequestToJSON(json: any): AwsConfigureCertificateRequest { + return AwsConfigureCertificateRequestToJSONTyped(json, false); +} + +export function AwsConfigureCertificateRequestToJSONTyped( + value?: AwsConfigureCertificateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + aws_public_cert: value['awsPublicCert'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureClientRequest.ts b/ui/api-client/src/models/AwsConfigureClientRequest.ts new file mode 100644 index 0000000000..6a3f5aca7d --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureClientRequest.ts @@ -0,0 +1,201 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureClientRequest + */ +export interface AwsConfigureClientRequest { + /** + * AWS Access Key ID for the account used to make AWS API requests. + * @type {string} + * @memberof AwsConfigureClientRequest + */ + accessKey?: string; + /** + * List of additional headers that are allowed to be in AWS STS request headers + * @type {Array} + * @memberof AwsConfigureClientRequest + */ + allowedStsHeaderValues?: Array; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof AwsConfigureClientRequest + */ + disableAutomatedRotation?: boolean; + /** + * URL to override the default generated endpoint for making AWS EC2 API calls. + * @type {string} + * @memberof AwsConfigureClientRequest + */ + endpoint?: string; + /** + * URL to override the default generated endpoint for making AWS IAM API calls. + * @type {string} + * @memberof AwsConfigureClientRequest + */ + iamEndpoint?: string; + /** + * Value to require in the X-Vault-AWS-IAM-Server-ID request header + * @type {string} + * @memberof AwsConfigureClientRequest + */ + iamServerIdHeaderValue?: string; + /** + * Audience of plugin identity tokens + * @type {string} + * @memberof AwsConfigureClientRequest + */ + identityTokenAudience?: string; + /** + * Time-to-live of plugin identity tokens + * @type {string} + * @memberof AwsConfigureClientRequest + */ + identityTokenTtl?: string; + /** + * Maximum number of retries for recoverable exceptions of AWS APIs + * @type {number} + * @memberof AwsConfigureClientRequest + */ + maxRetries?: number; + /** + * Role ARN to assume for plugin identity token federation + * @type {string} + * @memberof AwsConfigureClientRequest + */ + roleArn?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof AwsConfigureClientRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof AwsConfigureClientRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof AwsConfigureClientRequest + */ + rotationWindow?: string; + /** + * AWS Secret Access Key for the account used to make AWS API requests. + * @type {string} + * @memberof AwsConfigureClientRequest + */ + secretKey?: string; + /** + * URL to override the default generated endpoint for making AWS STS API calls. + * @type {string} + * @memberof AwsConfigureClientRequest + */ + stsEndpoint?: string; + /** + * The region ID for the sts_endpoint, if set. + * @type {string} + * @memberof AwsConfigureClientRequest + */ + stsRegion?: string; + /** + * Uses the STS region from client requests for making AWS STS API calls. + * @type {boolean} + * @memberof AwsConfigureClientRequest + */ + useStsRegionFromClient?: boolean; +} + +/** + * Check if a given object implements the AwsConfigureClientRequest interface. + */ +export function instanceOfAwsConfigureClientRequest(value: object): value is AwsConfigureClientRequest { + return true; +} + +export function AwsConfigureClientRequestFromJSON(json: any): AwsConfigureClientRequest { + return AwsConfigureClientRequestFromJSONTyped(json, false); +} + +export function AwsConfigureClientRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureClientRequest { + if (json == null) { + return json; + } + return { + accessKey: json['access_key'] == null ? undefined : json['access_key'], + allowedStsHeaderValues: + json['allowed_sts_header_values'] == null ? undefined : json['allowed_sts_header_values'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + endpoint: json['endpoint'] == null ? undefined : json['endpoint'], + iamEndpoint: json['iam_endpoint'] == null ? undefined : json['iam_endpoint'], + iamServerIdHeaderValue: + json['iam_server_id_header_value'] == null ? undefined : json['iam_server_id_header_value'], + identityTokenAudience: + json['identity_token_audience'] == null ? undefined : json['identity_token_audience'], + identityTokenTtl: json['identity_token_ttl'] == null ? undefined : json['identity_token_ttl'], + maxRetries: json['max_retries'] == null ? undefined : json['max_retries'], + roleArn: json['role_arn'] == null ? undefined : json['role_arn'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + stsEndpoint: json['sts_endpoint'] == null ? undefined : json['sts_endpoint'], + stsRegion: json['sts_region'] == null ? undefined : json['sts_region'], + useStsRegionFromClient: + json['use_sts_region_from_client'] == null ? undefined : json['use_sts_region_from_client'], + }; +} + +export function AwsConfigureClientRequestToJSON(json: any): AwsConfigureClientRequest { + return AwsConfigureClientRequestToJSONTyped(json, false); +} + +export function AwsConfigureClientRequestToJSONTyped( + value?: AwsConfigureClientRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_key: value['accessKey'], + allowed_sts_header_values: value['allowedStsHeaderValues'], + disable_automated_rotation: value['disableAutomatedRotation'], + endpoint: value['endpoint'], + iam_endpoint: value['iamEndpoint'], + iam_server_id_header_value: value['iamServerIdHeaderValue'], + identity_token_audience: value['identityTokenAudience'], + identity_token_ttl: value['identityTokenTtl'], + max_retries: value['maxRetries'], + role_arn: value['roleArn'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + secret_key: value['secretKey'], + sts_endpoint: value['stsEndpoint'], + sts_region: value['stsRegion'], + use_sts_region_from_client: value['useStsRegionFromClient'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureIdentityAccessListTidyOperationRequest.ts b/ui/api-client/src/models/AwsConfigureIdentityAccessListTidyOperationRequest.ts new file mode 100644 index 0000000000..2a03963d96 --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureIdentityAccessListTidyOperationRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureIdentityAccessListTidyOperationRequest + */ +export interface AwsConfigureIdentityAccessListTidyOperationRequest { + /** + * If set to 'true', disables the periodic tidying of the 'identity-accesslist/' entries. + * @type {boolean} + * @memberof AwsConfigureIdentityAccessListTidyOperationRequest + */ + disablePeriodicTidy?: boolean; + /** + * The amount of extra time that must have passed beyond the identity's expiration, before it is removed from the backend storage. + * @type {string} + * @memberof AwsConfigureIdentityAccessListTidyOperationRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsConfigureIdentityAccessListTidyOperationRequest interface. + */ +export function instanceOfAwsConfigureIdentityAccessListTidyOperationRequest( + value: object +): value is AwsConfigureIdentityAccessListTidyOperationRequest { + return true; +} + +export function AwsConfigureIdentityAccessListTidyOperationRequestFromJSON( + json: any +): AwsConfigureIdentityAccessListTidyOperationRequest { + return AwsConfigureIdentityAccessListTidyOperationRequestFromJSONTyped(json, false); +} + +export function AwsConfigureIdentityAccessListTidyOperationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureIdentityAccessListTidyOperationRequest { + if (json == null) { + return json; + } + return { + disablePeriodicTidy: json['disable_periodic_tidy'] == null ? undefined : json['disable_periodic_tidy'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsConfigureIdentityAccessListTidyOperationRequestToJSON( + json: any +): AwsConfigureIdentityAccessListTidyOperationRequest { + return AwsConfigureIdentityAccessListTidyOperationRequestToJSONTyped(json, false); +} + +export function AwsConfigureIdentityAccessListTidyOperationRequestToJSONTyped( + value?: AwsConfigureIdentityAccessListTidyOperationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_periodic_tidy: value['disablePeriodicTidy'], + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureIdentityIntegrationRequest.ts b/ui/api-client/src/models/AwsConfigureIdentityIntegrationRequest.ts new file mode 100644 index 0000000000..5edda82651 --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureIdentityIntegrationRequest.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureIdentityIntegrationRequest + */ +export interface AwsConfigureIdentityIntegrationRequest { + /** + * Configure how the AWS auth method generates entity alias when using EC2 auth. Valid values are "role_id", "instance_id", and "image_id". Defaults to "role_id". + * @type {string} + * @memberof AwsConfigureIdentityIntegrationRequest + */ + ec2Alias?: string; + /** + * The metadata to include on the aliases and audit logs generated by this plugin. When set to 'default', includes: account_id, auth_type. These fields are available to add: ami_id, instance_id, region. Not editing this field means the 'default' fields are included. Explicitly setting this field to empty overrides the 'default' and means no metadata will be included. If not using 'default', explicit fields must be sent like: 'field1,field2'. + * @type {Array} + * @memberof AwsConfigureIdentityIntegrationRequest + */ + ec2Metadata?: Array; + /** + * Configure how the AWS auth method generates entity aliases when using IAM auth. Valid values are "role_id", "unique_id", "full_arn" and "canonical_arn". Defaults to "role_id". + * @type {string} + * @memberof AwsConfigureIdentityIntegrationRequest + */ + iamAlias?: string; + /** + * The metadata to include on the aliases and audit logs generated by this plugin. When set to 'default', includes: account_id, auth_type. These fields are available to add: canonical_arn, client_arn, client_user_id, inferred_aws_region, inferred_entity_id, inferred_entity_type, inferred_hostname. Not editing this field means the 'default' fields are included. Explicitly setting this field to empty overrides the 'default' and means no metadata will be included. If not using 'default', explicit fields must be sent like: 'field1,field2'. + * @type {Array} + * @memberof AwsConfigureIdentityIntegrationRequest + */ + iamMetadata?: Array; +} + +/** + * Check if a given object implements the AwsConfigureIdentityIntegrationRequest interface. + */ +export function instanceOfAwsConfigureIdentityIntegrationRequest( + value: object +): value is AwsConfigureIdentityIntegrationRequest { + return true; +} + +export function AwsConfigureIdentityIntegrationRequestFromJSON( + json: any +): AwsConfigureIdentityIntegrationRequest { + return AwsConfigureIdentityIntegrationRequestFromJSONTyped(json, false); +} + +export function AwsConfigureIdentityIntegrationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureIdentityIntegrationRequest { + if (json == null) { + return json; + } + return { + ec2Alias: json['ec2_alias'] == null ? undefined : json['ec2_alias'], + ec2Metadata: json['ec2_metadata'] == null ? undefined : json['ec2_metadata'], + iamAlias: json['iam_alias'] == null ? undefined : json['iam_alias'], + iamMetadata: json['iam_metadata'] == null ? undefined : json['iam_metadata'], + }; +} + +export function AwsConfigureIdentityIntegrationRequestToJSON( + json: any +): AwsConfigureIdentityIntegrationRequest { + return AwsConfigureIdentityIntegrationRequestToJSONTyped(json, false); +} + +export function AwsConfigureIdentityIntegrationRequestToJSONTyped( + value?: AwsConfigureIdentityIntegrationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ec2_alias: value['ec2Alias'], + ec2_metadata: value['ec2Metadata'], + iam_alias: value['iamAlias'], + iam_metadata: value['iamMetadata'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureIdentityWhitelistTidyOperationRequest.ts b/ui/api-client/src/models/AwsConfigureIdentityWhitelistTidyOperationRequest.ts new file mode 100644 index 0000000000..2ffcc23490 --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureIdentityWhitelistTidyOperationRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureIdentityWhitelistTidyOperationRequest + */ +export interface AwsConfigureIdentityWhitelistTidyOperationRequest { + /** + * If set to 'true', disables the periodic tidying of the 'identity-accesslist/' entries. + * @type {boolean} + * @memberof AwsConfigureIdentityWhitelistTidyOperationRequest + */ + disablePeriodicTidy?: boolean; + /** + * The amount of extra time that must have passed beyond the identity's expiration, before it is removed from the backend storage. + * @type {string} + * @memberof AwsConfigureIdentityWhitelistTidyOperationRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsConfigureIdentityWhitelistTidyOperationRequest interface. + */ +export function instanceOfAwsConfigureIdentityWhitelistTidyOperationRequest( + value: object +): value is AwsConfigureIdentityWhitelistTidyOperationRequest { + return true; +} + +export function AwsConfigureIdentityWhitelistTidyOperationRequestFromJSON( + json: any +): AwsConfigureIdentityWhitelistTidyOperationRequest { + return AwsConfigureIdentityWhitelistTidyOperationRequestFromJSONTyped(json, false); +} + +export function AwsConfigureIdentityWhitelistTidyOperationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureIdentityWhitelistTidyOperationRequest { + if (json == null) { + return json; + } + return { + disablePeriodicTidy: json['disable_periodic_tidy'] == null ? undefined : json['disable_periodic_tidy'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsConfigureIdentityWhitelistTidyOperationRequestToJSON( + json: any +): AwsConfigureIdentityWhitelistTidyOperationRequest { + return AwsConfigureIdentityWhitelistTidyOperationRequestToJSONTyped(json, false); +} + +export function AwsConfigureIdentityWhitelistTidyOperationRequestToJSONTyped( + value?: AwsConfigureIdentityWhitelistTidyOperationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_periodic_tidy: value['disablePeriodicTidy'], + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureLeaseRequest.ts b/ui/api-client/src/models/AwsConfigureLeaseRequest.ts new file mode 100644 index 0000000000..65c4aa735f --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureLeaseRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureLeaseRequest + */ +export interface AwsConfigureLeaseRequest { + /** + * Default lease for roles. + * @type {string} + * @memberof AwsConfigureLeaseRequest + */ + lease?: string; + /** + * Maximum time a credential is valid for. + * @type {string} + * @memberof AwsConfigureLeaseRequest + */ + leaseMax?: string; +} + +/** + * Check if a given object implements the AwsConfigureLeaseRequest interface. + */ +export function instanceOfAwsConfigureLeaseRequest(value: object): value is AwsConfigureLeaseRequest { + return true; +} + +export function AwsConfigureLeaseRequestFromJSON(json: any): AwsConfigureLeaseRequest { + return AwsConfigureLeaseRequestFromJSONTyped(json, false); +} + +export function AwsConfigureLeaseRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureLeaseRequest { + if (json == null) { + return json; + } + return { + lease: json['lease'] == null ? undefined : json['lease'], + leaseMax: json['lease_max'] == null ? undefined : json['lease_max'], + }; +} + +export function AwsConfigureLeaseRequestToJSON(json: any): AwsConfigureLeaseRequest { + return AwsConfigureLeaseRequestToJSONTyped(json, false); +} + +export function AwsConfigureLeaseRequestToJSONTyped( + value?: AwsConfigureLeaseRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + lease: value['lease'], + lease_max: value['leaseMax'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureRoleTagBlacklistTidyOperationRequest.ts b/ui/api-client/src/models/AwsConfigureRoleTagBlacklistTidyOperationRequest.ts new file mode 100644 index 0000000000..1f5fa23557 --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureRoleTagBlacklistTidyOperationRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureRoleTagBlacklistTidyOperationRequest + */ +export interface AwsConfigureRoleTagBlacklistTidyOperationRequest { + /** + * If set to 'true', disables the periodic tidying of deny listed entries. + * @type {boolean} + * @memberof AwsConfigureRoleTagBlacklistTidyOperationRequest + */ + disablePeriodicTidy?: boolean; + /** + * The amount of extra time that must have passed beyond the roletag expiration, before it is removed from the backend storage. Defaults to 4320h (180 days). + * @type {string} + * @memberof AwsConfigureRoleTagBlacklistTidyOperationRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsConfigureRoleTagBlacklistTidyOperationRequest interface. + */ +export function instanceOfAwsConfigureRoleTagBlacklistTidyOperationRequest( + value: object +): value is AwsConfigureRoleTagBlacklistTidyOperationRequest { + return true; +} + +export function AwsConfigureRoleTagBlacklistTidyOperationRequestFromJSON( + json: any +): AwsConfigureRoleTagBlacklistTidyOperationRequest { + return AwsConfigureRoleTagBlacklistTidyOperationRequestFromJSONTyped(json, false); +} + +export function AwsConfigureRoleTagBlacklistTidyOperationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureRoleTagBlacklistTidyOperationRequest { + if (json == null) { + return json; + } + return { + disablePeriodicTidy: json['disable_periodic_tidy'] == null ? undefined : json['disable_periodic_tidy'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsConfigureRoleTagBlacklistTidyOperationRequestToJSON( + json: any +): AwsConfigureRoleTagBlacklistTidyOperationRequest { + return AwsConfigureRoleTagBlacklistTidyOperationRequestToJSONTyped(json, false); +} + +export function AwsConfigureRoleTagBlacklistTidyOperationRequestToJSONTyped( + value?: AwsConfigureRoleTagBlacklistTidyOperationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_periodic_tidy: value['disablePeriodicTidy'], + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureRoleTagDenyListTidyOperationRequest.ts b/ui/api-client/src/models/AwsConfigureRoleTagDenyListTidyOperationRequest.ts new file mode 100644 index 0000000000..129be6e6df --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureRoleTagDenyListTidyOperationRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureRoleTagDenyListTidyOperationRequest + */ +export interface AwsConfigureRoleTagDenyListTidyOperationRequest { + /** + * If set to 'true', disables the periodic tidying of deny listed entries. + * @type {boolean} + * @memberof AwsConfigureRoleTagDenyListTidyOperationRequest + */ + disablePeriodicTidy?: boolean; + /** + * The amount of extra time that must have passed beyond the roletag expiration, before it is removed from the backend storage. Defaults to 4320h (180 days). + * @type {string} + * @memberof AwsConfigureRoleTagDenyListTidyOperationRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsConfigureRoleTagDenyListTidyOperationRequest interface. + */ +export function instanceOfAwsConfigureRoleTagDenyListTidyOperationRequest( + value: object +): value is AwsConfigureRoleTagDenyListTidyOperationRequest { + return true; +} + +export function AwsConfigureRoleTagDenyListTidyOperationRequestFromJSON( + json: any +): AwsConfigureRoleTagDenyListTidyOperationRequest { + return AwsConfigureRoleTagDenyListTidyOperationRequestFromJSONTyped(json, false); +} + +export function AwsConfigureRoleTagDenyListTidyOperationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureRoleTagDenyListTidyOperationRequest { + if (json == null) { + return json; + } + return { + disablePeriodicTidy: json['disable_periodic_tidy'] == null ? undefined : json['disable_periodic_tidy'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsConfigureRoleTagDenyListTidyOperationRequestToJSON( + json: any +): AwsConfigureRoleTagDenyListTidyOperationRequest { + return AwsConfigureRoleTagDenyListTidyOperationRequestToJSONTyped(json, false); +} + +export function AwsConfigureRoleTagDenyListTidyOperationRequestToJSONTyped( + value?: AwsConfigureRoleTagDenyListTidyOperationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_periodic_tidy: value['disablePeriodicTidy'], + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsConfigureRootIamCredentialsRequest.ts b/ui/api-client/src/models/AwsConfigureRootIamCredentialsRequest.ts new file mode 100644 index 0000000000..cad5c84ec0 --- /dev/null +++ b/ui/api-client/src/models/AwsConfigureRootIamCredentialsRequest.ts @@ -0,0 +1,204 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsConfigureRootIamCredentialsRequest + */ +export interface AwsConfigureRootIamCredentialsRequest { + /** + * Access key with permission to create new keys. + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + accessKey?: string; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + disableAutomatedRotation?: boolean; + /** + * Endpoint to custom IAM server URL + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + iamEndpoint?: string; + /** + * Audience of plugin identity tokens + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + identityTokenAudience?: string; + /** + * Time-to-live of plugin identity tokens + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + identityTokenTtl?: string; + /** + * Maximum number of retries for recoverable exceptions of AWS APIs + * @type {number} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + maxRetries?: number; + /** + * Region for API calls. + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + region?: string; + /** + * Role ARN to assume for plugin identity token federation + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + roleArn?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + rotationWindow?: string; + /** + * Secret key with permission to create new keys. + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + secretKey?: string; + /** + * Endpoint to custom STS server URL + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + stsEndpoint?: string; + /** + * Fallback endpoints if sts_endpoint is unreachable + * @type {Array} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + stsFallbackEndpoints?: Array; + /** + * Fallback regions if sts_region is unreachable + * @type {Array} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + stsFallbackRegions?: Array; + /** + * Specific region for STS API calls. + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + stsRegion?: string; + /** + * Template to generate custom IAM usernames + * @type {string} + * @memberof AwsConfigureRootIamCredentialsRequest + */ + usernameTemplate?: string; +} + +/** + * Check if a given object implements the AwsConfigureRootIamCredentialsRequest interface. + */ +export function instanceOfAwsConfigureRootIamCredentialsRequest( + value: object +): value is AwsConfigureRootIamCredentialsRequest { + return true; +} + +export function AwsConfigureRootIamCredentialsRequestFromJSON( + json: any +): AwsConfigureRootIamCredentialsRequest { + return AwsConfigureRootIamCredentialsRequestFromJSONTyped(json, false); +} + +export function AwsConfigureRootIamCredentialsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsConfigureRootIamCredentialsRequest { + if (json == null) { + return json; + } + return { + accessKey: json['access_key'] == null ? undefined : json['access_key'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + iamEndpoint: json['iam_endpoint'] == null ? undefined : json['iam_endpoint'], + identityTokenAudience: + json['identity_token_audience'] == null ? undefined : json['identity_token_audience'], + identityTokenTtl: json['identity_token_ttl'] == null ? undefined : json['identity_token_ttl'], + maxRetries: json['max_retries'] == null ? undefined : json['max_retries'], + region: json['region'] == null ? undefined : json['region'], + roleArn: json['role_arn'] == null ? undefined : json['role_arn'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + stsEndpoint: json['sts_endpoint'] == null ? undefined : json['sts_endpoint'], + stsFallbackEndpoints: json['sts_fallback_endpoints'] == null ? undefined : json['sts_fallback_endpoints'], + stsFallbackRegions: json['sts_fallback_regions'] == null ? undefined : json['sts_fallback_regions'], + stsRegion: json['sts_region'] == null ? undefined : json['sts_region'], + usernameTemplate: json['username_template'] == null ? undefined : json['username_template'], + }; +} + +export function AwsConfigureRootIamCredentialsRequestToJSON( + json: any +): AwsConfigureRootIamCredentialsRequest { + return AwsConfigureRootIamCredentialsRequestToJSONTyped(json, false); +} + +export function AwsConfigureRootIamCredentialsRequestToJSONTyped( + value?: AwsConfigureRootIamCredentialsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_key: value['accessKey'], + disable_automated_rotation: value['disableAutomatedRotation'], + iam_endpoint: value['iamEndpoint'], + identity_token_audience: value['identityTokenAudience'], + identity_token_ttl: value['identityTokenTtl'], + max_retries: value['maxRetries'], + region: value['region'], + role_arn: value['roleArn'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + secret_key: value['secretKey'], + sts_endpoint: value['stsEndpoint'], + sts_fallback_endpoints: value['stsFallbackEndpoints'], + sts_fallback_regions: value['stsFallbackRegions'], + sts_region: value['stsRegion'], + username_template: value['usernameTemplate'], + }; +} diff --git a/ui/api-client/src/models/AwsGenerateCredentialsWithParametersRequest.ts b/ui/api-client/src/models/AwsGenerateCredentialsWithParametersRequest.ts new file mode 100644 index 0000000000..0da848882a --- /dev/null +++ b/ui/api-client/src/models/AwsGenerateCredentialsWithParametersRequest.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsGenerateCredentialsWithParametersRequest + */ +export interface AwsGenerateCredentialsWithParametersRequest { + /** + * MFA code to provide for session tokens + * @type {string} + * @memberof AwsGenerateCredentialsWithParametersRequest + */ + mfaCode?: string; + /** + * ARN of role to assume when credential_type is assumed_role + * @type {string} + * @memberof AwsGenerateCredentialsWithParametersRequest + */ + roleArn?: string; + /** + * Session name to use when assuming role. Max chars: 64 + * @type {string} + * @memberof AwsGenerateCredentialsWithParametersRequest + */ + roleSessionName?: string; + /** + * Lifetime of the returned credentials in seconds + * @type {string} + * @memberof AwsGenerateCredentialsWithParametersRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the AwsGenerateCredentialsWithParametersRequest interface. + */ +export function instanceOfAwsGenerateCredentialsWithParametersRequest( + value: object +): value is AwsGenerateCredentialsWithParametersRequest { + return true; +} + +export function AwsGenerateCredentialsWithParametersRequestFromJSON( + json: any +): AwsGenerateCredentialsWithParametersRequest { + return AwsGenerateCredentialsWithParametersRequestFromJSONTyped(json, false); +} + +export function AwsGenerateCredentialsWithParametersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsGenerateCredentialsWithParametersRequest { + if (json == null) { + return json; + } + return { + mfaCode: json['mfa_code'] == null ? undefined : json['mfa_code'], + roleArn: json['role_arn'] == null ? undefined : json['role_arn'], + roleSessionName: json['role_session_name'] == null ? undefined : json['role_session_name'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AwsGenerateCredentialsWithParametersRequestToJSON( + json: any +): AwsGenerateCredentialsWithParametersRequest { + return AwsGenerateCredentialsWithParametersRequestToJSONTyped(json, false); +} + +export function AwsGenerateCredentialsWithParametersRequestToJSONTyped( + value?: AwsGenerateCredentialsWithParametersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mfa_code: value['mfaCode'], + role_arn: value['roleArn'], + role_session_name: value['roleSessionName'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AwsGenerateStsCredentialsWithParametersRequest.ts b/ui/api-client/src/models/AwsGenerateStsCredentialsWithParametersRequest.ts new file mode 100644 index 0000000000..f50e9fde89 --- /dev/null +++ b/ui/api-client/src/models/AwsGenerateStsCredentialsWithParametersRequest.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsGenerateStsCredentialsWithParametersRequest + */ +export interface AwsGenerateStsCredentialsWithParametersRequest { + /** + * MFA code to provide for session tokens + * @type {string} + * @memberof AwsGenerateStsCredentialsWithParametersRequest + */ + mfaCode?: string; + /** + * ARN of role to assume when credential_type is assumed_role + * @type {string} + * @memberof AwsGenerateStsCredentialsWithParametersRequest + */ + roleArn?: string; + /** + * Session name to use when assuming role. Max chars: 64 + * @type {string} + * @memberof AwsGenerateStsCredentialsWithParametersRequest + */ + roleSessionName?: string; + /** + * Lifetime of the returned credentials in seconds + * @type {string} + * @memberof AwsGenerateStsCredentialsWithParametersRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the AwsGenerateStsCredentialsWithParametersRequest interface. + */ +export function instanceOfAwsGenerateStsCredentialsWithParametersRequest( + value: object +): value is AwsGenerateStsCredentialsWithParametersRequest { + return true; +} + +export function AwsGenerateStsCredentialsWithParametersRequestFromJSON( + json: any +): AwsGenerateStsCredentialsWithParametersRequest { + return AwsGenerateStsCredentialsWithParametersRequestFromJSONTyped(json, false); +} + +export function AwsGenerateStsCredentialsWithParametersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsGenerateStsCredentialsWithParametersRequest { + if (json == null) { + return json; + } + return { + mfaCode: json['mfa_code'] == null ? undefined : json['mfa_code'], + roleArn: json['role_arn'] == null ? undefined : json['role_arn'], + roleSessionName: json['role_session_name'] == null ? undefined : json['role_session_name'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AwsGenerateStsCredentialsWithParametersRequestToJSON( + json: any +): AwsGenerateStsCredentialsWithParametersRequest { + return AwsGenerateStsCredentialsWithParametersRequestToJSONTyped(json, false); +} + +export function AwsGenerateStsCredentialsWithParametersRequestToJSONTyped( + value?: AwsGenerateStsCredentialsWithParametersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mfa_code: value['mfaCode'], + role_arn: value['roleArn'], + role_session_name: value['roleSessionName'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AwsLoginRequest.ts b/ui/api-client/src/models/AwsLoginRequest.ts new file mode 100644 index 0000000000..f9ffd4c6c8 --- /dev/null +++ b/ui/api-client/src/models/AwsLoginRequest.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsLoginRequest + */ +export interface AwsLoginRequest { + /** + * HTTP method to use for the AWS request when auth_type is iam. This must match what has been signed in the presigned request. + * @type {string} + * @memberof AwsLoginRequest + */ + iamHttpRequestMethod?: string; + /** + * Base64-encoded request body when auth_type is iam. This must match the request body included in the signature. + * @type {string} + * @memberof AwsLoginRequest + */ + iamRequestBody?: string; + /** + * Key/value pairs of headers for use in the sts:GetCallerIdentity HTTP requests headers when auth_type is iam. Can be either a Base64-encoded, JSON-serialized string, or a JSON object of key/value pairs. This must at a minimum include the headers over which AWS has included a signature. + * @type {string} + * @memberof AwsLoginRequest + */ + iamRequestHeaders?: string; + /** + * Base64-encoded full URL against which to make the AWS request when using iam auth_type. + * @type {string} + * @memberof AwsLoginRequest + */ + iamRequestUrl?: string; + /** + * Base64 encoded EC2 instance identity document. This needs to be supplied along with the 'signature' parameter. If using 'curl' for fetching the identity document, consider using the option '-w 0' while piping the output to 'base64' binary. + * @type {string} + * @memberof AwsLoginRequest + */ + identity?: string; + /** + * The nonce to be used for subsequent login requests when auth_type is ec2. If this parameter is not specified at all and if reauthentication is allowed, then the backend will generate a random nonce, attaches it to the instance's identity access list entry and returns the nonce back as part of auth metadata. This value should be used with further login requests, to establish client authenticity. Clients can choose to set a custom nonce if preferred, in which case, it is recommended that clients provide a strong nonce. If a nonce is provided but with an empty value, it indicates intent to disable reauthentication. Note that, when 'disallow_reauthentication' option is enabled on either the role or the role tag, the 'nonce' holds no significance. + * @type {string} + * @memberof AwsLoginRequest + */ + nonce?: string; + /** + * PKCS7 signature of the identity document when using an auth_type of ec2. + * @type {string} + * @memberof AwsLoginRequest + */ + pkcs7?: string; + /** + * Name of the role against which the login is being attempted. If 'role' is not specified, then the login endpoint looks for a role bearing the name of the AMI ID of the EC2 instance that is trying to login. If a matching role is not found, login fails. + * @type {string} + * @memberof AwsLoginRequest + */ + role?: string; + /** + * Base64 encoded SHA256 RSA signature of the instance identity document. This needs to be supplied along with 'identity' parameter. + * @type {string} + * @memberof AwsLoginRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the AwsLoginRequest interface. + */ +export function instanceOfAwsLoginRequest(value: object): value is AwsLoginRequest { + return true; +} + +export function AwsLoginRequestFromJSON(json: any): AwsLoginRequest { + return AwsLoginRequestFromJSONTyped(json, false); +} + +export function AwsLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsLoginRequest { + if (json == null) { + return json; + } + return { + iamHttpRequestMethod: + json['iam_http_request_method'] == null ? undefined : json['iam_http_request_method'], + iamRequestBody: json['iam_request_body'] == null ? undefined : json['iam_request_body'], + iamRequestHeaders: json['iam_request_headers'] == null ? undefined : json['iam_request_headers'], + iamRequestUrl: json['iam_request_url'] == null ? undefined : json['iam_request_url'], + identity: json['identity'] == null ? undefined : json['identity'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + pkcs7: json['pkcs7'] == null ? undefined : json['pkcs7'], + role: json['role'] == null ? undefined : json['role'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function AwsLoginRequestToJSON(json: any): AwsLoginRequest { + return AwsLoginRequestToJSONTyped(json, false); +} + +export function AwsLoginRequestToJSONTyped( + value?: AwsLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + iam_http_request_method: value['iamHttpRequestMethod'], + iam_request_body: value['iamRequestBody'], + iam_request_headers: value['iamRequestHeaders'], + iam_request_url: value['iamRequestUrl'], + identity: value['identity'], + nonce: value['nonce'], + pkcs7: value['pkcs7'], + role: value['role'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/AwsReadStaticCredsNameResponse.ts b/ui/api-client/src/models/AwsReadStaticCredsNameResponse.ts new file mode 100644 index 0000000000..e4926efee0 --- /dev/null +++ b/ui/api-client/src/models/AwsReadStaticCredsNameResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsReadStaticCredsNameResponse + */ +export interface AwsReadStaticCredsNameResponse { + /** + * The access key of the AWS Credential + * @type {string} + * @memberof AwsReadStaticCredsNameResponse + */ + accessKey?: string; + /** + * The secret key of the AWS Credential + * @type {string} + * @memberof AwsReadStaticCredsNameResponse + */ + secretKey?: string; +} + +/** + * Check if a given object implements the AwsReadStaticCredsNameResponse interface. + */ +export function instanceOfAwsReadStaticCredsNameResponse( + value: object +): value is AwsReadStaticCredsNameResponse { + return true; +} + +export function AwsReadStaticCredsNameResponseFromJSON(json: any): AwsReadStaticCredsNameResponse { + return AwsReadStaticCredsNameResponseFromJSONTyped(json, false); +} + +export function AwsReadStaticCredsNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsReadStaticCredsNameResponse { + if (json == null) { + return json; + } + return { + accessKey: json['access_key'] == null ? undefined : json['access_key'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + }; +} + +export function AwsReadStaticCredsNameResponseToJSON(json: any): AwsReadStaticCredsNameResponse { + return AwsReadStaticCredsNameResponseToJSONTyped(json, false); +} + +export function AwsReadStaticCredsNameResponseToJSONTyped( + value?: AwsReadStaticCredsNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_key: value['accessKey'], + secret_key: value['secretKey'], + }; +} diff --git a/ui/api-client/src/models/AwsReadStaticRolesNameResponse.ts b/ui/api-client/src/models/AwsReadStaticRolesNameResponse.ts new file mode 100644 index 0000000000..ddd2aa11a6 --- /dev/null +++ b/ui/api-client/src/models/AwsReadStaticRolesNameResponse.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsReadStaticRolesNameResponse + */ +export interface AwsReadStaticRolesNameResponse { + /** + * The AWS ARN for the role to be assumed when interacting with the account specified. + * @type {string} + * @memberof AwsReadStaticRolesNameResponse + */ + assumeRoleArn?: string; + /** + * An identifier for the assumed role session. + * @type {string} + * @memberof AwsReadStaticRolesNameResponse + */ + assumeRoleSessionName?: string; + /** + * An external ID to be passed to the assumed role session. + * @type {string} + * @memberof AwsReadStaticRolesNameResponse + */ + externalId?: string; + /** + * The name of this role. + * @type {string} + * @memberof AwsReadStaticRolesNameResponse + */ + name?: string; + /** + * Period by which to rotate the backing credential of the adopted user. This can be a Go duration (e.g, '1m', 24h'), or an integer number of seconds. + * @type {string} + * @memberof AwsReadStaticRolesNameResponse + */ + rotationPeriod?: string; + /** + * The IAM user to adopt as a static role. + * @type {string} + * @memberof AwsReadStaticRolesNameResponse + */ + username?: string; +} + +/** + * Check if a given object implements the AwsReadStaticRolesNameResponse interface. + */ +export function instanceOfAwsReadStaticRolesNameResponse( + value: object +): value is AwsReadStaticRolesNameResponse { + return true; +} + +export function AwsReadStaticRolesNameResponseFromJSON(json: any): AwsReadStaticRolesNameResponse { + return AwsReadStaticRolesNameResponseFromJSONTyped(json, false); +} + +export function AwsReadStaticRolesNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsReadStaticRolesNameResponse { + if (json == null) { + return json; + } + return { + assumeRoleArn: json['assume_role_arn'] == null ? undefined : json['assume_role_arn'], + assumeRoleSessionName: + json['assume_role_session_name'] == null ? undefined : json['assume_role_session_name'], + externalId: json['external_id'] == null ? undefined : json['external_id'], + name: json['name'] == null ? undefined : json['name'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function AwsReadStaticRolesNameResponseToJSON(json: any): AwsReadStaticRolesNameResponse { + return AwsReadStaticRolesNameResponseToJSONTyped(json, false); +} + +export function AwsReadStaticRolesNameResponseToJSONTyped( + value?: AwsReadStaticRolesNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + assume_role_arn: value['assumeRoleArn'], + assume_role_session_name: value['assumeRoleSessionName'], + external_id: value['externalId'], + name: value['name'], + rotation_period: value['rotationPeriod'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/AwsTidyIdentityAccessListRequest.ts b/ui/api-client/src/models/AwsTidyIdentityAccessListRequest.ts new file mode 100644 index 0000000000..74475c2b17 --- /dev/null +++ b/ui/api-client/src/models/AwsTidyIdentityAccessListRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsTidyIdentityAccessListRequest + */ +export interface AwsTidyIdentityAccessListRequest { + /** + * The amount of extra time that must have passed beyond the identity's expiration, before it is removed from the backend storage. + * @type {string} + * @memberof AwsTidyIdentityAccessListRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsTidyIdentityAccessListRequest interface. + */ +export function instanceOfAwsTidyIdentityAccessListRequest( + value: object +): value is AwsTidyIdentityAccessListRequest { + return true; +} + +export function AwsTidyIdentityAccessListRequestFromJSON(json: any): AwsTidyIdentityAccessListRequest { + return AwsTidyIdentityAccessListRequestFromJSONTyped(json, false); +} + +export function AwsTidyIdentityAccessListRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsTidyIdentityAccessListRequest { + if (json == null) { + return json; + } + return { + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsTidyIdentityAccessListRequestToJSON(json: any): AwsTidyIdentityAccessListRequest { + return AwsTidyIdentityAccessListRequestToJSONTyped(json, false); +} + +export function AwsTidyIdentityAccessListRequestToJSONTyped( + value?: AwsTidyIdentityAccessListRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsTidyIdentityWhitelistRequest.ts b/ui/api-client/src/models/AwsTidyIdentityWhitelistRequest.ts new file mode 100644 index 0000000000..a2ff529590 --- /dev/null +++ b/ui/api-client/src/models/AwsTidyIdentityWhitelistRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsTidyIdentityWhitelistRequest + */ +export interface AwsTidyIdentityWhitelistRequest { + /** + * The amount of extra time that must have passed beyond the identity's expiration, before it is removed from the backend storage. + * @type {string} + * @memberof AwsTidyIdentityWhitelistRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsTidyIdentityWhitelistRequest interface. + */ +export function instanceOfAwsTidyIdentityWhitelistRequest( + value: object +): value is AwsTidyIdentityWhitelistRequest { + return true; +} + +export function AwsTidyIdentityWhitelistRequestFromJSON(json: any): AwsTidyIdentityWhitelistRequest { + return AwsTidyIdentityWhitelistRequestFromJSONTyped(json, false); +} + +export function AwsTidyIdentityWhitelistRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsTidyIdentityWhitelistRequest { + if (json == null) { + return json; + } + return { + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsTidyIdentityWhitelistRequestToJSON(json: any): AwsTidyIdentityWhitelistRequest { + return AwsTidyIdentityWhitelistRequestToJSONTyped(json, false); +} + +export function AwsTidyIdentityWhitelistRequestToJSONTyped( + value?: AwsTidyIdentityWhitelistRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsTidyRoleTagBlacklistRequest.ts b/ui/api-client/src/models/AwsTidyRoleTagBlacklistRequest.ts new file mode 100644 index 0000000000..ecb8b1e97e --- /dev/null +++ b/ui/api-client/src/models/AwsTidyRoleTagBlacklistRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsTidyRoleTagBlacklistRequest + */ +export interface AwsTidyRoleTagBlacklistRequest { + /** + * The amount of extra time that must have passed beyond the roletag expiration, before it is removed from the backend storage. + * @type {string} + * @memberof AwsTidyRoleTagBlacklistRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsTidyRoleTagBlacklistRequest interface. + */ +export function instanceOfAwsTidyRoleTagBlacklistRequest( + value: object +): value is AwsTidyRoleTagBlacklistRequest { + return true; +} + +export function AwsTidyRoleTagBlacklistRequestFromJSON(json: any): AwsTidyRoleTagBlacklistRequest { + return AwsTidyRoleTagBlacklistRequestFromJSONTyped(json, false); +} + +export function AwsTidyRoleTagBlacklistRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsTidyRoleTagBlacklistRequest { + if (json == null) { + return json; + } + return { + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsTidyRoleTagBlacklistRequestToJSON(json: any): AwsTidyRoleTagBlacklistRequest { + return AwsTidyRoleTagBlacklistRequestToJSONTyped(json, false); +} + +export function AwsTidyRoleTagBlacklistRequestToJSONTyped( + value?: AwsTidyRoleTagBlacklistRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsTidyRoleTagDenyListRequest.ts b/ui/api-client/src/models/AwsTidyRoleTagDenyListRequest.ts new file mode 100644 index 0000000000..aa4ab65d66 --- /dev/null +++ b/ui/api-client/src/models/AwsTidyRoleTagDenyListRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsTidyRoleTagDenyListRequest + */ +export interface AwsTidyRoleTagDenyListRequest { + /** + * The amount of extra time that must have passed beyond the roletag expiration, before it is removed from the backend storage. + * @type {string} + * @memberof AwsTidyRoleTagDenyListRequest + */ + safetyBuffer?: string; +} + +/** + * Check if a given object implements the AwsTidyRoleTagDenyListRequest interface. + */ +export function instanceOfAwsTidyRoleTagDenyListRequest( + value: object +): value is AwsTidyRoleTagDenyListRequest { + return true; +} + +export function AwsTidyRoleTagDenyListRequestFromJSON(json: any): AwsTidyRoleTagDenyListRequest { + return AwsTidyRoleTagDenyListRequestFromJSONTyped(json, false); +} + +export function AwsTidyRoleTagDenyListRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsTidyRoleTagDenyListRequest { + if (json == null) { + return json; + } + return { + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + }; +} + +export function AwsTidyRoleTagDenyListRequestToJSON(json: any): AwsTidyRoleTagDenyListRequest { + return AwsTidyRoleTagDenyListRequestToJSONTyped(json, false); +} + +export function AwsTidyRoleTagDenyListRequestToJSONTyped( + value?: AwsTidyRoleTagDenyListRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + safety_buffer: value['safetyBuffer'], + }; +} diff --git a/ui/api-client/src/models/AwsWriteAuthRoleRequest.ts b/ui/api-client/src/models/AwsWriteAuthRoleRequest.ts new file mode 100644 index 0000000000..c51e48ea99 --- /dev/null +++ b/ui/api-client/src/models/AwsWriteAuthRoleRequest.ts @@ -0,0 +1,301 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsWriteAuthRoleRequest + */ +export interface AwsWriteAuthRoleRequest { + /** + * If set, allows migration of the underlying instance where the client resides. This keys off of pendingTime in the metadata document, so essentially, this disables the client nonce check whenever the instance is migrated to a new host and pendingTime is newer than the previously-remembered time. Use with caution. This is only checked when auth_type is ec2. + * @type {boolean} + * @memberof AwsWriteAuthRoleRequest + */ + allowInstanceMigration?: boolean; + /** + * The auth_type permitted to authenticate to this role. Must be one of iam or ec2 and cannot be changed after role creation. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + authType?: string; + /** + * If set, defines a constraint on the EC2 instances that the account ID in its identity document to match one of the IDs specified by this parameter. This is only applicable when auth_type is ec2 or inferred_entity_type is ec2_instance. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundAccountId?: Array; + /** + * If set, defines a constraint on the EC2 instances that they should be using one of the AMI IDs specified by this parameter. This is only applicable when auth_type is ec2 or inferred_entity_type is ec2_instance. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundAmiId?: Array; + /** + * If set, defines a constraint on the EC2 instances to have one of the given instance IDs. Can be a list or comma-separated string of EC2 instance IDs. This is only applicable when auth_type is ec2 or inferred_entity_type is ec2_instance. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundEc2InstanceId?: Array; + /** + * If set, defines a constraint on the EC2 instances to be associated with an IAM instance profile ARN which has a prefix that matches one of the values specified by this parameter. The value is prefix-matched (as though it were a glob ending in '*'). This is only applicable when auth_type is ec2 or inferred_entity_type is ec2_instance. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundIamInstanceProfileArn?: Array; + /** + * ARN of the IAM principals to bind to this role. Only applicable when auth_type is iam. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundIamPrincipalArn?: Array; + /** + * If set, defines a constraint on the authenticating EC2 instance that it must match one of the IAM role ARNs specified by this parameter. The value is prefix-matched (as though it were a glob ending in '*'). The configured IAM user or EC2 instance role must be allowed to execute the 'iam:GetInstanceProfile' action if this is specified. This is only applicable when auth_type is ec2 or inferred_entity_type is ec2_instance. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundIamRoleArn?: Array; + /** + * If set, defines a constraint on the EC2 instances that the region in its identity document match one of the regions specified by this parameter. This is only applicable when auth_type is ec2. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundRegion?: Array; + /** + * If set, defines a constraint on the EC2 instance to be associated with the subnet ID that matches one of the values specified by this parameter. This is only applicable when auth_type is ec2 or inferred_entity_type is ec2_instance. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundSubnetId?: Array; + /** + * If set, defines a constraint on the EC2 instance to be associated with a VPC ID that matches one of the value specified by this parameter. This is only applicable when auth_type is ec2 or inferred_entity_type is ec2_instance. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + boundVpcId?: Array; + /** + * If set, only allows a single token to be granted per instance ID. In order to perform a fresh login, the entry in the access list for the instance ID needs to be cleared using 'auth/aws-ec2/identity-accesslist/' endpoint. This is only applicable when auth_type is ec2. + * @type {boolean} + * @memberof AwsWriteAuthRoleRequest + */ + disallowReauthentication?: boolean; + /** + * When auth_type is iam and inferred_entity_type is set, the region to assume the inferred entity exists in. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + inferredAwsRegion?: string; + /** + * When auth_type is iam, the AWS entity type to infer from the authenticated principal. The only supported value is ec2_instance, which will extract the EC2 instance ID from the authenticated role and apply the following restrictions specific to EC2 instances: bound_ami_id, bound_account_id, bound_iam_role_arn, bound_iam_instance_profile_arn, bound_vpc_id, bound_subnet_id. The configured EC2 client must be able to find the inferred instance ID in the results, and the instance must be running. If unable to determine the EC2 instance ID or unable to find the EC2 instance ID among running instances, then authentication will fail. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + inferredEntityType?: string; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + * @deprecated + */ + maxTtl?: string; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + * @deprecated + */ + policies?: Array; + /** + * If set, resolve all AWS IAM ARNs into AWS's internal unique IDs. When an IAM entity (e.g., user, role, or instance profile) is deleted, then all references to it within the role will be invalidated, which prevents a new IAM entity from being created with the same name and matching the role's IAM binds. Once set, this cannot be unset. + * @type {boolean} + * @memberof AwsWriteAuthRoleRequest + */ + resolveAwsUniqueIds?: boolean; + /** + * If set, enables the role tags for this role. The value set for this field should be the 'key' of the tag on the EC2 instance. The 'value' of the tag should be generated using 'role//tag' endpoint. Defaults to an empty string, meaning that role tags are disabled. This is only allowed if auth_type is ec2. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + roleTag?: string; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof AwsWriteAuthRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof AwsWriteAuthRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof AwsWriteAuthRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof AwsWriteAuthRoleRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof AwsWriteAuthRoleRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the AwsWriteAuthRoleRequest interface. + */ +export function instanceOfAwsWriteAuthRoleRequest(value: object): value is AwsWriteAuthRoleRequest { + return true; +} + +export function AwsWriteAuthRoleRequestFromJSON(json: any): AwsWriteAuthRoleRequest { + return AwsWriteAuthRoleRequestFromJSONTyped(json, false); +} + +export function AwsWriteAuthRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsWriteAuthRoleRequest { + if (json == null) { + return json; + } + return { + allowInstanceMigration: + json['allow_instance_migration'] == null ? undefined : json['allow_instance_migration'], + authType: json['auth_type'] == null ? undefined : json['auth_type'], + boundAccountId: json['bound_account_id'] == null ? undefined : json['bound_account_id'], + boundAmiId: json['bound_ami_id'] == null ? undefined : json['bound_ami_id'], + boundEc2InstanceId: json['bound_ec2_instance_id'] == null ? undefined : json['bound_ec2_instance_id'], + boundIamInstanceProfileArn: + json['bound_iam_instance_profile_arn'] == null ? undefined : json['bound_iam_instance_profile_arn'], + boundIamPrincipalArn: + json['bound_iam_principal_arn'] == null ? undefined : json['bound_iam_principal_arn'], + boundIamRoleArn: json['bound_iam_role_arn'] == null ? undefined : json['bound_iam_role_arn'], + boundRegion: json['bound_region'] == null ? undefined : json['bound_region'], + boundSubnetId: json['bound_subnet_id'] == null ? undefined : json['bound_subnet_id'], + boundVpcId: json['bound_vpc_id'] == null ? undefined : json['bound_vpc_id'], + disallowReauthentication: + json['disallow_reauthentication'] == null ? undefined : json['disallow_reauthentication'], + inferredAwsRegion: json['inferred_aws_region'] == null ? undefined : json['inferred_aws_region'], + inferredEntityType: json['inferred_entity_type'] == null ? undefined : json['inferred_entity_type'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + resolveAwsUniqueIds: json['resolve_aws_unique_ids'] == null ? undefined : json['resolve_aws_unique_ids'], + roleTag: json['role_tag'] == null ? undefined : json['role_tag'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AwsWriteAuthRoleRequestToJSON(json: any): AwsWriteAuthRoleRequest { + return AwsWriteAuthRoleRequestToJSONTyped(json, false); +} + +export function AwsWriteAuthRoleRequestToJSONTyped( + value?: AwsWriteAuthRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_instance_migration: value['allowInstanceMigration'], + auth_type: value['authType'], + bound_account_id: value['boundAccountId'], + bound_ami_id: value['boundAmiId'], + bound_ec2_instance_id: value['boundEc2InstanceId'], + bound_iam_instance_profile_arn: value['boundIamInstanceProfileArn'], + bound_iam_principal_arn: value['boundIamPrincipalArn'], + bound_iam_role_arn: value['boundIamRoleArn'], + bound_region: value['boundRegion'], + bound_subnet_id: value['boundSubnetId'], + bound_vpc_id: value['boundVpcId'], + disallow_reauthentication: value['disallowReauthentication'], + inferred_aws_region: value['inferredAwsRegion'], + inferred_entity_type: value['inferredEntityType'], + max_ttl: value['maxTtl'], + period: value['period'], + policies: value['policies'], + resolve_aws_unique_ids: value['resolveAwsUniqueIds'], + role_tag: value['roleTag'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AwsWriteRoleRequest.ts b/ui/api-client/src/models/AwsWriteRoleRequest.ts new file mode 100644 index 0000000000..57266ddbbf --- /dev/null +++ b/ui/api-client/src/models/AwsWriteRoleRequest.ts @@ -0,0 +1,183 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsWriteRoleRequest + */ +export interface AwsWriteRoleRequest { + /** + * Use role_arns or policy_arns instead. + * @type {string} + * @memberof AwsWriteRoleRequest + * @deprecated + */ + arn?: string; + /** + * Type of credential to retrieve. Must be one of assumed_role, iam_user, federation_token, or session_token + * @type {string} + * @memberof AwsWriteRoleRequest + */ + credentialType?: string; + /** + * Default TTL for assumed_role, federation_token, and session_token credential types when no TTL is explicitly requested with the credentials + * @type {string} + * @memberof AwsWriteRoleRequest + */ + defaultStsTtl?: string; + /** + * External ID to set when assuming the role; only valid when credential_type is assumed_role + * @type {string} + * @memberof AwsWriteRoleRequest + */ + externalId?: string; + /** + * Names of IAM groups that generated IAM users will be added to. For a credential type of assumed_role or federation_token, the policies sent to the corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the policies from each group in iam_groups combined with the policy_document and policy_arns parameters. + * @type {Array} + * @memberof AwsWriteRoleRequest + */ + iamGroups?: Array; + /** + * IAM tags to be set for any users created by this role. These must be presented as Key-Value pairs. This can be represented as a map or a list of equal sign delimited key pairs. + * @type {object} + * @memberof AwsWriteRoleRequest + */ + iamTags?: object; + /** + * Max allowed TTL for assumed_role, federation_token, and session_token credential types + * @type {string} + * @memberof AwsWriteRoleRequest + */ + maxStsTtl?: string; + /** + * Identification number or ARN of the MFA device associated with the root config user. Only valid when credential_type is session_token. This is only required when the IAM user has an MFA device configured. + * @type {string} + * @memberof AwsWriteRoleRequest + */ + mfaSerialNumber?: string; + /** + * ARN of an IAM policy to attach as a permissions boundary on IAM user credentials; only valid when credential_type isiam_user + * @type {string} + * @memberof AwsWriteRoleRequest + */ + permissionsBoundaryArn?: string; + /** + * Use policy_document instead. + * @type {string} + * @memberof AwsWriteRoleRequest + * @deprecated + */ + policy?: string; + /** + * ARNs of AWS policies. Behavior varies by credential_type. When credential_type is iam_user, then it will attach the specified policies to the generated IAM user. When credential_type is assumed_role or federation_token, the policies will be passed as the PolicyArns parameter, acting as a filter on permissions available. + * @type {Array} + * @memberof AwsWriteRoleRequest + */ + policyArns?: Array; + /** + * JSON-encoded IAM policy document. Behavior varies by credential_type. When credential_type is iam_user, then it will attach the contents of the policy_document to the IAM user generated. When credential_type is assumed_role or federation_token, this will be passed in as the Policy parameter to the AssumeRole or GetFederationToken API call, acting as a filter on permissions available. + * @type {string} + * @memberof AwsWriteRoleRequest + */ + policyDocument?: string; + /** + * ARNs of AWS roles allowed to be assumed. Only valid when credential_type is assumed_role + * @type {Array} + * @memberof AwsWriteRoleRequest + */ + roleArns?: Array; + /** + * Session tags to be set for "assumed_role" creds created by this role. These must be presented as Key-Value pairs. This can be represented as a map or a list of equal sign delimited key pairs. + * @type {object} + * @memberof AwsWriteRoleRequest + */ + sessionTags?: object; + /** + * Path for IAM User. Only valid when credential_type is iam_user + * @type {string} + * @memberof AwsWriteRoleRequest + */ + userPath?: string; +} + +/** + * Check if a given object implements the AwsWriteRoleRequest interface. + */ +export function instanceOfAwsWriteRoleRequest(value: object): value is AwsWriteRoleRequest { + return true; +} + +export function AwsWriteRoleRequestFromJSON(json: any): AwsWriteRoleRequest { + return AwsWriteRoleRequestFromJSONTyped(json, false); +} + +export function AwsWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsWriteRoleRequest { + if (json == null) { + return json; + } + return { + arn: json['arn'] == null ? undefined : json['arn'], + credentialType: json['credential_type'] == null ? undefined : json['credential_type'], + defaultStsTtl: json['default_sts_ttl'] == null ? undefined : json['default_sts_ttl'], + externalId: json['external_id'] == null ? undefined : json['external_id'], + iamGroups: json['iam_groups'] == null ? undefined : json['iam_groups'], + iamTags: json['iam_tags'] == null ? undefined : json['iam_tags'], + maxStsTtl: json['max_sts_ttl'] == null ? undefined : json['max_sts_ttl'], + mfaSerialNumber: json['mfa_serial_number'] == null ? undefined : json['mfa_serial_number'], + permissionsBoundaryArn: + json['permissions_boundary_arn'] == null ? undefined : json['permissions_boundary_arn'], + policy: json['policy'] == null ? undefined : json['policy'], + policyArns: json['policy_arns'] == null ? undefined : json['policy_arns'], + policyDocument: json['policy_document'] == null ? undefined : json['policy_document'], + roleArns: json['role_arns'] == null ? undefined : json['role_arns'], + sessionTags: json['session_tags'] == null ? undefined : json['session_tags'], + userPath: json['user_path'] == null ? undefined : json['user_path'], + }; +} + +export function AwsWriteRoleRequestToJSON(json: any): AwsWriteRoleRequest { + return AwsWriteRoleRequestToJSONTyped(json, false); +} + +export function AwsWriteRoleRequestToJSONTyped( + value?: AwsWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + arn: value['arn'], + credential_type: value['credentialType'], + default_sts_ttl: value['defaultStsTtl'], + external_id: value['externalId'], + iam_groups: value['iamGroups'], + iam_tags: value['iamTags'], + max_sts_ttl: value['maxStsTtl'], + mfa_serial_number: value['mfaSerialNumber'], + permissions_boundary_arn: value['permissionsBoundaryArn'], + policy: value['policy'], + policy_arns: value['policyArns'], + policy_document: value['policyDocument'], + role_arns: value['roleArns'], + session_tags: value['sessionTags'], + user_path: value['userPath'], + }; +} diff --git a/ui/api-client/src/models/AwsWriteRoleTagRequest.ts b/ui/api-client/src/models/AwsWriteRoleTagRequest.ts new file mode 100644 index 0000000000..04e8f713c6 --- /dev/null +++ b/ui/api-client/src/models/AwsWriteRoleTagRequest.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsWriteRoleTagRequest + */ +export interface AwsWriteRoleTagRequest { + /** + * If set, allows migration of the underlying instance where the client resides. This keys off of pendingTime in the metadata document, so essentially, this disables the client nonce check whenever the instance is migrated to a new host and pendingTime is newer than the previously-remembered time. Use with caution. + * @type {boolean} + * @memberof AwsWriteRoleTagRequest + */ + allowInstanceMigration?: boolean; + /** + * If set, only allows a single token to be granted per instance ID. In order to perform a fresh login, the entry in access list for the instance ID needs to be cleared using the 'auth/aws-ec2/identity-accesslist/' endpoint. + * @type {boolean} + * @memberof AwsWriteRoleTagRequest + */ + disallowReauthentication?: boolean; + /** + * Instance ID for which this tag is intended for. If set, the created tag can only be used by the instance with the given ID. + * @type {string} + * @memberof AwsWriteRoleTagRequest + */ + instanceId?: string; + /** + * If set, specifies the maximum allowed token lifetime. + * @type {string} + * @memberof AwsWriteRoleTagRequest + */ + maxTtl?: string; + /** + * Policies to be associated with the tag. If set, must be a subset of the role's policies. If set, but set to an empty value, only the 'default' policy will be given to issued tokens. + * @type {Array} + * @memberof AwsWriteRoleTagRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the AwsWriteRoleTagRequest interface. + */ +export function instanceOfAwsWriteRoleTagRequest(value: object): value is AwsWriteRoleTagRequest { + return true; +} + +export function AwsWriteRoleTagRequestFromJSON(json: any): AwsWriteRoleTagRequest { + return AwsWriteRoleTagRequestFromJSONTyped(json, false); +} + +export function AwsWriteRoleTagRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsWriteRoleTagRequest { + if (json == null) { + return json; + } + return { + allowInstanceMigration: + json['allow_instance_migration'] == null ? undefined : json['allow_instance_migration'], + disallowReauthentication: + json['disallow_reauthentication'] == null ? undefined : json['disallow_reauthentication'], + instanceId: json['instance_id'] == null ? undefined : json['instance_id'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function AwsWriteRoleTagRequestToJSON(json: any): AwsWriteRoleTagRequest { + return AwsWriteRoleTagRequestToJSONTyped(json, false); +} + +export function AwsWriteRoleTagRequestToJSONTyped( + value?: AwsWriteRoleTagRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_instance_migration: value['allowInstanceMigration'], + disallow_reauthentication: value['disallowReauthentication'], + instance_id: value['instanceId'], + max_ttl: value['maxTtl'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/AwsWriteStaticRolesNameRequest.ts b/ui/api-client/src/models/AwsWriteStaticRolesNameRequest.ts new file mode 100644 index 0000000000..82d78c6af3 --- /dev/null +++ b/ui/api-client/src/models/AwsWriteStaticRolesNameRequest.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsWriteStaticRolesNameRequest + */ +export interface AwsWriteStaticRolesNameRequest { + /** + * The AWS ARN for the role to be assumed when interacting with the account specified. + * @type {string} + * @memberof AwsWriteStaticRolesNameRequest + */ + assumeRoleArn?: string; + /** + * An identifier for the assumed role session. + * @type {string} + * @memberof AwsWriteStaticRolesNameRequest + */ + assumeRoleSessionName?: string; + /** + * An external ID to be passed to the assumed role session. + * @type {string} + * @memberof AwsWriteStaticRolesNameRequest + */ + externalId?: string; + /** + * Period by which to rotate the backing credential of the adopted user. This can be a Go duration (e.g, '1m', 24h'), or an integer number of seconds. + * @type {string} + * @memberof AwsWriteStaticRolesNameRequest + */ + rotationPeriod?: string; + /** + * The IAM user to adopt as a static role. + * @type {string} + * @memberof AwsWriteStaticRolesNameRequest + */ + username?: string; +} + +/** + * Check if a given object implements the AwsWriteStaticRolesNameRequest interface. + */ +export function instanceOfAwsWriteStaticRolesNameRequest( + value: object +): value is AwsWriteStaticRolesNameRequest { + return true; +} + +export function AwsWriteStaticRolesNameRequestFromJSON(json: any): AwsWriteStaticRolesNameRequest { + return AwsWriteStaticRolesNameRequestFromJSONTyped(json, false); +} + +export function AwsWriteStaticRolesNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsWriteStaticRolesNameRequest { + if (json == null) { + return json; + } + return { + assumeRoleArn: json['assume_role_arn'] == null ? undefined : json['assume_role_arn'], + assumeRoleSessionName: + json['assume_role_session_name'] == null ? undefined : json['assume_role_session_name'], + externalId: json['external_id'] == null ? undefined : json['external_id'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function AwsWriteStaticRolesNameRequestToJSON(json: any): AwsWriteStaticRolesNameRequest { + return AwsWriteStaticRolesNameRequestToJSONTyped(json, false); +} + +export function AwsWriteStaticRolesNameRequestToJSONTyped( + value?: AwsWriteStaticRolesNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + assume_role_arn: value['assumeRoleArn'], + assume_role_session_name: value['assumeRoleSessionName'], + external_id: value['externalId'], + rotation_period: value['rotationPeriod'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/AwsWriteStaticRolesNameResponse.ts b/ui/api-client/src/models/AwsWriteStaticRolesNameResponse.ts new file mode 100644 index 0000000000..722582c1bd --- /dev/null +++ b/ui/api-client/src/models/AwsWriteStaticRolesNameResponse.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsWriteStaticRolesNameResponse + */ +export interface AwsWriteStaticRolesNameResponse { + /** + * The AWS ARN for the role to be assumed when interacting with the account specified. + * @type {string} + * @memberof AwsWriteStaticRolesNameResponse + */ + assumeRoleArn?: string; + /** + * An identifier for the assumed role session. + * @type {string} + * @memberof AwsWriteStaticRolesNameResponse + */ + assumeRoleSessionName?: string; + /** + * An external ID to be passed to the assumed role session. + * @type {string} + * @memberof AwsWriteStaticRolesNameResponse + */ + externalId?: string; + /** + * The name of this role. + * @type {string} + * @memberof AwsWriteStaticRolesNameResponse + */ + name?: string; + /** + * Period by which to rotate the backing credential of the adopted user. This can be a Go duration (e.g, '1m', 24h'), or an integer number of seconds. + * @type {string} + * @memberof AwsWriteStaticRolesNameResponse + */ + rotationPeriod?: string; + /** + * The IAM user to adopt as a static role. + * @type {string} + * @memberof AwsWriteStaticRolesNameResponse + */ + username?: string; +} + +/** + * Check if a given object implements the AwsWriteStaticRolesNameResponse interface. + */ +export function instanceOfAwsWriteStaticRolesNameResponse( + value: object +): value is AwsWriteStaticRolesNameResponse { + return true; +} + +export function AwsWriteStaticRolesNameResponseFromJSON(json: any): AwsWriteStaticRolesNameResponse { + return AwsWriteStaticRolesNameResponseFromJSONTyped(json, false); +} + +export function AwsWriteStaticRolesNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsWriteStaticRolesNameResponse { + if (json == null) { + return json; + } + return { + assumeRoleArn: json['assume_role_arn'] == null ? undefined : json['assume_role_arn'], + assumeRoleSessionName: + json['assume_role_session_name'] == null ? undefined : json['assume_role_session_name'], + externalId: json['external_id'] == null ? undefined : json['external_id'], + name: json['name'] == null ? undefined : json['name'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function AwsWriteStaticRolesNameResponseToJSON(json: any): AwsWriteStaticRolesNameResponse { + return AwsWriteStaticRolesNameResponseToJSONTyped(json, false); +} + +export function AwsWriteStaticRolesNameResponseToJSONTyped( + value?: AwsWriteStaticRolesNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + assume_role_arn: value['assumeRoleArn'], + assume_role_session_name: value['assumeRoleSessionName'], + external_id: value['externalId'], + name: value['name'], + rotation_period: value['rotationPeriod'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/AwsWriteStsRoleRequest.ts b/ui/api-client/src/models/AwsWriteStsRoleRequest.ts new file mode 100644 index 0000000000..e138092ee9 --- /dev/null +++ b/ui/api-client/src/models/AwsWriteStsRoleRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AwsWriteStsRoleRequest + */ +export interface AwsWriteStsRoleRequest { + /** + * AWS external ID to be used when assuming the STS role. + * @type {string} + * @memberof AwsWriteStsRoleRequest + */ + externalId?: string; + /** + * AWS ARN for STS role to be assumed when interacting with the account specified. The Vault server must have permissions to assume this role. + * @type {string} + * @memberof AwsWriteStsRoleRequest + */ + stsRole?: string; +} + +/** + * Check if a given object implements the AwsWriteStsRoleRequest interface. + */ +export function instanceOfAwsWriteStsRoleRequest(value: object): value is AwsWriteStsRoleRequest { + return true; +} + +export function AwsWriteStsRoleRequestFromJSON(json: any): AwsWriteStsRoleRequest { + return AwsWriteStsRoleRequestFromJSONTyped(json, false); +} + +export function AwsWriteStsRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AwsWriteStsRoleRequest { + if (json == null) { + return json; + } + return { + externalId: json['external_id'] == null ? undefined : json['external_id'], + stsRole: json['sts_role'] == null ? undefined : json['sts_role'], + }; +} + +export function AwsWriteStsRoleRequestToJSON(json: any): AwsWriteStsRoleRequest { + return AwsWriteStsRoleRequestToJSONTyped(json, false); +} + +export function AwsWriteStsRoleRequestToJSONTyped( + value?: AwsWriteStsRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + external_id: value['externalId'], + sts_role: value['stsRole'], + }; +} diff --git a/ui/api-client/src/models/AzureConfigureAuthRequest.ts b/ui/api-client/src/models/AzureConfigureAuthRequest.ts new file mode 100644 index 0000000000..ba9161eadf --- /dev/null +++ b/ui/api-client/src/models/AzureConfigureAuthRequest.ts @@ -0,0 +1,182 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AzureConfigureAuthRequest + */ +export interface AzureConfigureAuthRequest { + /** + * The OAuth2 client id to connection to Azure. This value can also be provided with the AZURE_CLIENT_ID environment variable. + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + clientId?: string; + /** + * The OAuth2 client secret to connection to Azure. This value can also be provided with the AZURE_CLIENT_SECRET environment variable. + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + clientSecret?: string; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof AzureConfigureAuthRequest + */ + disableAutomatedRotation?: boolean; + /** + * The Azure environment name. If not provided, AzurePublicCloud is used. This value can also be provided with the AZURE_ENVIRONMENT environment variable. + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + environment?: string; + /** + * Audience of plugin identity tokens + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + identityTokenAudience?: string; + /** + * Time-to-live of plugin identity tokens + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + identityTokenTtl?: string; + /** + * The maximum number of attempts a failed operation will be retried before producing an error. + * @type {number} + * @memberof AzureConfigureAuthRequest + */ + maxRetries?: number; + /** + * The maximum delay allowed before retrying an operation. + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + maxRetryDelay?: string; + /** + * The resource URL for the vault application in Azure Active Directory. This value can also be provided with the AZURE_AD_RESOURCE environment variable. + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + resource?: string; + /** + * The initial amount of delay to use before retrying an operation, increasing exponentially. + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + retryDelay?: string; + /** + * The TTL of the root password in Azure. This can be either a number of seconds or a time formatted duration (ex: 24h, 48ds) + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + rootPasswordTtl?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + rotationWindow?: string; + /** + * The tenant id for the Azure Active Directory. This is sometimes referred to as Directory ID in AD. This value can also be provided with the AZURE_TENANT_ID environment variable. + * @type {string} + * @memberof AzureConfigureAuthRequest + */ + tenantId?: string; +} + +/** + * Check if a given object implements the AzureConfigureAuthRequest interface. + */ +export function instanceOfAzureConfigureAuthRequest(value: object): value is AzureConfigureAuthRequest { + return true; +} + +export function AzureConfigureAuthRequestFromJSON(json: any): AzureConfigureAuthRequest { + return AzureConfigureAuthRequestFromJSONTyped(json, false); +} + +export function AzureConfigureAuthRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AzureConfigureAuthRequest { + if (json == null) { + return json; + } + return { + clientId: json['client_id'] == null ? undefined : json['client_id'], + clientSecret: json['client_secret'] == null ? undefined : json['client_secret'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + environment: json['environment'] == null ? undefined : json['environment'], + identityTokenAudience: + json['identity_token_audience'] == null ? undefined : json['identity_token_audience'], + identityTokenTtl: json['identity_token_ttl'] == null ? undefined : json['identity_token_ttl'], + maxRetries: json['max_retries'] == null ? undefined : json['max_retries'], + maxRetryDelay: json['max_retry_delay'] == null ? undefined : json['max_retry_delay'], + resource: json['resource'] == null ? undefined : json['resource'], + retryDelay: json['retry_delay'] == null ? undefined : json['retry_delay'], + rootPasswordTtl: json['root_password_ttl'] == null ? undefined : json['root_password_ttl'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + tenantId: json['tenant_id'] == null ? undefined : json['tenant_id'], + }; +} + +export function AzureConfigureAuthRequestToJSON(json: any): AzureConfigureAuthRequest { + return AzureConfigureAuthRequestToJSONTyped(json, false); +} + +export function AzureConfigureAuthRequestToJSONTyped( + value?: AzureConfigureAuthRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_id: value['clientId'], + client_secret: value['clientSecret'], + disable_automated_rotation: value['disableAutomatedRotation'], + environment: value['environment'], + identity_token_audience: value['identityTokenAudience'], + identity_token_ttl: value['identityTokenTtl'], + max_retries: value['maxRetries'], + max_retry_delay: value['maxRetryDelay'], + resource: value['resource'], + retry_delay: value['retryDelay'], + root_password_ttl: value['rootPasswordTtl'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + tenant_id: value['tenantId'], + }; +} diff --git a/ui/api-client/src/models/AzureConfigureRequest.ts b/ui/api-client/src/models/AzureConfigureRequest.ts new file mode 100644 index 0000000000..928cc61eee --- /dev/null +++ b/ui/api-client/src/models/AzureConfigureRequest.ts @@ -0,0 +1,158 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AzureConfigureRequest + */ +export interface AzureConfigureRequest { + /** + * The OAuth2 client id to connect to Azure. This value can also be provided with the AZURE_CLIENT_ID environment variable. + * @type {string} + * @memberof AzureConfigureRequest + */ + clientId?: string; + /** + * The OAuth2 client secret to connect to Azure. This value can also be provided with the AZURE_CLIENT_SECRET environment variable. + * @type {string} + * @memberof AzureConfigureRequest + */ + clientSecret?: string; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof AzureConfigureRequest + */ + disableAutomatedRotation?: boolean; + /** + * The Azure environment name. If not provided, AzurePublicCloud is used. This value can also be provided with the AZURE_ENVIRONMENT environment variable. + * @type {string} + * @memberof AzureConfigureRequest + */ + environment?: string; + /** + * Audience of plugin identity tokens + * @type {string} + * @memberof AzureConfigureRequest + */ + identityTokenAudience?: string; + /** + * Time-to-live of plugin identity tokens + * @type {string} + * @memberof AzureConfigureRequest + */ + identityTokenTtl?: string; + /** + * The TTL of the root password in Azure. This can be either a number of seconds or a time formatted duration (ex: 24h, 48ds) + * @type {string} + * @memberof AzureConfigureRequest + */ + rootPasswordTtl?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof AzureConfigureRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof AzureConfigureRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof AzureConfigureRequest + */ + rotationWindow?: string; + /** + * The subscription id for the Azure Active Directory. This value can also be provided with the AZURE_SUBSCRIPTION_ID environment variable. + * @type {string} + * @memberof AzureConfigureRequest + */ + subscriptionId?: string; + /** + * The tenant id for the Azure Active Directory. This value can also be provided with the AZURE_TENANT_ID environment variable. + * @type {string} + * @memberof AzureConfigureRequest + */ + tenantId?: string; +} + +/** + * Check if a given object implements the AzureConfigureRequest interface. + */ +export function instanceOfAzureConfigureRequest(value: object): value is AzureConfigureRequest { + return true; +} + +export function AzureConfigureRequestFromJSON(json: any): AzureConfigureRequest { + return AzureConfigureRequestFromJSONTyped(json, false); +} + +export function AzureConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AzureConfigureRequest { + if (json == null) { + return json; + } + return { + clientId: json['client_id'] == null ? undefined : json['client_id'], + clientSecret: json['client_secret'] == null ? undefined : json['client_secret'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + environment: json['environment'] == null ? undefined : json['environment'], + identityTokenAudience: + json['identity_token_audience'] == null ? undefined : json['identity_token_audience'], + identityTokenTtl: json['identity_token_ttl'] == null ? undefined : json['identity_token_ttl'], + rootPasswordTtl: json['root_password_ttl'] == null ? undefined : json['root_password_ttl'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + subscriptionId: json['subscription_id'] == null ? undefined : json['subscription_id'], + tenantId: json['tenant_id'] == null ? undefined : json['tenant_id'], + }; +} + +export function AzureConfigureRequestToJSON(json: any): AzureConfigureRequest { + return AzureConfigureRequestToJSONTyped(json, false); +} + +export function AzureConfigureRequestToJSONTyped( + value?: AzureConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_id: value['clientId'], + client_secret: value['clientSecret'], + disable_automated_rotation: value['disableAutomatedRotation'], + environment: value['environment'], + identity_token_audience: value['identityTokenAudience'], + identity_token_ttl: value['identityTokenTtl'], + root_password_ttl: value['rootPasswordTtl'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + subscription_id: value['subscriptionId'], + tenant_id: value['tenantId'], + }; +} diff --git a/ui/api-client/src/models/AzureLoginRequest.ts b/ui/api-client/src/models/AzureLoginRequest.ts new file mode 100644 index 0000000000..e04c55612f --- /dev/null +++ b/ui/api-client/src/models/AzureLoginRequest.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AzureLoginRequest + */ +export interface AzureLoginRequest { + /** + * A signed JWT + * @type {string} + * @memberof AzureLoginRequest + */ + jwt?: string; + /** + * The resource group from the instance. + * @type {string} + * @memberof AzureLoginRequest + */ + resourceGroupName?: string; + /** + * The fully qualified ID of the resource, includingthe resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. This value is ignored if vm_name or vmss_name is specified. + * @type {string} + * @memberof AzureLoginRequest + */ + resourceId?: string; + /** + * The token role. + * @type {string} + * @memberof AzureLoginRequest + */ + role?: string; + /** + * The subscription id for the instance. + * @type {string} + * @memberof AzureLoginRequest + */ + subscriptionId?: string; + /** + * The name of the virtual machine. This value is ignored if vmss_name is specified. + * @type {string} + * @memberof AzureLoginRequest + */ + vmName?: string; + /** + * The name of the virtual machine scale set the instance is in. + * @type {string} + * @memberof AzureLoginRequest + */ + vmssName?: string; +} + +/** + * Check if a given object implements the AzureLoginRequest interface. + */ +export function instanceOfAzureLoginRequest(value: object): value is AzureLoginRequest { + return true; +} + +export function AzureLoginRequestFromJSON(json: any): AzureLoginRequest { + return AzureLoginRequestFromJSONTyped(json, false); +} + +export function AzureLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AzureLoginRequest { + if (json == null) { + return json; + } + return { + jwt: json['jwt'] == null ? undefined : json['jwt'], + resourceGroupName: json['resource_group_name'] == null ? undefined : json['resource_group_name'], + resourceId: json['resource_id'] == null ? undefined : json['resource_id'], + role: json['role'] == null ? undefined : json['role'], + subscriptionId: json['subscription_id'] == null ? undefined : json['subscription_id'], + vmName: json['vm_name'] == null ? undefined : json['vm_name'], + vmssName: json['vmss_name'] == null ? undefined : json['vmss_name'], + }; +} + +export function AzureLoginRequestToJSON(json: any): AzureLoginRequest { + return AzureLoginRequestToJSONTyped(json, false); +} + +export function AzureLoginRequestToJSONTyped( + value?: AzureLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + jwt: value['jwt'], + resource_group_name: value['resourceGroupName'], + resource_id: value['resourceId'], + role: value['role'], + subscription_id: value['subscriptionId'], + vm_name: value['vmName'], + vmss_name: value['vmssName'], + }; +} diff --git a/ui/api-client/src/models/AzureWriteAuthRoleRequest.ts b/ui/api-client/src/models/AzureWriteAuthRoleRequest.ts new file mode 100644 index 0000000000..556063a90e --- /dev/null +++ b/ui/api-client/src/models/AzureWriteAuthRoleRequest.ts @@ -0,0 +1,227 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AzureWriteAuthRoleRequest + */ +export interface AzureWriteAuthRoleRequest { + /** + * Comma-separated list of group ids that login is restricted to. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + boundGroupIds?: Array; + /** + * Comma-separated list of locations that login is restricted to. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + boundLocations?: Array; + /** + * Comma-separated list of resource groups that login is restricted to. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + boundResourceGroups?: Array; + /** + * Comma-separated list of scale sets that login is restricted to. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + boundScaleSets?: Array; + /** + * Comma-separated list of service principal ids that login is restricted to. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + boundServicePrincipalIds?: Array; + /** + * Comma-separated list of subscription ids that login is restricted to. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + boundSubscriptionIds?: Array; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof AzureWriteAuthRoleRequest + * @deprecated + */ + maxTtl?: string; + /** + * Use "token_num_uses" instead. If this and "token_num_uses" are both specified, only "token_num_uses" will be used. + * @type {number} + * @memberof AzureWriteAuthRoleRequest + * @deprecated + */ + numUses?: number; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof AzureWriteAuthRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof AzureWriteAuthRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof AzureWriteAuthRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof AzureWriteAuthRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof AzureWriteAuthRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof AzureWriteAuthRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof AzureWriteAuthRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof AzureWriteAuthRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof AzureWriteAuthRoleRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof AzureWriteAuthRoleRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the AzureWriteAuthRoleRequest interface. + */ +export function instanceOfAzureWriteAuthRoleRequest(value: object): value is AzureWriteAuthRoleRequest { + return true; +} + +export function AzureWriteAuthRoleRequestFromJSON(json: any): AzureWriteAuthRoleRequest { + return AzureWriteAuthRoleRequestFromJSONTyped(json, false); +} + +export function AzureWriteAuthRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AzureWriteAuthRoleRequest { + if (json == null) { + return json; + } + return { + boundGroupIds: json['bound_group_ids'] == null ? undefined : json['bound_group_ids'], + boundLocations: json['bound_locations'] == null ? undefined : json['bound_locations'], + boundResourceGroups: json['bound_resource_groups'] == null ? undefined : json['bound_resource_groups'], + boundScaleSets: json['bound_scale_sets'] == null ? undefined : json['bound_scale_sets'], + boundServicePrincipalIds: + json['bound_service_principal_ids'] == null ? undefined : json['bound_service_principal_ids'], + boundSubscriptionIds: json['bound_subscription_ids'] == null ? undefined : json['bound_subscription_ids'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AzureWriteAuthRoleRequestToJSON(json: any): AzureWriteAuthRoleRequest { + return AzureWriteAuthRoleRequestToJSONTyped(json, false); +} + +export function AzureWriteAuthRoleRequestToJSONTyped( + value?: AzureWriteAuthRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bound_group_ids: value['boundGroupIds'], + bound_locations: value['boundLocations'], + bound_resource_groups: value['boundResourceGroups'], + bound_scale_sets: value['boundScaleSets'], + bound_service_principal_ids: value['boundServicePrincipalIds'], + bound_subscription_ids: value['boundSubscriptionIds'], + max_ttl: value['maxTtl'], + num_uses: value['numUses'], + period: value['period'], + policies: value['policies'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/AzureWriteRoleRequest.ts b/ui/api-client/src/models/AzureWriteRoleRequest.ts new file mode 100644 index 0000000000..84ad04bc16 --- /dev/null +++ b/ui/api-client/src/models/AzureWriteRoleRequest.ts @@ -0,0 +1,140 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AzureWriteRoleRequest + */ +export interface AzureWriteRoleRequest { + /** + * Application Object ID to use for static service principal credentials. + * @type {string} + * @memberof AzureWriteRoleRequest + */ + applicationObjectId?: string; + /** + * JSON list of Azure groups to add the service principal to. + * @type {string} + * @memberof AzureWriteRoleRequest + */ + azureGroups?: string; + /** + * JSON list of Azure roles to assign. + * @type {string} + * @memberof AzureWriteRoleRequest + */ + azureRoles?: string; + /** + * Maximum lifetime of the lease and service principal. If not set or set to 0, will use the system default. + * @type {string} + * @memberof AzureWriteRoleRequest + */ + explicitMaxTtl?: string; + /** + * Maximum time a service principal. If not set or set to 0, will use system default. + * @type {string} + * @memberof AzureWriteRoleRequest + */ + maxTtl?: string; + /** + * Indicates whether new application objects should be permanently deleted. If not set, objects will not be permanently deleted. + * @type {boolean} + * @memberof AzureWriteRoleRequest + */ + permanentlyDelete?: boolean; + /** + * Persist the app between generated credentials. Useful if the app needs to maintain owner ship of resources it creates + * @type {boolean} + * @memberof AzureWriteRoleRequest + */ + persistApp?: boolean; + /** + * Specifies the security principal types that are allowed to sign in to the application. Valid values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, PersonalMicrosoftAccount + * @type {string} + * @memberof AzureWriteRoleRequest + */ + signInAudience?: string; + /** + * Azure tags to attach to an application. + * @type {Array} + * @memberof AzureWriteRoleRequest + */ + tags?: Array; + /** + * Default lease for generated credentials. If not set or set to 0, will use system default. + * @type {string} + * @memberof AzureWriteRoleRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the AzureWriteRoleRequest interface. + */ +export function instanceOfAzureWriteRoleRequest(value: object): value is AzureWriteRoleRequest { + return true; +} + +export function AzureWriteRoleRequestFromJSON(json: any): AzureWriteRoleRequest { + return AzureWriteRoleRequestFromJSONTyped(json, false); +} + +export function AzureWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): AzureWriteRoleRequest { + if (json == null) { + return json; + } + return { + applicationObjectId: json['application_object_id'] == null ? undefined : json['application_object_id'], + azureGroups: json['azure_groups'] == null ? undefined : json['azure_groups'], + azureRoles: json['azure_roles'] == null ? undefined : json['azure_roles'], + explicitMaxTtl: json['explicit_max_ttl'] == null ? undefined : json['explicit_max_ttl'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + permanentlyDelete: json['permanently_delete'] == null ? undefined : json['permanently_delete'], + persistApp: json['persist_app'] == null ? undefined : json['persist_app'], + signInAudience: json['sign_in_audience'] == null ? undefined : json['sign_in_audience'], + tags: json['tags'] == null ? undefined : json['tags'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function AzureWriteRoleRequestToJSON(json: any): AzureWriteRoleRequest { + return AzureWriteRoleRequestToJSONTyped(json, false); +} + +export function AzureWriteRoleRequestToJSONTyped( + value?: AzureWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + application_object_id: value['applicationObjectId'], + azure_groups: value['azureGroups'], + azure_roles: value['azureRoles'], + explicit_max_ttl: value['explicitMaxTtl'], + max_ttl: value['maxTtl'], + permanently_delete: value['permanentlyDelete'], + persist_app: value['persistApp'], + sign_in_audience: value['signInAudience'], + tags: value['tags'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/CertConfigureRequest.ts b/ui/api-client/src/models/CertConfigureRequest.ts new file mode 100644 index 0000000000..a2de90025a --- /dev/null +++ b/ui/api-client/src/models/CertConfigureRequest.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CertConfigureRequest + */ +export interface CertConfigureRequest { + /** + * If set, during renewal, skips the matching of presented client identity with the client identity used during login. Defaults to false. + * @type {boolean} + * @memberof CertConfigureRequest + */ + disableBinding?: boolean; + /** + * If set, metadata of the certificate including the metadata corresponding to allowed_metadata_extensions will be stored in the alias. Defaults to false. + * @type {boolean} + * @memberof CertConfigureRequest + */ + enableIdentityAliasMetadata?: boolean; + /** + * If set, metadata of the client certificate will be returned on authentication failures. + * @type {boolean} + * @memberof CertConfigureRequest + */ + enableMetadataOnFailures?: boolean; + /** + * The size of the in memory OCSP response cache, shared by all configured certs + * @type {number} + * @memberof CertConfigureRequest + */ + ocspCacheSize?: number; + /** + * The size of the in memory role cache + * @type {number} + * @memberof CertConfigureRequest + */ + roleCacheSize?: number; +} + +/** + * Check if a given object implements the CertConfigureRequest interface. + */ +export function instanceOfCertConfigureRequest(value: object): value is CertConfigureRequest { + return true; +} + +export function CertConfigureRequestFromJSON(json: any): CertConfigureRequest { + return CertConfigureRequestFromJSONTyped(json, false); +} + +export function CertConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CertConfigureRequest { + if (json == null) { + return json; + } + return { + disableBinding: json['disable_binding'] == null ? undefined : json['disable_binding'], + enableIdentityAliasMetadata: + json['enable_identity_alias_metadata'] == null ? undefined : json['enable_identity_alias_metadata'], + enableMetadataOnFailures: + json['enable_metadata_on_failures'] == null ? undefined : json['enable_metadata_on_failures'], + ocspCacheSize: json['ocsp_cache_size'] == null ? undefined : json['ocsp_cache_size'], + roleCacheSize: json['role_cache_size'] == null ? undefined : json['role_cache_size'], + }; +} + +export function CertConfigureRequestToJSON(json: any): CertConfigureRequest { + return CertConfigureRequestToJSONTyped(json, false); +} + +export function CertConfigureRequestToJSONTyped( + value?: CertConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_binding: value['disableBinding'], + enable_identity_alias_metadata: value['enableIdentityAliasMetadata'], + enable_metadata_on_failures: value['enableMetadataOnFailures'], + ocsp_cache_size: value['ocspCacheSize'], + role_cache_size: value['roleCacheSize'], + }; +} diff --git a/ui/api-client/src/models/CertLoginRequest.ts b/ui/api-client/src/models/CertLoginRequest.ts new file mode 100644 index 0000000000..d5dc4a0b52 --- /dev/null +++ b/ui/api-client/src/models/CertLoginRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CertLoginRequest + */ +export interface CertLoginRequest { + /** + * The name of the certificate role to authenticate against. + * @type {string} + * @memberof CertLoginRequest + */ + name?: string; +} + +/** + * Check if a given object implements the CertLoginRequest interface. + */ +export function instanceOfCertLoginRequest(value: object): value is CertLoginRequest { + return true; +} + +export function CertLoginRequestFromJSON(json: any): CertLoginRequest { + return CertLoginRequestFromJSONTyped(json, false); +} + +export function CertLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertLoginRequest { + if (json == null) { + return json; + } + return { + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function CertLoginRequestToJSON(json: any): CertLoginRequest { + return CertLoginRequestToJSONTyped(json, false); +} + +export function CertLoginRequestToJSONTyped( + value?: CertLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/CertWriteCertificateRequest.ts b/ui/api-client/src/models/CertWriteCertificateRequest.ts new file mode 100644 index 0000000000..50696bb5bf --- /dev/null +++ b/ui/api-client/src/models/CertWriteCertificateRequest.ts @@ -0,0 +1,326 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CertWriteCertificateRequest + */ +export interface CertWriteCertificateRequest { + /** + * A comma-separated list of names. At least one must exist in the Common Name. Supports globbing. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + allowedCommonNames?: Array; + /** + * A comma-separated list of DNS names. At least one must exist in the SANs. Supports globbing. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + allowedDnsSans?: Array; + /** + * A comma-separated list of Email Addresses. At least one must exist in the SANs. Supports globbing. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + allowedEmailSans?: Array; + /** + * A comma-separated string or array of oid extensions. Upon successful authentication, these extensions will be added as metadata if they are present in the certificate. The metadata key will be the string consisting of the oid numbers separated by a dash (-) instead of a dot (.) to allow usage in ACL templates. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + allowedMetadataExtensions?: Array; + /** + * A comma-separated list of names. At least one must exist in either the Common Name or SANs. Supports globbing. This parameter is deprecated, please use allowed_common_names, allowed_dns_sans, allowed_email_sans, allowed_uri_sans. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + allowedNames?: Array; + /** + * A comma-separated list of Organizational Units names. At least one must exist in the OU field. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + allowedOrganizationalUnits?: Array; + /** + * A comma-separated list of URIs. At least one must exist in the SANs. Supports globbing. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + allowedUriSans?: Array; + /** + * Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. + * @type {Array} + * @memberof CertWriteCertificateRequest + * @deprecated + */ + boundCidrs?: Array; + /** + * The public certificate that should be trusted. Must be x509 PEM encoded. + * @type {string} + * @memberof CertWriteCertificateRequest + */ + certificate?: string; + /** + * The display name to use for clients using this certificate. + * @type {string} + * @memberof CertWriteCertificateRequest + */ + displayName?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {number} + * @memberof CertWriteCertificateRequest + * @deprecated + */ + lease?: number; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof CertWriteCertificateRequest + * @deprecated + */ + maxTtl?: string; + /** + * Any additional CA certificates needed to communicate with OCSP servers + * @type {string} + * @memberof CertWriteCertificateRequest + */ + ocspCaCertificates?: string; + /** + * Whether to attempt OCSP verification of certificates at login + * @type {boolean} + * @memberof CertWriteCertificateRequest + */ + ocspEnabled?: boolean; + /** + * If set to true, if an OCSP revocation cannot be made successfully, login will proceed rather than failing. If false, failing to get an OCSP status fails the request. + * @type {boolean} + * @memberof CertWriteCertificateRequest + */ + ocspFailOpen?: boolean; + /** + * The number of retries the OCSP client should attempt per query. + * @type {number} + * @memberof CertWriteCertificateRequest + */ + ocspMaxRetries?: number; + /** + * If set to true, rather than accepting the first successful OCSP response, query all servers and consider the certificate valid only if all servers agree. + * @type {boolean} + * @memberof CertWriteCertificateRequest + */ + ocspQueryAllServers?: boolean; + /** + * A comma-separated list of OCSP server addresses. If unset, the OCSP server is determined from the AuthorityInformationAccess extension on the certificate being inspected. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + ocspServersOverride?: Array; + /** + * If greater than 0, specifies the maximum age of an OCSP thisUpdate field to avoid accepting old responses without a nextUpdate field. + * @type {string} + * @memberof CertWriteCertificateRequest + */ + ocspThisUpdateMaxAge?: string; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof CertWriteCertificateRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof CertWriteCertificateRequest + * @deprecated + */ + policies?: Array; + /** + * A comma-separated string or array of extensions formatted as "oid:value". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on "value". + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + requiredExtensions?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof CertWriteCertificateRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof CertWriteCertificateRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof CertWriteCertificateRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof CertWriteCertificateRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof CertWriteCertificateRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof CertWriteCertificateRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof CertWriteCertificateRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof CertWriteCertificateRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof CertWriteCertificateRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the CertWriteCertificateRequest interface. + */ +export function instanceOfCertWriteCertificateRequest(value: object): value is CertWriteCertificateRequest { + return true; +} + +export function CertWriteCertificateRequestFromJSON(json: any): CertWriteCertificateRequest { + return CertWriteCertificateRequestFromJSONTyped(json, false); +} + +export function CertWriteCertificateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CertWriteCertificateRequest { + if (json == null) { + return json; + } + return { + allowedCommonNames: json['allowed_common_names'] == null ? undefined : json['allowed_common_names'], + allowedDnsSans: json['allowed_dns_sans'] == null ? undefined : json['allowed_dns_sans'], + allowedEmailSans: json['allowed_email_sans'] == null ? undefined : json['allowed_email_sans'], + allowedMetadataExtensions: + json['allowed_metadata_extensions'] == null ? undefined : json['allowed_metadata_extensions'], + allowedNames: json['allowed_names'] == null ? undefined : json['allowed_names'], + allowedOrganizationalUnits: + json['allowed_organizational_units'] == null ? undefined : json['allowed_organizational_units'], + allowedUriSans: json['allowed_uri_sans'] == null ? undefined : json['allowed_uri_sans'], + boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + displayName: json['display_name'] == null ? undefined : json['display_name'], + lease: json['lease'] == null ? undefined : json['lease'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + ocspCaCertificates: json['ocsp_ca_certificates'] == null ? undefined : json['ocsp_ca_certificates'], + ocspEnabled: json['ocsp_enabled'] == null ? undefined : json['ocsp_enabled'], + ocspFailOpen: json['ocsp_fail_open'] == null ? undefined : json['ocsp_fail_open'], + ocspMaxRetries: json['ocsp_max_retries'] == null ? undefined : json['ocsp_max_retries'], + ocspQueryAllServers: json['ocsp_query_all_servers'] == null ? undefined : json['ocsp_query_all_servers'], + ocspServersOverride: json['ocsp_servers_override'] == null ? undefined : json['ocsp_servers_override'], + ocspThisUpdateMaxAge: + json['ocsp_this_update_max_age'] == null ? undefined : json['ocsp_this_update_max_age'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + requiredExtensions: json['required_extensions'] == null ? undefined : json['required_extensions'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function CertWriteCertificateRequestToJSON(json: any): CertWriteCertificateRequest { + return CertWriteCertificateRequestToJSONTyped(json, false); +} + +export function CertWriteCertificateRequestToJSONTyped( + value?: CertWriteCertificateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_common_names: value['allowedCommonNames'], + allowed_dns_sans: value['allowedDnsSans'], + allowed_email_sans: value['allowedEmailSans'], + allowed_metadata_extensions: value['allowedMetadataExtensions'], + allowed_names: value['allowedNames'], + allowed_organizational_units: value['allowedOrganizationalUnits'], + allowed_uri_sans: value['allowedUriSans'], + bound_cidrs: value['boundCidrs'], + certificate: value['certificate'], + display_name: value['displayName'], + lease: value['lease'], + max_ttl: value['maxTtl'], + ocsp_ca_certificates: value['ocspCaCertificates'], + ocsp_enabled: value['ocspEnabled'], + ocsp_fail_open: value['ocspFailOpen'], + ocsp_max_retries: value['ocspMaxRetries'], + ocsp_query_all_servers: value['ocspQueryAllServers'], + ocsp_servers_override: value['ocspServersOverride'], + ocsp_this_update_max_age: value['ocspThisUpdateMaxAge'], + period: value['period'], + policies: value['policies'], + required_extensions: value['requiredExtensions'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/CertWriteCrlRequest.ts b/ui/api-client/src/models/CertWriteCrlRequest.ts new file mode 100644 index 0000000000..f919e4a867 --- /dev/null +++ b/ui/api-client/src/models/CertWriteCrlRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CertWriteCrlRequest + */ +export interface CertWriteCrlRequest { + /** + * The public CRL that should be trusted to attest to certificates' validity statuses. May be DER or PEM encoded. Note: the expiration time is ignored; if the CRL is no longer valid, delete it using the same name as specified here. + * @type {string} + * @memberof CertWriteCrlRequest + */ + crl?: string; + /** + * The URL of a CRL distribution point. Only one of 'crl' or 'url' parameters should be specified. + * @type {string} + * @memberof CertWriteCrlRequest + */ + url?: string; +} + +/** + * Check if a given object implements the CertWriteCrlRequest interface. + */ +export function instanceOfCertWriteCrlRequest(value: object): value is CertWriteCrlRequest { + return true; +} + +export function CertWriteCrlRequestFromJSON(json: any): CertWriteCrlRequest { + return CertWriteCrlRequestFromJSONTyped(json, false); +} + +export function CertWriteCrlRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CertWriteCrlRequest { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + url: json['url'] == null ? undefined : json['url'], + }; +} + +export function CertWriteCrlRequestToJSON(json: any): CertWriteCrlRequest { + return CertWriteCrlRequestToJSONTyped(json, false); +} + +export function CertWriteCrlRequestToJSONTyped( + value?: CertWriteCrlRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + url: value['url'], + }; +} diff --git a/ui/api-client/src/models/CloudFoundryConfigureRequest.ts b/ui/api-client/src/models/CloudFoundryConfigureRequest.ts new file mode 100644 index 0000000000..4eb7bffb04 --- /dev/null +++ b/ui/api-client/src/models/CloudFoundryConfigureRequest.ts @@ -0,0 +1,198 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CloudFoundryConfigureRequest + */ +export interface CloudFoundryConfigureRequest { + /** + * CF’s API address. + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfApiAddr?: string; + /** + * The PEM-format certificates that are presented for mutual TLS with the CloudFoundry API. If not set, mutual TLS is not used + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfApiMutualTlsCertificate?: string; + /** + * The PEM-format private key that are used for mutual TLS with the CloudFoundry API. If not set, mutual TLS is not used + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfApiMutualTlsKey?: string; + /** + * The PEM-format CA certificates that are acceptable for the CF API to present. + * @type {Array} + * @memberof CloudFoundryConfigureRequest + */ + cfApiTrustedCertificates?: Array; + /** + * The client id for CF’s API. + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfClientId?: string; + /** + * The client secret for CF’s API. + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfClientSecret?: string; + /** + * The password for CF’s API. + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfPassword?: string; + /** + * The timeout for calls to CF’s API. + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfTimeout?: string; + /** + * The username for CF’s API. + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + cfUsername?: string; + /** + * The PEM-format CA certificates that are required to have issued the instance certificates presented for logging in. + * @type {Array} + * @memberof CloudFoundryConfigureRequest + */ + identityCaCertificates?: Array; + /** + * Duration in seconds for the maximum acceptable length in the future a "signing_time" can be. Useful for clock drift. Set low to reduce the opportunity for replay attacks. + * @type {number} + * @memberof CloudFoundryConfigureRequest + */ + loginMaxSecondsNotAfter?: number; + /** + * Duration in seconds for the maximum acceptable age of a "signing_time". Useful for clock drift. Set low to reduce the opportunity for replay attacks. + * @type {string} + * @memberof CloudFoundryConfigureRequest + */ + loginMaxSecondsNotBefore?: string; + /** + * Deprecated. Please use "cf_api_addr". + * @type {string} + * @memberof CloudFoundryConfigureRequest + * @deprecated + */ + pcfApiAddr?: string; + /** + * Deprecated. Please use "cf_api_trusted_certificates". + * @type {Array} + * @memberof CloudFoundryConfigureRequest + * @deprecated + */ + pcfApiTrustedCertificates?: Array; + /** + * Deprecated. Please use "cf_password". + * @type {string} + * @memberof CloudFoundryConfigureRequest + * @deprecated + */ + pcfPassword?: string; + /** + * Deprecated. Please use "cf_username". + * @type {string} + * @memberof CloudFoundryConfigureRequest + * @deprecated + */ + pcfUsername?: string; +} + +/** + * Check if a given object implements the CloudFoundryConfigureRequest interface. + */ +export function instanceOfCloudFoundryConfigureRequest(value: object): value is CloudFoundryConfigureRequest { + return true; +} + +export function CloudFoundryConfigureRequestFromJSON(json: any): CloudFoundryConfigureRequest { + return CloudFoundryConfigureRequestFromJSONTyped(json, false); +} + +export function CloudFoundryConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CloudFoundryConfigureRequest { + if (json == null) { + return json; + } + return { + cfApiAddr: json['cf_api_addr'] == null ? undefined : json['cf_api_addr'], + cfApiMutualTlsCertificate: + json['cf_api_mutual_tls_certificate'] == null ? undefined : json['cf_api_mutual_tls_certificate'], + cfApiMutualTlsKey: json['cf_api_mutual_tls_key'] == null ? undefined : json['cf_api_mutual_tls_key'], + cfApiTrustedCertificates: + json['cf_api_trusted_certificates'] == null ? undefined : json['cf_api_trusted_certificates'], + cfClientId: json['cf_client_id'] == null ? undefined : json['cf_client_id'], + cfClientSecret: json['cf_client_secret'] == null ? undefined : json['cf_client_secret'], + cfPassword: json['cf_password'] == null ? undefined : json['cf_password'], + cfTimeout: json['cf_timeout'] == null ? undefined : json['cf_timeout'], + cfUsername: json['cf_username'] == null ? undefined : json['cf_username'], + identityCaCertificates: + json['identity_ca_certificates'] == null ? undefined : json['identity_ca_certificates'], + loginMaxSecondsNotAfter: + json['login_max_seconds_not_after'] == null ? undefined : json['login_max_seconds_not_after'], + loginMaxSecondsNotBefore: + json['login_max_seconds_not_before'] == null ? undefined : json['login_max_seconds_not_before'], + pcfApiAddr: json['pcf_api_addr'] == null ? undefined : json['pcf_api_addr'], + pcfApiTrustedCertificates: + json['pcf_api_trusted_certificates'] == null ? undefined : json['pcf_api_trusted_certificates'], + pcfPassword: json['pcf_password'] == null ? undefined : json['pcf_password'], + pcfUsername: json['pcf_username'] == null ? undefined : json['pcf_username'], + }; +} + +export function CloudFoundryConfigureRequestToJSON(json: any): CloudFoundryConfigureRequest { + return CloudFoundryConfigureRequestToJSONTyped(json, false); +} + +export function CloudFoundryConfigureRequestToJSONTyped( + value?: CloudFoundryConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cf_api_addr: value['cfApiAddr'], + cf_api_mutual_tls_certificate: value['cfApiMutualTlsCertificate'], + cf_api_mutual_tls_key: value['cfApiMutualTlsKey'], + cf_api_trusted_certificates: value['cfApiTrustedCertificates'], + cf_client_id: value['cfClientId'], + cf_client_secret: value['cfClientSecret'], + cf_password: value['cfPassword'], + cf_timeout: value['cfTimeout'], + cf_username: value['cfUsername'], + identity_ca_certificates: value['identityCaCertificates'], + login_max_seconds_not_after: value['loginMaxSecondsNotAfter'], + login_max_seconds_not_before: value['loginMaxSecondsNotBefore'], + pcf_api_addr: value['pcfApiAddr'], + pcf_api_trusted_certificates: value['pcfApiTrustedCertificates'], + pcf_password: value['pcfPassword'], + pcf_username: value['pcfUsername'], + }; +} diff --git a/ui/api-client/src/models/CloudFoundryLoginRequest.ts b/ui/api-client/src/models/CloudFoundryLoginRequest.ts new file mode 100644 index 0000000000..acc80139e8 --- /dev/null +++ b/ui/api-client/src/models/CloudFoundryLoginRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CloudFoundryLoginRequest + */ +export interface CloudFoundryLoginRequest { + /** + * The full body of the file available at the CF_INSTANCE_CERT path on the CF instance. + * @type {string} + * @memberof CloudFoundryLoginRequest + */ + cfInstanceCert: string; + /** + * The name of the role to authenticate against. + * @type {string} + * @memberof CloudFoundryLoginRequest + */ + role: string; + /** + * The signature generated by the client certificate's private key. + * @type {string} + * @memberof CloudFoundryLoginRequest + */ + signature: string; + /** + * The date and time used to construct the signature. + * @type {string} + * @memberof CloudFoundryLoginRequest + */ + signingTime: string; +} + +/** + * Check if a given object implements the CloudFoundryLoginRequest interface. + */ +export function instanceOfCloudFoundryLoginRequest(value: object): value is CloudFoundryLoginRequest { + if (!('cfInstanceCert' in value) || value['cfInstanceCert'] === undefined) return false; + if (!('role' in value) || value['role'] === undefined) return false; + if (!('signature' in value) || value['signature'] === undefined) return false; + if (!('signingTime' in value) || value['signingTime'] === undefined) return false; + return true; +} + +export function CloudFoundryLoginRequestFromJSON(json: any): CloudFoundryLoginRequest { + return CloudFoundryLoginRequestFromJSONTyped(json, false); +} + +export function CloudFoundryLoginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CloudFoundryLoginRequest { + if (json == null) { + return json; + } + return { + cfInstanceCert: json['cf_instance_cert'], + role: json['role'], + signature: json['signature'], + signingTime: json['signing_time'], + }; +} + +export function CloudFoundryLoginRequestToJSON(json: any): CloudFoundryLoginRequest { + return CloudFoundryLoginRequestToJSONTyped(json, false); +} + +export function CloudFoundryLoginRequestToJSONTyped( + value?: CloudFoundryLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cf_instance_cert: value['cfInstanceCert'], + role: value['role'], + signature: value['signature'], + signing_time: value['signingTime'], + }; +} diff --git a/ui/api-client/src/models/CloudFoundryWriteRoleRequest.ts b/ui/api-client/src/models/CloudFoundryWriteRoleRequest.ts new file mode 100644 index 0000000000..db16693440 --- /dev/null +++ b/ui/api-client/src/models/CloudFoundryWriteRoleRequest.ts @@ -0,0 +1,218 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CloudFoundryWriteRoleRequest + */ +export interface CloudFoundryWriteRoleRequest { + /** + * Require that the client certificate presented has at least one of these app IDs. + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + */ + boundApplicationIds?: Array; + /** + * Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + * @deprecated + */ + boundCidrs?: Array; + /** + * Require that the client certificate presented has at least one of these instance IDs. + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + */ + boundInstanceIds?: Array; + /** + * Require that the client certificate presented has at least one of these org IDs. + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + */ + boundOrganizationIds?: Array; + /** + * Require that the client certificate presented has at least one of these space IDs. + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + */ + boundSpaceIds?: Array; + /** + * If set to true, disables the default behavior that logging in must be performed from an acceptable IP address described by the certificate presented. + * @type {boolean} + * @memberof CloudFoundryWriteRoleRequest + */ + disableIpMatching?: boolean; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + * @deprecated + */ + maxTtl?: string; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof CloudFoundryWriteRoleRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the CloudFoundryWriteRoleRequest interface. + */ +export function instanceOfCloudFoundryWriteRoleRequest(value: object): value is CloudFoundryWriteRoleRequest { + return true; +} + +export function CloudFoundryWriteRoleRequestFromJSON(json: any): CloudFoundryWriteRoleRequest { + return CloudFoundryWriteRoleRequestFromJSONTyped(json, false); +} + +export function CloudFoundryWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CloudFoundryWriteRoleRequest { + if (json == null) { + return json; + } + return { + boundApplicationIds: json['bound_application_ids'] == null ? undefined : json['bound_application_ids'], + boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'], + boundInstanceIds: json['bound_instance_ids'] == null ? undefined : json['bound_instance_ids'], + boundOrganizationIds: json['bound_organization_ids'] == null ? undefined : json['bound_organization_ids'], + boundSpaceIds: json['bound_space_ids'] == null ? undefined : json['bound_space_ids'], + disableIpMatching: json['disable_ip_matching'] == null ? undefined : json['disable_ip_matching'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function CloudFoundryWriteRoleRequestToJSON(json: any): CloudFoundryWriteRoleRequest { + return CloudFoundryWriteRoleRequestToJSONTyped(json, false); +} + +export function CloudFoundryWriteRoleRequestToJSONTyped( + value?: CloudFoundryWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bound_application_ids: value['boundApplicationIds'], + bound_cidrs: value['boundCidrs'], + bound_instance_ids: value['boundInstanceIds'], + bound_organization_ids: value['boundOrganizationIds'], + bound_space_ids: value['boundSpaceIds'], + disable_ip_matching: value['disableIpMatching'], + max_ttl: value['maxTtl'], + period: value['period'], + policies: value['policies'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/CollectHostInformationResponse.ts b/ui/api-client/src/models/CollectHostInformationResponse.ts new file mode 100644 index 0000000000..879de2f3df --- /dev/null +++ b/ui/api-client/src/models/CollectHostInformationResponse.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CollectHostInformationResponse + */ +export interface CollectHostInformationResponse { + /** + * + * @type {Array} + * @memberof CollectHostInformationResponse + */ + cpu?: Array; + /** + * + * @type {Array} + * @memberof CollectHostInformationResponse + */ + cpuTimes?: Array; + /** + * + * @type {Array} + * @memberof CollectHostInformationResponse + */ + disk?: Array; + /** + * + * @type {object} + * @memberof CollectHostInformationResponse + */ + host?: object; + /** + * + * @type {object} + * @memberof CollectHostInformationResponse + */ + memory?: object; + /** + * + * @type {Date} + * @memberof CollectHostInformationResponse + */ + timestamp?: Date; +} + +/** + * Check if a given object implements the CollectHostInformationResponse interface. + */ +export function instanceOfCollectHostInformationResponse( + value: object +): value is CollectHostInformationResponse { + return true; +} + +export function CollectHostInformationResponseFromJSON(json: any): CollectHostInformationResponse { + return CollectHostInformationResponseFromJSONTyped(json, false); +} + +export function CollectHostInformationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CollectHostInformationResponse { + if (json == null) { + return json; + } + return { + cpu: json['cpu'] == null ? undefined : json['cpu'], + cpuTimes: json['cpu_times'] == null ? undefined : json['cpu_times'], + disk: json['disk'] == null ? undefined : json['disk'], + host: json['host'] == null ? undefined : json['host'], + memory: json['memory'] == null ? undefined : json['memory'], + timestamp: json['timestamp'] == null ? undefined : new Date(json['timestamp']), + }; +} + +export function CollectHostInformationResponseToJSON(json: any): CollectHostInformationResponse { + return CollectHostInformationResponseToJSONTyped(json, false); +} + +export function CollectHostInformationResponseToJSONTyped( + value?: CollectHostInformationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cpu: value['cpu'], + cpu_times: value['cpuTimes'], + disk: value['disk'], + host: value['host'], + memory: value['memory'], + timestamp: value['timestamp'] == null ? undefined : value['timestamp'].toISOString(), + }; +} diff --git a/ui/api-client/src/models/ConsulConfigureAccessRequest.ts b/ui/api-client/src/models/ConsulConfigureAccessRequest.ts new file mode 100644 index 0000000000..a3bf5ae049 --- /dev/null +++ b/ui/api-client/src/models/ConsulConfigureAccessRequest.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ConsulConfigureAccessRequest + */ +export interface ConsulConfigureAccessRequest { + /** + * Consul server address + * @type {string} + * @memberof ConsulConfigureAccessRequest + */ + address?: string; + /** + * CA certificate to use when verifying Consul server certificate, must be x509 PEM encoded. + * @type {string} + * @memberof ConsulConfigureAccessRequest + */ + caCert?: string; + /** + * Client certificate used for Consul's TLS communication, must be x509 PEM encoded and if this is set you need to also set client_key. + * @type {string} + * @memberof ConsulConfigureAccessRequest + */ + clientCert?: string; + /** + * Client key used for Consul's TLS communication, must be x509 PEM encoded and if this is set you need to also set client_cert. + * @type {string} + * @memberof ConsulConfigureAccessRequest + */ + clientKey?: string; + /** + * URI scheme for the Consul address + * @type {string} + * @memberof ConsulConfigureAccessRequest + */ + scheme?: string; + /** + * Token for API calls + * @type {string} + * @memberof ConsulConfigureAccessRequest + */ + token?: string; +} + +/** + * Check if a given object implements the ConsulConfigureAccessRequest interface. + */ +export function instanceOfConsulConfigureAccessRequest(value: object): value is ConsulConfigureAccessRequest { + return true; +} + +export function ConsulConfigureAccessRequestFromJSON(json: any): ConsulConfigureAccessRequest { + return ConsulConfigureAccessRequestFromJSONTyped(json, false); +} + +export function ConsulConfigureAccessRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ConsulConfigureAccessRequest { + if (json == null) { + return json; + } + return { + address: json['address'] == null ? undefined : json['address'], + caCert: json['ca_cert'] == null ? undefined : json['ca_cert'], + clientCert: json['client_cert'] == null ? undefined : json['client_cert'], + clientKey: json['client_key'] == null ? undefined : json['client_key'], + scheme: json['scheme'] == null ? undefined : json['scheme'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function ConsulConfigureAccessRequestToJSON(json: any): ConsulConfigureAccessRequest { + return ConsulConfigureAccessRequestToJSONTyped(json, false); +} + +export function ConsulConfigureAccessRequestToJSONTyped( + value?: ConsulConfigureAccessRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + address: value['address'], + ca_cert: value['caCert'], + client_cert: value['clientCert'], + client_key: value['clientKey'], + scheme: value['scheme'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/ConsulWriteRoleRequest.ts b/ui/api-client/src/models/ConsulWriteRoleRequest.ts new file mode 100644 index 0000000000..f13e79b170 --- /dev/null +++ b/ui/api-client/src/models/ConsulWriteRoleRequest.ts @@ -0,0 +1,168 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ConsulWriteRoleRequest + */ +export interface ConsulWriteRoleRequest { + /** + * Indicates which namespace that the token will be created within. Defaults to 'default'. Available in Consul 1.7 and above. + * @type {string} + * @memberof ConsulWriteRoleRequest + */ + consulNamespace?: string; + /** + * List of policies to attach to the token. Either "consul_policies" or "consul_roles" are required for Consul 1.5 and above, or just "consul_policies" if using Consul 1.4. + * @type {Array} + * @memberof ConsulWriteRoleRequest + */ + consulPolicies?: Array; + /** + * List of Consul roles to attach to the token. Either "policies" or "consul_roles" are required for Consul 1.5 and above. + * @type {Array} + * @memberof ConsulWriteRoleRequest + */ + consulRoles?: Array; + /** + * Use "ttl" instead. + * @type {string} + * @memberof ConsulWriteRoleRequest + * @deprecated + */ + lease?: string; + /** + * Indicates that the token should not be replicated globally and instead be local to the current datacenter. Available in Consul 1.4 and above. + * @type {boolean} + * @memberof ConsulWriteRoleRequest + */ + local?: boolean; + /** + * Max TTL for the Consul token created from the role. + * @type {string} + * @memberof ConsulWriteRoleRequest + */ + maxTtl?: string; + /** + * List of Node Identities to attach to the token. Available in Consul 1.8.1 or above. + * @type {Array} + * @memberof ConsulWriteRoleRequest + */ + nodeIdentities?: Array; + /** + * Indicates which admin partition that the token will be created within. Defaults to 'default'. Available in Consul 1.11 and above. + * @type {string} + * @memberof ConsulWriteRoleRequest + */ + partition?: string; + /** + * Use "consul_policies" instead. + * @type {Array} + * @memberof ConsulWriteRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Policy document, base64 encoded. Required for 'client' tokens. Required for Consul pre-1.4. + * @type {string} + * @memberof ConsulWriteRoleRequest + * @deprecated + */ + policy?: string; + /** + * List of Service Identities to attach to the token, separated by semicolons. Available in Consul 1.5 or above. + * @type {Array} + * @memberof ConsulWriteRoleRequest + */ + serviceIdentities?: Array; + /** + * Which type of token to create: 'client' or 'management'. If a 'management' token, the "policy", "policies", and "consul_roles" parameters are not required. Defaults to 'client'. + * @type {string} + * @memberof ConsulWriteRoleRequest + * @deprecated + */ + tokenType?: string; + /** + * TTL for the Consul token created from the role. + * @type {string} + * @memberof ConsulWriteRoleRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the ConsulWriteRoleRequest interface. + */ +export function instanceOfConsulWriteRoleRequest(value: object): value is ConsulWriteRoleRequest { + return true; +} + +export function ConsulWriteRoleRequestFromJSON(json: any): ConsulWriteRoleRequest { + return ConsulWriteRoleRequestFromJSONTyped(json, false); +} + +export function ConsulWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ConsulWriteRoleRequest { + if (json == null) { + return json; + } + return { + consulNamespace: json['consul_namespace'] == null ? undefined : json['consul_namespace'], + consulPolicies: json['consul_policies'] == null ? undefined : json['consul_policies'], + consulRoles: json['consul_roles'] == null ? undefined : json['consul_roles'], + lease: json['lease'] == null ? undefined : json['lease'], + local: json['local'] == null ? undefined : json['local'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + nodeIdentities: json['node_identities'] == null ? undefined : json['node_identities'], + partition: json['partition'] == null ? undefined : json['partition'], + policies: json['policies'] == null ? undefined : json['policies'], + policy: json['policy'] == null ? undefined : json['policy'], + serviceIdentities: json['service_identities'] == null ? undefined : json['service_identities'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function ConsulWriteRoleRequestToJSON(json: any): ConsulWriteRoleRequest { + return ConsulWriteRoleRequestToJSONTyped(json, false); +} + +export function ConsulWriteRoleRequestToJSONTyped( + value?: ConsulWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + consul_namespace: value['consulNamespace'], + consul_policies: value['consulPolicies'], + consul_roles: value['consulRoles'], + lease: value['lease'], + local: value['local'], + max_ttl: value['maxTtl'], + node_identities: value['nodeIdentities'], + partition: value['partition'], + policies: value['policies'], + policy: value['policy'], + service_identities: value['serviceIdentities'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/CorsConfigureRequest.ts b/ui/api-client/src/models/CorsConfigureRequest.ts new file mode 100644 index 0000000000..2e22b7b6a8 --- /dev/null +++ b/ui/api-client/src/models/CorsConfigureRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CorsConfigureRequest + */ +export interface CorsConfigureRequest { + /** + * A comma-separated string or array of strings indicating headers that are allowed on cross-origin requests. + * @type {Array} + * @memberof CorsConfigureRequest + */ + allowedHeaders?: Array; + /** + * A comma-separated string or array of strings indicating origins that may make cross-origin requests. + * @type {Array} + * @memberof CorsConfigureRequest + */ + allowedOrigins?: Array; + /** + * Enables or disables CORS headers on requests. + * @type {boolean} + * @memberof CorsConfigureRequest + */ + enable?: boolean; +} + +/** + * Check if a given object implements the CorsConfigureRequest interface. + */ +export function instanceOfCorsConfigureRequest(value: object): value is CorsConfigureRequest { + return true; +} + +export function CorsConfigureRequestFromJSON(json: any): CorsConfigureRequest { + return CorsConfigureRequestFromJSONTyped(json, false); +} + +export function CorsConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CorsConfigureRequest { + if (json == null) { + return json; + } + return { + allowedHeaders: json['allowed_headers'] == null ? undefined : json['allowed_headers'], + allowedOrigins: json['allowed_origins'] == null ? undefined : json['allowed_origins'], + enable: json['enable'] == null ? undefined : json['enable'], + }; +} + +export function CorsConfigureRequestToJSON(json: any): CorsConfigureRequest { + return CorsConfigureRequestToJSONTyped(json, false); +} + +export function CorsConfigureRequestToJSONTyped( + value?: CorsConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_headers: value['allowedHeaders'], + allowed_origins: value['allowedOrigins'], + enable: value['enable'], + }; +} diff --git a/ui/api-client/src/models/CorsReadConfigurationResponse.ts b/ui/api-client/src/models/CorsReadConfigurationResponse.ts new file mode 100644 index 0000000000..b5960f7bad --- /dev/null +++ b/ui/api-client/src/models/CorsReadConfigurationResponse.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CorsReadConfigurationResponse + */ +export interface CorsReadConfigurationResponse { + /** + * + * @type {Array} + * @memberof CorsReadConfigurationResponse + */ + allowedHeaders?: Array; + /** + * + * @type {Array} + * @memberof CorsReadConfigurationResponse + */ + allowedOrigins?: Array; + /** + * + * @type {boolean} + * @memberof CorsReadConfigurationResponse + */ + enabled?: boolean; +} + +/** + * Check if a given object implements the CorsReadConfigurationResponse interface. + */ +export function instanceOfCorsReadConfigurationResponse( + value: object +): value is CorsReadConfigurationResponse { + return true; +} + +export function CorsReadConfigurationResponseFromJSON(json: any): CorsReadConfigurationResponse { + return CorsReadConfigurationResponseFromJSONTyped(json, false); +} + +export function CorsReadConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CorsReadConfigurationResponse { + if (json == null) { + return json; + } + return { + allowedHeaders: json['allowed_headers'] == null ? undefined : json['allowed_headers'], + allowedOrigins: json['allowed_origins'] == null ? undefined : json['allowed_origins'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + }; +} + +export function CorsReadConfigurationResponseToJSON(json: any): CorsReadConfigurationResponse { + return CorsReadConfigurationResponseToJSONTyped(json, false); +} + +export function CorsReadConfigurationResponseToJSONTyped( + value?: CorsReadConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_headers: value['allowedHeaders'], + allowed_origins: value['allowedOrigins'], + enabled: value['enabled'], + }; +} diff --git a/ui/api-client/src/models/CreateCustomMessageRequest.ts b/ui/api-client/src/models/CreateCustomMessageRequest.ts new file mode 100644 index 0000000000..4e29f6d2d4 --- /dev/null +++ b/ui/api-client/src/models/CreateCustomMessageRequest.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreateCustomMessageRequest + */ +export interface CreateCustomMessageRequest { + /** + * + * @type {boolean} + * @memberof CreateCustomMessageRequest + */ + authenticated?: boolean; + /** + * + * @type {Date} + * @memberof CreateCustomMessageRequest + */ + endTime?: Date; + /** + * + * @type {object} + * @memberof CreateCustomMessageRequest + */ + link?: object; + /** + * + * @type {string} + * @memberof CreateCustomMessageRequest + */ + message: string; + /** + * + * @type {object} + * @memberof CreateCustomMessageRequest + */ + options?: object; + /** + * + * @type {Date} + * @memberof CreateCustomMessageRequest + */ + startTime: Date; + /** + * + * @type {string} + * @memberof CreateCustomMessageRequest + */ + title: string; + /** + * + * @type {string} + * @memberof CreateCustomMessageRequest + */ + type?: string; +} + +/** + * Check if a given object implements the CreateCustomMessageRequest interface. + */ +export function instanceOfCreateCustomMessageRequest(value: object): value is CreateCustomMessageRequest { + if (!('message' in value) || value['message'] === undefined) return false; + if (!('startTime' in value) || value['startTime'] === undefined) return false; + if (!('title' in value) || value['title'] === undefined) return false; + return true; +} + +export function CreateCustomMessageRequestFromJSON(json: any): CreateCustomMessageRequest { + return CreateCustomMessageRequestFromJSONTyped(json, false); +} + +export function CreateCustomMessageRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): CreateCustomMessageRequest { + if (json == null) { + return json; + } + return { + authenticated: json['authenticated'] == null ? undefined : json['authenticated'], + endTime: json['end_time'] == null ? undefined : new Date(json['end_time']), + link: json['link'] == null ? undefined : json['link'], + message: json['message'], + options: json['options'] == null ? undefined : json['options'], + startTime: new Date(json['start_time']), + title: json['title'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function CreateCustomMessageRequestToJSON(json: any): CreateCustomMessageRequest { + return CreateCustomMessageRequestToJSONTyped(json, false); +} + +export function CreateCustomMessageRequestToJSONTyped( + value?: CreateCustomMessageRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + authenticated: value['authenticated'], + end_time: value['endTime'] == null ? undefined : value['endTime'].toISOString(), + link: value['link'], + message: value['message'], + options: value['options'], + start_time: value['startTime'].toISOString(), + title: value['title'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/DatabaseConfigureConnectionRequest.ts b/ui/api-client/src/models/DatabaseConfigureConnectionRequest.ts new file mode 100644 index 0000000000..268a0634e1 --- /dev/null +++ b/ui/api-client/src/models/DatabaseConfigureConnectionRequest.ts @@ -0,0 +1,153 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface DatabaseConfigureConnectionRequest + */ +export interface DatabaseConfigureConnectionRequest { + /** + * Comma separated string or array of the role names allowed to get creds from this database connection. If empty no roles are allowed. If "*" all roles are allowed. + * @type {Array} + * @memberof DatabaseConfigureConnectionRequest + */ + allowedRoles?: Array; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof DatabaseConfigureConnectionRequest + */ + disableAutomatedRotation?: boolean; + /** + * Password policy to use when generating passwords. + * @type {string} + * @memberof DatabaseConfigureConnectionRequest + */ + passwordPolicy?: string; + /** + * The name of a builtin or previously registered plugin known to vault. This endpoint will create an instance of that plugin type. + * @type {string} + * @memberof DatabaseConfigureConnectionRequest + */ + pluginName?: string; + /** + * The version of the plugin to use. + * @type {string} + * @memberof DatabaseConfigureConnectionRequest + */ + pluginVersion?: string; + /** + * Specifies the database statements to be executed to rotate the root user's credentials. See the plugin's API page for more information on support and formatting for this parameter. + * @type {Array} + * @memberof DatabaseConfigureConnectionRequest + */ + rootRotationStatements?: Array; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof DatabaseConfigureConnectionRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof DatabaseConfigureConnectionRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof DatabaseConfigureConnectionRequest + */ + rotationWindow?: string; + /** + * Enterprise only. If true, the static roles associated with this connection will not have their passwords rotated on creation of the role. Defaults to false. + * @type {boolean} + * @memberof DatabaseConfigureConnectionRequest + */ + skipStaticRoleImportRotation?: boolean; + /** + * If true, the connection details are verified by actually connecting to the database. Defaults to true. + * @type {boolean} + * @memberof DatabaseConfigureConnectionRequest + */ + verifyConnection?: boolean; +} + +/** + * Check if a given object implements the DatabaseConfigureConnectionRequest interface. + */ +export function instanceOfDatabaseConfigureConnectionRequest( + value: object +): value is DatabaseConfigureConnectionRequest { + return true; +} + +export function DatabaseConfigureConnectionRequestFromJSON(json: any): DatabaseConfigureConnectionRequest { + return DatabaseConfigureConnectionRequestFromJSONTyped(json, false); +} + +export function DatabaseConfigureConnectionRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): DatabaseConfigureConnectionRequest { + if (json == null) { + return json; + } + return { + allowedRoles: json['allowed_roles'] == null ? undefined : json['allowed_roles'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + passwordPolicy: json['password_policy'] == null ? undefined : json['password_policy'], + pluginName: json['plugin_name'] == null ? undefined : json['plugin_name'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + rootRotationStatements: + json['root_rotation_statements'] == null ? undefined : json['root_rotation_statements'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + skipStaticRoleImportRotation: + json['skip_static_role_import_rotation'] == null ? undefined : json['skip_static_role_import_rotation'], + verifyConnection: json['verify_connection'] == null ? undefined : json['verify_connection'], + }; +} + +export function DatabaseConfigureConnectionRequestToJSON(json: any): DatabaseConfigureConnectionRequest { + return DatabaseConfigureConnectionRequestToJSONTyped(json, false); +} + +export function DatabaseConfigureConnectionRequestToJSONTyped( + value?: DatabaseConfigureConnectionRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_roles: value['allowedRoles'], + disable_automated_rotation: value['disableAutomatedRotation'], + password_policy: value['passwordPolicy'], + plugin_name: value['pluginName'], + plugin_version: value['pluginVersion'], + root_rotation_statements: value['rootRotationStatements'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + skip_static_role_import_rotation: value['skipStaticRoleImportRotation'], + verify_connection: value['verifyConnection'], + }; +} diff --git a/ui/api-client/src/models/DatabaseWriteRoleRequest.ts b/ui/api-client/src/models/DatabaseWriteRoleRequest.ts new file mode 100644 index 0000000000..9733d5c5eb --- /dev/null +++ b/ui/api-client/src/models/DatabaseWriteRoleRequest.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface DatabaseWriteRoleRequest + */ +export interface DatabaseWriteRoleRequest { + /** + * Specifies the database statements executed to create and configure a user. See the plugin's API page for more information on support and formatting for this parameter. + * @type {Array} + * @memberof DatabaseWriteRoleRequest + */ + creationStatements?: Array; + /** + * The configuration for the given credential_type. + * @type {object} + * @memberof DatabaseWriteRoleRequest + */ + credentialConfig?: object; + /** + * The type of credential to manage. Options include: 'password', 'rsa_private_key'. Defaults to 'password'. + * @type {string} + * @memberof DatabaseWriteRoleRequest + */ + credentialType?: string; + /** + * Name of the database this role acts on. + * @type {string} + * @memberof DatabaseWriteRoleRequest + */ + dbName?: string; + /** + * Default ttl for role. + * @type {string} + * @memberof DatabaseWriteRoleRequest + */ + defaultTtl?: string; + /** + * Maximum time a credential is valid for + * @type {string} + * @memberof DatabaseWriteRoleRequest + */ + maxTtl?: string; + /** + * Specifies the database statements to be executed to renew a user. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. + * @type {Array} + * @memberof DatabaseWriteRoleRequest + */ + renewStatements?: Array; + /** + * Specifies the database statements to be executed to revoke a user. See the plugin's API page for more information on support and formatting for this parameter. + * @type {Array} + * @memberof DatabaseWriteRoleRequest + */ + revocationStatements?: Array; + /** + * Specifies the database statements to be executed rollback a create operation in the event of an error. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. + * @type {Array} + * @memberof DatabaseWriteRoleRequest + */ + rollbackStatements?: Array; +} + +/** + * Check if a given object implements the DatabaseWriteRoleRequest interface. + */ +export function instanceOfDatabaseWriteRoleRequest(value: object): value is DatabaseWriteRoleRequest { + return true; +} + +export function DatabaseWriteRoleRequestFromJSON(json: any): DatabaseWriteRoleRequest { + return DatabaseWriteRoleRequestFromJSONTyped(json, false); +} + +export function DatabaseWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): DatabaseWriteRoleRequest { + if (json == null) { + return json; + } + return { + creationStatements: json['creation_statements'] == null ? undefined : json['creation_statements'], + credentialConfig: json['credential_config'] == null ? undefined : json['credential_config'], + credentialType: json['credential_type'] == null ? undefined : json['credential_type'], + dbName: json['db_name'] == null ? undefined : json['db_name'], + defaultTtl: json['default_ttl'] == null ? undefined : json['default_ttl'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + renewStatements: json['renew_statements'] == null ? undefined : json['renew_statements'], + revocationStatements: json['revocation_statements'] == null ? undefined : json['revocation_statements'], + rollbackStatements: json['rollback_statements'] == null ? undefined : json['rollback_statements'], + }; +} + +export function DatabaseWriteRoleRequestToJSON(json: any): DatabaseWriteRoleRequest { + return DatabaseWriteRoleRequestToJSONTyped(json, false); +} + +export function DatabaseWriteRoleRequestToJSONTyped( + value?: DatabaseWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + creation_statements: value['creationStatements'], + credential_config: value['credentialConfig'], + credential_type: value['credentialType'], + db_name: value['dbName'], + default_ttl: value['defaultTtl'], + max_ttl: value['maxTtl'], + renew_statements: value['renewStatements'], + revocation_statements: value['revocationStatements'], + rollback_statements: value['rollbackStatements'], + }; +} diff --git a/ui/api-client/src/models/DatabaseWriteStaticRoleRequest.ts b/ui/api-client/src/models/DatabaseWriteStaticRoleRequest.ts new file mode 100644 index 0000000000..1e31537b49 --- /dev/null +++ b/ui/api-client/src/models/DatabaseWriteStaticRoleRequest.ts @@ -0,0 +1,151 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface DatabaseWriteStaticRoleRequest + */ +export interface DatabaseWriteStaticRoleRequest { + /** + * The configuration for the given credential_type. + * @type {object} + * @memberof DatabaseWriteStaticRoleRequest + */ + credentialConfig?: object; + /** + * The type of credential to manage. Options include: 'password', 'rsa_private_key'. Defaults to 'password'. + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + */ + credentialType?: string; + /** + * Name of the database this role acts on. + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + */ + dbName?: string; + /** + * Enterprise only. If set, the initial static account password of the external db user before the first Vault rotatation. + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + */ + password?: string; + /** + * Period for automatic credential rotation of the given username. Not valid unless used with "username". Mutually exclusive with "rotation_schedule." + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + */ + rotationPeriod?: string; + /** + * Schedule for automatic credential rotation of the given username. Mutually exclusive with "rotation_period." + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + */ + rotationSchedule?: string; + /** + * Specifies the database statements to be executed to rotate the accounts credentials. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter. + * @type {Array} + * @memberof DatabaseWriteStaticRoleRequest + */ + rotationStatements?: Array; + /** + * The window of time in which rotations are allowed to occur starting from a given "rotation_schedule". Requires "rotation_schedule" to be specified + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + */ + rotationWindow?: string; + /** + * Used to connect to a self-managed static account. Must be provided by the user when root credentials are not provided. + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + * @deprecated + */ + selfManagedPassword?: string; + /** + * Enterprise only. If true, the static account password will not be rotated on creation of the role. Defaults to false. + * @type {boolean} + * @memberof DatabaseWriteStaticRoleRequest + */ + skipImportRotation?: boolean; + /** + * Name of the static user account for Vault to manage. Requires "rotation_period" to be specified + * @type {string} + * @memberof DatabaseWriteStaticRoleRequest + */ + username?: string; +} + +/** + * Check if a given object implements the DatabaseWriteStaticRoleRequest interface. + */ +export function instanceOfDatabaseWriteStaticRoleRequest( + value: object +): value is DatabaseWriteStaticRoleRequest { + return true; +} + +export function DatabaseWriteStaticRoleRequestFromJSON(json: any): DatabaseWriteStaticRoleRequest { + return DatabaseWriteStaticRoleRequestFromJSONTyped(json, false); +} + +export function DatabaseWriteStaticRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): DatabaseWriteStaticRoleRequest { + if (json == null) { + return json; + } + return { + credentialConfig: json['credential_config'] == null ? undefined : json['credential_config'], + credentialType: json['credential_type'] == null ? undefined : json['credential_type'], + dbName: json['db_name'] == null ? undefined : json['db_name'], + password: json['password'] == null ? undefined : json['password'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationStatements: json['rotation_statements'] == null ? undefined : json['rotation_statements'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + selfManagedPassword: json['self_managed_password'] == null ? undefined : json['self_managed_password'], + skipImportRotation: json['skip_import_rotation'] == null ? undefined : json['skip_import_rotation'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function DatabaseWriteStaticRoleRequestToJSON(json: any): DatabaseWriteStaticRoleRequest { + return DatabaseWriteStaticRoleRequestToJSONTyped(json, false); +} + +export function DatabaseWriteStaticRoleRequestToJSONTyped( + value?: DatabaseWriteStaticRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + credential_config: value['credentialConfig'], + credential_type: value['credentialType'], + db_name: value['dbName'], + password: value['password'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_statements: value['rotationStatements'], + rotation_window: value['rotationWindow'], + self_managed_password: value['selfManagedPassword'], + skip_import_rotation: value['skipImportRotation'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/DecodeTokenRequest.ts b/ui/api-client/src/models/DecodeTokenRequest.ts new file mode 100644 index 0000000000..704c21a951 --- /dev/null +++ b/ui/api-client/src/models/DecodeTokenRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface DecodeTokenRequest + */ +export interface DecodeTokenRequest { + /** + * Specifies the encoded token (result from generate-root). + * @type {string} + * @memberof DecodeTokenRequest + */ + encodedToken?: string; + /** + * Specifies the otp code for decode. + * @type {string} + * @memberof DecodeTokenRequest + */ + otp?: string; +} + +/** + * Check if a given object implements the DecodeTokenRequest interface. + */ +export function instanceOfDecodeTokenRequest(value: object): value is DecodeTokenRequest { + return true; +} + +export function DecodeTokenRequestFromJSON(json: any): DecodeTokenRequest { + return DecodeTokenRequestFromJSONTyped(json, false); +} + +export function DecodeTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecodeTokenRequest { + if (json == null) { + return json; + } + return { + encodedToken: json['encoded_token'] == null ? undefined : json['encoded_token'], + otp: json['otp'] == null ? undefined : json['otp'], + }; +} + +export function DecodeTokenRequestToJSON(json: any): DecodeTokenRequest { + return DecodeTokenRequestToJSONTyped(json, false); +} + +export function DecodeTokenRequestToJSONTyped( + value?: DecodeTokenRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + encoded_token: value['encodedToken'], + otp: value['otp'], + }; +} diff --git a/ui/api-client/src/models/EncryptionKeyConfigureRotationRequest.ts b/ui/api-client/src/models/EncryptionKeyConfigureRotationRequest.ts new file mode 100644 index 0000000000..f3e1ba9ea3 --- /dev/null +++ b/ui/api-client/src/models/EncryptionKeyConfigureRotationRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EncryptionKeyConfigureRotationRequest + */ +export interface EncryptionKeyConfigureRotationRequest { + /** + * Whether automatic rotation is enabled. + * @type {boolean} + * @memberof EncryptionKeyConfigureRotationRequest + */ + enabled?: boolean; + /** + * How long after installation of an active key term that the key will be automatically rotated. + * @type {string} + * @memberof EncryptionKeyConfigureRotationRequest + */ + interval?: string; + /** + * The number of encryption operations performed before the barrier key is automatically rotated. + * @type {number} + * @memberof EncryptionKeyConfigureRotationRequest + */ + maxOperations?: number; +} + +/** + * Check if a given object implements the EncryptionKeyConfigureRotationRequest interface. + */ +export function instanceOfEncryptionKeyConfigureRotationRequest( + value: object +): value is EncryptionKeyConfigureRotationRequest { + return true; +} + +export function EncryptionKeyConfigureRotationRequestFromJSON( + json: any +): EncryptionKeyConfigureRotationRequest { + return EncryptionKeyConfigureRotationRequestFromJSONTyped(json, false); +} + +export function EncryptionKeyConfigureRotationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EncryptionKeyConfigureRotationRequest { + if (json == null) { + return json; + } + return { + enabled: json['enabled'] == null ? undefined : json['enabled'], + interval: json['interval'] == null ? undefined : json['interval'], + maxOperations: json['max_operations'] == null ? undefined : json['max_operations'], + }; +} + +export function EncryptionKeyConfigureRotationRequestToJSON( + json: any +): EncryptionKeyConfigureRotationRequest { + return EncryptionKeyConfigureRotationRequestToJSONTyped(json, false); +} + +export function EncryptionKeyConfigureRotationRequestToJSONTyped( + value?: EncryptionKeyConfigureRotationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + enabled: value['enabled'], + interval: value['interval'], + max_operations: value['maxOperations'], + }; +} diff --git a/ui/api-client/src/models/EncryptionKeyReadRotationConfigurationResponse.ts b/ui/api-client/src/models/EncryptionKeyReadRotationConfigurationResponse.ts new file mode 100644 index 0000000000..e5d2d6f8d0 --- /dev/null +++ b/ui/api-client/src/models/EncryptionKeyReadRotationConfigurationResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EncryptionKeyReadRotationConfigurationResponse + */ +export interface EncryptionKeyReadRotationConfigurationResponse { + /** + * + * @type {boolean} + * @memberof EncryptionKeyReadRotationConfigurationResponse + */ + enabled?: boolean; + /** + * + * @type {string} + * @memberof EncryptionKeyReadRotationConfigurationResponse + */ + interval?: string; + /** + * + * @type {number} + * @memberof EncryptionKeyReadRotationConfigurationResponse + */ + maxOperations?: number; +} + +/** + * Check if a given object implements the EncryptionKeyReadRotationConfigurationResponse interface. + */ +export function instanceOfEncryptionKeyReadRotationConfigurationResponse( + value: object +): value is EncryptionKeyReadRotationConfigurationResponse { + return true; +} + +export function EncryptionKeyReadRotationConfigurationResponseFromJSON( + json: any +): EncryptionKeyReadRotationConfigurationResponse { + return EncryptionKeyReadRotationConfigurationResponseFromJSONTyped(json, false); +} + +export function EncryptionKeyReadRotationConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EncryptionKeyReadRotationConfigurationResponse { + if (json == null) { + return json; + } + return { + enabled: json['enabled'] == null ? undefined : json['enabled'], + interval: json['interval'] == null ? undefined : json['interval'], + maxOperations: json['max_operations'] == null ? undefined : json['max_operations'], + }; +} + +export function EncryptionKeyReadRotationConfigurationResponseToJSON( + json: any +): EncryptionKeyReadRotationConfigurationResponse { + return EncryptionKeyReadRotationConfigurationResponseToJSONTyped(json, false); +} + +export function EncryptionKeyReadRotationConfigurationResponseToJSONTyped( + value?: EncryptionKeyReadRotationConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + enabled: value['enabled'], + interval: value['interval'], + max_operations: value['maxOperations'], + }; +} diff --git a/ui/api-client/src/models/EntitiesCreateDuplicatesRequest.ts b/ui/api-client/src/models/EntitiesCreateDuplicatesRequest.ts new file mode 100644 index 0000000000..8ea8ed51fd --- /dev/null +++ b/ui/api-client/src/models/EntitiesCreateDuplicatesRequest.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntitiesCreateDuplicatesRequest + */ +export interface EntitiesCreateDuplicatesRequest { + /** + * Number of entities to create + * @type {number} + * @memberof EntitiesCreateDuplicatesRequest + */ + count?: number; + /** + * Create entities with different case variations + * @type {boolean} + * @memberof EntitiesCreateDuplicatesRequest + */ + differentCase?: boolean; + /** + * Metadata to be associated with the entity. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof EntitiesCreateDuplicatesRequest + */ + metadata?: object; + /** + * Name of the entities to create + * @type {string} + * @memberof EntitiesCreateDuplicatesRequest + */ + name?: string; + /** + * NamespaceID of the entities to create + * @type {string} + * @memberof EntitiesCreateDuplicatesRequest + */ + namespaceId?: string; + /** + * Policies to be tied to the entity. + * @type {Array} + * @memberof EntitiesCreateDuplicatesRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the EntitiesCreateDuplicatesRequest interface. + */ +export function instanceOfEntitiesCreateDuplicatesRequest( + value: object +): value is EntitiesCreateDuplicatesRequest { + return true; +} + +export function EntitiesCreateDuplicatesRequestFromJSON(json: any): EntitiesCreateDuplicatesRequest { + return EntitiesCreateDuplicatesRequestFromJSONTyped(json, false); +} + +export function EntitiesCreateDuplicatesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntitiesCreateDuplicatesRequest { + if (json == null) { + return json; + } + return { + count: json['count'] == null ? undefined : json['count'], + differentCase: json['different_case'] == null ? undefined : json['different_case'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + name: json['name'] == null ? undefined : json['name'], + namespaceId: json['namespace_id'] == null ? undefined : json['namespace_id'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function EntitiesCreateDuplicatesRequestToJSON(json: any): EntitiesCreateDuplicatesRequest { + return EntitiesCreateDuplicatesRequestToJSONTyped(json, false); +} + +export function EntitiesCreateDuplicatesRequestToJSONTyped( + value?: EntitiesCreateDuplicatesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + count: value['count'], + different_case: value['differentCase'], + metadata: value['metadata'], + name: value['name'], + namespace_id: value['namespaceId'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/EntityAliasCreateDuplicatesRequest.ts b/ui/api-client/src/models/EntityAliasCreateDuplicatesRequest.ts new file mode 100644 index 0000000000..2e04c4cf59 --- /dev/null +++ b/ui/api-client/src/models/EntityAliasCreateDuplicatesRequest.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityAliasCreateDuplicatesRequest + */ +export interface EntityAliasCreateDuplicatesRequest { + /** + * The canonical entity ID to attach the local alias to + * @type {string} + * @memberof EntityAliasCreateDuplicatesRequest + */ + canonicalId?: string; + /** + * Metadata + * @type {object} + * @memberof EntityAliasCreateDuplicatesRequest + */ + metadata?: object; + /** + * Mount accessor ID for the alias + * @type {string} + * @memberof EntityAliasCreateDuplicatesRequest + */ + mountAccessor?: string; + /** + * Name of the entities to create + * @type {string} + * @memberof EntityAliasCreateDuplicatesRequest + */ + name?: string; + /** + * NamespaceID of the entities to create + * @type {string} + * @memberof EntityAliasCreateDuplicatesRequest + */ + namespaceId?: string; +} + +/** + * Check if a given object implements the EntityAliasCreateDuplicatesRequest interface. + */ +export function instanceOfEntityAliasCreateDuplicatesRequest( + value: object +): value is EntityAliasCreateDuplicatesRequest { + return true; +} + +export function EntityAliasCreateDuplicatesRequestFromJSON(json: any): EntityAliasCreateDuplicatesRequest { + return EntityAliasCreateDuplicatesRequestFromJSONTyped(json, false); +} + +export function EntityAliasCreateDuplicatesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityAliasCreateDuplicatesRequest { + if (json == null) { + return json; + } + return { + canonicalId: json['canonical_id'] == null ? undefined : json['canonical_id'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + namespaceId: json['namespace_id'] == null ? undefined : json['namespace_id'], + }; +} + +export function EntityAliasCreateDuplicatesRequestToJSON(json: any): EntityAliasCreateDuplicatesRequest { + return EntityAliasCreateDuplicatesRequestToJSONTyped(json, false); +} + +export function EntityAliasCreateDuplicatesRequestToJSONTyped( + value?: EntityAliasCreateDuplicatesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + canonical_id: value['canonicalId'], + metadata: value['metadata'], + mount_accessor: value['mountAccessor'], + name: value['name'], + namespace_id: value['namespaceId'], + }; +} diff --git a/ui/api-client/src/models/EntityAliasesCreateDuplicatesRequest.ts b/ui/api-client/src/models/EntityAliasesCreateDuplicatesRequest.ts new file mode 100644 index 0000000000..79cbf8c30c --- /dev/null +++ b/ui/api-client/src/models/EntityAliasesCreateDuplicatesRequest.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityAliasesCreateDuplicatesRequest + */ +export interface EntityAliasesCreateDuplicatesRequest { + /** + * Number of entity aliases to create + * @type {number} + * @memberof EntityAliasesCreateDuplicatesRequest + */ + count?: number; + /** + * Create entities with different case variations + * @type {boolean} + * @memberof EntityAliasesCreateDuplicatesRequest + */ + differentCase?: boolean; + /** + * Metadata + * @type {object} + * @memberof EntityAliasesCreateDuplicatesRequest + */ + metadata?: object; + /** + * Mount accessor ID for the alias + * @type {string} + * @memberof EntityAliasesCreateDuplicatesRequest + */ + mountAccessor?: string; + /** + * Name of the entities to create + * @type {string} + * @memberof EntityAliasesCreateDuplicatesRequest + */ + name?: string; + /** + * NamespaceID of the entities to create + * @type {string} + * @memberof EntityAliasesCreateDuplicatesRequest + */ + namespaceId?: string; +} + +/** + * Check if a given object implements the EntityAliasesCreateDuplicatesRequest interface. + */ +export function instanceOfEntityAliasesCreateDuplicatesRequest( + value: object +): value is EntityAliasesCreateDuplicatesRequest { + return true; +} + +export function EntityAliasesCreateDuplicatesRequestFromJSON( + json: any +): EntityAliasesCreateDuplicatesRequest { + return EntityAliasesCreateDuplicatesRequestFromJSONTyped(json, false); +} + +export function EntityAliasesCreateDuplicatesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityAliasesCreateDuplicatesRequest { + if (json == null) { + return json; + } + return { + count: json['count'] == null ? undefined : json['count'], + differentCase: json['different_case'] == null ? undefined : json['different_case'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + namespaceId: json['namespace_id'] == null ? undefined : json['namespace_id'], + }; +} + +export function EntityAliasesCreateDuplicatesRequestToJSON(json: any): EntityAliasesCreateDuplicatesRequest { + return EntityAliasesCreateDuplicatesRequestToJSONTyped(json, false); +} + +export function EntityAliasesCreateDuplicatesRequestToJSONTyped( + value?: EntityAliasesCreateDuplicatesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + count: value['count'], + different_case: value['differentCase'], + metadata: value['metadata'], + mount_accessor: value['mountAccessor'], + name: value['name'], + namespace_id: value['namespaceId'], + }; +} diff --git a/ui/api-client/src/models/EntityBatchDeleteRequest.ts b/ui/api-client/src/models/EntityBatchDeleteRequest.ts new file mode 100644 index 0000000000..19046a279b --- /dev/null +++ b/ui/api-client/src/models/EntityBatchDeleteRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityBatchDeleteRequest + */ +export interface EntityBatchDeleteRequest { + /** + * Entity IDs to delete + * @type {Array} + * @memberof EntityBatchDeleteRequest + */ + entityIds?: Array; +} + +/** + * Check if a given object implements the EntityBatchDeleteRequest interface. + */ +export function instanceOfEntityBatchDeleteRequest(value: object): value is EntityBatchDeleteRequest { + return true; +} + +export function EntityBatchDeleteRequestFromJSON(json: any): EntityBatchDeleteRequest { + return EntityBatchDeleteRequestFromJSONTyped(json, false); +} + +export function EntityBatchDeleteRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityBatchDeleteRequest { + if (json == null) { + return json; + } + return { + entityIds: json['entity_ids'] == null ? undefined : json['entity_ids'], + }; +} + +export function EntityBatchDeleteRequestToJSON(json: any): EntityBatchDeleteRequest { + return EntityBatchDeleteRequestToJSONTyped(json, false); +} + +export function EntityBatchDeleteRequestToJSONTyped( + value?: EntityBatchDeleteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_ids: value['entityIds'], + }; +} diff --git a/ui/api-client/src/models/EntityCreateAliasRequest.ts b/ui/api-client/src/models/EntityCreateAliasRequest.ts new file mode 100644 index 0000000000..833144e05c --- /dev/null +++ b/ui/api-client/src/models/EntityCreateAliasRequest.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityCreateAliasRequest + */ +export interface EntityCreateAliasRequest { + /** + * Entity ID to which this alias belongs + * @type {string} + * @memberof EntityCreateAliasRequest + */ + canonicalId?: string; + /** + * User provided key-value pairs + * @type {object} + * @memberof EntityCreateAliasRequest + */ + customMetadata?: object; + /** + * Entity ID to which this alias belongs. This field is deprecated, use canonical_id. + * @type {string} + * @memberof EntityCreateAliasRequest + */ + entityId?: string; + /** + * ID of the entity alias. If set, updates the corresponding entity alias. + * @type {string} + * @memberof EntityCreateAliasRequest + */ + id?: string; + /** + * Mount accessor to which this alias belongs to; unused for a modify + * @type {string} + * @memberof EntityCreateAliasRequest + */ + mountAccessor?: string; + /** + * Name of the alias; unused for a modify + * @type {string} + * @memberof EntityCreateAliasRequest + */ + name?: string; +} + +/** + * Check if a given object implements the EntityCreateAliasRequest interface. + */ +export function instanceOfEntityCreateAliasRequest(value: object): value is EntityCreateAliasRequest { + return true; +} + +export function EntityCreateAliasRequestFromJSON(json: any): EntityCreateAliasRequest { + return EntityCreateAliasRequestFromJSONTyped(json, false); +} + +export function EntityCreateAliasRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityCreateAliasRequest { + if (json == null) { + return json; + } + return { + canonicalId: json['canonical_id'] == null ? undefined : json['canonical_id'], + customMetadata: json['custom_metadata'] == null ? undefined : json['custom_metadata'], + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + id: json['id'] == null ? undefined : json['id'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function EntityCreateAliasRequestToJSON(json: any): EntityCreateAliasRequest { + return EntityCreateAliasRequestToJSONTyped(json, false); +} + +export function EntityCreateAliasRequestToJSONTyped( + value?: EntityCreateAliasRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + canonical_id: value['canonicalId'], + custom_metadata: value['customMetadata'], + entity_id: value['entityId'], + id: value['id'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/EntityCreateRequest.ts b/ui/api-client/src/models/EntityCreateRequest.ts new file mode 100644 index 0000000000..c8a7c78710 --- /dev/null +++ b/ui/api-client/src/models/EntityCreateRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityCreateRequest + */ +export interface EntityCreateRequest { + /** + * If set true, tokens tied to this identity will not be able to be used (but will not be revoked). + * @type {boolean} + * @memberof EntityCreateRequest + */ + disabled?: boolean; + /** + * ID of the entity. If set, updates the corresponding existing entity. + * @type {string} + * @memberof EntityCreateRequest + */ + id?: string; + /** + * Metadata to be associated with the entity. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof EntityCreateRequest + */ + metadata?: object; + /** + * Name of the entity + * @type {string} + * @memberof EntityCreateRequest + */ + name?: string; + /** + * Policies to be tied to the entity. + * @type {Array} + * @memberof EntityCreateRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the EntityCreateRequest interface. + */ +export function instanceOfEntityCreateRequest(value: object): value is EntityCreateRequest { + return true; +} + +export function EntityCreateRequestFromJSON(json: any): EntityCreateRequest { + return EntityCreateRequestFromJSONTyped(json, false); +} + +export function EntityCreateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityCreateRequest { + if (json == null) { + return json; + } + return { + disabled: json['disabled'] == null ? undefined : json['disabled'], + id: json['id'] == null ? undefined : json['id'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + name: json['name'] == null ? undefined : json['name'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function EntityCreateRequestToJSON(json: any): EntityCreateRequest { + return EntityCreateRequestToJSONTyped(json, false); +} + +export function EntityCreateRequestToJSONTyped( + value?: EntityCreateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disabled: value['disabled'], + id: value['id'], + metadata: value['metadata'], + name: value['name'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/EntityLookUpRequest.ts b/ui/api-client/src/models/EntityLookUpRequest.ts new file mode 100644 index 0000000000..23eca19cf2 --- /dev/null +++ b/ui/api-client/src/models/EntityLookUpRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityLookUpRequest + */ +export interface EntityLookUpRequest { + /** + * ID of the alias. + * @type {string} + * @memberof EntityLookUpRequest + */ + aliasId?: string; + /** + * Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with 'alias_name'. + * @type {string} + * @memberof EntityLookUpRequest + */ + aliasMountAccessor?: string; + /** + * Name of the alias. This should be supplied in conjunction with 'alias_mount_accessor'. + * @type {string} + * @memberof EntityLookUpRequest + */ + aliasName?: string; + /** + * ID of the entity. + * @type {string} + * @memberof EntityLookUpRequest + */ + id?: string; + /** + * Name of the entity. + * @type {string} + * @memberof EntityLookUpRequest + */ + name?: string; +} + +/** + * Check if a given object implements the EntityLookUpRequest interface. + */ +export function instanceOfEntityLookUpRequest(value: object): value is EntityLookUpRequest { + return true; +} + +export function EntityLookUpRequestFromJSON(json: any): EntityLookUpRequest { + return EntityLookUpRequestFromJSONTyped(json, false); +} + +export function EntityLookUpRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityLookUpRequest { + if (json == null) { + return json; + } + return { + aliasId: json['alias_id'] == null ? undefined : json['alias_id'], + aliasMountAccessor: json['alias_mount_accessor'] == null ? undefined : json['alias_mount_accessor'], + aliasName: json['alias_name'] == null ? undefined : json['alias_name'], + id: json['id'] == null ? undefined : json['id'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function EntityLookUpRequestToJSON(json: any): EntityLookUpRequest { + return EntityLookUpRequestToJSONTyped(json, false); +} + +export function EntityLookUpRequestToJSONTyped( + value?: EntityLookUpRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alias_id: value['aliasId'], + alias_mount_accessor: value['aliasMountAccessor'], + alias_name: value['aliasName'], + id: value['id'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/EntityMergeRequest.ts b/ui/api-client/src/models/EntityMergeRequest.ts new file mode 100644 index 0000000000..2d835d6a36 --- /dev/null +++ b/ui/api-client/src/models/EntityMergeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityMergeRequest + */ +export interface EntityMergeRequest { + /** + * Alias IDs to keep in case of conflicting aliases. Ignored if no conflicting aliases found + * @type {Array} + * @memberof EntityMergeRequest + */ + conflictingAliasIdsToKeep?: Array; + /** + * Setting this will follow the 'mine' strategy for merging MFA secrets. If there are secrets of the same type both in entities that are merged from and in entity into which all others are getting merged, secrets in the destination will be unaltered. If not set, this API will throw an error containing all the conflicts. + * @type {boolean} + * @memberof EntityMergeRequest + */ + force?: boolean; + /** + * Entity IDs which need to get merged + * @type {Array} + * @memberof EntityMergeRequest + */ + fromEntityIds?: Array; + /** + * Entity ID into which all the other entities need to get merged + * @type {string} + * @memberof EntityMergeRequest + */ + toEntityId?: string; +} + +/** + * Check if a given object implements the EntityMergeRequest interface. + */ +export function instanceOfEntityMergeRequest(value: object): value is EntityMergeRequest { + return true; +} + +export function EntityMergeRequestFromJSON(json: any): EntityMergeRequest { + return EntityMergeRequestFromJSONTyped(json, false); +} + +export function EntityMergeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityMergeRequest { + if (json == null) { + return json; + } + return { + conflictingAliasIdsToKeep: + json['conflicting_alias_ids_to_keep'] == null ? undefined : json['conflicting_alias_ids_to_keep'], + force: json['force'] == null ? undefined : json['force'], + fromEntityIds: json['from_entity_ids'] == null ? undefined : json['from_entity_ids'], + toEntityId: json['to_entity_id'] == null ? undefined : json['to_entity_id'], + }; +} + +export function EntityMergeRequestToJSON(json: any): EntityMergeRequest { + return EntityMergeRequestToJSONTyped(json, false); +} + +export function EntityMergeRequestToJSONTyped( + value?: EntityMergeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + conflicting_alias_ids_to_keep: value['conflictingAliasIdsToKeep'], + force: value['force'], + from_entity_ids: value['fromEntityIds'], + to_entity_id: value['toEntityId'], + }; +} diff --git a/ui/api-client/src/models/EntityUpdateAliasByIdRequest.ts b/ui/api-client/src/models/EntityUpdateAliasByIdRequest.ts new file mode 100644 index 0000000000..61fb5e4bf6 --- /dev/null +++ b/ui/api-client/src/models/EntityUpdateAliasByIdRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityUpdateAliasByIdRequest + */ +export interface EntityUpdateAliasByIdRequest { + /** + * Entity ID to which this alias should be tied to + * @type {string} + * @memberof EntityUpdateAliasByIdRequest + */ + canonicalId?: string; + /** + * User provided key-value pairs + * @type {object} + * @memberof EntityUpdateAliasByIdRequest + */ + customMetadata?: object; + /** + * Entity ID to which this alias belongs to. This field is deprecated, use canonical_id. + * @type {string} + * @memberof EntityUpdateAliasByIdRequest + */ + entityId?: string; + /** + * (Unused) + * @type {string} + * @memberof EntityUpdateAliasByIdRequest + */ + mountAccessor?: string; + /** + * (Unused) + * @type {string} + * @memberof EntityUpdateAliasByIdRequest + */ + name?: string; +} + +/** + * Check if a given object implements the EntityUpdateAliasByIdRequest interface. + */ +export function instanceOfEntityUpdateAliasByIdRequest(value: object): value is EntityUpdateAliasByIdRequest { + return true; +} + +export function EntityUpdateAliasByIdRequestFromJSON(json: any): EntityUpdateAliasByIdRequest { + return EntityUpdateAliasByIdRequestFromJSONTyped(json, false); +} + +export function EntityUpdateAliasByIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityUpdateAliasByIdRequest { + if (json == null) { + return json; + } + return { + canonicalId: json['canonical_id'] == null ? undefined : json['canonical_id'], + customMetadata: json['custom_metadata'] == null ? undefined : json['custom_metadata'], + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function EntityUpdateAliasByIdRequestToJSON(json: any): EntityUpdateAliasByIdRequest { + return EntityUpdateAliasByIdRequestToJSONTyped(json, false); +} + +export function EntityUpdateAliasByIdRequestToJSONTyped( + value?: EntityUpdateAliasByIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + canonical_id: value['canonicalId'], + custom_metadata: value['customMetadata'], + entity_id: value['entityId'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/EntityUpdateByIdRequest.ts b/ui/api-client/src/models/EntityUpdateByIdRequest.ts new file mode 100644 index 0000000000..339603a448 --- /dev/null +++ b/ui/api-client/src/models/EntityUpdateByIdRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityUpdateByIdRequest + */ +export interface EntityUpdateByIdRequest { + /** + * If set true, tokens tied to this identity will not be able to be used (but will not be revoked). + * @type {boolean} + * @memberof EntityUpdateByIdRequest + */ + disabled?: boolean; + /** + * Metadata to be associated with the entity. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof EntityUpdateByIdRequest + */ + metadata?: object; + /** + * Name of the entity + * @type {string} + * @memberof EntityUpdateByIdRequest + */ + name?: string; + /** + * Policies to be tied to the entity. + * @type {Array} + * @memberof EntityUpdateByIdRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the EntityUpdateByIdRequest interface. + */ +export function instanceOfEntityUpdateByIdRequest(value: object): value is EntityUpdateByIdRequest { + return true; +} + +export function EntityUpdateByIdRequestFromJSON(json: any): EntityUpdateByIdRequest { + return EntityUpdateByIdRequestFromJSONTyped(json, false); +} + +export function EntityUpdateByIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityUpdateByIdRequest { + if (json == null) { + return json; + } + return { + disabled: json['disabled'] == null ? undefined : json['disabled'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + name: json['name'] == null ? undefined : json['name'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function EntityUpdateByIdRequestToJSON(json: any): EntityUpdateByIdRequest { + return EntityUpdateByIdRequestToJSONTyped(json, false); +} + +export function EntityUpdateByIdRequestToJSONTyped( + value?: EntityUpdateByIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disabled: value['disabled'], + metadata: value['metadata'], + name: value['name'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/EntityUpdateByNameRequest.ts b/ui/api-client/src/models/EntityUpdateByNameRequest.ts new file mode 100644 index 0000000000..6463a09473 --- /dev/null +++ b/ui/api-client/src/models/EntityUpdateByNameRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface EntityUpdateByNameRequest + */ +export interface EntityUpdateByNameRequest { + /** + * If set true, tokens tied to this identity will not be able to be used (but will not be revoked). + * @type {boolean} + * @memberof EntityUpdateByNameRequest + */ + disabled?: boolean; + /** + * ID of the entity. If set, updates the corresponding existing entity. + * @type {string} + * @memberof EntityUpdateByNameRequest + */ + id?: string; + /** + * Metadata to be associated with the entity. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof EntityUpdateByNameRequest + */ + metadata?: object; + /** + * Policies to be tied to the entity. + * @type {Array} + * @memberof EntityUpdateByNameRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the EntityUpdateByNameRequest interface. + */ +export function instanceOfEntityUpdateByNameRequest(value: object): value is EntityUpdateByNameRequest { + return true; +} + +export function EntityUpdateByNameRequestFromJSON(json: any): EntityUpdateByNameRequest { + return EntityUpdateByNameRequestFromJSONTyped(json, false); +} + +export function EntityUpdateByNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): EntityUpdateByNameRequest { + if (json == null) { + return json; + } + return { + disabled: json['disabled'] == null ? undefined : json['disabled'], + id: json['id'] == null ? undefined : json['id'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function EntityUpdateByNameRequestToJSON(json: any): EntityUpdateByNameRequest { + return EntityUpdateByNameRequestToJSONTyped(json, false); +} + +export function EntityUpdateByNameRequestToJSONTyped( + value?: EntityUpdateByNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disabled: value['disabled'], + id: value['id'], + metadata: value['metadata'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/GenerateHashRequest.ts b/ui/api-client/src/models/GenerateHashRequest.ts new file mode 100644 index 0000000000..6159425b2e --- /dev/null +++ b/ui/api-client/src/models/GenerateHashRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateHashRequest + */ +export interface GenerateHashRequest { + /** + * Algorithm to use (POST body parameter). Valid values are: * sha2-224 * sha2-256 * sha2-384 * sha2-512 Defaults to "sha2-256". + * @type {string} + * @memberof GenerateHashRequest + */ + algorithm?: string; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "hex". + * @type {string} + * @memberof GenerateHashRequest + */ + format?: string; + /** + * The base64-encoded input data + * @type {string} + * @memberof GenerateHashRequest + */ + input?: string; +} + +/** + * Check if a given object implements the GenerateHashRequest interface. + */ +export function instanceOfGenerateHashRequest(value: object): value is GenerateHashRequest { + return true; +} + +export function GenerateHashRequestFromJSON(json: any): GenerateHashRequest { + return GenerateHashRequestFromJSONTyped(json, false); +} + +export function GenerateHashRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateHashRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + format: json['format'] == null ? undefined : json['format'], + input: json['input'] == null ? undefined : json['input'], + }; +} + +export function GenerateHashRequestToJSON(json: any): GenerateHashRequest { + return GenerateHashRequestToJSONTyped(json, false); +} + +export function GenerateHashRequestToJSONTyped( + value?: GenerateHashRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + format: value['format'], + input: value['input'], + }; +} diff --git a/ui/api-client/src/models/GenerateHashResponse.ts b/ui/api-client/src/models/GenerateHashResponse.ts new file mode 100644 index 0000000000..dece478f18 --- /dev/null +++ b/ui/api-client/src/models/GenerateHashResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateHashResponse + */ +export interface GenerateHashResponse { + /** + * + * @type {string} + * @memberof GenerateHashResponse + */ + sum?: string; +} + +/** + * Check if a given object implements the GenerateHashResponse interface. + */ +export function instanceOfGenerateHashResponse(value: object): value is GenerateHashResponse { + return true; +} + +export function GenerateHashResponseFromJSON(json: any): GenerateHashResponse { + return GenerateHashResponseFromJSONTyped(json, false); +} + +export function GenerateHashResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateHashResponse { + if (json == null) { + return json; + } + return { + sum: json['sum'] == null ? undefined : json['sum'], + }; +} + +export function GenerateHashResponseToJSON(json: any): GenerateHashResponse { + return GenerateHashResponseToJSONTyped(json, false); +} + +export function GenerateHashResponseToJSONTyped( + value?: GenerateHashResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + sum: value['sum'], + }; +} diff --git a/ui/api-client/src/models/GenerateHashWithAlgorithmRequest.ts b/ui/api-client/src/models/GenerateHashWithAlgorithmRequest.ts new file mode 100644 index 0000000000..fe39458c86 --- /dev/null +++ b/ui/api-client/src/models/GenerateHashWithAlgorithmRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateHashWithAlgorithmRequest + */ +export interface GenerateHashWithAlgorithmRequest { + /** + * Algorithm to use (POST body parameter). Valid values are: * sha2-224 * sha2-256 * sha2-384 * sha2-512 Defaults to "sha2-256". + * @type {string} + * @memberof GenerateHashWithAlgorithmRequest + */ + algorithm?: string; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "hex". + * @type {string} + * @memberof GenerateHashWithAlgorithmRequest + */ + format?: string; + /** + * The base64-encoded input data + * @type {string} + * @memberof GenerateHashWithAlgorithmRequest + */ + input?: string; +} + +/** + * Check if a given object implements the GenerateHashWithAlgorithmRequest interface. + */ +export function instanceOfGenerateHashWithAlgorithmRequest( + value: object +): value is GenerateHashWithAlgorithmRequest { + return true; +} + +export function GenerateHashWithAlgorithmRequestFromJSON(json: any): GenerateHashWithAlgorithmRequest { + return GenerateHashWithAlgorithmRequestFromJSONTyped(json, false); +} + +export function GenerateHashWithAlgorithmRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateHashWithAlgorithmRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + format: json['format'] == null ? undefined : json['format'], + input: json['input'] == null ? undefined : json['input'], + }; +} + +export function GenerateHashWithAlgorithmRequestToJSON(json: any): GenerateHashWithAlgorithmRequest { + return GenerateHashWithAlgorithmRequestToJSONTyped(json, false); +} + +export function GenerateHashWithAlgorithmRequestToJSONTyped( + value?: GenerateHashWithAlgorithmRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + format: value['format'], + input: value['input'], + }; +} diff --git a/ui/api-client/src/models/GenerateHashWithAlgorithmResponse.ts b/ui/api-client/src/models/GenerateHashWithAlgorithmResponse.ts new file mode 100644 index 0000000000..14e091ad07 --- /dev/null +++ b/ui/api-client/src/models/GenerateHashWithAlgorithmResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateHashWithAlgorithmResponse + */ +export interface GenerateHashWithAlgorithmResponse { + /** + * + * @type {string} + * @memberof GenerateHashWithAlgorithmResponse + */ + sum?: string; +} + +/** + * Check if a given object implements the GenerateHashWithAlgorithmResponse interface. + */ +export function instanceOfGenerateHashWithAlgorithmResponse( + value: object +): value is GenerateHashWithAlgorithmResponse { + return true; +} + +export function GenerateHashWithAlgorithmResponseFromJSON(json: any): GenerateHashWithAlgorithmResponse { + return GenerateHashWithAlgorithmResponseFromJSONTyped(json, false); +} + +export function GenerateHashWithAlgorithmResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateHashWithAlgorithmResponse { + if (json == null) { + return json; + } + return { + sum: json['sum'] == null ? undefined : json['sum'], + }; +} + +export function GenerateHashWithAlgorithmResponseToJSON(json: any): GenerateHashWithAlgorithmResponse { + return GenerateHashWithAlgorithmResponseToJSONTyped(json, false); +} + +export function GenerateHashWithAlgorithmResponseToJSONTyped( + value?: GenerateHashWithAlgorithmResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + sum: value['sum'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomRequest.ts b/ui/api-client/src/models/GenerateRandomRequest.ts new file mode 100644 index 0000000000..ed51dc1eef --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomRequest + */ +export interface GenerateRandomRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof GenerateRandomRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof GenerateRandomRequest + */ + format?: string; +} + +/** + * Check if a given object implements the GenerateRandomRequest interface. + */ +export function instanceOfGenerateRandomRequest(value: object): value is GenerateRandomRequest { + return true; +} + +export function GenerateRandomRequestFromJSON(json: any): GenerateRandomRequest { + return GenerateRandomRequestFromJSONTyped(json, false); +} + +export function GenerateRandomRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function GenerateRandomRequestToJSON(json: any): GenerateRandomRequest { + return GenerateRandomRequestToJSONTyped(json, false); +} + +export function GenerateRandomRequestToJSONTyped( + value?: GenerateRandomRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomResponse.ts b/ui/api-client/src/models/GenerateRandomResponse.ts new file mode 100644 index 0000000000..8d0e92d4ed --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomResponse + */ +export interface GenerateRandomResponse { + /** + * + * @type {string} + * @memberof GenerateRandomResponse + */ + randomBytes?: string; +} + +/** + * Check if a given object implements the GenerateRandomResponse interface. + */ +export function instanceOfGenerateRandomResponse(value: object): value is GenerateRandomResponse { + return true; +} + +export function GenerateRandomResponseFromJSON(json: any): GenerateRandomResponse { + return GenerateRandomResponseFromJSONTyped(json, false); +} + +export function GenerateRandomResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomResponse { + if (json == null) { + return json; + } + return { + randomBytes: json['random_bytes'] == null ? undefined : json['random_bytes'], + }; +} + +export function GenerateRandomResponseToJSON(json: any): GenerateRandomResponse { + return GenerateRandomResponseToJSONTyped(json, false); +} + +export function GenerateRandomResponseToJSONTyped( + value?: GenerateRandomResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + random_bytes: value['randomBytes'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomWithBytesRequest.ts b/ui/api-client/src/models/GenerateRandomWithBytesRequest.ts new file mode 100644 index 0000000000..a054300ded --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomWithBytesRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomWithBytesRequest + */ +export interface GenerateRandomWithBytesRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof GenerateRandomWithBytesRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof GenerateRandomWithBytesRequest + */ + format?: string; +} + +/** + * Check if a given object implements the GenerateRandomWithBytesRequest interface. + */ +export function instanceOfGenerateRandomWithBytesRequest( + value: object +): value is GenerateRandomWithBytesRequest { + return true; +} + +export function GenerateRandomWithBytesRequestFromJSON(json: any): GenerateRandomWithBytesRequest { + return GenerateRandomWithBytesRequestFromJSONTyped(json, false); +} + +export function GenerateRandomWithBytesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomWithBytesRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function GenerateRandomWithBytesRequestToJSON(json: any): GenerateRandomWithBytesRequest { + return GenerateRandomWithBytesRequestToJSONTyped(json, false); +} + +export function GenerateRandomWithBytesRequestToJSONTyped( + value?: GenerateRandomWithBytesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomWithBytesResponse.ts b/ui/api-client/src/models/GenerateRandomWithBytesResponse.ts new file mode 100644 index 0000000000..f019569fd6 --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomWithBytesResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomWithBytesResponse + */ +export interface GenerateRandomWithBytesResponse { + /** + * + * @type {string} + * @memberof GenerateRandomWithBytesResponse + */ + randomBytes?: string; +} + +/** + * Check if a given object implements the GenerateRandomWithBytesResponse interface. + */ +export function instanceOfGenerateRandomWithBytesResponse( + value: object +): value is GenerateRandomWithBytesResponse { + return true; +} + +export function GenerateRandomWithBytesResponseFromJSON(json: any): GenerateRandomWithBytesResponse { + return GenerateRandomWithBytesResponseFromJSONTyped(json, false); +} + +export function GenerateRandomWithBytesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomWithBytesResponse { + if (json == null) { + return json; + } + return { + randomBytes: json['random_bytes'] == null ? undefined : json['random_bytes'], + }; +} + +export function GenerateRandomWithBytesResponseToJSON(json: any): GenerateRandomWithBytesResponse { + return GenerateRandomWithBytesResponseToJSONTyped(json, false); +} + +export function GenerateRandomWithBytesResponseToJSONTyped( + value?: GenerateRandomWithBytesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + random_bytes: value['randomBytes'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomWithSourceAndBytesRequest.ts b/ui/api-client/src/models/GenerateRandomWithSourceAndBytesRequest.ts new file mode 100644 index 0000000000..a74d1bac4e --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomWithSourceAndBytesRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomWithSourceAndBytesRequest + */ +export interface GenerateRandomWithSourceAndBytesRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof GenerateRandomWithSourceAndBytesRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof GenerateRandomWithSourceAndBytesRequest + */ + format?: string; +} + +/** + * Check if a given object implements the GenerateRandomWithSourceAndBytesRequest interface. + */ +export function instanceOfGenerateRandomWithSourceAndBytesRequest( + value: object +): value is GenerateRandomWithSourceAndBytesRequest { + return true; +} + +export function GenerateRandomWithSourceAndBytesRequestFromJSON( + json: any +): GenerateRandomWithSourceAndBytesRequest { + return GenerateRandomWithSourceAndBytesRequestFromJSONTyped(json, false); +} + +export function GenerateRandomWithSourceAndBytesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomWithSourceAndBytesRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function GenerateRandomWithSourceAndBytesRequestToJSON( + json: any +): GenerateRandomWithSourceAndBytesRequest { + return GenerateRandomWithSourceAndBytesRequestToJSONTyped(json, false); +} + +export function GenerateRandomWithSourceAndBytesRequestToJSONTyped( + value?: GenerateRandomWithSourceAndBytesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomWithSourceAndBytesResponse.ts b/ui/api-client/src/models/GenerateRandomWithSourceAndBytesResponse.ts new file mode 100644 index 0000000000..268375698a --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomWithSourceAndBytesResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomWithSourceAndBytesResponse + */ +export interface GenerateRandomWithSourceAndBytesResponse { + /** + * + * @type {string} + * @memberof GenerateRandomWithSourceAndBytesResponse + */ + randomBytes?: string; +} + +/** + * Check if a given object implements the GenerateRandomWithSourceAndBytesResponse interface. + */ +export function instanceOfGenerateRandomWithSourceAndBytesResponse( + value: object +): value is GenerateRandomWithSourceAndBytesResponse { + return true; +} + +export function GenerateRandomWithSourceAndBytesResponseFromJSON( + json: any +): GenerateRandomWithSourceAndBytesResponse { + return GenerateRandomWithSourceAndBytesResponseFromJSONTyped(json, false); +} + +export function GenerateRandomWithSourceAndBytesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomWithSourceAndBytesResponse { + if (json == null) { + return json; + } + return { + randomBytes: json['random_bytes'] == null ? undefined : json['random_bytes'], + }; +} + +export function GenerateRandomWithSourceAndBytesResponseToJSON( + json: any +): GenerateRandomWithSourceAndBytesResponse { + return GenerateRandomWithSourceAndBytesResponseToJSONTyped(json, false); +} + +export function GenerateRandomWithSourceAndBytesResponseToJSONTyped( + value?: GenerateRandomWithSourceAndBytesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + random_bytes: value['randomBytes'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomWithSourceRequest.ts b/ui/api-client/src/models/GenerateRandomWithSourceRequest.ts new file mode 100644 index 0000000000..8eee8a397c --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomWithSourceRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomWithSourceRequest + */ +export interface GenerateRandomWithSourceRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof GenerateRandomWithSourceRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof GenerateRandomWithSourceRequest + */ + format?: string; +} + +/** + * Check if a given object implements the GenerateRandomWithSourceRequest interface. + */ +export function instanceOfGenerateRandomWithSourceRequest( + value: object +): value is GenerateRandomWithSourceRequest { + return true; +} + +export function GenerateRandomWithSourceRequestFromJSON(json: any): GenerateRandomWithSourceRequest { + return GenerateRandomWithSourceRequestFromJSONTyped(json, false); +} + +export function GenerateRandomWithSourceRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomWithSourceRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function GenerateRandomWithSourceRequestToJSON(json: any): GenerateRandomWithSourceRequest { + return GenerateRandomWithSourceRequestToJSONTyped(json, false); +} + +export function GenerateRandomWithSourceRequestToJSONTyped( + value?: GenerateRandomWithSourceRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/GenerateRandomWithSourceResponse.ts b/ui/api-client/src/models/GenerateRandomWithSourceResponse.ts new file mode 100644 index 0000000000..b691c248bd --- /dev/null +++ b/ui/api-client/src/models/GenerateRandomWithSourceResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GenerateRandomWithSourceResponse + */ +export interface GenerateRandomWithSourceResponse { + /** + * + * @type {string} + * @memberof GenerateRandomWithSourceResponse + */ + randomBytes?: string; +} + +/** + * Check if a given object implements the GenerateRandomWithSourceResponse interface. + */ +export function instanceOfGenerateRandomWithSourceResponse( + value: object +): value is GenerateRandomWithSourceResponse { + return true; +} + +export function GenerateRandomWithSourceResponseFromJSON(json: any): GenerateRandomWithSourceResponse { + return GenerateRandomWithSourceResponseFromJSONTyped(json, false); +} + +export function GenerateRandomWithSourceResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GenerateRandomWithSourceResponse { + if (json == null) { + return json; + } + return { + randomBytes: json['random_bytes'] == null ? undefined : json['random_bytes'], + }; +} + +export function GenerateRandomWithSourceResponseToJSON(json: any): GenerateRandomWithSourceResponse { + return GenerateRandomWithSourceResponseToJSONTyped(json, false); +} + +export function GenerateRandomWithSourceResponseToJSONTyped( + value?: GenerateRandomWithSourceResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + random_bytes: value['randomBytes'], + }; +} diff --git a/ui/api-client/src/models/GithubConfigureRequest.ts b/ui/api-client/src/models/GithubConfigureRequest.ts new file mode 100644 index 0000000000..cc4ee3fd9f --- /dev/null +++ b/ui/api-client/src/models/GithubConfigureRequest.ts @@ -0,0 +1,176 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GithubConfigureRequest + */ +export interface GithubConfigureRequest { + /** + * The API endpoint to use. Useful if you are running GitHub Enterprise or an API-compatible authentication server. + * @type {string} + * @memberof GithubConfigureRequest + */ + baseUrl?: string; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof GithubConfigureRequest + * @deprecated + */ + maxTtl?: string; + /** + * The organization users must be part of + * @type {string} + * @memberof GithubConfigureRequest + */ + organization: string; + /** + * The ID of the organization users must be part of + * @type {number} + * @memberof GithubConfigureRequest + */ + organizationId?: number; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof GithubConfigureRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof GithubConfigureRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof GithubConfigureRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof GithubConfigureRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof GithubConfigureRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof GithubConfigureRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies. This will apply to all tokens generated by this auth method, in addition to any policies configured for specific users/groups. + * @type {Array} + * @memberof GithubConfigureRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof GithubConfigureRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof GithubConfigureRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof GithubConfigureRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the GithubConfigureRequest interface. + */ +export function instanceOfGithubConfigureRequest(value: object): value is GithubConfigureRequest { + if (!('organization' in value) || value['organization'] === undefined) return false; + return true; +} + +export function GithubConfigureRequestFromJSON(json: any): GithubConfigureRequest { + return GithubConfigureRequestFromJSONTyped(json, false); +} + +export function GithubConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GithubConfigureRequest { + if (json == null) { + return json; + } + return { + baseUrl: json['base_url'] == null ? undefined : json['base_url'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + organization: json['organization'], + organizationId: json['organization_id'] == null ? undefined : json['organization_id'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function GithubConfigureRequestToJSON(json: any): GithubConfigureRequest { + return GithubConfigureRequestToJSONTyped(json, false); +} + +export function GithubConfigureRequestToJSONTyped( + value?: GithubConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + base_url: value['baseUrl'], + max_ttl: value['maxTtl'], + organization: value['organization'], + organization_id: value['organizationId'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/GithubLoginRequest.ts b/ui/api-client/src/models/GithubLoginRequest.ts new file mode 100644 index 0000000000..6675f1a679 --- /dev/null +++ b/ui/api-client/src/models/GithubLoginRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GithubLoginRequest + */ +export interface GithubLoginRequest { + /** + * GitHub personal API token + * @type {string} + * @memberof GithubLoginRequest + */ + token?: string; +} + +/** + * Check if a given object implements the GithubLoginRequest interface. + */ +export function instanceOfGithubLoginRequest(value: object): value is GithubLoginRequest { + return true; +} + +export function GithubLoginRequestFromJSON(json: any): GithubLoginRequest { + return GithubLoginRequestFromJSONTyped(json, false); +} + +export function GithubLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubLoginRequest { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function GithubLoginRequestToJSON(json: any): GithubLoginRequest { + return GithubLoginRequestToJSONTyped(json, false); +} + +export function GithubLoginRequestToJSONTyped( + value?: GithubLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/GithubWriteTeamMappingRequest.ts b/ui/api-client/src/models/GithubWriteTeamMappingRequest.ts new file mode 100644 index 0000000000..cb97328114 --- /dev/null +++ b/ui/api-client/src/models/GithubWriteTeamMappingRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GithubWriteTeamMappingRequest + */ +export interface GithubWriteTeamMappingRequest { + /** + * Value for teams mapping + * @type {string} + * @memberof GithubWriteTeamMappingRequest + */ + value?: string; +} + +/** + * Check if a given object implements the GithubWriteTeamMappingRequest interface. + */ +export function instanceOfGithubWriteTeamMappingRequest( + value: object +): value is GithubWriteTeamMappingRequest { + return true; +} + +export function GithubWriteTeamMappingRequestFromJSON(json: any): GithubWriteTeamMappingRequest { + return GithubWriteTeamMappingRequestFromJSONTyped(json, false); +} + +export function GithubWriteTeamMappingRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GithubWriteTeamMappingRequest { + if (json == null) { + return json; + } + return { + value: json['value'] == null ? undefined : json['value'], + }; +} + +export function GithubWriteTeamMappingRequestToJSON(json: any): GithubWriteTeamMappingRequest { + return GithubWriteTeamMappingRequestToJSONTyped(json, false); +} + +export function GithubWriteTeamMappingRequestToJSONTyped( + value?: GithubWriteTeamMappingRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + value: value['value'], + }; +} diff --git a/ui/api-client/src/models/GithubWriteUserMappingRequest.ts b/ui/api-client/src/models/GithubWriteUserMappingRequest.ts new file mode 100644 index 0000000000..4f01536234 --- /dev/null +++ b/ui/api-client/src/models/GithubWriteUserMappingRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GithubWriteUserMappingRequest + */ +export interface GithubWriteUserMappingRequest { + /** + * Value for users mapping + * @type {string} + * @memberof GithubWriteUserMappingRequest + */ + value?: string; +} + +/** + * Check if a given object implements the GithubWriteUserMappingRequest interface. + */ +export function instanceOfGithubWriteUserMappingRequest( + value: object +): value is GithubWriteUserMappingRequest { + return true; +} + +export function GithubWriteUserMappingRequestFromJSON(json: any): GithubWriteUserMappingRequest { + return GithubWriteUserMappingRequestFromJSONTyped(json, false); +} + +export function GithubWriteUserMappingRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GithubWriteUserMappingRequest { + if (json == null) { + return json; + } + return { + value: json['value'] == null ? undefined : json['value'], + }; +} + +export function GithubWriteUserMappingRequestToJSON(json: any): GithubWriteUserMappingRequest { + return GithubWriteUserMappingRequestToJSONTyped(json, false); +} + +export function GithubWriteUserMappingRequestToJSONTyped( + value?: GithubWriteUserMappingRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + value: value['value'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudConfigureAuthRequest.ts b/ui/api-client/src/models/GoogleCloudConfigureAuthRequest.ts new file mode 100644 index 0000000000..3597b79ca7 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudConfigureAuthRequest.ts @@ -0,0 +1,177 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudConfigureAuthRequest + */ +export interface GoogleCloudConfigureAuthRequest { + /** + * Google credentials JSON that Vault will use to verify users against GCP APIs. If not specified, will use application default credentials + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + credentials?: string; + /** + * Specifies overrides for various Google API Service Endpoints used in requests. + * @type {object} + * @memberof GoogleCloudConfigureAuthRequest + */ + customEndpoint?: object; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof GoogleCloudConfigureAuthRequest + */ + disableAutomatedRotation?: boolean; + /** + * Indicates what value to use when generating an alias for GCE authentications. + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + gceAlias?: string; + /** + * The metadata to include on the aliases and audit logs generated by this plugin. When set to 'default', includes: instance_creation_timestamp, instance_id, instance_name, project_id, project_number, role, service_account_id, service_account_email, zone. Not editing this field means the 'default' fields are included. Explicitly setting this field to empty overrides the 'default' and means no metadata will be included. If not using 'default', explicit fields must be sent like: 'field1,field2'. + * @type {Array} + * @memberof GoogleCloudConfigureAuthRequest + */ + gceMetadata?: Array; + /** + * Deprecated. This field does nothing and be removed in a future release + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + * @deprecated + */ + googleCertsEndpoint?: string; + /** + * Indicates what value to use when generating an alias for IAM authentications. + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + iamAlias?: string; + /** + * The metadata to include on the aliases and audit logs generated by this plugin. When set to 'default', includes: project_id, role, service_account_id, service_account_email. Not editing this field means the 'default' fields are included. Explicitly setting this field to empty overrides the 'default' and means no metadata will be included. If not using 'default', explicit fields must be sent like: 'field1,field2'. + * @type {Array} + * @memberof GoogleCloudConfigureAuthRequest + */ + iamMetadata?: Array; + /** + * Audience of plugin identity tokens + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + identityTokenAudience?: string; + /** + * Time-to-live of plugin identity tokens + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + identityTokenTtl?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + rotationWindow?: string; + /** + * Email ID for the Service Account to impersonate for Workload Identity Federation. + * @type {string} + * @memberof GoogleCloudConfigureAuthRequest + */ + serviceAccountEmail?: string; +} + +/** + * Check if a given object implements the GoogleCloudConfigureAuthRequest interface. + */ +export function instanceOfGoogleCloudConfigureAuthRequest( + value: object +): value is GoogleCloudConfigureAuthRequest { + return true; +} + +export function GoogleCloudConfigureAuthRequestFromJSON(json: any): GoogleCloudConfigureAuthRequest { + return GoogleCloudConfigureAuthRequestFromJSONTyped(json, false); +} + +export function GoogleCloudConfigureAuthRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudConfigureAuthRequest { + if (json == null) { + return json; + } + return { + credentials: json['credentials'] == null ? undefined : json['credentials'], + customEndpoint: json['custom_endpoint'] == null ? undefined : json['custom_endpoint'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + gceAlias: json['gce_alias'] == null ? undefined : json['gce_alias'], + gceMetadata: json['gce_metadata'] == null ? undefined : json['gce_metadata'], + googleCertsEndpoint: json['google_certs_endpoint'] == null ? undefined : json['google_certs_endpoint'], + iamAlias: json['iam_alias'] == null ? undefined : json['iam_alias'], + iamMetadata: json['iam_metadata'] == null ? undefined : json['iam_metadata'], + identityTokenAudience: + json['identity_token_audience'] == null ? undefined : json['identity_token_audience'], + identityTokenTtl: json['identity_token_ttl'] == null ? undefined : json['identity_token_ttl'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + serviceAccountEmail: json['service_account_email'] == null ? undefined : json['service_account_email'], + }; +} + +export function GoogleCloudConfigureAuthRequestToJSON(json: any): GoogleCloudConfigureAuthRequest { + return GoogleCloudConfigureAuthRequestToJSONTyped(json, false); +} + +export function GoogleCloudConfigureAuthRequestToJSONTyped( + value?: GoogleCloudConfigureAuthRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + credentials: value['credentials'], + custom_endpoint: value['customEndpoint'], + disable_automated_rotation: value['disableAutomatedRotation'], + gce_alias: value['gceAlias'], + gce_metadata: value['gceMetadata'], + google_certs_endpoint: value['googleCertsEndpoint'], + iam_alias: value['iamAlias'], + iam_metadata: value['iamMetadata'], + identity_token_audience: value['identityTokenAudience'], + identity_token_ttl: value['identityTokenTtl'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + service_account_email: value['serviceAccountEmail'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudConfigureRequest.ts b/ui/api-client/src/models/GoogleCloudConfigureRequest.ts new file mode 100644 index 0000000000..679be205df --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudConfigureRequest.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudConfigureRequest + */ +export interface GoogleCloudConfigureRequest { + /** + * GCP IAM service account credentials JSON with permissions to create new service accounts and set IAM policies + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + credentials?: string; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof GoogleCloudConfigureRequest + */ + disableAutomatedRotation?: boolean; + /** + * Audience of plugin identity tokens + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + identityTokenAudience?: string; + /** + * Time-to-live of plugin identity tokens + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + identityTokenTtl?: string; + /** + * Maximum time a service account key is valid for. If <= 0, will use system default. + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + maxTtl?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + rotationWindow?: string; + /** + * Email ID for the Service Account to impersonate for Workload Identity Federation. + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + serviceAccountEmail?: string; + /** + * Default lease for generated keys. If <= 0, will use system default. + * @type {string} + * @memberof GoogleCloudConfigureRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the GoogleCloudConfigureRequest interface. + */ +export function instanceOfGoogleCloudConfigureRequest(value: object): value is GoogleCloudConfigureRequest { + return true; +} + +export function GoogleCloudConfigureRequestFromJSON(json: any): GoogleCloudConfigureRequest { + return GoogleCloudConfigureRequestFromJSONTyped(json, false); +} + +export function GoogleCloudConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudConfigureRequest { + if (json == null) { + return json; + } + return { + credentials: json['credentials'] == null ? undefined : json['credentials'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + identityTokenAudience: + json['identity_token_audience'] == null ? undefined : json['identity_token_audience'], + identityTokenTtl: json['identity_token_ttl'] == null ? undefined : json['identity_token_ttl'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + serviceAccountEmail: json['service_account_email'] == null ? undefined : json['service_account_email'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function GoogleCloudConfigureRequestToJSON(json: any): GoogleCloudConfigureRequest { + return GoogleCloudConfigureRequestToJSONTyped(json, false); +} + +export function GoogleCloudConfigureRequestToJSONTyped( + value?: GoogleCloudConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + credentials: value['credentials'], + disable_automated_rotation: value['disableAutomatedRotation'], + identity_token_audience: value['identityTokenAudience'], + identity_token_ttl: value['identityTokenTtl'], + max_ttl: value['maxTtl'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + service_account_email: value['serviceAccountEmail'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudEditLabelsForRoleRequest.ts b/ui/api-client/src/models/GoogleCloudEditLabelsForRoleRequest.ts new file mode 100644 index 0000000000..5dd9e3fc53 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudEditLabelsForRoleRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudEditLabelsForRoleRequest + */ +export interface GoogleCloudEditLabelsForRoleRequest { + /** + * BoundLabels to add (in $key:$value) + * @type {Array} + * @memberof GoogleCloudEditLabelsForRoleRequest + */ + add?: Array; + /** + * Label key values to remove + * @type {Array} + * @memberof GoogleCloudEditLabelsForRoleRequest + */ + remove?: Array; +} + +/** + * Check if a given object implements the GoogleCloudEditLabelsForRoleRequest interface. + */ +export function instanceOfGoogleCloudEditLabelsForRoleRequest( + value: object +): value is GoogleCloudEditLabelsForRoleRequest { + return true; +} + +export function GoogleCloudEditLabelsForRoleRequestFromJSON(json: any): GoogleCloudEditLabelsForRoleRequest { + return GoogleCloudEditLabelsForRoleRequestFromJSONTyped(json, false); +} + +export function GoogleCloudEditLabelsForRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudEditLabelsForRoleRequest { + if (json == null) { + return json; + } + return { + add: json['add'] == null ? undefined : json['add'], + remove: json['remove'] == null ? undefined : json['remove'], + }; +} + +export function GoogleCloudEditLabelsForRoleRequestToJSON(json: any): GoogleCloudEditLabelsForRoleRequest { + return GoogleCloudEditLabelsForRoleRequestToJSONTyped(json, false); +} + +export function GoogleCloudEditLabelsForRoleRequestToJSONTyped( + value?: GoogleCloudEditLabelsForRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + add: value['add'], + remove: value['remove'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudEditServiceAccountsForRoleRequest.ts b/ui/api-client/src/models/GoogleCloudEditServiceAccountsForRoleRequest.ts new file mode 100644 index 0000000000..66441ea52b --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudEditServiceAccountsForRoleRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudEditServiceAccountsForRoleRequest + */ +export interface GoogleCloudEditServiceAccountsForRoleRequest { + /** + * Service-account emails or IDs to add. + * @type {Array} + * @memberof GoogleCloudEditServiceAccountsForRoleRequest + */ + add?: Array; + /** + * Service-account emails or IDs to remove. + * @type {Array} + * @memberof GoogleCloudEditServiceAccountsForRoleRequest + */ + remove?: Array; +} + +/** + * Check if a given object implements the GoogleCloudEditServiceAccountsForRoleRequest interface. + */ +export function instanceOfGoogleCloudEditServiceAccountsForRoleRequest( + value: object +): value is GoogleCloudEditServiceAccountsForRoleRequest { + return true; +} + +export function GoogleCloudEditServiceAccountsForRoleRequestFromJSON( + json: any +): GoogleCloudEditServiceAccountsForRoleRequest { + return GoogleCloudEditServiceAccountsForRoleRequestFromJSONTyped(json, false); +} + +export function GoogleCloudEditServiceAccountsForRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudEditServiceAccountsForRoleRequest { + if (json == null) { + return json; + } + return { + add: json['add'] == null ? undefined : json['add'], + remove: json['remove'] == null ? undefined : json['remove'], + }; +} + +export function GoogleCloudEditServiceAccountsForRoleRequestToJSON( + json: any +): GoogleCloudEditServiceAccountsForRoleRequest { + return GoogleCloudEditServiceAccountsForRoleRequestToJSONTyped(json, false); +} + +export function GoogleCloudEditServiceAccountsForRoleRequestToJSONTyped( + value?: GoogleCloudEditServiceAccountsForRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + add: value['add'], + remove: value['remove'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudGenerateRolesetKey3Request.ts b/ui/api-client/src/models/GoogleCloudGenerateRolesetKey3Request.ts new file mode 100644 index 0000000000..a2a0b8718b --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudGenerateRolesetKey3Request.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudGenerateRolesetKey3Request + */ +export interface GoogleCloudGenerateRolesetKey3Request { + /** + * Private key algorithm for service account key - defaults to KEY_ALG_RSA_2048" + * @type {string} + * @memberof GoogleCloudGenerateRolesetKey3Request + */ + keyAlgorithm?: string; + /** + * Private key type for service account key - defaults to TYPE_GOOGLE_CREDENTIALS_FILE" + * @type {string} + * @memberof GoogleCloudGenerateRolesetKey3Request + */ + keyType?: string; + /** + * Lifetime of the service account key + * @type {string} + * @memberof GoogleCloudGenerateRolesetKey3Request + */ + ttl?: string; +} + +/** + * Check if a given object implements the GoogleCloudGenerateRolesetKey3Request interface. + */ +export function instanceOfGoogleCloudGenerateRolesetKey3Request( + value: object +): value is GoogleCloudGenerateRolesetKey3Request { + return true; +} + +export function GoogleCloudGenerateRolesetKey3RequestFromJSON( + json: any +): GoogleCloudGenerateRolesetKey3Request { + return GoogleCloudGenerateRolesetKey3RequestFromJSONTyped(json, false); +} + +export function GoogleCloudGenerateRolesetKey3RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudGenerateRolesetKey3Request { + if (json == null) { + return json; + } + return { + keyAlgorithm: json['key_algorithm'] == null ? undefined : json['key_algorithm'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function GoogleCloudGenerateRolesetKey3RequestToJSON( + json: any +): GoogleCloudGenerateRolesetKey3Request { + return GoogleCloudGenerateRolesetKey3RequestToJSONTyped(json, false); +} + +export function GoogleCloudGenerateRolesetKey3RequestToJSONTyped( + value?: GoogleCloudGenerateRolesetKey3Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_algorithm: value['keyAlgorithm'], + key_type: value['keyType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudGenerateRolesetKeyRequest.ts b/ui/api-client/src/models/GoogleCloudGenerateRolesetKeyRequest.ts new file mode 100644 index 0000000000..024452eb8d --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudGenerateRolesetKeyRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudGenerateRolesetKeyRequest + */ +export interface GoogleCloudGenerateRolesetKeyRequest { + /** + * Private key algorithm for service account key - defaults to KEY_ALG_RSA_2048" + * @type {string} + * @memberof GoogleCloudGenerateRolesetKeyRequest + */ + keyAlgorithm?: string; + /** + * Private key type for service account key - defaults to TYPE_GOOGLE_CREDENTIALS_FILE" + * @type {string} + * @memberof GoogleCloudGenerateRolesetKeyRequest + */ + keyType?: string; + /** + * Lifetime of the service account key + * @type {string} + * @memberof GoogleCloudGenerateRolesetKeyRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the GoogleCloudGenerateRolesetKeyRequest interface. + */ +export function instanceOfGoogleCloudGenerateRolesetKeyRequest( + value: object +): value is GoogleCloudGenerateRolesetKeyRequest { + return true; +} + +export function GoogleCloudGenerateRolesetKeyRequestFromJSON( + json: any +): GoogleCloudGenerateRolesetKeyRequest { + return GoogleCloudGenerateRolesetKeyRequestFromJSONTyped(json, false); +} + +export function GoogleCloudGenerateRolesetKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudGenerateRolesetKeyRequest { + if (json == null) { + return json; + } + return { + keyAlgorithm: json['key_algorithm'] == null ? undefined : json['key_algorithm'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function GoogleCloudGenerateRolesetKeyRequestToJSON(json: any): GoogleCloudGenerateRolesetKeyRequest { + return GoogleCloudGenerateRolesetKeyRequestToJSONTyped(json, false); +} + +export function GoogleCloudGenerateRolesetKeyRequestToJSONTyped( + value?: GoogleCloudGenerateRolesetKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_algorithm: value['keyAlgorithm'], + key_type: value['keyType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudGenerateStaticAccountKeyRequest.ts b/ui/api-client/src/models/GoogleCloudGenerateStaticAccountKeyRequest.ts new file mode 100644 index 0000000000..1d201581e2 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudGenerateStaticAccountKeyRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudGenerateStaticAccountKeyRequest + */ +export interface GoogleCloudGenerateStaticAccountKeyRequest { + /** + * Private key algorithm for service account key. Defaults to KEY_ALG_RSA_2048." + * @type {string} + * @memberof GoogleCloudGenerateStaticAccountKeyRequest + */ + keyAlgorithm?: string; + /** + * Private key type for service account key. Defaults to TYPE_GOOGLE_CREDENTIALS_FILE." + * @type {string} + * @memberof GoogleCloudGenerateStaticAccountKeyRequest + */ + keyType?: string; + /** + * Lifetime of the service account key + * @type {string} + * @memberof GoogleCloudGenerateStaticAccountKeyRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the GoogleCloudGenerateStaticAccountKeyRequest interface. + */ +export function instanceOfGoogleCloudGenerateStaticAccountKeyRequest( + value: object +): value is GoogleCloudGenerateStaticAccountKeyRequest { + return true; +} + +export function GoogleCloudGenerateStaticAccountKeyRequestFromJSON( + json: any +): GoogleCloudGenerateStaticAccountKeyRequest { + return GoogleCloudGenerateStaticAccountKeyRequestFromJSONTyped(json, false); +} + +export function GoogleCloudGenerateStaticAccountKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudGenerateStaticAccountKeyRequest { + if (json == null) { + return json; + } + return { + keyAlgorithm: json['key_algorithm'] == null ? undefined : json['key_algorithm'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function GoogleCloudGenerateStaticAccountKeyRequestToJSON( + json: any +): GoogleCloudGenerateStaticAccountKeyRequest { + return GoogleCloudGenerateStaticAccountKeyRequestToJSONTyped(json, false); +} + +export function GoogleCloudGenerateStaticAccountKeyRequestToJSONTyped( + value?: GoogleCloudGenerateStaticAccountKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_algorithm: value['keyAlgorithm'], + key_type: value['keyType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsConfigureKeyRequest.ts b/ui/api-client/src/models/GoogleCloudKmsConfigureKeyRequest.ts new file mode 100644 index 0000000000..78e173e0de --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsConfigureKeyRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsConfigureKeyRequest + */ +export interface GoogleCloudKmsConfigureKeyRequest { + /** + * Maximum allowed crypto key version. If set to a positive value, key versions greater than the given value are not permitted to be used. If set to 0 or a negative value, there is no maximum key version. + * @type {number} + * @memberof GoogleCloudKmsConfigureKeyRequest + */ + maxVersion?: number; + /** + * Minimum allowed crypto key version. If set to a positive value, key versions less than the given value are not permitted to be used. If set to 0 or a negative value, there is no minimum key version. This value only affects encryption/re-encryption, not decryption. To restrict old values from being decrypted, increase this value and then perform a trim operation. + * @type {number} + * @memberof GoogleCloudKmsConfigureKeyRequest + */ + minVersion?: number; +} + +/** + * Check if a given object implements the GoogleCloudKmsConfigureKeyRequest interface. + */ +export function instanceOfGoogleCloudKmsConfigureKeyRequest( + value: object +): value is GoogleCloudKmsConfigureKeyRequest { + return true; +} + +export function GoogleCloudKmsConfigureKeyRequestFromJSON(json: any): GoogleCloudKmsConfigureKeyRequest { + return GoogleCloudKmsConfigureKeyRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsConfigureKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsConfigureKeyRequest { + if (json == null) { + return json; + } + return { + maxVersion: json['max_version'] == null ? undefined : json['max_version'], + minVersion: json['min_version'] == null ? undefined : json['min_version'], + }; +} + +export function GoogleCloudKmsConfigureKeyRequestToJSON(json: any): GoogleCloudKmsConfigureKeyRequest { + return GoogleCloudKmsConfigureKeyRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsConfigureKeyRequestToJSONTyped( + value?: GoogleCloudKmsConfigureKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + max_version: value['maxVersion'], + min_version: value['minVersion'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsConfigureRequest.ts b/ui/api-client/src/models/GoogleCloudKmsConfigureRequest.ts new file mode 100644 index 0000000000..5e63bfc499 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsConfigureRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsConfigureRequest + */ +export interface GoogleCloudKmsConfigureRequest { + /** + * The credentials to use for authenticating to Google Cloud. Leave this blank to use the Default Application Credentials or instance metadata authentication. + * @type {string} + * @memberof GoogleCloudKmsConfigureRequest + */ + credentials?: string; + /** + * The list of full-URL scopes to request when authenticating. By default, this requests https://www.googleapis.com/auth/cloudkms. + * @type {Array} + * @memberof GoogleCloudKmsConfigureRequest + */ + scopes?: Array; +} + +/** + * Check if a given object implements the GoogleCloudKmsConfigureRequest interface. + */ +export function instanceOfGoogleCloudKmsConfigureRequest( + value: object +): value is GoogleCloudKmsConfigureRequest { + return true; +} + +export function GoogleCloudKmsConfigureRequestFromJSON(json: any): GoogleCloudKmsConfigureRequest { + return GoogleCloudKmsConfigureRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsConfigureRequest { + if (json == null) { + return json; + } + return { + credentials: json['credentials'] == null ? undefined : json['credentials'], + scopes: json['scopes'] == null ? undefined : json['scopes'], + }; +} + +export function GoogleCloudKmsConfigureRequestToJSON(json: any): GoogleCloudKmsConfigureRequest { + return GoogleCloudKmsConfigureRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsConfigureRequestToJSONTyped( + value?: GoogleCloudKmsConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + credentials: value['credentials'], + scopes: value['scopes'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsDecryptRequest.ts b/ui/api-client/src/models/GoogleCloudKmsDecryptRequest.ts new file mode 100644 index 0000000000..41f447e7e2 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsDecryptRequest.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsDecryptRequest + */ +export interface GoogleCloudKmsDecryptRequest { + /** + * Optional data that was specified during encryption of this payload. + * @type {string} + * @memberof GoogleCloudKmsDecryptRequest + */ + additionalAuthenticatedData?: string; + /** + * Ciphertext to decrypt as previously returned from an encrypt operation. This must be base64-encoded ciphertext as previously returned from an encrypt operation. + * @type {string} + * @memberof GoogleCloudKmsDecryptRequest + */ + ciphertext?: string; + /** + * Integer version of the crypto key version to use for decryption. This is required for asymmetric keys. For symmetric keys, Cloud KMS will choose the correct version automatically. + * @type {number} + * @memberof GoogleCloudKmsDecryptRequest + */ + keyVersion?: number; +} + +/** + * Check if a given object implements the GoogleCloudKmsDecryptRequest interface. + */ +export function instanceOfGoogleCloudKmsDecryptRequest(value: object): value is GoogleCloudKmsDecryptRequest { + return true; +} + +export function GoogleCloudKmsDecryptRequestFromJSON(json: any): GoogleCloudKmsDecryptRequest { + return GoogleCloudKmsDecryptRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsDecryptRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsDecryptRequest { + if (json == null) { + return json; + } + return { + additionalAuthenticatedData: + json['additional_authenticated_data'] == null ? undefined : json['additional_authenticated_data'], + ciphertext: json['ciphertext'] == null ? undefined : json['ciphertext'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + }; +} + +export function GoogleCloudKmsDecryptRequestToJSON(json: any): GoogleCloudKmsDecryptRequest { + return GoogleCloudKmsDecryptRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsDecryptRequestToJSONTyped( + value?: GoogleCloudKmsDecryptRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + additional_authenticated_data: value['additionalAuthenticatedData'], + ciphertext: value['ciphertext'], + key_version: value['keyVersion'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsEncryptRequest.ts b/ui/api-client/src/models/GoogleCloudKmsEncryptRequest.ts new file mode 100644 index 0000000000..694516ed8a --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsEncryptRequest.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsEncryptRequest + */ +export interface GoogleCloudKmsEncryptRequest { + /** + * Optional base64-encoded data that, if specified, must also be provided to decrypt this payload. + * @type {string} + * @memberof GoogleCloudKmsEncryptRequest + */ + additionalAuthenticatedData?: string; + /** + * Integer version of the crypto key version to use for encryption. If unspecified, this defaults to the latest active crypto key version. + * @type {number} + * @memberof GoogleCloudKmsEncryptRequest + */ + keyVersion?: number; + /** + * Plaintext value to be encrypted. This can be a string or binary, but the size is limited. See the Google Cloud KMS documentation for information on size limitations by key types. + * @type {string} + * @memberof GoogleCloudKmsEncryptRequest + */ + plaintext?: string; +} + +/** + * Check if a given object implements the GoogleCloudKmsEncryptRequest interface. + */ +export function instanceOfGoogleCloudKmsEncryptRequest(value: object): value is GoogleCloudKmsEncryptRequest { + return true; +} + +export function GoogleCloudKmsEncryptRequestFromJSON(json: any): GoogleCloudKmsEncryptRequest { + return GoogleCloudKmsEncryptRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsEncryptRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsEncryptRequest { + if (json == null) { + return json; + } + return { + additionalAuthenticatedData: + json['additional_authenticated_data'] == null ? undefined : json['additional_authenticated_data'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + plaintext: json['plaintext'] == null ? undefined : json['plaintext'], + }; +} + +export function GoogleCloudKmsEncryptRequestToJSON(json: any): GoogleCloudKmsEncryptRequest { + return GoogleCloudKmsEncryptRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsEncryptRequestToJSONTyped( + value?: GoogleCloudKmsEncryptRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + additional_authenticated_data: value['additionalAuthenticatedData'], + key_version: value['keyVersion'], + plaintext: value['plaintext'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsReencryptRequest.ts b/ui/api-client/src/models/GoogleCloudKmsReencryptRequest.ts new file mode 100644 index 0000000000..71d7316b73 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsReencryptRequest.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsReencryptRequest + */ +export interface GoogleCloudKmsReencryptRequest { + /** + * Optional data that, if specified, must also be provided during decryption. + * @type {string} + * @memberof GoogleCloudKmsReencryptRequest + */ + additionalAuthenticatedData?: string; + /** + * Ciphertext to be re-encrypted to the latest key version. This must be ciphertext that Vault previously generated for this named key. + * @type {string} + * @memberof GoogleCloudKmsReencryptRequest + */ + ciphertext?: string; + /** + * Integer version of the crypto key version to use for the new encryption. If unspecified, this defaults to the latest active crypto key version. + * @type {number} + * @memberof GoogleCloudKmsReencryptRequest + */ + keyVersion?: number; +} + +/** + * Check if a given object implements the GoogleCloudKmsReencryptRequest interface. + */ +export function instanceOfGoogleCloudKmsReencryptRequest( + value: object +): value is GoogleCloudKmsReencryptRequest { + return true; +} + +export function GoogleCloudKmsReencryptRequestFromJSON(json: any): GoogleCloudKmsReencryptRequest { + return GoogleCloudKmsReencryptRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsReencryptRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsReencryptRequest { + if (json == null) { + return json; + } + return { + additionalAuthenticatedData: + json['additional_authenticated_data'] == null ? undefined : json['additional_authenticated_data'], + ciphertext: json['ciphertext'] == null ? undefined : json['ciphertext'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + }; +} + +export function GoogleCloudKmsReencryptRequestToJSON(json: any): GoogleCloudKmsReencryptRequest { + return GoogleCloudKmsReencryptRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsReencryptRequestToJSONTyped( + value?: GoogleCloudKmsReencryptRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + additional_authenticated_data: value['additionalAuthenticatedData'], + ciphertext: value['ciphertext'], + key_version: value['keyVersion'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsRegisterKeyRequest.ts b/ui/api-client/src/models/GoogleCloudKmsRegisterKeyRequest.ts new file mode 100644 index 0000000000..a4a9a48a5b --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsRegisterKeyRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsRegisterKeyRequest + */ +export interface GoogleCloudKmsRegisterKeyRequest { + /** + * Full resource ID of the crypto key including the project, location, key ring, and crypto key like "projects/%s/locations/%s/keyRings/%s/cryptoKeys/%s". This crypto key must already exist in Google Cloud KMS unless verify is set to "false". + * @type {string} + * @memberof GoogleCloudKmsRegisterKeyRequest + */ + cryptoKey?: string; + /** + * Verify that the given Google Cloud KMS crypto key exists and is accessible before creating the storage entry in Vault. Set this to "false" if the key will not exist at creation time. + * @type {boolean} + * @memberof GoogleCloudKmsRegisterKeyRequest + */ + verify?: boolean; +} + +/** + * Check if a given object implements the GoogleCloudKmsRegisterKeyRequest interface. + */ +export function instanceOfGoogleCloudKmsRegisterKeyRequest( + value: object +): value is GoogleCloudKmsRegisterKeyRequest { + return true; +} + +export function GoogleCloudKmsRegisterKeyRequestFromJSON(json: any): GoogleCloudKmsRegisterKeyRequest { + return GoogleCloudKmsRegisterKeyRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsRegisterKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsRegisterKeyRequest { + if (json == null) { + return json; + } + return { + cryptoKey: json['crypto_key'] == null ? undefined : json['crypto_key'], + verify: json['verify'] == null ? undefined : json['verify'], + }; +} + +export function GoogleCloudKmsRegisterKeyRequestToJSON(json: any): GoogleCloudKmsRegisterKeyRequest { + return GoogleCloudKmsRegisterKeyRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsRegisterKeyRequestToJSONTyped( + value?: GoogleCloudKmsRegisterKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crypto_key: value['cryptoKey'], + verify: value['verify'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsSignRequest.ts b/ui/api-client/src/models/GoogleCloudKmsSignRequest.ts new file mode 100644 index 0000000000..2e7509e362 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsSignRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsSignRequest + */ +export interface GoogleCloudKmsSignRequest { + /** + * Digest to sign. This digest must use the same SHA algorithm as the underlying Cloud KMS key. The digest must be the base64-encoded binary value. This field is required. + * @type {string} + * @memberof GoogleCloudKmsSignRequest + */ + digest?: string; + /** + * Integer version of the crypto key version to use for signing. This field is required. + * @type {number} + * @memberof GoogleCloudKmsSignRequest + */ + keyVersion?: number; +} + +/** + * Check if a given object implements the GoogleCloudKmsSignRequest interface. + */ +export function instanceOfGoogleCloudKmsSignRequest(value: object): value is GoogleCloudKmsSignRequest { + return true; +} + +export function GoogleCloudKmsSignRequestFromJSON(json: any): GoogleCloudKmsSignRequest { + return GoogleCloudKmsSignRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsSignRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsSignRequest { + if (json == null) { + return json; + } + return { + digest: json['digest'] == null ? undefined : json['digest'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + }; +} + +export function GoogleCloudKmsSignRequestToJSON(json: any): GoogleCloudKmsSignRequest { + return GoogleCloudKmsSignRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsSignRequestToJSONTyped( + value?: GoogleCloudKmsSignRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + digest: value['digest'], + key_version: value['keyVersion'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsVerifyRequest.ts b/ui/api-client/src/models/GoogleCloudKmsVerifyRequest.ts new file mode 100644 index 0000000000..1d9bea7f90 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsVerifyRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsVerifyRequest + */ +export interface GoogleCloudKmsVerifyRequest { + /** + * Digest to verify. This digest must use the same SHA algorithm as the underlying Cloud KMS key. The digest must be the base64-encoded binary value. This field is required. + * @type {string} + * @memberof GoogleCloudKmsVerifyRequest + */ + digest?: string; + /** + * Integer version of the crypto key version to use for verification. This field is required. + * @type {number} + * @memberof GoogleCloudKmsVerifyRequest + */ + keyVersion?: number; + /** + * Base64-encoded signature to use for verification. This field is required. + * @type {string} + * @memberof GoogleCloudKmsVerifyRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the GoogleCloudKmsVerifyRequest interface. + */ +export function instanceOfGoogleCloudKmsVerifyRequest(value: object): value is GoogleCloudKmsVerifyRequest { + return true; +} + +export function GoogleCloudKmsVerifyRequestFromJSON(json: any): GoogleCloudKmsVerifyRequest { + return GoogleCloudKmsVerifyRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsVerifyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsVerifyRequest { + if (json == null) { + return json; + } + return { + digest: json['digest'] == null ? undefined : json['digest'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function GoogleCloudKmsVerifyRequestToJSON(json: any): GoogleCloudKmsVerifyRequest { + return GoogleCloudKmsVerifyRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsVerifyRequestToJSONTyped( + value?: GoogleCloudKmsVerifyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + digest: value['digest'], + key_version: value['keyVersion'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudKmsWriteKeyRequest.ts b/ui/api-client/src/models/GoogleCloudKmsWriteKeyRequest.ts new file mode 100644 index 0000000000..47b536f499 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudKmsWriteKeyRequest.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudKmsWriteKeyRequest + */ +export interface GoogleCloudKmsWriteKeyRequest { + /** + * Algorithm to use for encryption, decryption, or signing. The value depends on the key purpose. The value cannot be changed after creation. For a key purpose of "encrypt_decrypt", the valid values are: - symmetric_encryption (default) For a key purpose of "asymmetric_sign", valid values are: - rsa_sign_pss_2048_sha256 - rsa_sign_pss_3072_sha256 - rsa_sign_pss_4096_sha256 - rsa_sign_pkcs1_2048_sha256 - rsa_sign_pkcs1_3072_sha256 - rsa_sign_pkcs1_4096_sha256 - ec_sign_p256_sha256 - ec_sign_p384_sha384 For a key purpose of "asymmetric_decrypt", valid values are: - rsa_decrypt_oaep_2048_sha256 - rsa_decrypt_oaep_3072_sha256 - rsa_decrypt_oaep_4096_sha256 + * @type {string} + * @memberof GoogleCloudKmsWriteKeyRequest + */ + algorithm?: string; + /** + * Name of the crypto key to use. If the given crypto key does not exist, Vault will try to create it. This defaults to the name of the key given to Vault as the parameter if unspecified. + * @type {string} + * @memberof GoogleCloudKmsWriteKeyRequest + */ + cryptoKey?: string; + /** + * Full Google Cloud resource ID of the key ring with the project and location (e.g. projects/my-project/locations/global/keyRings/my-keyring). If the given key ring does not exist, Vault will try to create it during a create operation. + * @type {string} + * @memberof GoogleCloudKmsWriteKeyRequest + */ + keyRing?: string; + /** + * Arbitrary key=value label to apply to the crypto key. To specify multiple labels, specify this argument multiple times (e.g. labels="a=b" labels="c=d"). + * @type {object} + * @memberof GoogleCloudKmsWriteKeyRequest + */ + labels?: object; + /** + * Level of protection to use for the key management. Valid values are "software" and "hsm". The default value is "software". The value cannot be changed after creation. + * @type {string} + * @memberof GoogleCloudKmsWriteKeyRequest + */ + protectionLevel?: string; + /** + * Purpose of the key. Valid options are "asymmetric_decrypt", "asymmetric_sign", and "encrypt_decrypt". The default value is "encrypt_decrypt". The value cannot be changed after creation. + * @type {string} + * @memberof GoogleCloudKmsWriteKeyRequest + */ + purpose?: string; + /** + * Amount of time between crypto key version rotations. This is specified as a time duration value like 72h (72 hours). The smallest possible value is 24h. This value only applies to keys with a purpose of "encrypt_decrypt". + * @type {string} + * @memberof GoogleCloudKmsWriteKeyRequest + */ + rotationPeriod?: string; +} + +/** + * Check if a given object implements the GoogleCloudKmsWriteKeyRequest interface. + */ +export function instanceOfGoogleCloudKmsWriteKeyRequest( + value: object +): value is GoogleCloudKmsWriteKeyRequest { + return true; +} + +export function GoogleCloudKmsWriteKeyRequestFromJSON(json: any): GoogleCloudKmsWriteKeyRequest { + return GoogleCloudKmsWriteKeyRequestFromJSONTyped(json, false); +} + +export function GoogleCloudKmsWriteKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudKmsWriteKeyRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + cryptoKey: json['crypto_key'] == null ? undefined : json['crypto_key'], + keyRing: json['key_ring'] == null ? undefined : json['key_ring'], + labels: json['labels'] == null ? undefined : json['labels'], + protectionLevel: json['protection_level'] == null ? undefined : json['protection_level'], + purpose: json['purpose'] == null ? undefined : json['purpose'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + }; +} + +export function GoogleCloudKmsWriteKeyRequestToJSON(json: any): GoogleCloudKmsWriteKeyRequest { + return GoogleCloudKmsWriteKeyRequestToJSONTyped(json, false); +} + +export function GoogleCloudKmsWriteKeyRequestToJSONTyped( + value?: GoogleCloudKmsWriteKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + crypto_key: value['cryptoKey'], + key_ring: value['keyRing'], + labels: value['labels'], + protection_level: value['protectionLevel'], + purpose: value['purpose'], + rotation_period: value['rotationPeriod'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudLoginRequest.ts b/ui/api-client/src/models/GoogleCloudLoginRequest.ts new file mode 100644 index 0000000000..1b5100f149 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudLoginRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudLoginRequest + */ +export interface GoogleCloudLoginRequest { + /** + * A signed JWT. This is either a self-signed service account JWT ('iam' roles only) or a GCE identity metadata token ('iam', 'gce' roles). + * @type {string} + * @memberof GoogleCloudLoginRequest + */ + jwt?: string; + /** + * Name of the role against which the login is being attempted. Required. + * @type {string} + * @memberof GoogleCloudLoginRequest + */ + role?: string; +} + +/** + * Check if a given object implements the GoogleCloudLoginRequest interface. + */ +export function instanceOfGoogleCloudLoginRequest(value: object): value is GoogleCloudLoginRequest { + return true; +} + +export function GoogleCloudLoginRequestFromJSON(json: any): GoogleCloudLoginRequest { + return GoogleCloudLoginRequestFromJSONTyped(json, false); +} + +export function GoogleCloudLoginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudLoginRequest { + if (json == null) { + return json; + } + return { + jwt: json['jwt'] == null ? undefined : json['jwt'], + role: json['role'] == null ? undefined : json['role'], + }; +} + +export function GoogleCloudLoginRequestToJSON(json: any): GoogleCloudLoginRequest { + return GoogleCloudLoginRequestToJSONTyped(json, false); +} + +export function GoogleCloudLoginRequestToJSONTyped( + value?: GoogleCloudLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + jwt: value['jwt'], + role: value['role'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudWriteImpersonatedAccountRequest.ts b/ui/api-client/src/models/GoogleCloudWriteImpersonatedAccountRequest.ts new file mode 100644 index 0000000000..bf0a0225c1 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudWriteImpersonatedAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudWriteImpersonatedAccountRequest + */ +export interface GoogleCloudWriteImpersonatedAccountRequest { + /** + * Required. Email of the GCP service account to manage. Cannot be updated. + * @type {string} + * @memberof GoogleCloudWriteImpersonatedAccountRequest + */ + serviceAccountEmail?: string; + /** + * List of OAuth scopes to assign to access tokens generated under this account. + * @type {Array} + * @memberof GoogleCloudWriteImpersonatedAccountRequest + */ + tokenScopes?: Array; + /** + * Lifetime of the token for the impersonated account. + * @type {string} + * @memberof GoogleCloudWriteImpersonatedAccountRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the GoogleCloudWriteImpersonatedAccountRequest interface. + */ +export function instanceOfGoogleCloudWriteImpersonatedAccountRequest( + value: object +): value is GoogleCloudWriteImpersonatedAccountRequest { + return true; +} + +export function GoogleCloudWriteImpersonatedAccountRequestFromJSON( + json: any +): GoogleCloudWriteImpersonatedAccountRequest { + return GoogleCloudWriteImpersonatedAccountRequestFromJSONTyped(json, false); +} + +export function GoogleCloudWriteImpersonatedAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudWriteImpersonatedAccountRequest { + if (json == null) { + return json; + } + return { + serviceAccountEmail: json['service_account_email'] == null ? undefined : json['service_account_email'], + tokenScopes: json['token_scopes'] == null ? undefined : json['token_scopes'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function GoogleCloudWriteImpersonatedAccountRequestToJSON( + json: any +): GoogleCloudWriteImpersonatedAccountRequest { + return GoogleCloudWriteImpersonatedAccountRequestToJSONTyped(json, false); +} + +export function GoogleCloudWriteImpersonatedAccountRequestToJSONTyped( + value?: GoogleCloudWriteImpersonatedAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + service_account_email: value['serviceAccountEmail'], + token_scopes: value['tokenScopes'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudWriteRoleRequest.ts b/ui/api-client/src/models/GoogleCloudWriteRoleRequest.ts new file mode 100644 index 0000000000..479aeea753 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudWriteRoleRequest.ts @@ -0,0 +1,289 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudWriteRoleRequest + */ +export interface GoogleCloudWriteRoleRequest { + /** + * If true, will add group aliases to auth tokens generated under this role. This will add the full list of ancestors (projects, folders, organizations) for the given entity's project. Requires IAM permission `resourcemanager.projects.get` on this project. + * @type {boolean} + * @memberof GoogleCloudWriteRoleRequest + */ + addGroupAliases?: boolean; + /** + * 'iam' roles only. If false, Vault will not not allow GCE instances to login in against this role + * @type {boolean} + * @memberof GoogleCloudWriteRoleRequest + */ + allowGceInference?: boolean; + /** + * Deprecated: use "bound_instance_groups" instead. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + boundInstanceGroup?: string; + /** + * Comma-separated list of permitted instance groups to which the GCE instance must belong. This option only applies to "gce" roles. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + boundInstanceGroups?: Array; + /** + * Comma-separated list of GCP labels formatted as"key:value" strings that must be present on the GCE instance in order to authenticate. This option only applies to "gce" roles. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + boundLabels?: Array; + /** + * GCP Projects that authenticating entities must belong to. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + boundProjects?: Array; + /** + * Deprecated: use "bound_regions" instead. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + boundRegion?: string; + /** + * Comma-separated list of permitted regions to which the GCE instance must belong. If a group is provided, it is assumed to be a regional group. If "zone" is provided, this option is ignored. This can be a self-link or region name. This option only applies to "gce" roles. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + boundRegions?: Array; + /** + * Can be set for both 'iam' and 'gce' roles (required for 'iam'). A comma-seperated list of authorized service accounts. If the single value "*" is given, this is assumed to be all service accounts under the role's project. If this is set on a GCE role, the inferred service account from the instance metadata token will be used. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + boundServiceAccounts?: Array; + /** + * Deprecated: use "bound_zones" instead. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + boundZone?: string; + /** + * Comma-separated list of permitted zones to which the GCE instance must belong. If a group is provided, it is assumed to be a zonal group. This can be a self-link or zone name. This option only applies to "gce" roles. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + boundZones?: Array; + /** + * Currently enabled for 'iam' only. Duration in seconds from time of validation that a JWT must expire within. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + maxJwtExp?: string; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + * @deprecated + */ + maxTtl?: string; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Deprecated: use "bound_projects" instead + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + projectId?: string; + /** + * Deprecated: use "bound_service_accounts" instead. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + serviceAccounts?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + * @deprecated + */ + ttl?: string; + /** + * Type of the role. Currently supported: iam, gce + * @type {string} + * @memberof GoogleCloudWriteRoleRequest + */ + type?: string; +} + +/** + * Check if a given object implements the GoogleCloudWriteRoleRequest interface. + */ +export function instanceOfGoogleCloudWriteRoleRequest(value: object): value is GoogleCloudWriteRoleRequest { + return true; +} + +export function GoogleCloudWriteRoleRequestFromJSON(json: any): GoogleCloudWriteRoleRequest { + return GoogleCloudWriteRoleRequestFromJSONTyped(json, false); +} + +export function GoogleCloudWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudWriteRoleRequest { + if (json == null) { + return json; + } + return { + addGroupAliases: json['add_group_aliases'] == null ? undefined : json['add_group_aliases'], + allowGceInference: json['allow_gce_inference'] == null ? undefined : json['allow_gce_inference'], + boundInstanceGroup: json['bound_instance_group'] == null ? undefined : json['bound_instance_group'], + boundInstanceGroups: json['bound_instance_groups'] == null ? undefined : json['bound_instance_groups'], + boundLabels: json['bound_labels'] == null ? undefined : json['bound_labels'], + boundProjects: json['bound_projects'] == null ? undefined : json['bound_projects'], + boundRegion: json['bound_region'] == null ? undefined : json['bound_region'], + boundRegions: json['bound_regions'] == null ? undefined : json['bound_regions'], + boundServiceAccounts: json['bound_service_accounts'] == null ? undefined : json['bound_service_accounts'], + boundZone: json['bound_zone'] == null ? undefined : json['bound_zone'], + boundZones: json['bound_zones'] == null ? undefined : json['bound_zones'], + maxJwtExp: json['max_jwt_exp'] == null ? undefined : json['max_jwt_exp'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + projectId: json['project_id'] == null ? undefined : json['project_id'], + serviceAccounts: json['service_accounts'] == null ? undefined : json['service_accounts'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function GoogleCloudWriteRoleRequestToJSON(json: any): GoogleCloudWriteRoleRequest { + return GoogleCloudWriteRoleRequestToJSONTyped(json, false); +} + +export function GoogleCloudWriteRoleRequestToJSONTyped( + value?: GoogleCloudWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + add_group_aliases: value['addGroupAliases'], + allow_gce_inference: value['allowGceInference'], + bound_instance_group: value['boundInstanceGroup'], + bound_instance_groups: value['boundInstanceGroups'], + bound_labels: value['boundLabels'], + bound_projects: value['boundProjects'], + bound_region: value['boundRegion'], + bound_regions: value['boundRegions'], + bound_service_accounts: value['boundServiceAccounts'], + bound_zone: value['boundZone'], + bound_zones: value['boundZones'], + max_jwt_exp: value['maxJwtExp'], + max_ttl: value['maxTtl'], + period: value['period'], + policies: value['policies'], + project_id: value['projectId'], + service_accounts: value['serviceAccounts'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudWriteRolesetRequest.ts b/ui/api-client/src/models/GoogleCloudWriteRolesetRequest.ts new file mode 100644 index 0000000000..d139e48703 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudWriteRolesetRequest.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudWriteRolesetRequest + */ +export interface GoogleCloudWriteRolesetRequest { + /** + * Bindings configuration string. + * @type {string} + * @memberof GoogleCloudWriteRolesetRequest + */ + bindings?: string; + /** + * Name of the GCP project that this roleset's service account will belong to. + * @type {string} + * @memberof GoogleCloudWriteRolesetRequest + */ + project?: string; + /** + * Type of secret generated for this role set. Defaults to 'access_token' + * @type {string} + * @memberof GoogleCloudWriteRolesetRequest + */ + secretType?: string; + /** + * List of OAuth scopes to assign to credentials generated under this role set + * @type {Array} + * @memberof GoogleCloudWriteRolesetRequest + */ + tokenScopes?: Array; +} + +/** + * Check if a given object implements the GoogleCloudWriteRolesetRequest interface. + */ +export function instanceOfGoogleCloudWriteRolesetRequest( + value: object +): value is GoogleCloudWriteRolesetRequest { + return true; +} + +export function GoogleCloudWriteRolesetRequestFromJSON(json: any): GoogleCloudWriteRolesetRequest { + return GoogleCloudWriteRolesetRequestFromJSONTyped(json, false); +} + +export function GoogleCloudWriteRolesetRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudWriteRolesetRequest { + if (json == null) { + return json; + } + return { + bindings: json['bindings'] == null ? undefined : json['bindings'], + project: json['project'] == null ? undefined : json['project'], + secretType: json['secret_type'] == null ? undefined : json['secret_type'], + tokenScopes: json['token_scopes'] == null ? undefined : json['token_scopes'], + }; +} + +export function GoogleCloudWriteRolesetRequestToJSON(json: any): GoogleCloudWriteRolesetRequest { + return GoogleCloudWriteRolesetRequestToJSONTyped(json, false); +} + +export function GoogleCloudWriteRolesetRequestToJSONTyped( + value?: GoogleCloudWriteRolesetRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bindings: value['bindings'], + project: value['project'], + secret_type: value['secretType'], + token_scopes: value['tokenScopes'], + }; +} diff --git a/ui/api-client/src/models/GoogleCloudWriteStaticAccountRequest.ts b/ui/api-client/src/models/GoogleCloudWriteStaticAccountRequest.ts new file mode 100644 index 0000000000..ce338e0080 --- /dev/null +++ b/ui/api-client/src/models/GoogleCloudWriteStaticAccountRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GoogleCloudWriteStaticAccountRequest + */ +export interface GoogleCloudWriteStaticAccountRequest { + /** + * Bindings configuration string. + * @type {string} + * @memberof GoogleCloudWriteStaticAccountRequest + */ + bindings?: string; + /** + * Type of secret generated for this account. Cannot be updated. Defaults to "access_token" + * @type {string} + * @memberof GoogleCloudWriteStaticAccountRequest + */ + secretType?: string; + /** + * Required. Email of the GCP service account to manage. Cannot be updated. + * @type {string} + * @memberof GoogleCloudWriteStaticAccountRequest + */ + serviceAccountEmail?: string; + /** + * List of OAuth scopes to assign to access tokens generated under this account. Ignored if "secret_type" is not ""access_token"" + * @type {Array} + * @memberof GoogleCloudWriteStaticAccountRequest + */ + tokenScopes?: Array; +} + +/** + * Check if a given object implements the GoogleCloudWriteStaticAccountRequest interface. + */ +export function instanceOfGoogleCloudWriteStaticAccountRequest( + value: object +): value is GoogleCloudWriteStaticAccountRequest { + return true; +} + +export function GoogleCloudWriteStaticAccountRequestFromJSON( + json: any +): GoogleCloudWriteStaticAccountRequest { + return GoogleCloudWriteStaticAccountRequestFromJSONTyped(json, false); +} + +export function GoogleCloudWriteStaticAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GoogleCloudWriteStaticAccountRequest { + if (json == null) { + return json; + } + return { + bindings: json['bindings'] == null ? undefined : json['bindings'], + secretType: json['secret_type'] == null ? undefined : json['secret_type'], + serviceAccountEmail: json['service_account_email'] == null ? undefined : json['service_account_email'], + tokenScopes: json['token_scopes'] == null ? undefined : json['token_scopes'], + }; +} + +export function GoogleCloudWriteStaticAccountRequestToJSON(json: any): GoogleCloudWriteStaticAccountRequest { + return GoogleCloudWriteStaticAccountRequestToJSONTyped(json, false); +} + +export function GoogleCloudWriteStaticAccountRequestToJSONTyped( + value?: GoogleCloudWriteStaticAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bindings: value['bindings'], + secret_type: value['secretType'], + service_account_email: value['serviceAccountEmail'], + token_scopes: value['tokenScopes'], + }; +} diff --git a/ui/api-client/src/models/GroupCreateAliasRequest.ts b/ui/api-client/src/models/GroupCreateAliasRequest.ts new file mode 100644 index 0000000000..04e4d5a5fc --- /dev/null +++ b/ui/api-client/src/models/GroupCreateAliasRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GroupCreateAliasRequest + */ +export interface GroupCreateAliasRequest { + /** + * ID of the group to which this is an alias. + * @type {string} + * @memberof GroupCreateAliasRequest + */ + canonicalId?: string; + /** + * ID of the group alias. + * @type {string} + * @memberof GroupCreateAliasRequest + */ + id?: string; + /** + * Mount accessor to which this alias belongs to. + * @type {string} + * @memberof GroupCreateAliasRequest + */ + mountAccessor?: string; + /** + * Alias of the group. + * @type {string} + * @memberof GroupCreateAliasRequest + */ + name?: string; +} + +/** + * Check if a given object implements the GroupCreateAliasRequest interface. + */ +export function instanceOfGroupCreateAliasRequest(value: object): value is GroupCreateAliasRequest { + return true; +} + +export function GroupCreateAliasRequestFromJSON(json: any): GroupCreateAliasRequest { + return GroupCreateAliasRequestFromJSONTyped(json, false); +} + +export function GroupCreateAliasRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GroupCreateAliasRequest { + if (json == null) { + return json; + } + return { + canonicalId: json['canonical_id'] == null ? undefined : json['canonical_id'], + id: json['id'] == null ? undefined : json['id'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function GroupCreateAliasRequestToJSON(json: any): GroupCreateAliasRequest { + return GroupCreateAliasRequestToJSONTyped(json, false); +} + +export function GroupCreateAliasRequestToJSONTyped( + value?: GroupCreateAliasRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + canonical_id: value['canonicalId'], + id: value['id'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/GroupCreateRequest.ts b/ui/api-client/src/models/GroupCreateRequest.ts new file mode 100644 index 0000000000..beb04a9589 --- /dev/null +++ b/ui/api-client/src/models/GroupCreateRequest.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GroupCreateRequest + */ +export interface GroupCreateRequest { + /** + * ID of the group. If set, updates the corresponding existing group. + * @type {string} + * @memberof GroupCreateRequest + */ + id?: string; + /** + * Entity IDs to be assigned as group members. + * @type {Array} + * @memberof GroupCreateRequest + */ + memberEntityIds?: Array; + /** + * Group IDs to be assigned as group members. + * @type {Array} + * @memberof GroupCreateRequest + */ + memberGroupIds?: Array; + /** + * Metadata to be associated with the group. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof GroupCreateRequest + */ + metadata?: object; + /** + * Name of the group. + * @type {string} + * @memberof GroupCreateRequest + */ + name?: string; + /** + * Policies to be tied to the group. + * @type {Array} + * @memberof GroupCreateRequest + */ + policies?: Array; + /** + * Type of the group, 'internal' or 'external'. Defaults to 'internal' + * @type {string} + * @memberof GroupCreateRequest + */ + type?: string; +} + +/** + * Check if a given object implements the GroupCreateRequest interface. + */ +export function instanceOfGroupCreateRequest(value: object): value is GroupCreateRequest { + return true; +} + +export function GroupCreateRequestFromJSON(json: any): GroupCreateRequest { + return GroupCreateRequestFromJSONTyped(json, false); +} + +export function GroupCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupCreateRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + memberEntityIds: json['member_entity_ids'] == null ? undefined : json['member_entity_ids'], + memberGroupIds: json['member_group_ids'] == null ? undefined : json['member_group_ids'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + name: json['name'] == null ? undefined : json['name'], + policies: json['policies'] == null ? undefined : json['policies'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function GroupCreateRequestToJSON(json: any): GroupCreateRequest { + return GroupCreateRequestToJSONTyped(json, false); +} + +export function GroupCreateRequestToJSONTyped( + value?: GroupCreateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + member_entity_ids: value['memberEntityIds'], + member_group_ids: value['memberGroupIds'], + metadata: value['metadata'], + name: value['name'], + policies: value['policies'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/GroupLookUpRequest.ts b/ui/api-client/src/models/GroupLookUpRequest.ts new file mode 100644 index 0000000000..218d141ccd --- /dev/null +++ b/ui/api-client/src/models/GroupLookUpRequest.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GroupLookUpRequest + */ +export interface GroupLookUpRequest { + /** + * ID of the alias. + * @type {string} + * @memberof GroupLookUpRequest + */ + aliasId?: string; + /** + * Accessor of the mount to which the alias belongs to. This should be supplied in conjunction with 'alias_name'. + * @type {string} + * @memberof GroupLookUpRequest + */ + aliasMountAccessor?: string; + /** + * Name of the alias. This should be supplied in conjunction with 'alias_mount_accessor'. + * @type {string} + * @memberof GroupLookUpRequest + */ + aliasName?: string; + /** + * ID of the group. + * @type {string} + * @memberof GroupLookUpRequest + */ + id?: string; + /** + * Name of the group. + * @type {string} + * @memberof GroupLookUpRequest + */ + name?: string; +} + +/** + * Check if a given object implements the GroupLookUpRequest interface. + */ +export function instanceOfGroupLookUpRequest(value: object): value is GroupLookUpRequest { + return true; +} + +export function GroupLookUpRequestFromJSON(json: any): GroupLookUpRequest { + return GroupLookUpRequestFromJSONTyped(json, false); +} + +export function GroupLookUpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupLookUpRequest { + if (json == null) { + return json; + } + return { + aliasId: json['alias_id'] == null ? undefined : json['alias_id'], + aliasMountAccessor: json['alias_mount_accessor'] == null ? undefined : json['alias_mount_accessor'], + aliasName: json['alias_name'] == null ? undefined : json['alias_name'], + id: json['id'] == null ? undefined : json['id'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function GroupLookUpRequestToJSON(json: any): GroupLookUpRequest { + return GroupLookUpRequestToJSONTyped(json, false); +} + +export function GroupLookUpRequestToJSONTyped( + value?: GroupLookUpRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alias_id: value['aliasId'], + alias_mount_accessor: value['aliasMountAccessor'], + alias_name: value['aliasName'], + id: value['id'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/GroupUpdateAliasByIdRequest.ts b/ui/api-client/src/models/GroupUpdateAliasByIdRequest.ts new file mode 100644 index 0000000000..b7b5b2fe02 --- /dev/null +++ b/ui/api-client/src/models/GroupUpdateAliasByIdRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GroupUpdateAliasByIdRequest + */ +export interface GroupUpdateAliasByIdRequest { + /** + * ID of the group to which this is an alias. + * @type {string} + * @memberof GroupUpdateAliasByIdRequest + */ + canonicalId?: string; + /** + * Mount accessor to which this alias belongs to. + * @type {string} + * @memberof GroupUpdateAliasByIdRequest + */ + mountAccessor?: string; + /** + * Alias of the group. + * @type {string} + * @memberof GroupUpdateAliasByIdRequest + */ + name?: string; +} + +/** + * Check if a given object implements the GroupUpdateAliasByIdRequest interface. + */ +export function instanceOfGroupUpdateAliasByIdRequest(value: object): value is GroupUpdateAliasByIdRequest { + return true; +} + +export function GroupUpdateAliasByIdRequestFromJSON(json: any): GroupUpdateAliasByIdRequest { + return GroupUpdateAliasByIdRequestFromJSONTyped(json, false); +} + +export function GroupUpdateAliasByIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GroupUpdateAliasByIdRequest { + if (json == null) { + return json; + } + return { + canonicalId: json['canonical_id'] == null ? undefined : json['canonical_id'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function GroupUpdateAliasByIdRequestToJSON(json: any): GroupUpdateAliasByIdRequest { + return GroupUpdateAliasByIdRequestToJSONTyped(json, false); +} + +export function GroupUpdateAliasByIdRequestToJSONTyped( + value?: GroupUpdateAliasByIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + canonical_id: value['canonicalId'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/GroupUpdateByIdRequest.ts b/ui/api-client/src/models/GroupUpdateByIdRequest.ts new file mode 100644 index 0000000000..68b36d8c93 --- /dev/null +++ b/ui/api-client/src/models/GroupUpdateByIdRequest.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GroupUpdateByIdRequest + */ +export interface GroupUpdateByIdRequest { + /** + * Entity IDs to be assigned as group members. + * @type {Array} + * @memberof GroupUpdateByIdRequest + */ + memberEntityIds?: Array; + /** + * Group IDs to be assigned as group members. + * @type {Array} + * @memberof GroupUpdateByIdRequest + */ + memberGroupIds?: Array; + /** + * Metadata to be associated with the group. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof GroupUpdateByIdRequest + */ + metadata?: object; + /** + * Name of the group. + * @type {string} + * @memberof GroupUpdateByIdRequest + */ + name?: string; + /** + * Policies to be tied to the group. + * @type {Array} + * @memberof GroupUpdateByIdRequest + */ + policies?: Array; + /** + * Type of the group, 'internal' or 'external'. Defaults to 'internal' + * @type {string} + * @memberof GroupUpdateByIdRequest + */ + type?: string; +} + +/** + * Check if a given object implements the GroupUpdateByIdRequest interface. + */ +export function instanceOfGroupUpdateByIdRequest(value: object): value is GroupUpdateByIdRequest { + return true; +} + +export function GroupUpdateByIdRequestFromJSON(json: any): GroupUpdateByIdRequest { + return GroupUpdateByIdRequestFromJSONTyped(json, false); +} + +export function GroupUpdateByIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GroupUpdateByIdRequest { + if (json == null) { + return json; + } + return { + memberEntityIds: json['member_entity_ids'] == null ? undefined : json['member_entity_ids'], + memberGroupIds: json['member_group_ids'] == null ? undefined : json['member_group_ids'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + name: json['name'] == null ? undefined : json['name'], + policies: json['policies'] == null ? undefined : json['policies'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function GroupUpdateByIdRequestToJSON(json: any): GroupUpdateByIdRequest { + return GroupUpdateByIdRequestToJSONTyped(json, false); +} + +export function GroupUpdateByIdRequestToJSONTyped( + value?: GroupUpdateByIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + member_entity_ids: value['memberEntityIds'], + member_group_ids: value['memberGroupIds'], + metadata: value['metadata'], + name: value['name'], + policies: value['policies'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/GroupUpdateByNameRequest.ts b/ui/api-client/src/models/GroupUpdateByNameRequest.ts new file mode 100644 index 0000000000..dfe87a4085 --- /dev/null +++ b/ui/api-client/src/models/GroupUpdateByNameRequest.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GroupUpdateByNameRequest + */ +export interface GroupUpdateByNameRequest { + /** + * ID of the group. If set, updates the corresponding existing group. + * @type {string} + * @memberof GroupUpdateByNameRequest + */ + id?: string; + /** + * Entity IDs to be assigned as group members. + * @type {Array} + * @memberof GroupUpdateByNameRequest + */ + memberEntityIds?: Array; + /** + * Group IDs to be assigned as group members. + * @type {Array} + * @memberof GroupUpdateByNameRequest + */ + memberGroupIds?: Array; + /** + * Metadata to be associated with the group. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof GroupUpdateByNameRequest + */ + metadata?: object; + /** + * Policies to be tied to the group. + * @type {Array} + * @memberof GroupUpdateByNameRequest + */ + policies?: Array; + /** + * Type of the group, 'internal' or 'external'. Defaults to 'internal' + * @type {string} + * @memberof GroupUpdateByNameRequest + */ + type?: string; +} + +/** + * Check if a given object implements the GroupUpdateByNameRequest interface. + */ +export function instanceOfGroupUpdateByNameRequest(value: object): value is GroupUpdateByNameRequest { + return true; +} + +export function GroupUpdateByNameRequestFromJSON(json: any): GroupUpdateByNameRequest { + return GroupUpdateByNameRequestFromJSONTyped(json, false); +} + +export function GroupUpdateByNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GroupUpdateByNameRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + memberEntityIds: json['member_entity_ids'] == null ? undefined : json['member_entity_ids'], + memberGroupIds: json['member_group_ids'] == null ? undefined : json['member_group_ids'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + policies: json['policies'] == null ? undefined : json['policies'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function GroupUpdateByNameRequestToJSON(json: any): GroupUpdateByNameRequest { + return GroupUpdateByNameRequestToJSONTyped(json, false); +} + +export function GroupUpdateByNameRequestToJSONTyped( + value?: GroupUpdateByNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + member_entity_ids: value['memberEntityIds'], + member_group_ids: value['memberGroupIds'], + metadata: value['metadata'], + policies: value['policies'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/GroupsCreateDuplicatesRequest.ts b/ui/api-client/src/models/GroupsCreateDuplicatesRequest.ts new file mode 100644 index 0000000000..3f453b79d9 --- /dev/null +++ b/ui/api-client/src/models/GroupsCreateDuplicatesRequest.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GroupsCreateDuplicatesRequest + */ +export interface GroupsCreateDuplicatesRequest { + /** + * Number of groups to create + * @type {number} + * @memberof GroupsCreateDuplicatesRequest + */ + count?: number; + /** + * Create entities with different case variations + * @type {boolean} + * @memberof GroupsCreateDuplicatesRequest + */ + differentCase?: boolean; + /** + * ID of the group. If set, updates the corresponding existing group. + * @type {string} + * @memberof GroupsCreateDuplicatesRequest + */ + id?: string; + /** + * Entity IDs to be assigned as group members. + * @type {Array} + * @memberof GroupsCreateDuplicatesRequest + */ + memberEntityIds?: Array; + /** + * Group IDs to be assigned as group members. + * @type {Array} + * @memberof GroupsCreateDuplicatesRequest + */ + memberGroupIds?: Array; + /** + * Metadata to be associated with the group. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof GroupsCreateDuplicatesRequest + */ + metadata?: object; + /** + * Name of the group. + * @type {string} + * @memberof GroupsCreateDuplicatesRequest + */ + name?: string; + /** + * NamespaceID of the entities to create + * @type {string} + * @memberof GroupsCreateDuplicatesRequest + */ + namespaceId?: string; + /** + * Policies to be tied to the group. + * @type {Array} + * @memberof GroupsCreateDuplicatesRequest + */ + policies?: Array; + /** + * Type of the group, 'internal' or 'external'. Defaults to 'internal' + * @type {string} + * @memberof GroupsCreateDuplicatesRequest + */ + type?: string; +} + +/** + * Check if a given object implements the GroupsCreateDuplicatesRequest interface. + */ +export function instanceOfGroupsCreateDuplicatesRequest( + value: object +): value is GroupsCreateDuplicatesRequest { + return true; +} + +export function GroupsCreateDuplicatesRequestFromJSON(json: any): GroupsCreateDuplicatesRequest { + return GroupsCreateDuplicatesRequestFromJSONTyped(json, false); +} + +export function GroupsCreateDuplicatesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): GroupsCreateDuplicatesRequest { + if (json == null) { + return json; + } + return { + count: json['count'] == null ? undefined : json['count'], + differentCase: json['different_case'] == null ? undefined : json['different_case'], + id: json['id'] == null ? undefined : json['id'], + memberEntityIds: json['member_entity_ids'] == null ? undefined : json['member_entity_ids'], + memberGroupIds: json['member_group_ids'] == null ? undefined : json['member_group_ids'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + name: json['name'] == null ? undefined : json['name'], + namespaceId: json['namespace_id'] == null ? undefined : json['namespace_id'], + policies: json['policies'] == null ? undefined : json['policies'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function GroupsCreateDuplicatesRequestToJSON(json: any): GroupsCreateDuplicatesRequest { + return GroupsCreateDuplicatesRequestToJSONTyped(json, false); +} + +export function GroupsCreateDuplicatesRequestToJSONTyped( + value?: GroupsCreateDuplicatesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + count: value['count'], + different_case: value['differentCase'], + id: value['id'], + member_entity_ids: value['memberEntityIds'], + member_group_ids: value['memberGroupIds'], + metadata: value['metadata'], + name: value['name'], + namespace_id: value['namespaceId'], + policies: value['policies'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/HaStatusResponse.ts b/ui/api-client/src/models/HaStatusResponse.ts new file mode 100644 index 0000000000..71b8e42255 --- /dev/null +++ b/ui/api-client/src/models/HaStatusResponse.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface HaStatusResponse + */ +export interface HaStatusResponse { + /** + * + * @type {Array} + * @memberof HaStatusResponse + */ + nodes?: Array; +} + +/** + * Check if a given object implements the HaStatusResponse interface. + */ +export function instanceOfHaStatusResponse(value: object): value is HaStatusResponse { + return true; +} + +export function HaStatusResponseFromJSON(json: any): HaStatusResponse { + return HaStatusResponseFromJSONTyped(json, false); +} + +export function HaStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HaStatusResponse { + if (json == null) { + return json; + } + return { + nodes: json['nodes'] == null ? undefined : json['nodes'], + }; +} + +export function HaStatusResponseToJSON(json: any): HaStatusResponse { + return HaStatusResponseToJSONTyped(json, false); +} + +export function HaStatusResponseToJSONTyped( + value?: HaStatusResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + nodes: value['nodes'], + }; +} diff --git a/ui/api-client/src/models/InitializeRequest.ts b/ui/api-client/src/models/InitializeRequest.ts new file mode 100644 index 0000000000..39a6971230 --- /dev/null +++ b/ui/api-client/src/models/InitializeRequest.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InitializeRequest + */ +export interface InitializeRequest { + /** + * Specifies an array of PGP public keys used to encrypt the output unseal keys. Ordering is preserved. The keys must be base64-encoded from their original binary representation. The size of this array must be the same as `secret_shares`. + * @type {Array} + * @memberof InitializeRequest + */ + pgpKeys?: Array; + /** + * Specifies an array of PGP public keys used to encrypt the output recovery keys. Ordering is preserved. The keys must be base64-encoded from their original binary representation. The size of this array must be the same as `recovery_shares`. + * @type {Array} + * @memberof InitializeRequest + */ + recoveryPgpKeys?: Array; + /** + * Specifies the number of shares to split the recovery key into. + * @type {number} + * @memberof InitializeRequest + */ + recoveryShares?: number; + /** + * Specifies the number of shares required to reconstruct the recovery key. This must be less than or equal to `recovery_shares`. + * @type {number} + * @memberof InitializeRequest + */ + recoveryThreshold?: number; + /** + * Specifies a PGP public key used to encrypt the initial root token. The key must be base64-encoded from its original binary representation. + * @type {string} + * @memberof InitializeRequest + */ + rootTokenPgpKey?: string; + /** + * Specifies the number of shares to split the unseal key into. + * @type {number} + * @memberof InitializeRequest + */ + secretShares?: number; + /** + * Specifies the number of shares required to reconstruct the unseal key. This must be less than or equal secret_shares. If using Vault HSM with auto-unsealing, this value must be the same as `secret_shares`. + * @type {number} + * @memberof InitializeRequest + */ + secretThreshold?: number; + /** + * Specifies the number of shares that should be encrypted by the HSM and stored for auto-unsealing. Currently must be the same as `secret_shares`. + * @type {number} + * @memberof InitializeRequest + */ + storedShares?: number; +} + +/** + * Check if a given object implements the InitializeRequest interface. + */ +export function instanceOfInitializeRequest(value: object): value is InitializeRequest { + return true; +} + +export function InitializeRequestFromJSON(json: any): InitializeRequest { + return InitializeRequestFromJSONTyped(json, false); +} + +export function InitializeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitializeRequest { + if (json == null) { + return json; + } + return { + pgpKeys: json['pgp_keys'] == null ? undefined : json['pgp_keys'], + recoveryPgpKeys: json['recovery_pgp_keys'] == null ? undefined : json['recovery_pgp_keys'], + recoveryShares: json['recovery_shares'] == null ? undefined : json['recovery_shares'], + recoveryThreshold: json['recovery_threshold'] == null ? undefined : json['recovery_threshold'], + rootTokenPgpKey: json['root_token_pgp_key'] == null ? undefined : json['root_token_pgp_key'], + secretShares: json['secret_shares'] == null ? undefined : json['secret_shares'], + secretThreshold: json['secret_threshold'] == null ? undefined : json['secret_threshold'], + storedShares: json['stored_shares'] == null ? undefined : json['stored_shares'], + }; +} + +export function InitializeRequestToJSON(json: any): InitializeRequest { + return InitializeRequestToJSONTyped(json, false); +} + +export function InitializeRequestToJSONTyped( + value?: InitializeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + pgp_keys: value['pgpKeys'], + recovery_pgp_keys: value['recoveryPgpKeys'], + recovery_shares: value['recoveryShares'], + recovery_threshold: value['recoveryThreshold'], + root_token_pgp_key: value['rootTokenPgpKey'], + secret_shares: value['secretShares'], + secret_threshold: value['secretThreshold'], + stored_shares: value['storedShares'], + }; +} diff --git a/ui/api-client/src/models/InternalClientActivityConfigureRequest.ts b/ui/api-client/src/models/InternalClientActivityConfigureRequest.ts new file mode 100644 index 0000000000..7a9a0cfcdf --- /dev/null +++ b/ui/api-client/src/models/InternalClientActivityConfigureRequest.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalClientActivityConfigureRequest + */ +export interface InternalClientActivityConfigureRequest { + /** + * Number of months to report if no start date specified. + * @type {number} + * @memberof InternalClientActivityConfigureRequest + * @deprecated + */ + defaultReportMonths?: number; + /** + * Enable or disable collection of client count: enable, disable, or default. + * @type {string} + * @memberof InternalClientActivityConfigureRequest + */ + enabled?: string; + /** + * Number of months of client data to retain. Setting to 0 will clear all existing data. + * @type {number} + * @memberof InternalClientActivityConfigureRequest + */ + retentionMonths?: number; +} + +/** + * Check if a given object implements the InternalClientActivityConfigureRequest interface. + */ +export function instanceOfInternalClientActivityConfigureRequest( + value: object +): value is InternalClientActivityConfigureRequest { + return true; +} + +export function InternalClientActivityConfigureRequestFromJSON( + json: any +): InternalClientActivityConfigureRequest { + return InternalClientActivityConfigureRequestFromJSONTyped(json, false); +} + +export function InternalClientActivityConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalClientActivityConfigureRequest { + if (json == null) { + return json; + } + return { + defaultReportMonths: json['default_report_months'] == null ? undefined : json['default_report_months'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + retentionMonths: json['retention_months'] == null ? undefined : json['retention_months'], + }; +} + +export function InternalClientActivityConfigureRequestToJSON( + json: any +): InternalClientActivityConfigureRequest { + return InternalClientActivityConfigureRequestToJSONTyped(json, false); +} + +export function InternalClientActivityConfigureRequestToJSONTyped( + value?: InternalClientActivityConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default_report_months: value['defaultReportMonths'], + enabled: value['enabled'], + retention_months: value['retentionMonths'], + }; +} diff --git a/ui/api-client/src/models/InternalCountEntitiesResponse.ts b/ui/api-client/src/models/InternalCountEntitiesResponse.ts new file mode 100644 index 0000000000..9559761710 --- /dev/null +++ b/ui/api-client/src/models/InternalCountEntitiesResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalCountEntitiesResponse + */ +export interface InternalCountEntitiesResponse { + /** + * + * @type {object} + * @memberof InternalCountEntitiesResponse + */ + counters?: object; +} + +/** + * Check if a given object implements the InternalCountEntitiesResponse interface. + */ +export function instanceOfInternalCountEntitiesResponse( + value: object +): value is InternalCountEntitiesResponse { + return true; +} + +export function InternalCountEntitiesResponseFromJSON(json: any): InternalCountEntitiesResponse { + return InternalCountEntitiesResponseFromJSONTyped(json, false); +} + +export function InternalCountEntitiesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalCountEntitiesResponse { + if (json == null) { + return json; + } + return { + counters: json['counters'] == null ? undefined : json['counters'], + }; +} + +export function InternalCountEntitiesResponseToJSON(json: any): InternalCountEntitiesResponse { + return InternalCountEntitiesResponseToJSONTyped(json, false); +} + +export function InternalCountEntitiesResponseToJSONTyped( + value?: InternalCountEntitiesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + counters: value['counters'], + }; +} diff --git a/ui/api-client/src/models/InternalCountTokensResponse.ts b/ui/api-client/src/models/InternalCountTokensResponse.ts new file mode 100644 index 0000000000..51565a63d0 --- /dev/null +++ b/ui/api-client/src/models/InternalCountTokensResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalCountTokensResponse + */ +export interface InternalCountTokensResponse { + /** + * + * @type {object} + * @memberof InternalCountTokensResponse + */ + counters?: object; +} + +/** + * Check if a given object implements the InternalCountTokensResponse interface. + */ +export function instanceOfInternalCountTokensResponse(value: object): value is InternalCountTokensResponse { + return true; +} + +export function InternalCountTokensResponseFromJSON(json: any): InternalCountTokensResponse { + return InternalCountTokensResponseFromJSONTyped(json, false); +} + +export function InternalCountTokensResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalCountTokensResponse { + if (json == null) { + return json; + } + return { + counters: json['counters'] == null ? undefined : json['counters'], + }; +} + +export function InternalCountTokensResponseToJSON(json: any): InternalCountTokensResponse { + return InternalCountTokensResponseToJSONTyped(json, false); +} + +export function InternalCountTokensResponseToJSONTyped( + value?: InternalCountTokensResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + counters: value['counters'], + }; +} diff --git a/ui/api-client/src/models/InternalGenerateOpenApiDocumentWithParametersRequest.ts b/ui/api-client/src/models/InternalGenerateOpenApiDocumentWithParametersRequest.ts new file mode 100644 index 0000000000..475b6cc9ef --- /dev/null +++ b/ui/api-client/src/models/InternalGenerateOpenApiDocumentWithParametersRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalGenerateOpenApiDocumentWithParametersRequest + */ +export interface InternalGenerateOpenApiDocumentWithParametersRequest { + /** + * Context string appended to every operationId + * @type {string} + * @memberof InternalGenerateOpenApiDocumentWithParametersRequest + */ + context?: string; + /** + * Use generic mount paths + * @type {boolean} + * @memberof InternalGenerateOpenApiDocumentWithParametersRequest + */ + genericMountPaths?: boolean; +} + +/** + * Check if a given object implements the InternalGenerateOpenApiDocumentWithParametersRequest interface. + */ +export function instanceOfInternalGenerateOpenApiDocumentWithParametersRequest( + value: object +): value is InternalGenerateOpenApiDocumentWithParametersRequest { + return true; +} + +export function InternalGenerateOpenApiDocumentWithParametersRequestFromJSON( + json: any +): InternalGenerateOpenApiDocumentWithParametersRequest { + return InternalGenerateOpenApiDocumentWithParametersRequestFromJSONTyped(json, false); +} + +export function InternalGenerateOpenApiDocumentWithParametersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalGenerateOpenApiDocumentWithParametersRequest { + if (json == null) { + return json; + } + return { + context: json['context'] == null ? undefined : json['context'], + genericMountPaths: json['generic_mount_paths'] == null ? undefined : json['generic_mount_paths'], + }; +} + +export function InternalGenerateOpenApiDocumentWithParametersRequestToJSON( + json: any +): InternalGenerateOpenApiDocumentWithParametersRequest { + return InternalGenerateOpenApiDocumentWithParametersRequestToJSONTyped(json, false); +} + +export function InternalGenerateOpenApiDocumentWithParametersRequestToJSONTyped( + value?: InternalGenerateOpenApiDocumentWithParametersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + context: value['context'], + generic_mount_paths: value['genericMountPaths'], + }; +} diff --git a/ui/api-client/src/models/InternalUiListEnabledFeatureFlagsResponse.ts b/ui/api-client/src/models/InternalUiListEnabledFeatureFlagsResponse.ts new file mode 100644 index 0000000000..37f7be870e --- /dev/null +++ b/ui/api-client/src/models/InternalUiListEnabledFeatureFlagsResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalUiListEnabledFeatureFlagsResponse + */ +export interface InternalUiListEnabledFeatureFlagsResponse { + /** + * + * @type {Array} + * @memberof InternalUiListEnabledFeatureFlagsResponse + */ + featureFlags?: Array; +} + +/** + * Check if a given object implements the InternalUiListEnabledFeatureFlagsResponse interface. + */ +export function instanceOfInternalUiListEnabledFeatureFlagsResponse( + value: object +): value is InternalUiListEnabledFeatureFlagsResponse { + return true; +} + +export function InternalUiListEnabledFeatureFlagsResponseFromJSON( + json: any +): InternalUiListEnabledFeatureFlagsResponse { + return InternalUiListEnabledFeatureFlagsResponseFromJSONTyped(json, false); +} + +export function InternalUiListEnabledFeatureFlagsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalUiListEnabledFeatureFlagsResponse { + if (json == null) { + return json; + } + return { + featureFlags: json['feature_flags'] == null ? undefined : json['feature_flags'], + }; +} + +export function InternalUiListEnabledFeatureFlagsResponseToJSON( + json: any +): InternalUiListEnabledFeatureFlagsResponse { + return InternalUiListEnabledFeatureFlagsResponseToJSONTyped(json, false); +} + +export function InternalUiListEnabledFeatureFlagsResponseToJSONTyped( + value?: InternalUiListEnabledFeatureFlagsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + feature_flags: value['featureFlags'], + }; +} diff --git a/ui/api-client/src/models/InternalUiListEnabledVisibleMountsResponse.ts b/ui/api-client/src/models/InternalUiListEnabledVisibleMountsResponse.ts new file mode 100644 index 0000000000..84451daac6 --- /dev/null +++ b/ui/api-client/src/models/InternalUiListEnabledVisibleMountsResponse.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalUiListEnabledVisibleMountsResponse + */ +export interface InternalUiListEnabledVisibleMountsResponse { + /** + * auth mounts + * @type {object} + * @memberof InternalUiListEnabledVisibleMountsResponse + */ + auth?: object; + /** + * secret mounts + * @type {object} + * @memberof InternalUiListEnabledVisibleMountsResponse + */ + secret?: object; +} + +/** + * Check if a given object implements the InternalUiListEnabledVisibleMountsResponse interface. + */ +export function instanceOfInternalUiListEnabledVisibleMountsResponse( + value: object +): value is InternalUiListEnabledVisibleMountsResponse { + return true; +} + +export function InternalUiListEnabledVisibleMountsResponseFromJSON( + json: any +): InternalUiListEnabledVisibleMountsResponse { + return InternalUiListEnabledVisibleMountsResponseFromJSONTyped(json, false); +} + +export function InternalUiListEnabledVisibleMountsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalUiListEnabledVisibleMountsResponse { + if (json == null) { + return json; + } + return { + auth: json['auth'] == null ? undefined : json['auth'], + secret: json['secret'] == null ? undefined : json['secret'], + }; +} + +export function InternalUiListEnabledVisibleMountsResponseToJSON( + json: any +): InternalUiListEnabledVisibleMountsResponse { + return InternalUiListEnabledVisibleMountsResponseToJSONTyped(json, false); +} + +export function InternalUiListEnabledVisibleMountsResponseToJSONTyped( + value?: InternalUiListEnabledVisibleMountsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + auth: value['auth'], + secret: value['secret'], + }; +} diff --git a/ui/api-client/src/models/InternalUiListNamespacesResponse.ts b/ui/api-client/src/models/InternalUiListNamespacesResponse.ts new file mode 100644 index 0000000000..61e654f1d6 --- /dev/null +++ b/ui/api-client/src/models/InternalUiListNamespacesResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalUiListNamespacesResponse + */ +export interface InternalUiListNamespacesResponse { + /** + * field is only returned if there are one or more namespaces + * @type {Array} + * @memberof InternalUiListNamespacesResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the InternalUiListNamespacesResponse interface. + */ +export function instanceOfInternalUiListNamespacesResponse( + value: object +): value is InternalUiListNamespacesResponse { + return true; +} + +export function InternalUiListNamespacesResponseFromJSON(json: any): InternalUiListNamespacesResponse { + return InternalUiListNamespacesResponseFromJSONTyped(json, false); +} + +export function InternalUiListNamespacesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalUiListNamespacesResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function InternalUiListNamespacesResponseToJSON(json: any): InternalUiListNamespacesResponse { + return InternalUiListNamespacesResponseToJSONTyped(json, false); +} + +export function InternalUiListNamespacesResponseToJSONTyped( + value?: InternalUiListNamespacesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/InternalUiReadAuthenticatedActiveCustomMessagesResponse.ts b/ui/api-client/src/models/InternalUiReadAuthenticatedActiveCustomMessagesResponse.ts new file mode 100644 index 0000000000..7489f8f8dc --- /dev/null +++ b/ui/api-client/src/models/InternalUiReadAuthenticatedActiveCustomMessagesResponse.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalUiReadAuthenticatedActiveCustomMessagesResponse + */ +export interface InternalUiReadAuthenticatedActiveCustomMessagesResponse { + /** + * + * @type {object} + * @memberof InternalUiReadAuthenticatedActiveCustomMessagesResponse + */ + keyInfo?: object; + /** + * + * @type {Array} + * @memberof InternalUiReadAuthenticatedActiveCustomMessagesResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the InternalUiReadAuthenticatedActiveCustomMessagesResponse interface. + */ +export function instanceOfInternalUiReadAuthenticatedActiveCustomMessagesResponse( + value: object +): value is InternalUiReadAuthenticatedActiveCustomMessagesResponse { + return true; +} + +export function InternalUiReadAuthenticatedActiveCustomMessagesResponseFromJSON( + json: any +): InternalUiReadAuthenticatedActiveCustomMessagesResponse { + return InternalUiReadAuthenticatedActiveCustomMessagesResponseFromJSONTyped(json, false); +} + +export function InternalUiReadAuthenticatedActiveCustomMessagesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalUiReadAuthenticatedActiveCustomMessagesResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function InternalUiReadAuthenticatedActiveCustomMessagesResponseToJSON( + json: any +): InternalUiReadAuthenticatedActiveCustomMessagesResponse { + return InternalUiReadAuthenticatedActiveCustomMessagesResponseToJSONTyped(json, false); +} + +export function InternalUiReadAuthenticatedActiveCustomMessagesResponseToJSONTyped( + value?: InternalUiReadAuthenticatedActiveCustomMessagesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/InternalUiReadMountInformationResponse.ts b/ui/api-client/src/models/InternalUiReadMountInformationResponse.ts new file mode 100644 index 0000000000..e3a5be80e3 --- /dev/null +++ b/ui/api-client/src/models/InternalUiReadMountInformationResponse.ts @@ -0,0 +1,171 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalUiReadMountInformationResponse + */ +export interface InternalUiReadMountInformationResponse { + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + accessor?: string; + /** + * + * @type {object} + * @memberof InternalUiReadMountInformationResponse + */ + config?: object; + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + description?: string; + /** + * + * @type {boolean} + * @memberof InternalUiReadMountInformationResponse + */ + externalEntropyAccess?: boolean; + /** + * + * @type {boolean} + * @memberof InternalUiReadMountInformationResponse + */ + local?: boolean; + /** + * + * @type {object} + * @memberof InternalUiReadMountInformationResponse + */ + options?: object; + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + path?: string; + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + pluginVersion?: string; + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + runningPluginVersion?: string; + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + runningSha256?: string; + /** + * + * @type {boolean} + * @memberof InternalUiReadMountInformationResponse + */ + sealWrap?: boolean; + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + type?: string; + /** + * + * @type {string} + * @memberof InternalUiReadMountInformationResponse + */ + uuid?: string; +} + +/** + * Check if a given object implements the InternalUiReadMountInformationResponse interface. + */ +export function instanceOfInternalUiReadMountInformationResponse( + value: object +): value is InternalUiReadMountInformationResponse { + return true; +} + +export function InternalUiReadMountInformationResponseFromJSON( + json: any +): InternalUiReadMountInformationResponse { + return InternalUiReadMountInformationResponseFromJSONTyped(json, false); +} + +export function InternalUiReadMountInformationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalUiReadMountInformationResponse { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + config: json['config'] == null ? undefined : json['config'], + description: json['description'] == null ? undefined : json['description'], + externalEntropyAccess: + json['external_entropy_access'] == null ? undefined : json['external_entropy_access'], + local: json['local'] == null ? undefined : json['local'], + options: json['options'] == null ? undefined : json['options'], + path: json['path'] == null ? undefined : json['path'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + runningPluginVersion: json['running_plugin_version'] == null ? undefined : json['running_plugin_version'], + runningSha256: json['running_sha256'] == null ? undefined : json['running_sha256'], + sealWrap: json['seal_wrap'] == null ? undefined : json['seal_wrap'], + type: json['type'] == null ? undefined : json['type'], + uuid: json['uuid'] == null ? undefined : json['uuid'], + }; +} + +export function InternalUiReadMountInformationResponseToJSON( + json: any +): InternalUiReadMountInformationResponse { + return InternalUiReadMountInformationResponseToJSONTyped(json, false); +} + +export function InternalUiReadMountInformationResponseToJSONTyped( + value?: InternalUiReadMountInformationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + config: value['config'], + description: value['description'], + external_entropy_access: value['externalEntropyAccess'], + local: value['local'], + options: value['options'], + path: value['path'], + plugin_version: value['pluginVersion'], + running_plugin_version: value['runningPluginVersion'], + running_sha256: value['runningSha256'], + seal_wrap: value['sealWrap'], + type: value['type'], + uuid: value['uuid'], + }; +} diff --git a/ui/api-client/src/models/InternalUiReadResultantAclResponse.ts b/ui/api-client/src/models/InternalUiReadResultantAclResponse.ts new file mode 100644 index 0000000000..22856d3c8e --- /dev/null +++ b/ui/api-client/src/models/InternalUiReadResultantAclResponse.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalUiReadResultantAclResponse + */ +export interface InternalUiReadResultantAclResponse { + /** + * + * @type {string} + * @memberof InternalUiReadResultantAclResponse + */ + chrootNamespace?: string; + /** + * + * @type {object} + * @memberof InternalUiReadResultantAclResponse + */ + exactPaths?: object; + /** + * + * @type {object} + * @memberof InternalUiReadResultantAclResponse + */ + globPaths?: object; + /** + * + * @type {boolean} + * @memberof InternalUiReadResultantAclResponse + */ + root?: boolean; +} + +/** + * Check if a given object implements the InternalUiReadResultantAclResponse interface. + */ +export function instanceOfInternalUiReadResultantAclResponse( + value: object +): value is InternalUiReadResultantAclResponse { + return true; +} + +export function InternalUiReadResultantAclResponseFromJSON(json: any): InternalUiReadResultantAclResponse { + return InternalUiReadResultantAclResponseFromJSONTyped(json, false); +} + +export function InternalUiReadResultantAclResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalUiReadResultantAclResponse { + if (json == null) { + return json; + } + return { + chrootNamespace: json['chroot_namespace'] == null ? undefined : json['chroot_namespace'], + exactPaths: json['exact_paths'] == null ? undefined : json['exact_paths'], + globPaths: json['glob_paths'] == null ? undefined : json['glob_paths'], + root: json['root'] == null ? undefined : json['root'], + }; +} + +export function InternalUiReadResultantAclResponseToJSON(json: any): InternalUiReadResultantAclResponse { + return InternalUiReadResultantAclResponseToJSONTyped(json, false); +} + +export function InternalUiReadResultantAclResponseToJSONTyped( + value?: InternalUiReadResultantAclResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + chroot_namespace: value['chrootNamespace'], + exact_paths: value['exactPaths'], + glob_paths: value['globPaths'], + root: value['root'], + }; +} diff --git a/ui/api-client/src/models/InternalUiReadUnauthenticatedActiveCustomMessagesResponse.ts b/ui/api-client/src/models/InternalUiReadUnauthenticatedActiveCustomMessagesResponse.ts new file mode 100644 index 0000000000..e2da6efe8c --- /dev/null +++ b/ui/api-client/src/models/InternalUiReadUnauthenticatedActiveCustomMessagesResponse.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface InternalUiReadUnauthenticatedActiveCustomMessagesResponse + */ +export interface InternalUiReadUnauthenticatedActiveCustomMessagesResponse { + /** + * + * @type {object} + * @memberof InternalUiReadUnauthenticatedActiveCustomMessagesResponse + */ + keyInfo?: object; + /** + * + * @type {Array} + * @memberof InternalUiReadUnauthenticatedActiveCustomMessagesResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the InternalUiReadUnauthenticatedActiveCustomMessagesResponse interface. + */ +export function instanceOfInternalUiReadUnauthenticatedActiveCustomMessagesResponse( + value: object +): value is InternalUiReadUnauthenticatedActiveCustomMessagesResponse { + return true; +} + +export function InternalUiReadUnauthenticatedActiveCustomMessagesResponseFromJSON( + json: any +): InternalUiReadUnauthenticatedActiveCustomMessagesResponse { + return InternalUiReadUnauthenticatedActiveCustomMessagesResponseFromJSONTyped(json, false); +} + +export function InternalUiReadUnauthenticatedActiveCustomMessagesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): InternalUiReadUnauthenticatedActiveCustomMessagesResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function InternalUiReadUnauthenticatedActiveCustomMessagesResponseToJSON( + json: any +): InternalUiReadUnauthenticatedActiveCustomMessagesResponse { + return InternalUiReadUnauthenticatedActiveCustomMessagesResponseToJSONTyped(json, false); +} + +export function InternalUiReadUnauthenticatedActiveCustomMessagesResponseToJSONTyped( + value?: InternalUiReadUnauthenticatedActiveCustomMessagesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/JwtConfigureRequest.ts b/ui/api-client/src/models/JwtConfigureRequest.ts new file mode 100644 index 0000000000..17438b48b0 --- /dev/null +++ b/ui/api-client/src/models/JwtConfigureRequest.ts @@ -0,0 +1,191 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface JwtConfigureRequest + */ +export interface JwtConfigureRequest { + /** + * The value against which to match the 'iss' claim in a JWT. Optional. + * @type {string} + * @memberof JwtConfigureRequest + */ + boundIssuer?: string; + /** + * The default role to use if none is provided during login. If not set, a role is required during login. + * @type {string} + * @memberof JwtConfigureRequest + */ + defaultRole?: string; + /** + * The CA certificate or chain of certificates, in PEM format, to use to validate connections to the JWKS URL. If not set, system certificates are used. + * @type {string} + * @memberof JwtConfigureRequest + */ + jwksCaPem?: string; + /** + * Set of JWKS Url and CA certificate (or chain of certificates) pairs. CA certificates must be in PEM format. Cannot be used with "jwks_url" or "jwks_ca_pem". + * @type {Array} + * @memberof JwtConfigureRequest + */ + jwksPairs?: Array; + /** + * JWKS URL to use to authenticate signatures. Cannot be used with "oidc_discovery_url" or "jwt_validation_pubkeys". + * @type {string} + * @memberof JwtConfigureRequest + */ + jwksUrl?: string; + /** + * A list of supported signing algorithms. Defaults to RS256. + * @type {Array} + * @memberof JwtConfigureRequest + */ + jwtSupportedAlgs?: Array; + /** + * A list of PEM-encoded public keys to use to authenticate signatures locally. Cannot be used with "jwks_url" or "oidc_discovery_url". + * @type {Array} + * @memberof JwtConfigureRequest + */ + jwtValidationPubkeys?: Array; + /** + * Pass namespace in the OIDC state parameter instead of as a separate query parameter. With this setting, the allowed redirect URL(s) in Vault and on the provider side should not contain a namespace query parameter. This means only one redirect URL entry needs to be maintained on the provider side for all vault namespaces that will be authenticating against it. Defaults to true for new configs. + * @type {boolean} + * @memberof JwtConfigureRequest + */ + namespaceInState?: boolean; + /** + * The OAuth Client ID configured with your OIDC provider. + * @type {string} + * @memberof JwtConfigureRequest + */ + oidcClientId?: string; + /** + * The OAuth Client Secret configured with your OIDC provider. + * @type {string} + * @memberof JwtConfigureRequest + */ + oidcClientSecret?: string; + /** + * The CA certificate or chain of certificates, in PEM format, to use to validate connections to the OIDC Discovery URL. If not set, system certificates are used. + * @type {string} + * @memberof JwtConfigureRequest + */ + oidcDiscoveryCaPem?: string; + /** + * OIDC Discovery URL, without any .well-known component (base path). Cannot be used with "jwks_url" or "jwt_validation_pubkeys". + * @type {string} + * @memberof JwtConfigureRequest + */ + oidcDiscoveryUrl?: string; + /** + * The response mode to be used in the OAuth2 request. Allowed values are 'query' and 'form_post'. + * @type {string} + * @memberof JwtConfigureRequest + */ + oidcResponseMode?: string; + /** + * The response types to request. Allowed values are 'code' and 'id_token'. Defaults to 'code'. + * @type {Array} + * @memberof JwtConfigureRequest + */ + oidcResponseTypes?: Array; + /** + * Provider-specific configuration. Optional. + * @type {object} + * @memberof JwtConfigureRequest + */ + providerConfig?: object; + /** + * A list of ASN1 OIDs of certificate extensions marked Critical that are unsupported by Vault and should be ignored. This option should very rarely be needed except in specialized PKI environments. + * @type {Array} + * @memberof JwtConfigureRequest + */ + unsupportedCriticalCertExtensions?: Array; +} + +/** + * Check if a given object implements the JwtConfigureRequest interface. + */ +export function instanceOfJwtConfigureRequest(value: object): value is JwtConfigureRequest { + return true; +} + +export function JwtConfigureRequestFromJSON(json: any): JwtConfigureRequest { + return JwtConfigureRequestFromJSONTyped(json, false); +} + +export function JwtConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): JwtConfigureRequest { + if (json == null) { + return json; + } + return { + boundIssuer: json['bound_issuer'] == null ? undefined : json['bound_issuer'], + defaultRole: json['default_role'] == null ? undefined : json['default_role'], + jwksCaPem: json['jwks_ca_pem'] == null ? undefined : json['jwks_ca_pem'], + jwksPairs: json['jwks_pairs'] == null ? undefined : json['jwks_pairs'], + jwksUrl: json['jwks_url'] == null ? undefined : json['jwks_url'], + jwtSupportedAlgs: json['jwt_supported_algs'] == null ? undefined : json['jwt_supported_algs'], + jwtValidationPubkeys: json['jwt_validation_pubkeys'] == null ? undefined : json['jwt_validation_pubkeys'], + namespaceInState: json['namespace_in_state'] == null ? undefined : json['namespace_in_state'], + oidcClientId: json['oidc_client_id'] == null ? undefined : json['oidc_client_id'], + oidcClientSecret: json['oidc_client_secret'] == null ? undefined : json['oidc_client_secret'], + oidcDiscoveryCaPem: json['oidc_discovery_ca_pem'] == null ? undefined : json['oidc_discovery_ca_pem'], + oidcDiscoveryUrl: json['oidc_discovery_url'] == null ? undefined : json['oidc_discovery_url'], + oidcResponseMode: json['oidc_response_mode'] == null ? undefined : json['oidc_response_mode'], + oidcResponseTypes: json['oidc_response_types'] == null ? undefined : json['oidc_response_types'], + providerConfig: json['provider_config'] == null ? undefined : json['provider_config'], + unsupportedCriticalCertExtensions: + json['unsupported_critical_cert_extensions'] == null + ? undefined + : json['unsupported_critical_cert_extensions'], + }; +} + +export function JwtConfigureRequestToJSON(json: any): JwtConfigureRequest { + return JwtConfigureRequestToJSONTyped(json, false); +} + +export function JwtConfigureRequestToJSONTyped( + value?: JwtConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bound_issuer: value['boundIssuer'], + default_role: value['defaultRole'], + jwks_ca_pem: value['jwksCaPem'], + jwks_pairs: value['jwksPairs'], + jwks_url: value['jwksUrl'], + jwt_supported_algs: value['jwtSupportedAlgs'], + jwt_validation_pubkeys: value['jwtValidationPubkeys'], + namespace_in_state: value['namespaceInState'], + oidc_client_id: value['oidcClientId'], + oidc_client_secret: value['oidcClientSecret'], + oidc_discovery_ca_pem: value['oidcDiscoveryCaPem'], + oidc_discovery_url: value['oidcDiscoveryUrl'], + oidc_response_mode: value['oidcResponseMode'], + oidc_response_types: value['oidcResponseTypes'], + provider_config: value['providerConfig'], + unsupported_critical_cert_extensions: value['unsupportedCriticalCertExtensions'], + }; +} diff --git a/ui/api-client/src/models/JwtLoginRequest.ts b/ui/api-client/src/models/JwtLoginRequest.ts new file mode 100644 index 0000000000..85e5a94f7d --- /dev/null +++ b/ui/api-client/src/models/JwtLoginRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface JwtLoginRequest + */ +export interface JwtLoginRequest { + /** + * The signed JWT to validate. + * @type {string} + * @memberof JwtLoginRequest + */ + jwt?: string; + /** + * The role to log in against. + * @type {string} + * @memberof JwtLoginRequest + */ + role?: string; +} + +/** + * Check if a given object implements the JwtLoginRequest interface. + */ +export function instanceOfJwtLoginRequest(value: object): value is JwtLoginRequest { + return true; +} + +export function JwtLoginRequestFromJSON(json: any): JwtLoginRequest { + return JwtLoginRequestFromJSONTyped(json, false); +} + +export function JwtLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): JwtLoginRequest { + if (json == null) { + return json; + } + return { + jwt: json['jwt'] == null ? undefined : json['jwt'], + role: json['role'] == null ? undefined : json['role'], + }; +} + +export function JwtLoginRequestToJSON(json: any): JwtLoginRequest { + return JwtLoginRequestToJSONTyped(json, false); +} + +export function JwtLoginRequestToJSONTyped( + value?: JwtLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + jwt: value['jwt'], + role: value['role'], + }; +} diff --git a/ui/api-client/src/models/JwtOidcCallbackFormPostRequest.ts b/ui/api-client/src/models/JwtOidcCallbackFormPostRequest.ts new file mode 100644 index 0000000000..c524a88e94 --- /dev/null +++ b/ui/api-client/src/models/JwtOidcCallbackFormPostRequest.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface JwtOidcCallbackFormPostRequest + */ +export interface JwtOidcCallbackFormPostRequest { + /** + * + * @type {string} + * @memberof JwtOidcCallbackFormPostRequest + */ + clientNonce?: string; + /** + * + * @type {string} + * @memberof JwtOidcCallbackFormPostRequest + */ + code?: string; + /** + * + * @type {string} + * @memberof JwtOidcCallbackFormPostRequest + */ + idToken?: string; + /** + * + * @type {string} + * @memberof JwtOidcCallbackFormPostRequest + */ + state?: string; +} + +/** + * Check if a given object implements the JwtOidcCallbackFormPostRequest interface. + */ +export function instanceOfJwtOidcCallbackFormPostRequest( + value: object +): value is JwtOidcCallbackFormPostRequest { + return true; +} + +export function JwtOidcCallbackFormPostRequestFromJSON(json: any): JwtOidcCallbackFormPostRequest { + return JwtOidcCallbackFormPostRequestFromJSONTyped(json, false); +} + +export function JwtOidcCallbackFormPostRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): JwtOidcCallbackFormPostRequest { + if (json == null) { + return json; + } + return { + clientNonce: json['client_nonce'] == null ? undefined : json['client_nonce'], + code: json['code'] == null ? undefined : json['code'], + idToken: json['id_token'] == null ? undefined : json['id_token'], + state: json['state'] == null ? undefined : json['state'], + }; +} + +export function JwtOidcCallbackFormPostRequestToJSON(json: any): JwtOidcCallbackFormPostRequest { + return JwtOidcCallbackFormPostRequestToJSONTyped(json, false); +} + +export function JwtOidcCallbackFormPostRequestToJSONTyped( + value?: JwtOidcCallbackFormPostRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_nonce: value['clientNonce'], + code: value['code'], + id_token: value['idToken'], + state: value['state'], + }; +} diff --git a/ui/api-client/src/models/JwtOidcRequestAuthorizationUrlRequest.ts b/ui/api-client/src/models/JwtOidcRequestAuthorizationUrlRequest.ts new file mode 100644 index 0000000000..341083fdd9 --- /dev/null +++ b/ui/api-client/src/models/JwtOidcRequestAuthorizationUrlRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface JwtOidcRequestAuthorizationUrlRequest + */ +export interface JwtOidcRequestAuthorizationUrlRequest { + /** + * Optional client-provided nonce that must match during callback, if present. + * @type {string} + * @memberof JwtOidcRequestAuthorizationUrlRequest + */ + clientNonce?: string; + /** + * The OAuth redirect_uri to use in the authorization URL. + * @type {string} + * @memberof JwtOidcRequestAuthorizationUrlRequest + */ + redirectUri?: string; + /** + * The role to issue an OIDC authorization URL against. + * @type {string} + * @memberof JwtOidcRequestAuthorizationUrlRequest + */ + role?: string; +} + +/** + * Check if a given object implements the JwtOidcRequestAuthorizationUrlRequest interface. + */ +export function instanceOfJwtOidcRequestAuthorizationUrlRequest( + value: object +): value is JwtOidcRequestAuthorizationUrlRequest { + return true; +} + +export function JwtOidcRequestAuthorizationUrlRequestFromJSON( + json: any +): JwtOidcRequestAuthorizationUrlRequest { + return JwtOidcRequestAuthorizationUrlRequestFromJSONTyped(json, false); +} + +export function JwtOidcRequestAuthorizationUrlRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): JwtOidcRequestAuthorizationUrlRequest { + if (json == null) { + return json; + } + return { + clientNonce: json['client_nonce'] == null ? undefined : json['client_nonce'], + redirectUri: json['redirect_uri'] == null ? undefined : json['redirect_uri'], + role: json['role'] == null ? undefined : json['role'], + }; +} + +export function JwtOidcRequestAuthorizationUrlRequestToJSON( + json: any +): JwtOidcRequestAuthorizationUrlRequest { + return JwtOidcRequestAuthorizationUrlRequestToJSONTyped(json, false); +} + +export function JwtOidcRequestAuthorizationUrlRequestToJSONTyped( + value?: JwtOidcRequestAuthorizationUrlRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_nonce: value['clientNonce'], + redirect_uri: value['redirectUri'], + role: value['role'], + }; +} diff --git a/ui/api-client/src/models/JwtWriteRoleRequest.ts b/ui/api-client/src/models/JwtWriteRoleRequest.ts new file mode 100644 index 0000000000..9c012f69bf --- /dev/null +++ b/ui/api-client/src/models/JwtWriteRoleRequest.ts @@ -0,0 +1,316 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface JwtWriteRoleRequest + */ +export interface JwtWriteRoleRequest { + /** + * Comma-separated list of allowed values for redirect_uri + * @type {Array} + * @memberof JwtWriteRoleRequest + */ + allowedRedirectUris?: Array; + /** + * Comma-separated list of 'aud' claims that are valid for login; any match is sufficient + * @type {Array} + * @memberof JwtWriteRoleRequest + */ + boundAudiences?: Array; + /** + * Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. + * @type {Array} + * @memberof JwtWriteRoleRequest + * @deprecated + */ + boundCidrs?: Array; + /** + * Map of claims/values which must match for login + * @type {object} + * @memberof JwtWriteRoleRequest + */ + boundClaims?: object; + /** + * How to interpret values in the map of claims/values (which must match for login): allowed values are 'string' or 'glob' + * @type {string} + * @memberof JwtWriteRoleRequest + */ + boundClaimsType?: string; + /** + * The 'sub' claim that is valid for login. Optional. + * @type {string} + * @memberof JwtWriteRoleRequest + */ + boundSubject?: string; + /** + * Mappings of claims (key) that will be copied to a metadata field (value) + * @type {object} + * @memberof JwtWriteRoleRequest + */ + claimMappings?: object; + /** + * Duration in seconds of leeway when validating all claims to account for clock skew. Defaults to 60 (1 minute) if set to 0 and can be disabled if set to -1. + * @type {string} + * @memberof JwtWriteRoleRequest + */ + clockSkewLeeway?: string; + /** + * Duration in seconds of leeway when validating expiration of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. + * @type {string} + * @memberof JwtWriteRoleRequest + */ + expirationLeeway?: string; + /** + * The claim to use for the Identity group alias names + * @type {string} + * @memberof JwtWriteRoleRequest + */ + groupsClaim?: string; + /** + * Specifies the allowable elapsed time in seconds since the last time the user was actively authenticated. + * @type {string} + * @memberof JwtWriteRoleRequest + */ + maxAge?: string; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof JwtWriteRoleRequest + * @deprecated + */ + maxTtl?: string; + /** + * Duration in seconds of leeway when validating not before values of a token to account for clock skew. Defaults to 150 (2.5 minutes) if set to 0 and can be disabled if set to -1. + * @type {string} + * @memberof JwtWriteRoleRequest + */ + notBeforeLeeway?: string; + /** + * Use "token_num_uses" instead. If this and "token_num_uses" are both specified, only "token_num_uses" will be used. + * @type {number} + * @memberof JwtWriteRoleRequest + * @deprecated + */ + numUses?: number; + /** + * Comma-separated list of OIDC scopes + * @type {Array} + * @memberof JwtWriteRoleRequest + */ + oidcScopes?: Array; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof JwtWriteRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof JwtWriteRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Type of the role, either 'jwt' or 'oidc'. + * @type {string} + * @memberof JwtWriteRoleRequest + */ + roleType?: string; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof JwtWriteRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof JwtWriteRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof JwtWriteRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof JwtWriteRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof JwtWriteRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof JwtWriteRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof JwtWriteRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof JwtWriteRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof JwtWriteRoleRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof JwtWriteRoleRequest + * @deprecated + */ + ttl?: string; + /** + * The claim to use for the Identity entity alias name + * @type {string} + * @memberof JwtWriteRoleRequest + */ + userClaim?: string; + /** + * If true, the user_claim value will use JSON pointer syntax for referencing claims. + * @type {boolean} + * @memberof JwtWriteRoleRequest + */ + userClaimJsonPointer?: boolean; + /** + * Log received OIDC tokens and claims when debug-level logging is active. Not recommended in production since sensitive information may be present in OIDC responses. + * @type {boolean} + * @memberof JwtWriteRoleRequest + */ + verboseOidcLogging?: boolean; +} + +/** + * Check if a given object implements the JwtWriteRoleRequest interface. + */ +export function instanceOfJwtWriteRoleRequest(value: object): value is JwtWriteRoleRequest { + return true; +} + +export function JwtWriteRoleRequestFromJSON(json: any): JwtWriteRoleRequest { + return JwtWriteRoleRequestFromJSONTyped(json, false); +} + +export function JwtWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): JwtWriteRoleRequest { + if (json == null) { + return json; + } + return { + allowedRedirectUris: json['allowed_redirect_uris'] == null ? undefined : json['allowed_redirect_uris'], + boundAudiences: json['bound_audiences'] == null ? undefined : json['bound_audiences'], + boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'], + boundClaims: json['bound_claims'] == null ? undefined : json['bound_claims'], + boundClaimsType: json['bound_claims_type'] == null ? undefined : json['bound_claims_type'], + boundSubject: json['bound_subject'] == null ? undefined : json['bound_subject'], + claimMappings: json['claim_mappings'] == null ? undefined : json['claim_mappings'], + clockSkewLeeway: json['clock_skew_leeway'] == null ? undefined : json['clock_skew_leeway'], + expirationLeeway: json['expiration_leeway'] == null ? undefined : json['expiration_leeway'], + groupsClaim: json['groups_claim'] == null ? undefined : json['groups_claim'], + maxAge: json['max_age'] == null ? undefined : json['max_age'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + notBeforeLeeway: json['not_before_leeway'] == null ? undefined : json['not_before_leeway'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + oidcScopes: json['oidc_scopes'] == null ? undefined : json['oidc_scopes'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + roleType: json['role_type'] == null ? undefined : json['role_type'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + userClaim: json['user_claim'] == null ? undefined : json['user_claim'], + userClaimJsonPointer: + json['user_claim_json_pointer'] == null ? undefined : json['user_claim_json_pointer'], + verboseOidcLogging: json['verbose_oidc_logging'] == null ? undefined : json['verbose_oidc_logging'], + }; +} + +export function JwtWriteRoleRequestToJSON(json: any): JwtWriteRoleRequest { + return JwtWriteRoleRequestToJSONTyped(json, false); +} + +export function JwtWriteRoleRequestToJSONTyped( + value?: JwtWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_redirect_uris: value['allowedRedirectUris'], + bound_audiences: value['boundAudiences'], + bound_cidrs: value['boundCidrs'], + bound_claims: value['boundClaims'], + bound_claims_type: value['boundClaimsType'], + bound_subject: value['boundSubject'], + claim_mappings: value['claimMappings'], + clock_skew_leeway: value['clockSkewLeeway'], + expiration_leeway: value['expirationLeeway'], + groups_claim: value['groupsClaim'], + max_age: value['maxAge'], + max_ttl: value['maxTtl'], + not_before_leeway: value['notBeforeLeeway'], + num_uses: value['numUses'], + oidc_scopes: value['oidcScopes'], + period: value['period'], + policies: value['policies'], + role_type: value['roleType'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + user_claim: value['userClaim'], + user_claim_json_pointer: value['userClaimJsonPointer'], + verbose_oidc_logging: value['verboseOidcLogging'], + }; +} diff --git a/ui/api-client/src/models/KerberosConfigureLdapRequest.ts b/ui/api-client/src/models/KerberosConfigureLdapRequest.ts new file mode 100644 index 0000000000..647908ae02 --- /dev/null +++ b/ui/api-client/src/models/KerberosConfigureLdapRequest.ts @@ -0,0 +1,398 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KerberosConfigureLdapRequest + */ +export interface KerberosConfigureLdapRequest { + /** + * Use anonymous binds when performing LDAP group searches (if true the initial credentials will still be used for the initial connection test). + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + anonymousGroupSearch?: boolean; + /** + * LDAP DN for searching for the user DN (optional) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + binddn?: string; + /** + * LDAP password for searching for the user DN (optional) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + bindpass?: string; + /** + * If true, case sensitivity will be used when comparing usernames and groups for matching policies. + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + caseSensitiveNames?: boolean; + /** + * CA certificate to use when verifying LDAP server certificate, must be x509 PEM encoded (optional) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + certificate?: string; + /** + * Client certificate to provide to the LDAP server, must be x509 PEM encoded (optional) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + clientTlsCert?: string; + /** + * Client certificate key to provide to the LDAP server, must be x509 PEM encoded (optional) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + clientTlsKey?: string; + /** + * Timeout, in seconds, when attempting to connect to the LDAP server before trying the next URL in the configuration. + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + connectionTimeout?: string; + /** + * Denies an unauthenticated LDAP bind request if the user's password is empty; defaults to true + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + denyNullBind?: boolean; + /** + * When aliases should be dereferenced on search operations. Accepted values are 'never', 'finding', 'searching', 'always'. Defaults to 'never'. + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + dereferenceAliases?: KerberosConfigureLdapRequestDereferenceAliasesEnum; + /** + * Use anonymous bind to discover the bind DN of a user (optional) + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + discoverdn?: boolean; + /** + * If true, matching sAMAccountName attribute values will be allowed to login when upndomain is defined. + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + enableSamaccountnameLogin?: boolean; + /** + * LDAP attribute to follow on objects returned by in order to enumerate user group membership. Examples: "cn" or "memberOf", etc. Default: cn + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + groupattr?: string; + /** + * LDAP search base to use for group membership search (eg: ou=Groups,dc=example,dc=org) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + groupdn?: string; + /** + * Go template for querying group membership of user (optional) The template can access the following context variables: UserDN, Username Example: (&(objectClass=group)(member:1.2.840.113556.1.4.1941:={{.UserDN}})) Default: (|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}})) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + groupfilter?: string; + /** + * Skip LDAP server SSL Certificate verification - VERY insecure (optional) + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + insecureTls?: boolean; + /** + * If set to a value greater than 0, the LDAP backend will use the LDAP server's paged search control to request pages of up to the given size. This can be used to avoid hitting the LDAP server's maximum result size limit. Otherwise, the LDAP backend will not use the paged search control. + * @type {number} + * @memberof KerberosConfigureLdapRequest + */ + maxPageSize?: number; + /** + * Timeout, in seconds, for the connection when making requests against the server before returning back an error. + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + requestTimeout?: string; + /** + * Issue a StartTLS command after establishing unencrypted connection (optional) + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + starttls?: boolean; + /** + * Maximum TLS version to use. Accepted values are 'tls10', 'tls11', 'tls12' or 'tls13'. Defaults to 'tls12' + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + tlsMaxVersion?: KerberosConfigureLdapRequestTlsMaxVersionEnum; + /** + * Minimum TLS version to use. Accepted values are 'tls10', 'tls11', 'tls12' or 'tls13'. Defaults to 'tls12' + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + tlsMinVersion?: KerberosConfigureLdapRequestTlsMinVersionEnum; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof KerberosConfigureLdapRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof KerberosConfigureLdapRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies. This will apply to all tokens generated by this auth method, in addition to any configured for specific users/groups. + * @type {Array} + * @memberof KerberosConfigureLdapRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + tokenType?: string; + /** + * Enables userPrincipalDomain login with [username]@UPNDomain (optional) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + upndomain?: string; + /** + * LDAP URL to connect to (default: ldap://127.0.0.1). Multiple URLs can be specified by concatenating them with commas; they will be tried in-order. + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + url?: string; + /** + * In Vault 1.1.1 a fix for handling group CN values of different cases unfortunately introduced a regression that could cause previously defined groups to not be found due to a change in the resulting name. If set true, the pre-1.1.1 behavior for matching group CNs will be used. This is only needed in some upgrade scenarios for backwards compatibility. It is enabled by default if the config is upgraded but disabled by default on new configurations. + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + usePre111GroupCnBehavior?: boolean; + /** + * If true, use the Active Directory tokenGroups constructed attribute of the user to find the group memberships. This will find all security groups including nested ones. + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + useTokenGroups?: boolean; + /** + * Attribute used for users (default: cn) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + userattr?: string; + /** + * LDAP domain to use for users (eg: ou=People,dc=example,dc=org) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + userdn?: string; + /** + * Go template for LDAP user search filer (optional) The template can access the following context variables: UserAttr, Username Default: ({{.UserAttr}}={{.Username}}) + * @type {string} + * @memberof KerberosConfigureLdapRequest + */ + userfilter?: string; + /** + * If true, sets the alias name to the username + * @type {boolean} + * @memberof KerberosConfigureLdapRequest + */ + usernameAsAlias?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum KerberosConfigureLdapRequestDereferenceAliasesEnum { + NEVER = 'never', + FINDING = 'finding', + SEARCHING = 'searching', + ALWAYS = 'always', +} +/** + * @export + * @enum {string} + */ +export enum KerberosConfigureLdapRequestTlsMaxVersionEnum { + TLS10 = 'tls10', + TLS11 = 'tls11', + TLS12 = 'tls12', + TLS13 = 'tls13', +} +/** + * @export + * @enum {string} + */ +export enum KerberosConfigureLdapRequestTlsMinVersionEnum { + TLS10 = 'tls10', + TLS11 = 'tls11', + TLS12 = 'tls12', + TLS13 = 'tls13', +} + +/** + * Check if a given object implements the KerberosConfigureLdapRequest interface. + */ +export function instanceOfKerberosConfigureLdapRequest(value: object): value is KerberosConfigureLdapRequest { + return true; +} + +export function KerberosConfigureLdapRequestFromJSON(json: any): KerberosConfigureLdapRequest { + return KerberosConfigureLdapRequestFromJSONTyped(json, false); +} + +export function KerberosConfigureLdapRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KerberosConfigureLdapRequest { + if (json == null) { + return json; + } + return { + anonymousGroupSearch: json['anonymous_group_search'] == null ? undefined : json['anonymous_group_search'], + binddn: json['binddn'] == null ? undefined : json['binddn'], + bindpass: json['bindpass'] == null ? undefined : json['bindpass'], + caseSensitiveNames: json['case_sensitive_names'] == null ? undefined : json['case_sensitive_names'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + clientTlsCert: json['client_tls_cert'] == null ? undefined : json['client_tls_cert'], + clientTlsKey: json['client_tls_key'] == null ? undefined : json['client_tls_key'], + connectionTimeout: json['connection_timeout'] == null ? undefined : json['connection_timeout'], + denyNullBind: json['deny_null_bind'] == null ? undefined : json['deny_null_bind'], + dereferenceAliases: json['dereference_aliases'] == null ? undefined : json['dereference_aliases'], + discoverdn: json['discoverdn'] == null ? undefined : json['discoverdn'], + enableSamaccountnameLogin: + json['enable_samaccountname_login'] == null ? undefined : json['enable_samaccountname_login'], + groupattr: json['groupattr'] == null ? undefined : json['groupattr'], + groupdn: json['groupdn'] == null ? undefined : json['groupdn'], + groupfilter: json['groupfilter'] == null ? undefined : json['groupfilter'], + insecureTls: json['insecure_tls'] == null ? undefined : json['insecure_tls'], + maxPageSize: json['max_page_size'] == null ? undefined : json['max_page_size'], + requestTimeout: json['request_timeout'] == null ? undefined : json['request_timeout'], + starttls: json['starttls'] == null ? undefined : json['starttls'], + tlsMaxVersion: json['tls_max_version'] == null ? undefined : json['tls_max_version'], + tlsMinVersion: json['tls_min_version'] == null ? undefined : json['tls_min_version'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + upndomain: json['upndomain'] == null ? undefined : json['upndomain'], + url: json['url'] == null ? undefined : json['url'], + usePre111GroupCnBehavior: + json['use_pre111_group_cn_behavior'] == null ? undefined : json['use_pre111_group_cn_behavior'], + useTokenGroups: json['use_token_groups'] == null ? undefined : json['use_token_groups'], + userattr: json['userattr'] == null ? undefined : json['userattr'], + userdn: json['userdn'] == null ? undefined : json['userdn'], + userfilter: json['userfilter'] == null ? undefined : json['userfilter'], + usernameAsAlias: json['username_as_alias'] == null ? undefined : json['username_as_alias'], + }; +} + +export function KerberosConfigureLdapRequestToJSON(json: any): KerberosConfigureLdapRequest { + return KerberosConfigureLdapRequestToJSONTyped(json, false); +} + +export function KerberosConfigureLdapRequestToJSONTyped( + value?: KerberosConfigureLdapRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + anonymous_group_search: value['anonymousGroupSearch'], + binddn: value['binddn'], + bindpass: value['bindpass'], + case_sensitive_names: value['caseSensitiveNames'], + certificate: value['certificate'], + client_tls_cert: value['clientTlsCert'], + client_tls_key: value['clientTlsKey'], + connection_timeout: value['connectionTimeout'], + deny_null_bind: value['denyNullBind'], + dereference_aliases: value['dereferenceAliases'], + discoverdn: value['discoverdn'], + enable_samaccountname_login: value['enableSamaccountnameLogin'], + groupattr: value['groupattr'], + groupdn: value['groupdn'], + groupfilter: value['groupfilter'], + insecure_tls: value['insecureTls'], + max_page_size: value['maxPageSize'], + request_timeout: value['requestTimeout'], + starttls: value['starttls'], + tls_max_version: value['tlsMaxVersion'], + tls_min_version: value['tlsMinVersion'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + upndomain: value['upndomain'], + url: value['url'], + use_pre111_group_cn_behavior: value['usePre111GroupCnBehavior'], + use_token_groups: value['useTokenGroups'], + userattr: value['userattr'], + userdn: value['userdn'], + userfilter: value['userfilter'], + username_as_alias: value['usernameAsAlias'], + }; +} diff --git a/ui/api-client/src/models/KerberosConfigureRequest.ts b/ui/api-client/src/models/KerberosConfigureRequest.ts new file mode 100644 index 0000000000..696579ff13 --- /dev/null +++ b/ui/api-client/src/models/KerberosConfigureRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KerberosConfigureRequest + */ +export interface KerberosConfigureRequest { + /** + * If set to true, returns any groups found in LDAP as a group alias. + * @type {boolean} + * @memberof KerberosConfigureRequest + */ + addGroupAliases?: boolean; + /** + * Base64 encoded keytab + * @type {string} + * @memberof KerberosConfigureRequest + */ + keytab?: string; + /** + * Remove instance/FQDN from keytab principal names. + * @type {boolean} + * @memberof KerberosConfigureRequest + */ + removeInstanceName?: boolean; + /** + * Service Account + * @type {string} + * @memberof KerberosConfigureRequest + */ + serviceAccount?: string; +} + +/** + * Check if a given object implements the KerberosConfigureRequest interface. + */ +export function instanceOfKerberosConfigureRequest(value: object): value is KerberosConfigureRequest { + return true; +} + +export function KerberosConfigureRequestFromJSON(json: any): KerberosConfigureRequest { + return KerberosConfigureRequestFromJSONTyped(json, false); +} + +export function KerberosConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KerberosConfigureRequest { + if (json == null) { + return json; + } + return { + addGroupAliases: json['add_group_aliases'] == null ? undefined : json['add_group_aliases'], + keytab: json['keytab'] == null ? undefined : json['keytab'], + removeInstanceName: json['remove_instance_name'] == null ? undefined : json['remove_instance_name'], + serviceAccount: json['service_account'] == null ? undefined : json['service_account'], + }; +} + +export function KerberosConfigureRequestToJSON(json: any): KerberosConfigureRequest { + return KerberosConfigureRequestToJSONTyped(json, false); +} + +export function KerberosConfigureRequestToJSONTyped( + value?: KerberosConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + add_group_aliases: value['addGroupAliases'], + keytab: value['keytab'], + remove_instance_name: value['removeInstanceName'], + service_account: value['serviceAccount'], + }; +} diff --git a/ui/api-client/src/models/KerberosLoginRequest.ts b/ui/api-client/src/models/KerberosLoginRequest.ts new file mode 100644 index 0000000000..5dbabc60d7 --- /dev/null +++ b/ui/api-client/src/models/KerberosLoginRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KerberosLoginRequest + */ +export interface KerberosLoginRequest { + /** + * SPNEGO Authorization header. Required. + * @type {string} + * @memberof KerberosLoginRequest + */ + authorization?: string; +} + +/** + * Check if a given object implements the KerberosLoginRequest interface. + */ +export function instanceOfKerberosLoginRequest(value: object): value is KerberosLoginRequest { + return true; +} + +export function KerberosLoginRequestFromJSON(json: any): KerberosLoginRequest { + return KerberosLoginRequestFromJSONTyped(json, false); +} + +export function KerberosLoginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KerberosLoginRequest { + if (json == null) { + return json; + } + return { + authorization: json['authorization'] == null ? undefined : json['authorization'], + }; +} + +export function KerberosLoginRequestToJSON(json: any): KerberosLoginRequest { + return KerberosLoginRequestToJSONTyped(json, false); +} + +export function KerberosLoginRequestToJSONTyped( + value?: KerberosLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + authorization: value['authorization'], + }; +} diff --git a/ui/api-client/src/models/KerberosWriteGroupRequest.ts b/ui/api-client/src/models/KerberosWriteGroupRequest.ts new file mode 100644 index 0000000000..59042ba87f --- /dev/null +++ b/ui/api-client/src/models/KerberosWriteGroupRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KerberosWriteGroupRequest + */ +export interface KerberosWriteGroupRequest { + /** + * Comma-separated list of policies associated to the group. + * @type {Array} + * @memberof KerberosWriteGroupRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the KerberosWriteGroupRequest interface. + */ +export function instanceOfKerberosWriteGroupRequest(value: object): value is KerberosWriteGroupRequest { + return true; +} + +export function KerberosWriteGroupRequestFromJSON(json: any): KerberosWriteGroupRequest { + return KerberosWriteGroupRequestFromJSONTyped(json, false); +} + +export function KerberosWriteGroupRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KerberosWriteGroupRequest { + if (json == null) { + return json; + } + return { + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function KerberosWriteGroupRequestToJSON(json: any): KerberosWriteGroupRequest { + return KerberosWriteGroupRequestToJSONTyped(json, false); +} + +export function KerberosWriteGroupRequestToJSONTyped( + value?: KerberosWriteGroupRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/KubernetesConfigureAuthRequest.ts b/ui/api-client/src/models/KubernetesConfigureAuthRequest.ts new file mode 100644 index 0000000000..62cab66a81 --- /dev/null +++ b/ui/api-client/src/models/KubernetesConfigureAuthRequest.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KubernetesConfigureAuthRequest + */ +export interface KubernetesConfigureAuthRequest { + /** + * Disable JWT issuer validation (Deprecated, will be removed in a future release) + * @type {boolean} + * @memberof KubernetesConfigureAuthRequest + * @deprecated + */ + disableIssValidation?: boolean; + /** + * Disable defaulting to the local CA cert and service account JWT when running in a Kubernetes pod + * @type {boolean} + * @memberof KubernetesConfigureAuthRequest + */ + disableLocalCaJwt?: boolean; + /** + * Optional JWT issuer. If no issuer is specified, then this plugin will use kubernetes.io/serviceaccount as the default issuer. (Deprecated, will be removed in a future release) + * @type {string} + * @memberof KubernetesConfigureAuthRequest + * @deprecated + */ + issuer?: string; + /** + * Optional PEM encoded CA cert for use by the TLS client used to talk with the API. If it is not set and disable_local_ca_jwt is true, the system's trusted CA certificate pool will be used. + * @type {string} + * @memberof KubernetesConfigureAuthRequest + */ + kubernetesCaCert?: string; + /** + * Host must be a host string, a host:port pair, or a URL to the base of the Kubernetes API server. + * @type {string} + * @memberof KubernetesConfigureAuthRequest + */ + kubernetesHost?: string; + /** + * Optional list of PEM-formated public keys or certificates used to verify the signatures of kubernetes service account JWTs. If a certificate is given, its public key will be extracted. Not every installation of Kubernetes exposes these keys. + * @type {Array} + * @memberof KubernetesConfigureAuthRequest + */ + pemKeys?: Array; + /** + * A service account JWT (or other token) used as a bearer token to access the TokenReview API to validate other JWTs during login. If not set the JWT used for login will be used to access the API. + * @type {string} + * @memberof KubernetesConfigureAuthRequest + */ + tokenReviewerJwt?: string; + /** + * Use annotations from the client token's associated service account as alias metadata for the Vault entity. Only annotations with the prefix "vault.hashicorp.com/alias-metadata-" will be used. Note that Vault will need permission to read service accounts from the Kubernetes API. + * @type {boolean} + * @memberof KubernetesConfigureAuthRequest + */ + useAnnotationsAsAliasMetadata?: boolean; +} + +/** + * Check if a given object implements the KubernetesConfigureAuthRequest interface. + */ +export function instanceOfKubernetesConfigureAuthRequest( + value: object +): value is KubernetesConfigureAuthRequest { + return true; +} + +export function KubernetesConfigureAuthRequestFromJSON(json: any): KubernetesConfigureAuthRequest { + return KubernetesConfigureAuthRequestFromJSONTyped(json, false); +} + +export function KubernetesConfigureAuthRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KubernetesConfigureAuthRequest { + if (json == null) { + return json; + } + return { + disableIssValidation: json['disable_iss_validation'] == null ? undefined : json['disable_iss_validation'], + disableLocalCaJwt: json['disable_local_ca_jwt'] == null ? undefined : json['disable_local_ca_jwt'], + issuer: json['issuer'] == null ? undefined : json['issuer'], + kubernetesCaCert: json['kubernetes_ca_cert'] == null ? undefined : json['kubernetes_ca_cert'], + kubernetesHost: json['kubernetes_host'] == null ? undefined : json['kubernetes_host'], + pemKeys: json['pem_keys'] == null ? undefined : json['pem_keys'], + tokenReviewerJwt: json['token_reviewer_jwt'] == null ? undefined : json['token_reviewer_jwt'], + useAnnotationsAsAliasMetadata: + json['use_annotations_as_alias_metadata'] == null + ? undefined + : json['use_annotations_as_alias_metadata'], + }; +} + +export function KubernetesConfigureAuthRequestToJSON(json: any): KubernetesConfigureAuthRequest { + return KubernetesConfigureAuthRequestToJSONTyped(json, false); +} + +export function KubernetesConfigureAuthRequestToJSONTyped( + value?: KubernetesConfigureAuthRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_iss_validation: value['disableIssValidation'], + disable_local_ca_jwt: value['disableLocalCaJwt'], + issuer: value['issuer'], + kubernetes_ca_cert: value['kubernetesCaCert'], + kubernetes_host: value['kubernetesHost'], + pem_keys: value['pemKeys'], + token_reviewer_jwt: value['tokenReviewerJwt'], + use_annotations_as_alias_metadata: value['useAnnotationsAsAliasMetadata'], + }; +} diff --git a/ui/api-client/src/models/KubernetesConfigureRequest.ts b/ui/api-client/src/models/KubernetesConfigureRequest.ts new file mode 100644 index 0000000000..451217f71c --- /dev/null +++ b/ui/api-client/src/models/KubernetesConfigureRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KubernetesConfigureRequest + */ +export interface KubernetesConfigureRequest { + /** + * Disable defaulting to the local CA certificate and service account JWT when running in a Kubernetes pod. + * @type {boolean} + * @memberof KubernetesConfigureRequest + */ + disableLocalCaJwt?: boolean; + /** + * PEM encoded CA certificate to use to verify the Kubernetes API server certificate. Defaults to the local pod's CA if found. + * @type {string} + * @memberof KubernetesConfigureRequest + */ + kubernetesCaCert?: string; + /** + * Kubernetes API URL to connect to. Defaults to https://$KUBERNETES_SERVICE_HOST:KUBERNETES_SERVICE_PORT if those environment variables are set. + * @type {string} + * @memberof KubernetesConfigureRequest + */ + kubernetesHost?: string; + /** + * The JSON web token of the service account used by the secret engine to manage Kubernetes credentials. Defaults to the local pod's JWT if found. + * @type {string} + * @memberof KubernetesConfigureRequest + */ + serviceAccountJwt?: string; +} + +/** + * Check if a given object implements the KubernetesConfigureRequest interface. + */ +export function instanceOfKubernetesConfigureRequest(value: object): value is KubernetesConfigureRequest { + return true; +} + +export function KubernetesConfigureRequestFromJSON(json: any): KubernetesConfigureRequest { + return KubernetesConfigureRequestFromJSONTyped(json, false); +} + +export function KubernetesConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KubernetesConfigureRequest { + if (json == null) { + return json; + } + return { + disableLocalCaJwt: json['disable_local_ca_jwt'] == null ? undefined : json['disable_local_ca_jwt'], + kubernetesCaCert: json['kubernetes_ca_cert'] == null ? undefined : json['kubernetes_ca_cert'], + kubernetesHost: json['kubernetes_host'] == null ? undefined : json['kubernetes_host'], + serviceAccountJwt: json['service_account_jwt'] == null ? undefined : json['service_account_jwt'], + }; +} + +export function KubernetesConfigureRequestToJSON(json: any): KubernetesConfigureRequest { + return KubernetesConfigureRequestToJSONTyped(json, false); +} + +export function KubernetesConfigureRequestToJSONTyped( + value?: KubernetesConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_local_ca_jwt: value['disableLocalCaJwt'], + kubernetes_ca_cert: value['kubernetesCaCert'], + kubernetes_host: value['kubernetesHost'], + service_account_jwt: value['serviceAccountJwt'], + }; +} diff --git a/ui/api-client/src/models/KubernetesGenerateCredentialsRequest.ts b/ui/api-client/src/models/KubernetesGenerateCredentialsRequest.ts new file mode 100644 index 0000000000..c3fefdbdd6 --- /dev/null +++ b/ui/api-client/src/models/KubernetesGenerateCredentialsRequest.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KubernetesGenerateCredentialsRequest + */ +export interface KubernetesGenerateCredentialsRequest { + /** + * The intended audiences of the generated credentials + * @type {Array} + * @memberof KubernetesGenerateCredentialsRequest + */ + audiences?: Array; + /** + * If true, generate a ClusterRoleBinding to grant permissions across the whole cluster instead of within a namespace. Requires the Vault role to have kubernetes_role_type set to ClusterRole. + * @type {boolean} + * @memberof KubernetesGenerateCredentialsRequest + */ + clusterRoleBinding?: boolean; + /** + * The name of the Kubernetes namespace in which to generate the credentials + * @type {string} + * @memberof KubernetesGenerateCredentialsRequest + */ + kubernetesNamespace: string; + /** + * The TTL of the generated credentials + * @type {string} + * @memberof KubernetesGenerateCredentialsRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the KubernetesGenerateCredentialsRequest interface. + */ +export function instanceOfKubernetesGenerateCredentialsRequest( + value: object +): value is KubernetesGenerateCredentialsRequest { + if (!('kubernetesNamespace' in value) || value['kubernetesNamespace'] === undefined) return false; + return true; +} + +export function KubernetesGenerateCredentialsRequestFromJSON( + json: any +): KubernetesGenerateCredentialsRequest { + return KubernetesGenerateCredentialsRequestFromJSONTyped(json, false); +} + +export function KubernetesGenerateCredentialsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KubernetesGenerateCredentialsRequest { + if (json == null) { + return json; + } + return { + audiences: json['audiences'] == null ? undefined : json['audiences'], + clusterRoleBinding: json['cluster_role_binding'] == null ? undefined : json['cluster_role_binding'], + kubernetesNamespace: json['kubernetes_namespace'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function KubernetesGenerateCredentialsRequestToJSON(json: any): KubernetesGenerateCredentialsRequest { + return KubernetesGenerateCredentialsRequestToJSONTyped(json, false); +} + +export function KubernetesGenerateCredentialsRequestToJSONTyped( + value?: KubernetesGenerateCredentialsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + audiences: value['audiences'], + cluster_role_binding: value['clusterRoleBinding'], + kubernetes_namespace: value['kubernetesNamespace'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/KubernetesLoginRequest.ts b/ui/api-client/src/models/KubernetesLoginRequest.ts new file mode 100644 index 0000000000..0e69a0fc90 --- /dev/null +++ b/ui/api-client/src/models/KubernetesLoginRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KubernetesLoginRequest + */ +export interface KubernetesLoginRequest { + /** + * A signed JWT for authenticating a service account. This field is required. + * @type {string} + * @memberof KubernetesLoginRequest + */ + jwt?: string; + /** + * Name of the role against which the login is being attempted. This field is required + * @type {string} + * @memberof KubernetesLoginRequest + */ + role?: string; +} + +/** + * Check if a given object implements the KubernetesLoginRequest interface. + */ +export function instanceOfKubernetesLoginRequest(value: object): value is KubernetesLoginRequest { + return true; +} + +export function KubernetesLoginRequestFromJSON(json: any): KubernetesLoginRequest { + return KubernetesLoginRequestFromJSONTyped(json, false); +} + +export function KubernetesLoginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KubernetesLoginRequest { + if (json == null) { + return json; + } + return { + jwt: json['jwt'] == null ? undefined : json['jwt'], + role: json['role'] == null ? undefined : json['role'], + }; +} + +export function KubernetesLoginRequestToJSON(json: any): KubernetesLoginRequest { + return KubernetesLoginRequestToJSONTyped(json, false); +} + +export function KubernetesLoginRequestToJSONTyped( + value?: KubernetesLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + jwt: value['jwt'], + role: value['role'], + }; +} diff --git a/ui/api-client/src/models/KubernetesWriteAuthRoleRequest.ts b/ui/api-client/src/models/KubernetesWriteAuthRoleRequest.ts new file mode 100644 index 0000000000..1014d0ce6e --- /dev/null +++ b/ui/api-client/src/models/KubernetesWriteAuthRoleRequest.ts @@ -0,0 +1,234 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KubernetesWriteAuthRoleRequest + */ +export interface KubernetesWriteAuthRoleRequest { + /** + * Source to use when deriving the Alias name. valid choices: "serviceaccount_uid" : e.g. 474b11b5-0f20-4f9d-8ca5-65715ab325e0 (most secure choice) "serviceaccount_name" : / e.g. vault/vault-agent default: "serviceaccount_uid" + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + aliasNameSource?: string; + /** + * Optional Audience claim to verify in the jwt. + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + audience?: string; + /** + * Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. + * @type {Array} + * @memberof KubernetesWriteAuthRoleRequest + * @deprecated + */ + boundCidrs?: Array; + /** + * List of service account names able to access this role. If set to "*" all names are allowed. + * @type {Array} + * @memberof KubernetesWriteAuthRoleRequest + */ + boundServiceAccountNames?: Array; + /** + * A label selector for Kubernetes namespaces which are allowed to access this role. Accepts either a JSON or YAML object. If set with bound_service_account_namespaces, the conditions are ORed. + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + boundServiceAccountNamespaceSelector?: string; + /** + * List of namespaces allowed to access this role. If set to "*" all namespaces are allowed. + * @type {Array} + * @memberof KubernetesWriteAuthRoleRequest + */ + boundServiceAccountNamespaces?: Array; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + * @deprecated + */ + maxTtl?: string; + /** + * Use "token_num_uses" instead. If this and "token_num_uses" are both specified, only "token_num_uses" will be used. + * @type {number} + * @memberof KubernetesWriteAuthRoleRequest + * @deprecated + */ + numUses?: number; + /** + * Use "token_period" instead. If this and "token_period" are both specified, only "token_period" will be used. + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + * @deprecated + */ + period?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof KubernetesWriteAuthRoleRequest + * @deprecated + */ + policies?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof KubernetesWriteAuthRoleRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the KubernetesWriteAuthRoleRequest interface. + */ +export function instanceOfKubernetesWriteAuthRoleRequest( + value: object +): value is KubernetesWriteAuthRoleRequest { + return true; +} + +export function KubernetesWriteAuthRoleRequestFromJSON(json: any): KubernetesWriteAuthRoleRequest { + return KubernetesWriteAuthRoleRequestFromJSONTyped(json, false); +} + +export function KubernetesWriteAuthRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KubernetesWriteAuthRoleRequest { + if (json == null) { + return json; + } + return { + aliasNameSource: json['alias_name_source'] == null ? undefined : json['alias_name_source'], + audience: json['audience'] == null ? undefined : json['audience'], + boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'], + boundServiceAccountNames: + json['bound_service_account_names'] == null ? undefined : json['bound_service_account_names'], + boundServiceAccountNamespaceSelector: + json['bound_service_account_namespace_selector'] == null + ? undefined + : json['bound_service_account_namespace_selector'], + boundServiceAccountNamespaces: + json['bound_service_account_namespaces'] == null ? undefined : json['bound_service_account_namespaces'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function KubernetesWriteAuthRoleRequestToJSON(json: any): KubernetesWriteAuthRoleRequest { + return KubernetesWriteAuthRoleRequestToJSONTyped(json, false); +} + +export function KubernetesWriteAuthRoleRequestToJSONTyped( + value?: KubernetesWriteAuthRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alias_name_source: value['aliasNameSource'], + audience: value['audience'], + bound_cidrs: value['boundCidrs'], + bound_service_account_names: value['boundServiceAccountNames'], + bound_service_account_namespace_selector: value['boundServiceAccountNamespaceSelector'], + bound_service_account_namespaces: value['boundServiceAccountNamespaces'], + max_ttl: value['maxTtl'], + num_uses: value['numUses'], + period: value['period'], + policies: value['policies'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/KubernetesWriteRoleRequest.ts b/ui/api-client/src/models/KubernetesWriteRoleRequest.ts new file mode 100644 index 0000000000..a130eafd7e --- /dev/null +++ b/ui/api-client/src/models/KubernetesWriteRoleRequest.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KubernetesWriteRoleRequest + */ +export interface KubernetesWriteRoleRequest { + /** + * A label selector for Kubernetes namespaces in which credentials can be generated. Accepts either a JSON or YAML object. If set with allowed_kubernetes_namespaces, the conditions are conjuncted. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + allowedKubernetesNamespaceSelector?: string; + /** + * A list of the Kubernetes namespaces in which credentials can be generated. If set to "*" all namespaces are allowed. + * @type {Array} + * @memberof KubernetesWriteRoleRequest + */ + allowedKubernetesNamespaces?: Array; + /** + * Additional annotations to apply to all generated Kubernetes objects. + * @type {object} + * @memberof KubernetesWriteRoleRequest + */ + extraAnnotations?: object; + /** + * Additional labels to apply to all generated Kubernetes objects. + * @type {object} + * @memberof KubernetesWriteRoleRequest + */ + extraLabels?: object; + /** + * The Role or ClusterRole rules to use when generating a role. Accepts either a JSON or YAML object. If set, the entire chain of Kubernetes objects will be generated. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + generatedRoleRules?: string; + /** + * The pre-existing Role or ClusterRole to bind a generated service account to. If set, Kubernetes token, service account, and role binding objects will be created. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + kubernetesRoleName?: string; + /** + * Specifies whether the Kubernetes role is a Role or ClusterRole. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + kubernetesRoleType?: string; + /** + * The name template to use when generating service accounts, roles and role bindings. If unset, a default template is used. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + nameTemplate?: string; + /** + * The pre-existing service account to generate tokens for. Mutually exclusive with all role parameters. If set, only a Kubernetes service account token will be created. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + serviceAccountName?: string; + /** + * The default audiences for generated Kubernetes service account tokens. If not set or set to "", will use k8s cluster default. + * @type {Array} + * @memberof KubernetesWriteRoleRequest + */ + tokenDefaultAudiences?: Array; + /** + * The default ttl for generated Kubernetes service account tokens. If not set or set to 0, will use system default. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + tokenDefaultTtl?: string; + /** + * The maximum ttl for generated Kubernetes service account tokens. If not set or set to 0, will use system default. + * @type {string} + * @memberof KubernetesWriteRoleRequest + */ + tokenMaxTtl?: string; +} + +/** + * Check if a given object implements the KubernetesWriteRoleRequest interface. + */ +export function instanceOfKubernetesWriteRoleRequest(value: object): value is KubernetesWriteRoleRequest { + return true; +} + +export function KubernetesWriteRoleRequestFromJSON(json: any): KubernetesWriteRoleRequest { + return KubernetesWriteRoleRequestFromJSONTyped(json, false); +} + +export function KubernetesWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KubernetesWriteRoleRequest { + if (json == null) { + return json; + } + return { + allowedKubernetesNamespaceSelector: + json['allowed_kubernetes_namespace_selector'] == null + ? undefined + : json['allowed_kubernetes_namespace_selector'], + allowedKubernetesNamespaces: + json['allowed_kubernetes_namespaces'] == null ? undefined : json['allowed_kubernetes_namespaces'], + extraAnnotations: json['extra_annotations'] == null ? undefined : json['extra_annotations'], + extraLabels: json['extra_labels'] == null ? undefined : json['extra_labels'], + generatedRoleRules: json['generated_role_rules'] == null ? undefined : json['generated_role_rules'], + kubernetesRoleName: json['kubernetes_role_name'] == null ? undefined : json['kubernetes_role_name'], + kubernetesRoleType: json['kubernetes_role_type'] == null ? undefined : json['kubernetes_role_type'], + nameTemplate: json['name_template'] == null ? undefined : json['name_template'], + serviceAccountName: json['service_account_name'] == null ? undefined : json['service_account_name'], + tokenDefaultAudiences: + json['token_default_audiences'] == null ? undefined : json['token_default_audiences'], + tokenDefaultTtl: json['token_default_ttl'] == null ? undefined : json['token_default_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + }; +} + +export function KubernetesWriteRoleRequestToJSON(json: any): KubernetesWriteRoleRequest { + return KubernetesWriteRoleRequestToJSONTyped(json, false); +} + +export function KubernetesWriteRoleRequestToJSONTyped( + value?: KubernetesWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_kubernetes_namespace_selector: value['allowedKubernetesNamespaceSelector'], + allowed_kubernetes_namespaces: value['allowedKubernetesNamespaces'], + extra_annotations: value['extraAnnotations'], + extra_labels: value['extraLabels'], + generated_role_rules: value['generatedRoleRules'], + kubernetes_role_name: value['kubernetesRoleName'], + kubernetes_role_type: value['kubernetesRoleType'], + name_template: value['nameTemplate'], + service_account_name: value['serviceAccountName'], + token_default_audiences: value['tokenDefaultAudiences'], + token_default_ttl: value['tokenDefaultTtl'], + token_max_ttl: value['tokenMaxTtl'], + }; +} diff --git a/ui/api-client/src/models/KvV2ConfigureRequest.ts b/ui/api-client/src/models/KvV2ConfigureRequest.ts new file mode 100644 index 0000000000..1d30621b9f --- /dev/null +++ b/ui/api-client/src/models/KvV2ConfigureRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2ConfigureRequest + */ +export interface KvV2ConfigureRequest { + /** + * If true, the backend will require the cas parameter to be set for each write + * @type {boolean} + * @memberof KvV2ConfigureRequest + */ + casRequired?: boolean; + /** + * If set, the length of time before a version is deleted. A negative duration disables the use of delete_version_after on all keys. A zero duration clears the current setting. Accepts a Go duration format string. + * @type {string} + * @memberof KvV2ConfigureRequest + */ + deleteVersionAfter?: string; + /** + * The number of versions to keep for each key. Defaults to 10 + * @type {number} + * @memberof KvV2ConfigureRequest + */ + maxVersions?: number; +} + +/** + * Check if a given object implements the KvV2ConfigureRequest interface. + */ +export function instanceOfKvV2ConfigureRequest(value: object): value is KvV2ConfigureRequest { + return true; +} + +export function KvV2ConfigureRequestFromJSON(json: any): KvV2ConfigureRequest { + return KvV2ConfigureRequestFromJSONTyped(json, false); +} + +export function KvV2ConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2ConfigureRequest { + if (json == null) { + return json; + } + return { + casRequired: json['cas_required'] == null ? undefined : json['cas_required'], + deleteVersionAfter: json['delete_version_after'] == null ? undefined : json['delete_version_after'], + maxVersions: json['max_versions'] == null ? undefined : json['max_versions'], + }; +} + +export function KvV2ConfigureRequestToJSON(json: any): KvV2ConfigureRequest { + return KvV2ConfigureRequestToJSONTyped(json, false); +} + +export function KvV2ConfigureRequestToJSONTyped( + value?: KvV2ConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cas_required: value['casRequired'], + delete_version_after: value['deleteVersionAfter'], + max_versions: value['maxVersions'], + }; +} diff --git a/ui/api-client/src/models/KvV2DeleteVersionsRequest.ts b/ui/api-client/src/models/KvV2DeleteVersionsRequest.ts new file mode 100644 index 0000000000..26a0945f50 --- /dev/null +++ b/ui/api-client/src/models/KvV2DeleteVersionsRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2DeleteVersionsRequest + */ +export interface KvV2DeleteVersionsRequest { + /** + * The versions to be archived. The versioned data will not be deleted, but it will no longer be returned in normal get requests. + * @type {Array} + * @memberof KvV2DeleteVersionsRequest + */ + versions?: Array; +} + +/** + * Check if a given object implements the KvV2DeleteVersionsRequest interface. + */ +export function instanceOfKvV2DeleteVersionsRequest(value: object): value is KvV2DeleteVersionsRequest { + return true; +} + +export function KvV2DeleteVersionsRequestFromJSON(json: any): KvV2DeleteVersionsRequest { + return KvV2DeleteVersionsRequestFromJSONTyped(json, false); +} + +export function KvV2DeleteVersionsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2DeleteVersionsRequest { + if (json == null) { + return json; + } + return { + versions: json['versions'] == null ? undefined : json['versions'], + }; +} + +export function KvV2DeleteVersionsRequestToJSON(json: any): KvV2DeleteVersionsRequest { + return KvV2DeleteVersionsRequestToJSONTyped(json, false); +} + +export function KvV2DeleteVersionsRequestToJSONTyped( + value?: KvV2DeleteVersionsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + versions: value['versions'], + }; +} diff --git a/ui/api-client/src/models/KvV2DestroyVersionsRequest.ts b/ui/api-client/src/models/KvV2DestroyVersionsRequest.ts new file mode 100644 index 0000000000..ce8c6ef81d --- /dev/null +++ b/ui/api-client/src/models/KvV2DestroyVersionsRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2DestroyVersionsRequest + */ +export interface KvV2DestroyVersionsRequest { + /** + * The versions to destroy. Their data will be permanently deleted. + * @type {Array} + * @memberof KvV2DestroyVersionsRequest + */ + versions?: Array; +} + +/** + * Check if a given object implements the KvV2DestroyVersionsRequest interface. + */ +export function instanceOfKvV2DestroyVersionsRequest(value: object): value is KvV2DestroyVersionsRequest { + return true; +} + +export function KvV2DestroyVersionsRequestFromJSON(json: any): KvV2DestroyVersionsRequest { + return KvV2DestroyVersionsRequestFromJSONTyped(json, false); +} + +export function KvV2DestroyVersionsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2DestroyVersionsRequest { + if (json == null) { + return json; + } + return { + versions: json['versions'] == null ? undefined : json['versions'], + }; +} + +export function KvV2DestroyVersionsRequestToJSON(json: any): KvV2DestroyVersionsRequest { + return KvV2DestroyVersionsRequestToJSONTyped(json, false); +} + +export function KvV2DestroyVersionsRequestToJSONTyped( + value?: KvV2DestroyVersionsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + versions: value['versions'], + }; +} diff --git a/ui/api-client/src/models/KvV2PatchResponse.ts b/ui/api-client/src/models/KvV2PatchResponse.ts new file mode 100644 index 0000000000..099cecef3c --- /dev/null +++ b/ui/api-client/src/models/KvV2PatchResponse.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2PatchResponse + */ +export interface KvV2PatchResponse { + /** + * + * @type {Date} + * @memberof KvV2PatchResponse + */ + createdTime?: Date; + /** + * + * @type {object} + * @memberof KvV2PatchResponse + */ + customMetadata?: object; + /** + * + * @type {string} + * @memberof KvV2PatchResponse + */ + deletionTime?: string; + /** + * + * @type {boolean} + * @memberof KvV2PatchResponse + */ + destroyed?: boolean; + /** + * + * @type {number} + * @memberof KvV2PatchResponse + */ + version?: number; +} + +/** + * Check if a given object implements the KvV2PatchResponse interface. + */ +export function instanceOfKvV2PatchResponse(value: object): value is KvV2PatchResponse { + return true; +} + +export function KvV2PatchResponseFromJSON(json: any): KvV2PatchResponse { + return KvV2PatchResponseFromJSONTyped(json, false); +} + +export function KvV2PatchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KvV2PatchResponse { + if (json == null) { + return json; + } + return { + createdTime: json['created_time'] == null ? undefined : new Date(json['created_time']), + customMetadata: json['custom_metadata'] == null ? undefined : json['custom_metadata'], + deletionTime: json['deletion_time'] == null ? undefined : json['deletion_time'], + destroyed: json['destroyed'] == null ? undefined : json['destroyed'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function KvV2PatchResponseToJSON(json: any): KvV2PatchResponse { + return KvV2PatchResponseToJSONTyped(json, false); +} + +export function KvV2PatchResponseToJSONTyped( + value?: KvV2PatchResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + created_time: value['createdTime'] == null ? undefined : value['createdTime'].toISOString(), + custom_metadata: value['customMetadata'], + deletion_time: value['deletionTime'], + destroyed: value['destroyed'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/KvV2ReadConfigurationResponse.ts b/ui/api-client/src/models/KvV2ReadConfigurationResponse.ts new file mode 100644 index 0000000000..5f00b2c286 --- /dev/null +++ b/ui/api-client/src/models/KvV2ReadConfigurationResponse.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2ReadConfigurationResponse + */ +export interface KvV2ReadConfigurationResponse { + /** + * If true, the backend will require the cas parameter to be set for each write + * @type {boolean} + * @memberof KvV2ReadConfigurationResponse + */ + casRequired?: boolean; + /** + * The length of time before a version is deleted. + * @type {string} + * @memberof KvV2ReadConfigurationResponse + */ + deleteVersionAfter?: string; + /** + * The number of versions to keep for each key. + * @type {number} + * @memberof KvV2ReadConfigurationResponse + */ + maxVersions?: number; +} + +/** + * Check if a given object implements the KvV2ReadConfigurationResponse interface. + */ +export function instanceOfKvV2ReadConfigurationResponse( + value: object +): value is KvV2ReadConfigurationResponse { + return true; +} + +export function KvV2ReadConfigurationResponseFromJSON(json: any): KvV2ReadConfigurationResponse { + return KvV2ReadConfigurationResponseFromJSONTyped(json, false); +} + +export function KvV2ReadConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2ReadConfigurationResponse { + if (json == null) { + return json; + } + return { + casRequired: json['cas_required'] == null ? undefined : json['cas_required'], + deleteVersionAfter: json['delete_version_after'] == null ? undefined : json['delete_version_after'], + maxVersions: json['max_versions'] == null ? undefined : json['max_versions'], + }; +} + +export function KvV2ReadConfigurationResponseToJSON(json: any): KvV2ReadConfigurationResponse { + return KvV2ReadConfigurationResponseToJSONTyped(json, false); +} + +export function KvV2ReadConfigurationResponseToJSONTyped( + value?: KvV2ReadConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cas_required: value['casRequired'], + delete_version_after: value['deleteVersionAfter'], + max_versions: value['maxVersions'], + }; +} diff --git a/ui/api-client/src/models/KvV2ReadMetadataResponse.ts b/ui/api-client/src/models/KvV2ReadMetadataResponse.ts new file mode 100644 index 0000000000..5762605ccf --- /dev/null +++ b/ui/api-client/src/models/KvV2ReadMetadataResponse.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2ReadMetadataResponse + */ +export interface KvV2ReadMetadataResponse { + /** + * + * @type {boolean} + * @memberof KvV2ReadMetadataResponse + */ + casRequired?: boolean; + /** + * + * @type {Date} + * @memberof KvV2ReadMetadataResponse + */ + createdTime?: Date; + /** + * + * @type {number} + * @memberof KvV2ReadMetadataResponse + */ + currentVersion?: number; + /** + * User-provided key-value pairs that are used to describe arbitrary and version-agnostic information about a secret. + * @type {object} + * @memberof KvV2ReadMetadataResponse + */ + customMetadata?: object; + /** + * The length of time before a version is deleted. + * @type {string} + * @memberof KvV2ReadMetadataResponse + */ + deleteVersionAfter?: string; + /** + * The number of versions to keep + * @type {number} + * @memberof KvV2ReadMetadataResponse + */ + maxVersions?: number; + /** + * + * @type {number} + * @memberof KvV2ReadMetadataResponse + */ + oldestVersion?: number; + /** + * + * @type {Date} + * @memberof KvV2ReadMetadataResponse + */ + updatedTime?: Date; + /** + * + * @type {object} + * @memberof KvV2ReadMetadataResponse + */ + versions?: object; +} + +/** + * Check if a given object implements the KvV2ReadMetadataResponse interface. + */ +export function instanceOfKvV2ReadMetadataResponse(value: object): value is KvV2ReadMetadataResponse { + return true; +} + +export function KvV2ReadMetadataResponseFromJSON(json: any): KvV2ReadMetadataResponse { + return KvV2ReadMetadataResponseFromJSONTyped(json, false); +} + +export function KvV2ReadMetadataResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2ReadMetadataResponse { + if (json == null) { + return json; + } + return { + casRequired: json['cas_required'] == null ? undefined : json['cas_required'], + createdTime: json['created_time'] == null ? undefined : new Date(json['created_time']), + currentVersion: json['current_version'] == null ? undefined : json['current_version'], + customMetadata: json['custom_metadata'] == null ? undefined : json['custom_metadata'], + deleteVersionAfter: json['delete_version_after'] == null ? undefined : json['delete_version_after'], + maxVersions: json['max_versions'] == null ? undefined : json['max_versions'], + oldestVersion: json['oldest_version'] == null ? undefined : json['oldest_version'], + updatedTime: json['updated_time'] == null ? undefined : new Date(json['updated_time']), + versions: json['versions'] == null ? undefined : json['versions'], + }; +} + +export function KvV2ReadMetadataResponseToJSON(json: any): KvV2ReadMetadataResponse { + return KvV2ReadMetadataResponseToJSONTyped(json, false); +} + +export function KvV2ReadMetadataResponseToJSONTyped( + value?: KvV2ReadMetadataResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cas_required: value['casRequired'], + created_time: value['createdTime'] == null ? undefined : value['createdTime'].toISOString(), + current_version: value['currentVersion'], + custom_metadata: value['customMetadata'], + delete_version_after: value['deleteVersionAfter'], + max_versions: value['maxVersions'], + oldest_version: value['oldestVersion'], + updated_time: value['updatedTime'] == null ? undefined : value['updatedTime'].toISOString(), + versions: value['versions'], + }; +} diff --git a/ui/api-client/src/models/KvV2ReadResponse.ts b/ui/api-client/src/models/KvV2ReadResponse.ts new file mode 100644 index 0000000000..e486bd79dd --- /dev/null +++ b/ui/api-client/src/models/KvV2ReadResponse.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2ReadResponse + */ +export interface KvV2ReadResponse { + /** + * + * @type {object} + * @memberof KvV2ReadResponse + */ + data?: object; + /** + * + * @type {object} + * @memberof KvV2ReadResponse + */ + metadata?: object; +} + +/** + * Check if a given object implements the KvV2ReadResponse interface. + */ +export function instanceOfKvV2ReadResponse(value: object): value is KvV2ReadResponse { + return true; +} + +export function KvV2ReadResponseFromJSON(json: any): KvV2ReadResponse { + return KvV2ReadResponseFromJSONTyped(json, false); +} + +export function KvV2ReadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KvV2ReadResponse { + if (json == null) { + return json; + } + return { + data: json['data'] == null ? undefined : json['data'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + }; +} + +export function KvV2ReadResponseToJSON(json: any): KvV2ReadResponse { + return KvV2ReadResponseToJSONTyped(json, false); +} + +export function KvV2ReadResponseToJSONTyped( + value?: KvV2ReadResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + data: value['data'], + metadata: value['metadata'], + }; +} diff --git a/ui/api-client/src/models/KvV2ReadSubkeysResponse.ts b/ui/api-client/src/models/KvV2ReadSubkeysResponse.ts new file mode 100644 index 0000000000..208227bfa0 --- /dev/null +++ b/ui/api-client/src/models/KvV2ReadSubkeysResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2ReadSubkeysResponse + */ +export interface KvV2ReadSubkeysResponse { + /** + * + * @type {object} + * @memberof KvV2ReadSubkeysResponse + */ + metadata?: object; + /** + * + * @type {object} + * @memberof KvV2ReadSubkeysResponse + */ + subkeys?: object; +} + +/** + * Check if a given object implements the KvV2ReadSubkeysResponse interface. + */ +export function instanceOfKvV2ReadSubkeysResponse(value: object): value is KvV2ReadSubkeysResponse { + return true; +} + +export function KvV2ReadSubkeysResponseFromJSON(json: any): KvV2ReadSubkeysResponse { + return KvV2ReadSubkeysResponseFromJSONTyped(json, false); +} + +export function KvV2ReadSubkeysResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2ReadSubkeysResponse { + if (json == null) { + return json; + } + return { + metadata: json['metadata'] == null ? undefined : json['metadata'], + subkeys: json['subkeys'] == null ? undefined : json['subkeys'], + }; +} + +export function KvV2ReadSubkeysResponseToJSON(json: any): KvV2ReadSubkeysResponse { + return KvV2ReadSubkeysResponseToJSONTyped(json, false); +} + +export function KvV2ReadSubkeysResponseToJSONTyped( + value?: KvV2ReadSubkeysResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + metadata: value['metadata'], + subkeys: value['subkeys'], + }; +} diff --git a/ui/api-client/src/models/KvV2UndeleteVersionsRequest.ts b/ui/api-client/src/models/KvV2UndeleteVersionsRequest.ts new file mode 100644 index 0000000000..5bc91fc7a9 --- /dev/null +++ b/ui/api-client/src/models/KvV2UndeleteVersionsRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2UndeleteVersionsRequest + */ +export interface KvV2UndeleteVersionsRequest { + /** + * The versions to unarchive. The versions will be restored and their data will be returned on normal get requests. + * @type {Array} + * @memberof KvV2UndeleteVersionsRequest + */ + versions?: Array; +} + +/** + * Check if a given object implements the KvV2UndeleteVersionsRequest interface. + */ +export function instanceOfKvV2UndeleteVersionsRequest(value: object): value is KvV2UndeleteVersionsRequest { + return true; +} + +export function KvV2UndeleteVersionsRequestFromJSON(json: any): KvV2UndeleteVersionsRequest { + return KvV2UndeleteVersionsRequestFromJSONTyped(json, false); +} + +export function KvV2UndeleteVersionsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2UndeleteVersionsRequest { + if (json == null) { + return json; + } + return { + versions: json['versions'] == null ? undefined : json['versions'], + }; +} + +export function KvV2UndeleteVersionsRequestToJSON(json: any): KvV2UndeleteVersionsRequest { + return KvV2UndeleteVersionsRequestToJSONTyped(json, false); +} + +export function KvV2UndeleteVersionsRequestToJSONTyped( + value?: KvV2UndeleteVersionsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + versions: value['versions'], + }; +} diff --git a/ui/api-client/src/models/KvV2WriteMetadataRequest.ts b/ui/api-client/src/models/KvV2WriteMetadataRequest.ts new file mode 100644 index 0000000000..6bad606868 --- /dev/null +++ b/ui/api-client/src/models/KvV2WriteMetadataRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2WriteMetadataRequest + */ +export interface KvV2WriteMetadataRequest { + /** + * If true the key will require the cas parameter to be set on all write requests. If false, the backend’s configuration will be used. + * @type {boolean} + * @memberof KvV2WriteMetadataRequest + */ + casRequired?: boolean; + /** + * User-provided key-value pairs that are used to describe arbitrary and version-agnostic information about a secret. + * @type {object} + * @memberof KvV2WriteMetadataRequest + */ + customMetadata?: object; + /** + * The length of time before a version is deleted. If not set, the backend's configured delete_version_after is used. Cannot be greater than the backend's delete_version_after. A zero duration clears the current setting. A negative duration will cause an error. + * @type {string} + * @memberof KvV2WriteMetadataRequest + */ + deleteVersionAfter?: string; + /** + * The number of versions to keep. If not set, the backend’s configured max version is used. + * @type {number} + * @memberof KvV2WriteMetadataRequest + */ + maxVersions?: number; +} + +/** + * Check if a given object implements the KvV2WriteMetadataRequest interface. + */ +export function instanceOfKvV2WriteMetadataRequest(value: object): value is KvV2WriteMetadataRequest { + return true; +} + +export function KvV2WriteMetadataRequestFromJSON(json: any): KvV2WriteMetadataRequest { + return KvV2WriteMetadataRequestFromJSONTyped(json, false); +} + +export function KvV2WriteMetadataRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): KvV2WriteMetadataRequest { + if (json == null) { + return json; + } + return { + casRequired: json['cas_required'] == null ? undefined : json['cas_required'], + customMetadata: json['custom_metadata'] == null ? undefined : json['custom_metadata'], + deleteVersionAfter: json['delete_version_after'] == null ? undefined : json['delete_version_after'], + maxVersions: json['max_versions'] == null ? undefined : json['max_versions'], + }; +} + +export function KvV2WriteMetadataRequestToJSON(json: any): KvV2WriteMetadataRequest { + return KvV2WriteMetadataRequestToJSONTyped(json, false); +} + +export function KvV2WriteMetadataRequestToJSONTyped( + value?: KvV2WriteMetadataRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cas_required: value['casRequired'], + custom_metadata: value['customMetadata'], + delete_version_after: value['deleteVersionAfter'], + max_versions: value['maxVersions'], + }; +} diff --git a/ui/api-client/src/models/KvV2WriteRequest.ts b/ui/api-client/src/models/KvV2WriteRequest.ts new file mode 100644 index 0000000000..31efe03e6d --- /dev/null +++ b/ui/api-client/src/models/KvV2WriteRequest.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2WriteRequest + */ +export interface KvV2WriteRequest { + /** + * The contents of the data map will be stored and returned on read. + * @type {object} + * @memberof KvV2WriteRequest + */ + data?: object; + /** + * Options for writing a KV entry. Set the "cas" value to use a Check-And-Set operation. If not set the write will be allowed. If set to 0 a write will only be allowed if the key doesn’t exist. If the index is non-zero the write will only be allowed if the key’s current version matches the version specified in the cas parameter. + * @type {object} + * @memberof KvV2WriteRequest + */ + options?: object; + /** + * If provided during a read, the value at the version number will be returned + * @type {number} + * @memberof KvV2WriteRequest + */ + version?: number; +} + +/** + * Check if a given object implements the KvV2WriteRequest interface. + */ +export function instanceOfKvV2WriteRequest(value: object): value is KvV2WriteRequest { + return true; +} + +export function KvV2WriteRequestFromJSON(json: any): KvV2WriteRequest { + return KvV2WriteRequestFromJSONTyped(json, false); +} + +export function KvV2WriteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KvV2WriteRequest { + if (json == null) { + return json; + } + return { + data: json['data'] == null ? undefined : json['data'], + options: json['options'] == null ? undefined : json['options'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function KvV2WriteRequestToJSON(json: any): KvV2WriteRequest { + return KvV2WriteRequestToJSONTyped(json, false); +} + +export function KvV2WriteRequestToJSONTyped( + value?: KvV2WriteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + data: value['data'], + options: value['options'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/KvV2WriteResponse.ts b/ui/api-client/src/models/KvV2WriteResponse.ts new file mode 100644 index 0000000000..06e260cd30 --- /dev/null +++ b/ui/api-client/src/models/KvV2WriteResponse.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface KvV2WriteResponse + */ +export interface KvV2WriteResponse { + /** + * + * @type {Date} + * @memberof KvV2WriteResponse + */ + createdTime?: Date; + /** + * + * @type {object} + * @memberof KvV2WriteResponse + */ + customMetadata?: object; + /** + * + * @type {string} + * @memberof KvV2WriteResponse + */ + deletionTime?: string; + /** + * + * @type {boolean} + * @memberof KvV2WriteResponse + */ + destroyed?: boolean; + /** + * + * @type {number} + * @memberof KvV2WriteResponse + */ + version?: number; +} + +/** + * Check if a given object implements the KvV2WriteResponse interface. + */ +export function instanceOfKvV2WriteResponse(value: object): value is KvV2WriteResponse { + return true; +} + +export function KvV2WriteResponseFromJSON(json: any): KvV2WriteResponse { + return KvV2WriteResponseFromJSONTyped(json, false); +} + +export function KvV2WriteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KvV2WriteResponse { + if (json == null) { + return json; + } + return { + createdTime: json['created_time'] == null ? undefined : new Date(json['created_time']), + customMetadata: json['custom_metadata'] == null ? undefined : json['custom_metadata'], + deletionTime: json['deletion_time'] == null ? undefined : json['deletion_time'], + destroyed: json['destroyed'] == null ? undefined : json['destroyed'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function KvV2WriteResponseToJSON(json: any): KvV2WriteResponse { + return KvV2WriteResponseToJSONTyped(json, false); +} + +export function KvV2WriteResponseToJSONTyped( + value?: KvV2WriteResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + created_time: value['createdTime'] == null ? undefined : value['createdTime'].toISOString(), + custom_metadata: value['customMetadata'], + deletion_time: value['deletionTime'], + destroyed: value['destroyed'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/LdapConfigureAuthRequest.ts b/ui/api-client/src/models/LdapConfigureAuthRequest.ts new file mode 100644 index 0000000000..710415afb6 --- /dev/null +++ b/ui/api-client/src/models/LdapConfigureAuthRequest.ts @@ -0,0 +1,439 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapConfigureAuthRequest + */ +export interface LdapConfigureAuthRequest { + /** + * Use anonymous binds when performing LDAP group searches (if true the initial credentials will still be used for the initial connection test). + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + anonymousGroupSearch?: boolean; + /** + * LDAP DN for searching for the user DN (optional) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + binddn?: string; + /** + * LDAP password for searching for the user DN (optional) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + bindpass?: string; + /** + * If true, case sensitivity will be used when comparing usernames and groups for matching policies. + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + caseSensitiveNames?: boolean; + /** + * CA certificate to use when verifying LDAP server certificate, must be x509 PEM encoded (optional) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + certificate?: string; + /** + * Client certificate to provide to the LDAP server, must be x509 PEM encoded (optional) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + clientTlsCert?: string; + /** + * Client certificate key to provide to the LDAP server, must be x509 PEM encoded (optional) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + clientTlsKey?: string; + /** + * Timeout, in seconds, when attempting to connect to the LDAP server before trying the next URL in the configuration. + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + connectionTimeout?: string; + /** + * Denies an unauthenticated LDAP bind request if the user's password is empty; defaults to true + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + denyNullBind?: boolean; + /** + * When aliases should be dereferenced on search operations. Accepted values are 'never', 'finding', 'searching', 'always'. Defaults to 'never'. + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + dereferenceAliases?: LdapConfigureAuthRequestDereferenceAliasesEnum; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + disableAutomatedRotation?: boolean; + /** + * Use anonymous bind to discover the bind DN of a user (optional) + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + discoverdn?: boolean; + /** + * If true, matching sAMAccountName attribute values will be allowed to login when upndomain is defined. + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + enableSamaccountnameLogin?: boolean; + /** + * LDAP attribute to follow on objects returned by in order to enumerate user group membership. Examples: "cn" or "memberOf", etc. Default: cn + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + groupattr?: string; + /** + * LDAP search base to use for group membership search (eg: ou=Groups,dc=example,dc=org) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + groupdn?: string; + /** + * Go template for querying group membership of user (optional) The template can access the following context variables: UserDN, Username Example: (&(objectClass=group)(member:1.2.840.113556.1.4.1941:={{.UserDN}})) Default: (|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}})) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + groupfilter?: string; + /** + * Skip LDAP server SSL Certificate verification - VERY insecure (optional) + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + insecureTls?: boolean; + /** + * If set to a value greater than 0, the LDAP backend will use the LDAP server's paged search control to request pages of up to the given size. This can be used to avoid hitting the LDAP server's maximum result size limit. Otherwise, the LDAP backend will not use the paged search control. + * @type {number} + * @memberof LdapConfigureAuthRequest + */ + maxPageSize?: number; + /** + * Password policy to use to rotate the root password + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + passwordPolicy?: string; + /** + * Timeout, in seconds, for the connection when making requests against the server before returning back an error. + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + requestTimeout?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + rotationWindow?: string; + /** + * Issue a StartTLS command after establishing unencrypted connection (optional) + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + starttls?: boolean; + /** + * Maximum TLS version to use. Accepted values are 'tls10', 'tls11', 'tls12' or 'tls13'. Defaults to 'tls12' + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + tlsMaxVersion?: LdapConfigureAuthRequestTlsMaxVersionEnum; + /** + * Minimum TLS version to use. Accepted values are 'tls10', 'tls11', 'tls12' or 'tls13'. Defaults to 'tls12' + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + tlsMinVersion?: LdapConfigureAuthRequestTlsMinVersionEnum; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof LdapConfigureAuthRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof LdapConfigureAuthRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies. This will apply to all tokens generated by this auth method, in addition to any configured for specific users/groups. + * @type {Array} + * @memberof LdapConfigureAuthRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + tokenType?: string; + /** + * Enables userPrincipalDomain login with [username]@UPNDomain (optional) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + upndomain?: string; + /** + * LDAP URL to connect to (default: ldap://127.0.0.1). Multiple URLs can be specified by concatenating them with commas; they will be tried in-order. + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + url?: string; + /** + * In Vault 1.1.1 a fix for handling group CN values of different cases unfortunately introduced a regression that could cause previously defined groups to not be found due to a change in the resulting name. If set true, the pre-1.1.1 behavior for matching group CNs will be used. This is only needed in some upgrade scenarios for backwards compatibility. It is enabled by default if the config is upgraded but disabled by default on new configurations. + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + usePre111GroupCnBehavior?: boolean; + /** + * If true, use the Active Directory tokenGroups constructed attribute of the user to find the group memberships. This will find all security groups including nested ones. + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + useTokenGroups?: boolean; + /** + * Attribute used for users (default: cn) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + userattr?: string; + /** + * LDAP domain to use for users (eg: ou=People,dc=example,dc=org) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + userdn?: string; + /** + * Go template for LDAP user search filer (optional) The template can access the following context variables: UserAttr, Username Default: ({{.UserAttr}}={{.Username}}) + * @type {string} + * @memberof LdapConfigureAuthRequest + */ + userfilter?: string; + /** + * If true, sets the alias name to the username + * @type {boolean} + * @memberof LdapConfigureAuthRequest + */ + usernameAsAlias?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum LdapConfigureAuthRequestDereferenceAliasesEnum { + NEVER = 'never', + FINDING = 'finding', + SEARCHING = 'searching', + ALWAYS = 'always', +} +/** + * @export + * @enum {string} + */ +export enum LdapConfigureAuthRequestTlsMaxVersionEnum { + TLS10 = 'tls10', + TLS11 = 'tls11', + TLS12 = 'tls12', + TLS13 = 'tls13', +} +/** + * @export + * @enum {string} + */ +export enum LdapConfigureAuthRequestTlsMinVersionEnum { + TLS10 = 'tls10', + TLS11 = 'tls11', + TLS12 = 'tls12', + TLS13 = 'tls13', +} + +/** + * Check if a given object implements the LdapConfigureAuthRequest interface. + */ +export function instanceOfLdapConfigureAuthRequest(value: object): value is LdapConfigureAuthRequest { + return true; +} + +export function LdapConfigureAuthRequestFromJSON(json: any): LdapConfigureAuthRequest { + return LdapConfigureAuthRequestFromJSONTyped(json, false); +} + +export function LdapConfigureAuthRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapConfigureAuthRequest { + if (json == null) { + return json; + } + return { + anonymousGroupSearch: json['anonymous_group_search'] == null ? undefined : json['anonymous_group_search'], + binddn: json['binddn'] == null ? undefined : json['binddn'], + bindpass: json['bindpass'] == null ? undefined : json['bindpass'], + caseSensitiveNames: json['case_sensitive_names'] == null ? undefined : json['case_sensitive_names'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + clientTlsCert: json['client_tls_cert'] == null ? undefined : json['client_tls_cert'], + clientTlsKey: json['client_tls_key'] == null ? undefined : json['client_tls_key'], + connectionTimeout: json['connection_timeout'] == null ? undefined : json['connection_timeout'], + denyNullBind: json['deny_null_bind'] == null ? undefined : json['deny_null_bind'], + dereferenceAliases: json['dereference_aliases'] == null ? undefined : json['dereference_aliases'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + discoverdn: json['discoverdn'] == null ? undefined : json['discoverdn'], + enableSamaccountnameLogin: + json['enable_samaccountname_login'] == null ? undefined : json['enable_samaccountname_login'], + groupattr: json['groupattr'] == null ? undefined : json['groupattr'], + groupdn: json['groupdn'] == null ? undefined : json['groupdn'], + groupfilter: json['groupfilter'] == null ? undefined : json['groupfilter'], + insecureTls: json['insecure_tls'] == null ? undefined : json['insecure_tls'], + maxPageSize: json['max_page_size'] == null ? undefined : json['max_page_size'], + passwordPolicy: json['password_policy'] == null ? undefined : json['password_policy'], + requestTimeout: json['request_timeout'] == null ? undefined : json['request_timeout'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + starttls: json['starttls'] == null ? undefined : json['starttls'], + tlsMaxVersion: json['tls_max_version'] == null ? undefined : json['tls_max_version'], + tlsMinVersion: json['tls_min_version'] == null ? undefined : json['tls_min_version'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + upndomain: json['upndomain'] == null ? undefined : json['upndomain'], + url: json['url'] == null ? undefined : json['url'], + usePre111GroupCnBehavior: + json['use_pre111_group_cn_behavior'] == null ? undefined : json['use_pre111_group_cn_behavior'], + useTokenGroups: json['use_token_groups'] == null ? undefined : json['use_token_groups'], + userattr: json['userattr'] == null ? undefined : json['userattr'], + userdn: json['userdn'] == null ? undefined : json['userdn'], + userfilter: json['userfilter'] == null ? undefined : json['userfilter'], + usernameAsAlias: json['username_as_alias'] == null ? undefined : json['username_as_alias'], + }; +} + +export function LdapConfigureAuthRequestToJSON(json: any): LdapConfigureAuthRequest { + return LdapConfigureAuthRequestToJSONTyped(json, false); +} + +export function LdapConfigureAuthRequestToJSONTyped( + value?: LdapConfigureAuthRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + anonymous_group_search: value['anonymousGroupSearch'], + binddn: value['binddn'], + bindpass: value['bindpass'], + case_sensitive_names: value['caseSensitiveNames'], + certificate: value['certificate'], + client_tls_cert: value['clientTlsCert'], + client_tls_key: value['clientTlsKey'], + connection_timeout: value['connectionTimeout'], + deny_null_bind: value['denyNullBind'], + dereference_aliases: value['dereferenceAliases'], + disable_automated_rotation: value['disableAutomatedRotation'], + discoverdn: value['discoverdn'], + enable_samaccountname_login: value['enableSamaccountnameLogin'], + groupattr: value['groupattr'], + groupdn: value['groupdn'], + groupfilter: value['groupfilter'], + insecure_tls: value['insecureTls'], + max_page_size: value['maxPageSize'], + password_policy: value['passwordPolicy'], + request_timeout: value['requestTimeout'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + starttls: value['starttls'], + tls_max_version: value['tlsMaxVersion'], + tls_min_version: value['tlsMinVersion'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + upndomain: value['upndomain'], + url: value['url'], + use_pre111_group_cn_behavior: value['usePre111GroupCnBehavior'], + use_token_groups: value['useTokenGroups'], + userattr: value['userattr'], + userdn: value['userdn'], + userfilter: value['userfilter'], + username_as_alias: value['usernameAsAlias'], + }; +} diff --git a/ui/api-client/src/models/LdapConfigureRequest.ts b/ui/api-client/src/models/LdapConfigureRequest.ts new file mode 100644 index 0000000000..cfb3974ba8 --- /dev/null +++ b/ui/api-client/src/models/LdapConfigureRequest.ts @@ -0,0 +1,408 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapConfigureRequest + */ +export interface LdapConfigureRequest { + /** + * Use anonymous binds when performing LDAP group searches (if true the initial credentials will still be used for the initial connection test). + * @type {boolean} + * @memberof LdapConfigureRequest + */ + anonymousGroupSearch?: boolean; + /** + * LDAP DN for searching for the user DN (optional) + * @type {string} + * @memberof LdapConfigureRequest + */ + binddn?: string; + /** + * LDAP password for searching for the user DN (optional) + * @type {string} + * @memberof LdapConfigureRequest + */ + bindpass?: string; + /** + * If true, case sensitivity will be used when comparing usernames and groups for matching policies. + * @type {boolean} + * @memberof LdapConfigureRequest + */ + caseSensitiveNames?: boolean; + /** + * CA certificate to use when verifying LDAP server certificate, must be x509 PEM encoded (optional) + * @type {string} + * @memberof LdapConfigureRequest + */ + certificate?: string; + /** + * Client certificate to provide to the LDAP server, must be x509 PEM encoded (optional) + * @type {string} + * @memberof LdapConfigureRequest + */ + clientTlsCert?: string; + /** + * Client certificate key to provide to the LDAP server, must be x509 PEM encoded (optional) + * @type {string} + * @memberof LdapConfigureRequest + */ + clientTlsKey?: string; + /** + * Timeout, in seconds, when attempting to connect to the LDAP server before trying the next URL in the configuration. + * @type {string} + * @memberof LdapConfigureRequest + */ + connectionTimeout?: string; + /** + * Denies an unauthenticated LDAP bind request if the user's password is empty; defaults to true + * @type {boolean} + * @memberof LdapConfigureRequest + */ + denyNullBind?: boolean; + /** + * When aliases should be dereferenced on search operations. Accepted values are 'never', 'finding', 'searching', 'always'. Defaults to 'never'. + * @type {string} + * @memberof LdapConfigureRequest + */ + dereferenceAliases?: LdapConfigureRequestDereferenceAliasesEnum; + /** + * If set to true, will deregister all registered rotation jobs from the RotationManager for the plugin. + * @type {boolean} + * @memberof LdapConfigureRequest + */ + disableAutomatedRotation?: boolean; + /** + * Use anonymous bind to discover the bind DN of a user (optional) + * @type {boolean} + * @memberof LdapConfigureRequest + */ + discoverdn?: boolean; + /** + * If true, matching sAMAccountName attribute values will be allowed to login when upndomain is defined. + * @type {boolean} + * @memberof LdapConfigureRequest + */ + enableSamaccountnameLogin?: boolean; + /** + * LDAP attribute to follow on objects returned by in order to enumerate user group membership. Examples: "cn" or "memberOf", etc. Default: cn + * @type {string} + * @memberof LdapConfigureRequest + */ + groupattr?: string; + /** + * LDAP search base to use for group membership search (eg: ou=Groups,dc=example,dc=org) + * @type {string} + * @memberof LdapConfigureRequest + */ + groupdn?: string; + /** + * Go template for querying group membership of user (optional) The template can access the following context variables: UserDN, Username Example: (&(objectClass=group)(member:1.2.840.113556.1.4.1941:={{.UserDN}})) Default: (|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}})) + * @type {string} + * @memberof LdapConfigureRequest + */ + groupfilter?: string; + /** + * Skip LDAP server SSL Certificate verification - VERY insecure (optional) + * @type {boolean} + * @memberof LdapConfigureRequest + */ + insecureTls?: boolean; + /** + * The desired length of passwords that Vault generates. + * @type {number} + * @memberof LdapConfigureRequest + * @deprecated + */ + length?: number; + /** + * If set to a value greater than 0, the LDAP backend will use the LDAP server's paged search control to request pages of up to the given size. This can be used to avoid hitting the LDAP server's maximum result size limit. Otherwise, the LDAP backend will not use the paged search control. + * @type {number} + * @memberof LdapConfigureRequest + */ + maxPageSize?: number; + /** + * The maximum password time-to-live. + * @type {string} + * @memberof LdapConfigureRequest + */ + maxTtl?: string; + /** + * Password policy to use to generate passwords + * @type {string} + * @memberof LdapConfigureRequest + */ + passwordPolicy?: string; + /** + * Timeout, in seconds, for the connection when making requests against the server before returning back an error. + * @type {string} + * @memberof LdapConfigureRequest + */ + requestTimeout?: string; + /** + * TTL for automatic credential rotation of the given username. Mutually exclusive with rotation_schedule + * @type {string} + * @memberof LdapConfigureRequest + */ + rotationPeriod?: string; + /** + * CRON-style string that will define the schedule on which rotations should occur. Mutually exclusive with rotation_period + * @type {string} + * @memberof LdapConfigureRequest + */ + rotationSchedule?: string; + /** + * Specifies the amount of time in which the rotation is allowed to occur starting from a given rotation_schedule + * @type {string} + * @memberof LdapConfigureRequest + */ + rotationWindow?: string; + /** + * The desired LDAP schema used when modifying user account passwords. + * @type {string} + * @memberof LdapConfigureRequest + */ + schema?: string; + /** + * Whether to skip the 'import' rotation. + * @type {boolean} + * @memberof LdapConfigureRequest + */ + skipStaticRoleImportRotation?: boolean; + /** + * Issue a StartTLS command after establishing unencrypted connection (optional) + * @type {boolean} + * @memberof LdapConfigureRequest + */ + starttls?: boolean; + /** + * Maximum TLS version to use. Accepted values are 'tls10', 'tls11', 'tls12' or 'tls13'. Defaults to 'tls12' + * @type {string} + * @memberof LdapConfigureRequest + */ + tlsMaxVersion?: LdapConfigureRequestTlsMaxVersionEnum; + /** + * Minimum TLS version to use. Accepted values are 'tls10', 'tls11', 'tls12' or 'tls13'. Defaults to 'tls12' + * @type {string} + * @memberof LdapConfigureRequest + */ + tlsMinVersion?: LdapConfigureRequestTlsMinVersionEnum; + /** + * The default password time-to-live. + * @type {string} + * @memberof LdapConfigureRequest + */ + ttl?: string; + /** + * Enables userPrincipalDomain login with [username]@UPNDomain (optional) + * @type {string} + * @memberof LdapConfigureRequest + */ + upndomain?: string; + /** + * LDAP URL to connect to (default: ldap://127.0.0.1). Multiple URLs can be specified by concatenating them with commas; they will be tried in-order. + * @type {string} + * @memberof LdapConfigureRequest + */ + url?: string; + /** + * In Vault 1.1.1 a fix for handling group CN values of different cases unfortunately introduced a regression that could cause previously defined groups to not be found due to a change in the resulting name. If set true, the pre-1.1.1 behavior for matching group CNs will be used. This is only needed in some upgrade scenarios for backwards compatibility. It is enabled by default if the config is upgraded but disabled by default on new configurations. + * @type {boolean} + * @memberof LdapConfigureRequest + */ + usePre111GroupCnBehavior?: boolean; + /** + * If true, use the Active Directory tokenGroups constructed attribute of the user to find the group memberships. This will find all security groups including nested ones. + * @type {boolean} + * @memberof LdapConfigureRequest + */ + useTokenGroups?: boolean; + /** + * Attribute used for users (default: cn) + * @type {string} + * @memberof LdapConfigureRequest + */ + userattr?: string; + /** + * LDAP domain to use for users (eg: ou=People,dc=example,dc=org) + * @type {string} + * @memberof LdapConfigureRequest + */ + userdn?: string; + /** + * Go template for LDAP user search filer (optional) The template can access the following context variables: UserAttr, Username Default: ({{.UserAttr}}={{.Username}}) + * @type {string} + * @memberof LdapConfigureRequest + */ + userfilter?: string; + /** + * If true, sets the alias name to the username + * @type {boolean} + * @memberof LdapConfigureRequest + */ + usernameAsAlias?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum LdapConfigureRequestDereferenceAliasesEnum { + NEVER = 'never', + FINDING = 'finding', + SEARCHING = 'searching', + ALWAYS = 'always', +} +/** + * @export + * @enum {string} + */ +export enum LdapConfigureRequestTlsMaxVersionEnum { + TLS10 = 'tls10', + TLS11 = 'tls11', + TLS12 = 'tls12', + TLS13 = 'tls13', +} +/** + * @export + * @enum {string} + */ +export enum LdapConfigureRequestTlsMinVersionEnum { + TLS10 = 'tls10', + TLS11 = 'tls11', + TLS12 = 'tls12', + TLS13 = 'tls13', +} + +/** + * Check if a given object implements the LdapConfigureRequest interface. + */ +export function instanceOfLdapConfigureRequest(value: object): value is LdapConfigureRequest { + return true; +} + +export function LdapConfigureRequestFromJSON(json: any): LdapConfigureRequest { + return LdapConfigureRequestFromJSONTyped(json, false); +} + +export function LdapConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapConfigureRequest { + if (json == null) { + return json; + } + return { + anonymousGroupSearch: json['anonymous_group_search'] == null ? undefined : json['anonymous_group_search'], + binddn: json['binddn'] == null ? undefined : json['binddn'], + bindpass: json['bindpass'] == null ? undefined : json['bindpass'], + caseSensitiveNames: json['case_sensitive_names'] == null ? undefined : json['case_sensitive_names'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + clientTlsCert: json['client_tls_cert'] == null ? undefined : json['client_tls_cert'], + clientTlsKey: json['client_tls_key'] == null ? undefined : json['client_tls_key'], + connectionTimeout: json['connection_timeout'] == null ? undefined : json['connection_timeout'], + denyNullBind: json['deny_null_bind'] == null ? undefined : json['deny_null_bind'], + dereferenceAliases: json['dereference_aliases'] == null ? undefined : json['dereference_aliases'], + disableAutomatedRotation: + json['disable_automated_rotation'] == null ? undefined : json['disable_automated_rotation'], + discoverdn: json['discoverdn'] == null ? undefined : json['discoverdn'], + enableSamaccountnameLogin: + json['enable_samaccountname_login'] == null ? undefined : json['enable_samaccountname_login'], + groupattr: json['groupattr'] == null ? undefined : json['groupattr'], + groupdn: json['groupdn'] == null ? undefined : json['groupdn'], + groupfilter: json['groupfilter'] == null ? undefined : json['groupfilter'], + insecureTls: json['insecure_tls'] == null ? undefined : json['insecure_tls'], + length: json['length'] == null ? undefined : json['length'], + maxPageSize: json['max_page_size'] == null ? undefined : json['max_page_size'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + passwordPolicy: json['password_policy'] == null ? undefined : json['password_policy'], + requestTimeout: json['request_timeout'] == null ? undefined : json['request_timeout'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + rotationSchedule: json['rotation_schedule'] == null ? undefined : json['rotation_schedule'], + rotationWindow: json['rotation_window'] == null ? undefined : json['rotation_window'], + schema: json['schema'] == null ? undefined : json['schema'], + skipStaticRoleImportRotation: + json['skip_static_role_import_rotation'] == null ? undefined : json['skip_static_role_import_rotation'], + starttls: json['starttls'] == null ? undefined : json['starttls'], + tlsMaxVersion: json['tls_max_version'] == null ? undefined : json['tls_max_version'], + tlsMinVersion: json['tls_min_version'] == null ? undefined : json['tls_min_version'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + upndomain: json['upndomain'] == null ? undefined : json['upndomain'], + url: json['url'] == null ? undefined : json['url'], + usePre111GroupCnBehavior: + json['use_pre111_group_cn_behavior'] == null ? undefined : json['use_pre111_group_cn_behavior'], + useTokenGroups: json['use_token_groups'] == null ? undefined : json['use_token_groups'], + userattr: json['userattr'] == null ? undefined : json['userattr'], + userdn: json['userdn'] == null ? undefined : json['userdn'], + userfilter: json['userfilter'] == null ? undefined : json['userfilter'], + usernameAsAlias: json['username_as_alias'] == null ? undefined : json['username_as_alias'], + }; +} + +export function LdapConfigureRequestToJSON(json: any): LdapConfigureRequest { + return LdapConfigureRequestToJSONTyped(json, false); +} + +export function LdapConfigureRequestToJSONTyped( + value?: LdapConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + anonymous_group_search: value['anonymousGroupSearch'], + binddn: value['binddn'], + bindpass: value['bindpass'], + case_sensitive_names: value['caseSensitiveNames'], + certificate: value['certificate'], + client_tls_cert: value['clientTlsCert'], + client_tls_key: value['clientTlsKey'], + connection_timeout: value['connectionTimeout'], + deny_null_bind: value['denyNullBind'], + dereference_aliases: value['dereferenceAliases'], + disable_automated_rotation: value['disableAutomatedRotation'], + discoverdn: value['discoverdn'], + enable_samaccountname_login: value['enableSamaccountnameLogin'], + groupattr: value['groupattr'], + groupdn: value['groupdn'], + groupfilter: value['groupfilter'], + insecure_tls: value['insecureTls'], + length: value['length'], + max_page_size: value['maxPageSize'], + max_ttl: value['maxTtl'], + password_policy: value['passwordPolicy'], + request_timeout: value['requestTimeout'], + rotation_period: value['rotationPeriod'], + rotation_schedule: value['rotationSchedule'], + rotation_window: value['rotationWindow'], + schema: value['schema'], + skip_static_role_import_rotation: value['skipStaticRoleImportRotation'], + starttls: value['starttls'], + tls_max_version: value['tlsMaxVersion'], + tls_min_version: value['tlsMinVersion'], + ttl: value['ttl'], + upndomain: value['upndomain'], + url: value['url'], + use_pre111_group_cn_behavior: value['usePre111GroupCnBehavior'], + use_token_groups: value['useTokenGroups'], + userattr: value['userattr'], + userdn: value['userdn'], + userfilter: value['userfilter'], + username_as_alias: value['usernameAsAlias'], + }; +} diff --git a/ui/api-client/src/models/LdapLibraryCheckInRequest.ts b/ui/api-client/src/models/LdapLibraryCheckInRequest.ts new file mode 100644 index 0000000000..f23f87b996 --- /dev/null +++ b/ui/api-client/src/models/LdapLibraryCheckInRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapLibraryCheckInRequest + */ +export interface LdapLibraryCheckInRequest { + /** + * The username/logon name for the service accounts to check in. + * @type {Array} + * @memberof LdapLibraryCheckInRequest + */ + serviceAccountNames?: Array; +} + +/** + * Check if a given object implements the LdapLibraryCheckInRequest interface. + */ +export function instanceOfLdapLibraryCheckInRequest(value: object): value is LdapLibraryCheckInRequest { + return true; +} + +export function LdapLibraryCheckInRequestFromJSON(json: any): LdapLibraryCheckInRequest { + return LdapLibraryCheckInRequestFromJSONTyped(json, false); +} + +export function LdapLibraryCheckInRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapLibraryCheckInRequest { + if (json == null) { + return json; + } + return { + serviceAccountNames: json['service_account_names'] == null ? undefined : json['service_account_names'], + }; +} + +export function LdapLibraryCheckInRequestToJSON(json: any): LdapLibraryCheckInRequest { + return LdapLibraryCheckInRequestToJSONTyped(json, false); +} + +export function LdapLibraryCheckInRequestToJSONTyped( + value?: LdapLibraryCheckInRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + service_account_names: value['serviceAccountNames'], + }; +} diff --git a/ui/api-client/src/models/LdapLibraryCheckOutRequest.ts b/ui/api-client/src/models/LdapLibraryCheckOutRequest.ts new file mode 100644 index 0000000000..8b4ca66348 --- /dev/null +++ b/ui/api-client/src/models/LdapLibraryCheckOutRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapLibraryCheckOutRequest + */ +export interface LdapLibraryCheckOutRequest { + /** + * The length of time before the check-out will expire, in seconds. + * @type {string} + * @memberof LdapLibraryCheckOutRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the LdapLibraryCheckOutRequest interface. + */ +export function instanceOfLdapLibraryCheckOutRequest(value: object): value is LdapLibraryCheckOutRequest { + return true; +} + +export function LdapLibraryCheckOutRequestFromJSON(json: any): LdapLibraryCheckOutRequest { + return LdapLibraryCheckOutRequestFromJSONTyped(json, false); +} + +export function LdapLibraryCheckOutRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapLibraryCheckOutRequest { + if (json == null) { + return json; + } + return { + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function LdapLibraryCheckOutRequestToJSON(json: any): LdapLibraryCheckOutRequest { + return LdapLibraryCheckOutRequestToJSONTyped(json, false); +} + +export function LdapLibraryCheckOutRequestToJSONTyped( + value?: LdapLibraryCheckOutRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/LdapLibraryConfigureRequest.ts b/ui/api-client/src/models/LdapLibraryConfigureRequest.ts new file mode 100644 index 0000000000..9b9238470f --- /dev/null +++ b/ui/api-client/src/models/LdapLibraryConfigureRequest.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapLibraryConfigureRequest + */ +export interface LdapLibraryConfigureRequest { + /** + * Disable the default behavior of requiring that check-ins are performed by the entity that checked them out. + * @type {boolean} + * @memberof LdapLibraryConfigureRequest + */ + disableCheckInEnforcement?: boolean; + /** + * In seconds, the max amount of time a check-out's renewals should last. Defaults to 24 hours. + * @type {string} + * @memberof LdapLibraryConfigureRequest + */ + maxTtl?: string; + /** + * The username/logon name for the service accounts with which this set will be associated. + * @type {Array} + * @memberof LdapLibraryConfigureRequest + */ + serviceAccountNames?: Array; + /** + * In seconds, the amount of time a check-out should last. Defaults to 24 hours. + * @type {string} + * @memberof LdapLibraryConfigureRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the LdapLibraryConfigureRequest interface. + */ +export function instanceOfLdapLibraryConfigureRequest(value: object): value is LdapLibraryConfigureRequest { + return true; +} + +export function LdapLibraryConfigureRequestFromJSON(json: any): LdapLibraryConfigureRequest { + return LdapLibraryConfigureRequestFromJSONTyped(json, false); +} + +export function LdapLibraryConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapLibraryConfigureRequest { + if (json == null) { + return json; + } + return { + disableCheckInEnforcement: + json['disable_check_in_enforcement'] == null ? undefined : json['disable_check_in_enforcement'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + serviceAccountNames: json['service_account_names'] == null ? undefined : json['service_account_names'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function LdapLibraryConfigureRequestToJSON(json: any): LdapLibraryConfigureRequest { + return LdapLibraryConfigureRequestToJSONTyped(json, false); +} + +export function LdapLibraryConfigureRequestToJSONTyped( + value?: LdapLibraryConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_check_in_enforcement: value['disableCheckInEnforcement'], + max_ttl: value['maxTtl'], + service_account_names: value['serviceAccountNames'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/LdapLibraryForceCheckInRequest.ts b/ui/api-client/src/models/LdapLibraryForceCheckInRequest.ts new file mode 100644 index 0000000000..2d6fa4693d --- /dev/null +++ b/ui/api-client/src/models/LdapLibraryForceCheckInRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapLibraryForceCheckInRequest + */ +export interface LdapLibraryForceCheckInRequest { + /** + * The username/logon name for the service accounts to check in. + * @type {Array} + * @memberof LdapLibraryForceCheckInRequest + */ + serviceAccountNames?: Array; +} + +/** + * Check if a given object implements the LdapLibraryForceCheckInRequest interface. + */ +export function instanceOfLdapLibraryForceCheckInRequest( + value: object +): value is LdapLibraryForceCheckInRequest { + return true; +} + +export function LdapLibraryForceCheckInRequestFromJSON(json: any): LdapLibraryForceCheckInRequest { + return LdapLibraryForceCheckInRequestFromJSONTyped(json, false); +} + +export function LdapLibraryForceCheckInRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapLibraryForceCheckInRequest { + if (json == null) { + return json; + } + return { + serviceAccountNames: json['service_account_names'] == null ? undefined : json['service_account_names'], + }; +} + +export function LdapLibraryForceCheckInRequestToJSON(json: any): LdapLibraryForceCheckInRequest { + return LdapLibraryForceCheckInRequestToJSONTyped(json, false); +} + +export function LdapLibraryForceCheckInRequestToJSONTyped( + value?: LdapLibraryForceCheckInRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + service_account_names: value['serviceAccountNames'], + }; +} diff --git a/ui/api-client/src/models/LdapLoginRequest.ts b/ui/api-client/src/models/LdapLoginRequest.ts new file mode 100644 index 0000000000..108443fa4e --- /dev/null +++ b/ui/api-client/src/models/LdapLoginRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapLoginRequest + */ +export interface LdapLoginRequest { + /** + * Password for this user. + * @type {string} + * @memberof LdapLoginRequest + */ + password?: string; +} + +/** + * Check if a given object implements the LdapLoginRequest interface. + */ +export function instanceOfLdapLoginRequest(value: object): value is LdapLoginRequest { + return true; +} + +export function LdapLoginRequestFromJSON(json: any): LdapLoginRequest { + return LdapLoginRequestFromJSONTyped(json, false); +} + +export function LdapLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LdapLoginRequest { + if (json == null) { + return json; + } + return { + password: json['password'] == null ? undefined : json['password'], + }; +} + +export function LdapLoginRequestToJSON(json: any): LdapLoginRequest { + return LdapLoginRequestToJSONTyped(json, false); +} + +export function LdapLoginRequestToJSONTyped( + value?: LdapLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + password: value['password'], + }; +} diff --git a/ui/api-client/src/models/LdapRotateStaticRoleRequest.ts b/ui/api-client/src/models/LdapRotateStaticRoleRequest.ts new file mode 100644 index 0000000000..a3c028a0df --- /dev/null +++ b/ui/api-client/src/models/LdapRotateStaticRoleRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapRotateStaticRoleRequest + */ +export interface LdapRotateStaticRoleRequest { + /** + * The distinguished name of the entry to manage. + * @type {string} + * @memberof LdapRotateStaticRoleRequest + */ + dn?: string; + /** + * The username/logon name for the entry with which this role will be associated. + * @type {string} + * @memberof LdapRotateStaticRoleRequest + */ + username?: string; +} + +/** + * Check if a given object implements the LdapRotateStaticRoleRequest interface. + */ +export function instanceOfLdapRotateStaticRoleRequest(value: object): value is LdapRotateStaticRoleRequest { + return true; +} + +export function LdapRotateStaticRoleRequestFromJSON(json: any): LdapRotateStaticRoleRequest { + return LdapRotateStaticRoleRequestFromJSONTyped(json, false); +} + +export function LdapRotateStaticRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapRotateStaticRoleRequest { + if (json == null) { + return json; + } + return { + dn: json['dn'] == null ? undefined : json['dn'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function LdapRotateStaticRoleRequestToJSON(json: any): LdapRotateStaticRoleRequest { + return LdapRotateStaticRoleRequestToJSONTyped(json, false); +} + +export function LdapRotateStaticRoleRequestToJSONTyped( + value?: LdapRotateStaticRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dn: value['dn'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/LdapWriteDynamicRoleRequest.ts b/ui/api-client/src/models/LdapWriteDynamicRoleRequest.ts new file mode 100644 index 0000000000..b061de3af9 --- /dev/null +++ b/ui/api-client/src/models/LdapWriteDynamicRoleRequest.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapWriteDynamicRoleRequest + */ +export interface LdapWriteDynamicRoleRequest { + /** + * LDIF string used to create new entities within the LDAP system. This LDIF can be templated. + * @type {string} + * @memberof LdapWriteDynamicRoleRequest + */ + creationLdif: string; + /** + * Default TTL for dynamic credentials + * @type {string} + * @memberof LdapWriteDynamicRoleRequest + */ + defaultTtl?: string; + /** + * LDIF string used to delete entities created within the LDAP system. This LDIF can be templated. + * @type {string} + * @memberof LdapWriteDynamicRoleRequest + */ + deletionLdif: string; + /** + * Max TTL a dynamic credential can be extended to + * @type {string} + * @memberof LdapWriteDynamicRoleRequest + */ + maxTtl?: string; + /** + * LDIF string used to rollback changes in the event of a failure to create credentials. This LDIF can be templated. + * @type {string} + * @memberof LdapWriteDynamicRoleRequest + */ + rollbackLdif?: string; + /** + * The template used to create a username + * @type {string} + * @memberof LdapWriteDynamicRoleRequest + */ + usernameTemplate?: string; +} + +/** + * Check if a given object implements the LdapWriteDynamicRoleRequest interface. + */ +export function instanceOfLdapWriteDynamicRoleRequest(value: object): value is LdapWriteDynamicRoleRequest { + if (!('creationLdif' in value) || value['creationLdif'] === undefined) return false; + if (!('deletionLdif' in value) || value['deletionLdif'] === undefined) return false; + return true; +} + +export function LdapWriteDynamicRoleRequestFromJSON(json: any): LdapWriteDynamicRoleRequest { + return LdapWriteDynamicRoleRequestFromJSONTyped(json, false); +} + +export function LdapWriteDynamicRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapWriteDynamicRoleRequest { + if (json == null) { + return json; + } + return { + creationLdif: json['creation_ldif'], + defaultTtl: json['default_ttl'] == null ? undefined : json['default_ttl'], + deletionLdif: json['deletion_ldif'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + rollbackLdif: json['rollback_ldif'] == null ? undefined : json['rollback_ldif'], + usernameTemplate: json['username_template'] == null ? undefined : json['username_template'], + }; +} + +export function LdapWriteDynamicRoleRequestToJSON(json: any): LdapWriteDynamicRoleRequest { + return LdapWriteDynamicRoleRequestToJSONTyped(json, false); +} + +export function LdapWriteDynamicRoleRequestToJSONTyped( + value?: LdapWriteDynamicRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + creation_ldif: value['creationLdif'], + default_ttl: value['defaultTtl'], + deletion_ldif: value['deletionLdif'], + max_ttl: value['maxTtl'], + rollback_ldif: value['rollbackLdif'], + username_template: value['usernameTemplate'], + }; +} diff --git a/ui/api-client/src/models/LdapWriteGroupRequest.ts b/ui/api-client/src/models/LdapWriteGroupRequest.ts new file mode 100644 index 0000000000..bd7586bc0e --- /dev/null +++ b/ui/api-client/src/models/LdapWriteGroupRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapWriteGroupRequest + */ +export interface LdapWriteGroupRequest { + /** + * Comma-separated list of policies associated to the group. + * @type {Array} + * @memberof LdapWriteGroupRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the LdapWriteGroupRequest interface. + */ +export function instanceOfLdapWriteGroupRequest(value: object): value is LdapWriteGroupRequest { + return true; +} + +export function LdapWriteGroupRequestFromJSON(json: any): LdapWriteGroupRequest { + return LdapWriteGroupRequestFromJSONTyped(json, false); +} + +export function LdapWriteGroupRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapWriteGroupRequest { + if (json == null) { + return json; + } + return { + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function LdapWriteGroupRequestToJSON(json: any): LdapWriteGroupRequest { + return LdapWriteGroupRequestToJSONTyped(json, false); +} + +export function LdapWriteGroupRequestToJSONTyped( + value?: LdapWriteGroupRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/LdapWriteStaticRoleRequest.ts b/ui/api-client/src/models/LdapWriteStaticRoleRequest.ts new file mode 100644 index 0000000000..7d54cb86ad --- /dev/null +++ b/ui/api-client/src/models/LdapWriteStaticRoleRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapWriteStaticRoleRequest + */ +export interface LdapWriteStaticRoleRequest { + /** + * The distinguished name of the entry to manage. + * @type {string} + * @memberof LdapWriteStaticRoleRequest + */ + dn?: string; + /** + * Period for automatic credential rotation of the given entry. + * @type {string} + * @memberof LdapWriteStaticRoleRequest + */ + rotationPeriod?: string; + /** + * Skip the initial pasword rotation on import (has no effect on updates) + * @type {boolean} + * @memberof LdapWriteStaticRoleRequest + */ + skipImportRotation?: boolean; + /** + * The username/logon name for the entry with which this role will be associated. + * @type {string} + * @memberof LdapWriteStaticRoleRequest + */ + username?: string; +} + +/** + * Check if a given object implements the LdapWriteStaticRoleRequest interface. + */ +export function instanceOfLdapWriteStaticRoleRequest(value: object): value is LdapWriteStaticRoleRequest { + return true; +} + +export function LdapWriteStaticRoleRequestFromJSON(json: any): LdapWriteStaticRoleRequest { + return LdapWriteStaticRoleRequestFromJSONTyped(json, false); +} + +export function LdapWriteStaticRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapWriteStaticRoleRequest { + if (json == null) { + return json; + } + return { + dn: json['dn'] == null ? undefined : json['dn'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + skipImportRotation: json['skip_import_rotation'] == null ? undefined : json['skip_import_rotation'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function LdapWriteStaticRoleRequestToJSON(json: any): LdapWriteStaticRoleRequest { + return LdapWriteStaticRoleRequestToJSONTyped(json, false); +} + +export function LdapWriteStaticRoleRequestToJSONTyped( + value?: LdapWriteStaticRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dn: value['dn'], + rotation_period: value['rotationPeriod'], + skip_import_rotation: value['skipImportRotation'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/LdapWriteUserRequest.ts b/ui/api-client/src/models/LdapWriteUserRequest.ts new file mode 100644 index 0000000000..8b71752d8e --- /dev/null +++ b/ui/api-client/src/models/LdapWriteUserRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LdapWriteUserRequest + */ +export interface LdapWriteUserRequest { + /** + * Comma-separated list of additional groups associated with the user. + * @type {Array} + * @memberof LdapWriteUserRequest + */ + groups?: Array; + /** + * Comma-separated list of policies associated with the user. + * @type {Array} + * @memberof LdapWriteUserRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the LdapWriteUserRequest interface. + */ +export function instanceOfLdapWriteUserRequest(value: object): value is LdapWriteUserRequest { + return true; +} + +export function LdapWriteUserRequestFromJSON(json: any): LdapWriteUserRequest { + return LdapWriteUserRequestFromJSONTyped(json, false); +} + +export function LdapWriteUserRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LdapWriteUserRequest { + if (json == null) { + return json; + } + return { + groups: json['groups'] == null ? undefined : json['groups'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function LdapWriteUserRequestToJSON(json: any): LdapWriteUserRequest { + return LdapWriteUserRequestToJSONTyped(json, false); +} + +export function LdapWriteUserRequestToJSONTyped( + value?: LdapWriteUserRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + groups: value['groups'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/LeaderStatusResponse.ts b/ui/api-client/src/models/LeaderStatusResponse.ts new file mode 100644 index 0000000000..cccca3f400 --- /dev/null +++ b/ui/api-client/src/models/LeaderStatusResponse.ts @@ -0,0 +1,143 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeaderStatusResponse + */ +export interface LeaderStatusResponse { + /** + * + * @type {Date} + * @memberof LeaderStatusResponse + */ + activeTime?: Date; + /** + * + * @type {boolean} + * @memberof LeaderStatusResponse + */ + haEnabled?: boolean; + /** + * + * @type {boolean} + * @memberof LeaderStatusResponse + */ + isSelf?: boolean; + /** + * + * @type {number} + * @memberof LeaderStatusResponse + */ + lastWal?: number; + /** + * + * @type {string} + * @memberof LeaderStatusResponse + */ + leaderAddress?: string; + /** + * + * @type {string} + * @memberof LeaderStatusResponse + */ + leaderClusterAddress?: string; + /** + * + * @type {boolean} + * @memberof LeaderStatusResponse + */ + performanceStandby?: boolean; + /** + * + * @type {number} + * @memberof LeaderStatusResponse + */ + performanceStandbyLastRemoteWal?: number; + /** + * + * @type {number} + * @memberof LeaderStatusResponse + */ + raftAppliedIndex?: number; + /** + * + * @type {number} + * @memberof LeaderStatusResponse + */ + raftCommittedIndex?: number; +} + +/** + * Check if a given object implements the LeaderStatusResponse interface. + */ +export function instanceOfLeaderStatusResponse(value: object): value is LeaderStatusResponse { + return true; +} + +export function LeaderStatusResponseFromJSON(json: any): LeaderStatusResponse { + return LeaderStatusResponseFromJSONTyped(json, false); +} + +export function LeaderStatusResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeaderStatusResponse { + if (json == null) { + return json; + } + return { + activeTime: json['active_time'] == null ? undefined : new Date(json['active_time']), + haEnabled: json['ha_enabled'] == null ? undefined : json['ha_enabled'], + isSelf: json['is_self'] == null ? undefined : json['is_self'], + lastWal: json['last_wal'] == null ? undefined : json['last_wal'], + leaderAddress: json['leader_address'] == null ? undefined : json['leader_address'], + leaderClusterAddress: json['leader_cluster_address'] == null ? undefined : json['leader_cluster_address'], + performanceStandby: json['performance_standby'] == null ? undefined : json['performance_standby'], + performanceStandbyLastRemoteWal: + json['performance_standby_last_remote_wal'] == null + ? undefined + : json['performance_standby_last_remote_wal'], + raftAppliedIndex: json['raft_applied_index'] == null ? undefined : json['raft_applied_index'], + raftCommittedIndex: json['raft_committed_index'] == null ? undefined : json['raft_committed_index'], + }; +} + +export function LeaderStatusResponseToJSON(json: any): LeaderStatusResponse { + return LeaderStatusResponseToJSONTyped(json, false); +} + +export function LeaderStatusResponseToJSONTyped( + value?: LeaderStatusResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + active_time: value['activeTime'] == null ? undefined : value['activeTime'].toISOString(), + ha_enabled: value['haEnabled'], + is_self: value['isSelf'], + last_wal: value['lastWal'], + leader_address: value['leaderAddress'], + leader_cluster_address: value['leaderClusterAddress'], + performance_standby: value['performanceStandby'], + performance_standby_last_remote_wal: value['performanceStandbyLastRemoteWal'], + raft_applied_index: value['raftAppliedIndex'], + raft_committed_index: value['raftCommittedIndex'], + }; +} diff --git a/ui/api-client/src/models/LeasesCountResponse.ts b/ui/api-client/src/models/LeasesCountResponse.ts new file mode 100644 index 0000000000..461495526b --- /dev/null +++ b/ui/api-client/src/models/LeasesCountResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesCountResponse + */ +export interface LeasesCountResponse { + /** + * Number of matching leases per mount + * @type {number} + * @memberof LeasesCountResponse + */ + counts?: number; + /** + * Number of matching leases + * @type {number} + * @memberof LeasesCountResponse + */ + leaseCount?: number; +} + +/** + * Check if a given object implements the LeasesCountResponse interface. + */ +export function instanceOfLeasesCountResponse(value: object): value is LeasesCountResponse { + return true; +} + +export function LeasesCountResponseFromJSON(json: any): LeasesCountResponse { + return LeasesCountResponseFromJSONTyped(json, false); +} + +export function LeasesCountResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesCountResponse { + if (json == null) { + return json; + } + return { + counts: json['counts'] == null ? undefined : json['counts'], + leaseCount: json['lease_count'] == null ? undefined : json['lease_count'], + }; +} + +export function LeasesCountResponseToJSON(json: any): LeasesCountResponse { + return LeasesCountResponseToJSONTyped(json, false); +} + +export function LeasesCountResponseToJSONTyped( + value?: LeasesCountResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + counts: value['counts'], + lease_count: value['leaseCount'], + }; +} diff --git a/ui/api-client/src/models/LeasesListResponse.ts b/ui/api-client/src/models/LeasesListResponse.ts new file mode 100644 index 0000000000..033d378ac6 --- /dev/null +++ b/ui/api-client/src/models/LeasesListResponse.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesListResponse + */ +export interface LeasesListResponse { + /** + * Number of matching leases per mount + * @type {number} + * @memberof LeasesListResponse + */ + counts?: number; + /** + * Number of matching leases + * @type {number} + * @memberof LeasesListResponse + */ + leaseCount?: number; +} + +/** + * Check if a given object implements the LeasesListResponse interface. + */ +export function instanceOfLeasesListResponse(value: object): value is LeasesListResponse { + return true; +} + +export function LeasesListResponseFromJSON(json: any): LeasesListResponse { + return LeasesListResponseFromJSONTyped(json, false); +} + +export function LeasesListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeasesListResponse { + if (json == null) { + return json; + } + return { + counts: json['counts'] == null ? undefined : json['counts'], + leaseCount: json['lease_count'] == null ? undefined : json['lease_count'], + }; +} + +export function LeasesListResponseToJSON(json: any): LeasesListResponse { + return LeasesListResponseToJSONTyped(json, false); +} + +export function LeasesListResponseToJSONTyped( + value?: LeasesListResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + counts: value['counts'], + lease_count: value['leaseCount'], + }; +} diff --git a/ui/api-client/src/models/LeasesLookUpResponse.ts b/ui/api-client/src/models/LeasesLookUpResponse.ts new file mode 100644 index 0000000000..82ee4ff545 --- /dev/null +++ b/ui/api-client/src/models/LeasesLookUpResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesLookUpResponse + */ +export interface LeasesLookUpResponse { + /** + * A list of lease ids + * @type {Array} + * @memberof LeasesLookUpResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the LeasesLookUpResponse interface. + */ +export function instanceOfLeasesLookUpResponse(value: object): value is LeasesLookUpResponse { + return true; +} + +export function LeasesLookUpResponseFromJSON(json: any): LeasesLookUpResponse { + return LeasesLookUpResponseFromJSONTyped(json, false); +} + +export function LeasesLookUpResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesLookUpResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function LeasesLookUpResponseToJSON(json: any): LeasesLookUpResponse { + return LeasesLookUpResponseToJSONTyped(json, false); +} + +export function LeasesLookUpResponseToJSONTyped( + value?: LeasesLookUpResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/LeasesReadLeaseRequest.ts b/ui/api-client/src/models/LeasesReadLeaseRequest.ts new file mode 100644 index 0000000000..ba1302f36f --- /dev/null +++ b/ui/api-client/src/models/LeasesReadLeaseRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesReadLeaseRequest + */ +export interface LeasesReadLeaseRequest { + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesReadLeaseRequest + */ + leaseId?: string; +} + +/** + * Check if a given object implements the LeasesReadLeaseRequest interface. + */ +export function instanceOfLeasesReadLeaseRequest(value: object): value is LeasesReadLeaseRequest { + return true; +} + +export function LeasesReadLeaseRequestFromJSON(json: any): LeasesReadLeaseRequest { + return LeasesReadLeaseRequestFromJSONTyped(json, false); +} + +export function LeasesReadLeaseRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesReadLeaseRequest { + if (json == null) { + return json; + } + return { + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + }; +} + +export function LeasesReadLeaseRequestToJSON(json: any): LeasesReadLeaseRequest { + return LeasesReadLeaseRequestToJSONTyped(json, false); +} + +export function LeasesReadLeaseRequestToJSONTyped( + value?: LeasesReadLeaseRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + lease_id: value['leaseId'], + }; +} diff --git a/ui/api-client/src/models/LeasesReadLeaseResponse.ts b/ui/api-client/src/models/LeasesReadLeaseResponse.ts new file mode 100644 index 0000000000..8cfc04f73f --- /dev/null +++ b/ui/api-client/src/models/LeasesReadLeaseResponse.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesReadLeaseResponse + */ +export interface LeasesReadLeaseResponse { + /** + * Optional lease expiry time + * @type {Date} + * @memberof LeasesReadLeaseResponse + */ + expireTime?: Date; + /** + * Lease id + * @type {string} + * @memberof LeasesReadLeaseResponse + */ + id?: string; + /** + * Timestamp for the lease's issue time + * @type {Date} + * @memberof LeasesReadLeaseResponse + */ + issueTime?: Date; + /** + * Optional Timestamp of the last time the lease was renewed + * @type {Date} + * @memberof LeasesReadLeaseResponse + */ + lastRenewal?: Date; + /** + * True if the lease is able to be renewed + * @type {boolean} + * @memberof LeasesReadLeaseResponse + */ + renewable?: boolean; + /** + * Time to Live set for the lease, returns 0 if unset + * @type {number} + * @memberof LeasesReadLeaseResponse + */ + ttl?: number; +} + +/** + * Check if a given object implements the LeasesReadLeaseResponse interface. + */ +export function instanceOfLeasesReadLeaseResponse(value: object): value is LeasesReadLeaseResponse { + return true; +} + +export function LeasesReadLeaseResponseFromJSON(json: any): LeasesReadLeaseResponse { + return LeasesReadLeaseResponseFromJSONTyped(json, false); +} + +export function LeasesReadLeaseResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesReadLeaseResponse { + if (json == null) { + return json; + } + return { + expireTime: json['expire_time'] == null ? undefined : new Date(json['expire_time']), + id: json['id'] == null ? undefined : json['id'], + issueTime: json['issue_time'] == null ? undefined : new Date(json['issue_time']), + lastRenewal: json['last_renewal'] == null ? undefined : new Date(json['last_renewal']), + renewable: json['renewable'] == null ? undefined : json['renewable'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function LeasesReadLeaseResponseToJSON(json: any): LeasesReadLeaseResponse { + return LeasesReadLeaseResponseToJSONTyped(json, false); +} + +export function LeasesReadLeaseResponseToJSONTyped( + value?: LeasesReadLeaseResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + expire_time: value['expireTime'] == null ? undefined : value['expireTime'].toISOString(), + id: value['id'], + issue_time: value['issueTime'] == null ? undefined : value['issueTime'].toISOString(), + last_renewal: value['lastRenewal'] == null ? undefined : value['lastRenewal'].toISOString(), + renewable: value['renewable'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/LeasesRenewLease2Request.ts b/ui/api-client/src/models/LeasesRenewLease2Request.ts new file mode 100644 index 0000000000..615800468e --- /dev/null +++ b/ui/api-client/src/models/LeasesRenewLease2Request.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRenewLease2Request + */ +export interface LeasesRenewLease2Request { + /** + * The desired increment in seconds to the lease + * @type {string} + * @memberof LeasesRenewLease2Request + */ + increment?: string; + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRenewLease2Request + */ + leaseId?: string; +} + +/** + * Check if a given object implements the LeasesRenewLease2Request interface. + */ +export function instanceOfLeasesRenewLease2Request(value: object): value is LeasesRenewLease2Request { + return true; +} + +export function LeasesRenewLease2RequestFromJSON(json: any): LeasesRenewLease2Request { + return LeasesRenewLease2RequestFromJSONTyped(json, false); +} + +export function LeasesRenewLease2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRenewLease2Request { + if (json == null) { + return json; + } + return { + increment: json['increment'] == null ? undefined : json['increment'], + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + }; +} + +export function LeasesRenewLease2RequestToJSON(json: any): LeasesRenewLease2Request { + return LeasesRenewLease2RequestToJSONTyped(json, false); +} + +export function LeasesRenewLease2RequestToJSONTyped( + value?: LeasesRenewLease2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + increment: value['increment'], + lease_id: value['leaseId'], + }; +} diff --git a/ui/api-client/src/models/LeasesRenewLeaseRequest.ts b/ui/api-client/src/models/LeasesRenewLeaseRequest.ts new file mode 100644 index 0000000000..7fc684ace3 --- /dev/null +++ b/ui/api-client/src/models/LeasesRenewLeaseRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRenewLeaseRequest + */ +export interface LeasesRenewLeaseRequest { + /** + * The desired increment in seconds to the lease + * @type {string} + * @memberof LeasesRenewLeaseRequest + */ + increment?: string; + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRenewLeaseRequest + */ + leaseId?: string; +} + +/** + * Check if a given object implements the LeasesRenewLeaseRequest interface. + */ +export function instanceOfLeasesRenewLeaseRequest(value: object): value is LeasesRenewLeaseRequest { + return true; +} + +export function LeasesRenewLeaseRequestFromJSON(json: any): LeasesRenewLeaseRequest { + return LeasesRenewLeaseRequestFromJSONTyped(json, false); +} + +export function LeasesRenewLeaseRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRenewLeaseRequest { + if (json == null) { + return json; + } + return { + increment: json['increment'] == null ? undefined : json['increment'], + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + }; +} + +export function LeasesRenewLeaseRequestToJSON(json: any): LeasesRenewLeaseRequest { + return LeasesRenewLeaseRequestToJSONTyped(json, false); +} + +export function LeasesRenewLeaseRequestToJSONTyped( + value?: LeasesRenewLeaseRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + increment: value['increment'], + lease_id: value['leaseId'], + }; +} diff --git a/ui/api-client/src/models/LeasesRenewLeaseWithId2Request.ts b/ui/api-client/src/models/LeasesRenewLeaseWithId2Request.ts new file mode 100644 index 0000000000..2b816fde6f --- /dev/null +++ b/ui/api-client/src/models/LeasesRenewLeaseWithId2Request.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRenewLeaseWithId2Request + */ +export interface LeasesRenewLeaseWithId2Request { + /** + * The desired increment in seconds to the lease + * @type {string} + * @memberof LeasesRenewLeaseWithId2Request + */ + increment?: string; + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRenewLeaseWithId2Request + */ + leaseId?: string; +} + +/** + * Check if a given object implements the LeasesRenewLeaseWithId2Request interface. + */ +export function instanceOfLeasesRenewLeaseWithId2Request( + value: object +): value is LeasesRenewLeaseWithId2Request { + return true; +} + +export function LeasesRenewLeaseWithId2RequestFromJSON(json: any): LeasesRenewLeaseWithId2Request { + return LeasesRenewLeaseWithId2RequestFromJSONTyped(json, false); +} + +export function LeasesRenewLeaseWithId2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRenewLeaseWithId2Request { + if (json == null) { + return json; + } + return { + increment: json['increment'] == null ? undefined : json['increment'], + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + }; +} + +export function LeasesRenewLeaseWithId2RequestToJSON(json: any): LeasesRenewLeaseWithId2Request { + return LeasesRenewLeaseWithId2RequestToJSONTyped(json, false); +} + +export function LeasesRenewLeaseWithId2RequestToJSONTyped( + value?: LeasesRenewLeaseWithId2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + increment: value['increment'], + lease_id: value['leaseId'], + }; +} diff --git a/ui/api-client/src/models/LeasesRenewLeaseWithIdRequest.ts b/ui/api-client/src/models/LeasesRenewLeaseWithIdRequest.ts new file mode 100644 index 0000000000..200210bcaf --- /dev/null +++ b/ui/api-client/src/models/LeasesRenewLeaseWithIdRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRenewLeaseWithIdRequest + */ +export interface LeasesRenewLeaseWithIdRequest { + /** + * The desired increment in seconds to the lease + * @type {string} + * @memberof LeasesRenewLeaseWithIdRequest + */ + increment?: string; + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRenewLeaseWithIdRequest + */ + leaseId?: string; +} + +/** + * Check if a given object implements the LeasesRenewLeaseWithIdRequest interface. + */ +export function instanceOfLeasesRenewLeaseWithIdRequest( + value: object +): value is LeasesRenewLeaseWithIdRequest { + return true; +} + +export function LeasesRenewLeaseWithIdRequestFromJSON(json: any): LeasesRenewLeaseWithIdRequest { + return LeasesRenewLeaseWithIdRequestFromJSONTyped(json, false); +} + +export function LeasesRenewLeaseWithIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRenewLeaseWithIdRequest { + if (json == null) { + return json; + } + return { + increment: json['increment'] == null ? undefined : json['increment'], + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + }; +} + +export function LeasesRenewLeaseWithIdRequestToJSON(json: any): LeasesRenewLeaseWithIdRequest { + return LeasesRenewLeaseWithIdRequestToJSONTyped(json, false); +} + +export function LeasesRenewLeaseWithIdRequestToJSONTyped( + value?: LeasesRenewLeaseWithIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + increment: value['increment'], + lease_id: value['leaseId'], + }; +} diff --git a/ui/api-client/src/models/LeasesRevokeLease2Request.ts b/ui/api-client/src/models/LeasesRevokeLease2Request.ts new file mode 100644 index 0000000000..af52d1b6cb --- /dev/null +++ b/ui/api-client/src/models/LeasesRevokeLease2Request.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRevokeLease2Request + */ +export interface LeasesRevokeLease2Request { + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRevokeLease2Request + */ + leaseId?: string; + /** + * Whether or not to perform the revocation synchronously + * @type {boolean} + * @memberof LeasesRevokeLease2Request + */ + sync?: boolean; +} + +/** + * Check if a given object implements the LeasesRevokeLease2Request interface. + */ +export function instanceOfLeasesRevokeLease2Request(value: object): value is LeasesRevokeLease2Request { + return true; +} + +export function LeasesRevokeLease2RequestFromJSON(json: any): LeasesRevokeLease2Request { + return LeasesRevokeLease2RequestFromJSONTyped(json, false); +} + +export function LeasesRevokeLease2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRevokeLease2Request { + if (json == null) { + return json; + } + return { + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + sync: json['sync'] == null ? undefined : json['sync'], + }; +} + +export function LeasesRevokeLease2RequestToJSON(json: any): LeasesRevokeLease2Request { + return LeasesRevokeLease2RequestToJSONTyped(json, false); +} + +export function LeasesRevokeLease2RequestToJSONTyped( + value?: LeasesRevokeLease2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + lease_id: value['leaseId'], + sync: value['sync'], + }; +} diff --git a/ui/api-client/src/models/LeasesRevokeLeaseRequest.ts b/ui/api-client/src/models/LeasesRevokeLeaseRequest.ts new file mode 100644 index 0000000000..80193df972 --- /dev/null +++ b/ui/api-client/src/models/LeasesRevokeLeaseRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRevokeLeaseRequest + */ +export interface LeasesRevokeLeaseRequest { + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRevokeLeaseRequest + */ + leaseId?: string; + /** + * Whether or not to perform the revocation synchronously + * @type {boolean} + * @memberof LeasesRevokeLeaseRequest + */ + sync?: boolean; +} + +/** + * Check if a given object implements the LeasesRevokeLeaseRequest interface. + */ +export function instanceOfLeasesRevokeLeaseRequest(value: object): value is LeasesRevokeLeaseRequest { + return true; +} + +export function LeasesRevokeLeaseRequestFromJSON(json: any): LeasesRevokeLeaseRequest { + return LeasesRevokeLeaseRequestFromJSONTyped(json, false); +} + +export function LeasesRevokeLeaseRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRevokeLeaseRequest { + if (json == null) { + return json; + } + return { + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + sync: json['sync'] == null ? undefined : json['sync'], + }; +} + +export function LeasesRevokeLeaseRequestToJSON(json: any): LeasesRevokeLeaseRequest { + return LeasesRevokeLeaseRequestToJSONTyped(json, false); +} + +export function LeasesRevokeLeaseRequestToJSONTyped( + value?: LeasesRevokeLeaseRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + lease_id: value['leaseId'], + sync: value['sync'], + }; +} diff --git a/ui/api-client/src/models/LeasesRevokeLeaseWithId2Request.ts b/ui/api-client/src/models/LeasesRevokeLeaseWithId2Request.ts new file mode 100644 index 0000000000..c529d40e5f --- /dev/null +++ b/ui/api-client/src/models/LeasesRevokeLeaseWithId2Request.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRevokeLeaseWithId2Request + */ +export interface LeasesRevokeLeaseWithId2Request { + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRevokeLeaseWithId2Request + */ + leaseId?: string; + /** + * Whether or not to perform the revocation synchronously + * @type {boolean} + * @memberof LeasesRevokeLeaseWithId2Request + */ + sync?: boolean; +} + +/** + * Check if a given object implements the LeasesRevokeLeaseWithId2Request interface. + */ +export function instanceOfLeasesRevokeLeaseWithId2Request( + value: object +): value is LeasesRevokeLeaseWithId2Request { + return true; +} + +export function LeasesRevokeLeaseWithId2RequestFromJSON(json: any): LeasesRevokeLeaseWithId2Request { + return LeasesRevokeLeaseWithId2RequestFromJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithId2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRevokeLeaseWithId2Request { + if (json == null) { + return json; + } + return { + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + sync: json['sync'] == null ? undefined : json['sync'], + }; +} + +export function LeasesRevokeLeaseWithId2RequestToJSON(json: any): LeasesRevokeLeaseWithId2Request { + return LeasesRevokeLeaseWithId2RequestToJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithId2RequestToJSONTyped( + value?: LeasesRevokeLeaseWithId2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + lease_id: value['leaseId'], + sync: value['sync'], + }; +} diff --git a/ui/api-client/src/models/LeasesRevokeLeaseWithIdRequest.ts b/ui/api-client/src/models/LeasesRevokeLeaseWithIdRequest.ts new file mode 100644 index 0000000000..d4bce5cd10 --- /dev/null +++ b/ui/api-client/src/models/LeasesRevokeLeaseWithIdRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRevokeLeaseWithIdRequest + */ +export interface LeasesRevokeLeaseWithIdRequest { + /** + * The lease identifier to renew. This is included with a lease. + * @type {string} + * @memberof LeasesRevokeLeaseWithIdRequest + */ + leaseId?: string; + /** + * Whether or not to perform the revocation synchronously + * @type {boolean} + * @memberof LeasesRevokeLeaseWithIdRequest + */ + sync?: boolean; +} + +/** + * Check if a given object implements the LeasesRevokeLeaseWithIdRequest interface. + */ +export function instanceOfLeasesRevokeLeaseWithIdRequest( + value: object +): value is LeasesRevokeLeaseWithIdRequest { + return true; +} + +export function LeasesRevokeLeaseWithIdRequestFromJSON(json: any): LeasesRevokeLeaseWithIdRequest { + return LeasesRevokeLeaseWithIdRequestFromJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRevokeLeaseWithIdRequest { + if (json == null) { + return json; + } + return { + leaseId: json['lease_id'] == null ? undefined : json['lease_id'], + sync: json['sync'] == null ? undefined : json['sync'], + }; +} + +export function LeasesRevokeLeaseWithIdRequestToJSON(json: any): LeasesRevokeLeaseWithIdRequest { + return LeasesRevokeLeaseWithIdRequestToJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithIdRequestToJSONTyped( + value?: LeasesRevokeLeaseWithIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + lease_id: value['leaseId'], + sync: value['sync'], + }; +} diff --git a/ui/api-client/src/models/LeasesRevokeLeaseWithPrefix2Request.ts b/ui/api-client/src/models/LeasesRevokeLeaseWithPrefix2Request.ts new file mode 100644 index 0000000000..586d4a89a3 --- /dev/null +++ b/ui/api-client/src/models/LeasesRevokeLeaseWithPrefix2Request.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRevokeLeaseWithPrefix2Request + */ +export interface LeasesRevokeLeaseWithPrefix2Request { + /** + * Whether or not to perform the revocation synchronously + * @type {boolean} + * @memberof LeasesRevokeLeaseWithPrefix2Request + */ + sync?: boolean; +} + +/** + * Check if a given object implements the LeasesRevokeLeaseWithPrefix2Request interface. + */ +export function instanceOfLeasesRevokeLeaseWithPrefix2Request( + value: object +): value is LeasesRevokeLeaseWithPrefix2Request { + return true; +} + +export function LeasesRevokeLeaseWithPrefix2RequestFromJSON(json: any): LeasesRevokeLeaseWithPrefix2Request { + return LeasesRevokeLeaseWithPrefix2RequestFromJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithPrefix2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRevokeLeaseWithPrefix2Request { + if (json == null) { + return json; + } + return { + sync: json['sync'] == null ? undefined : json['sync'], + }; +} + +export function LeasesRevokeLeaseWithPrefix2RequestToJSON(json: any): LeasesRevokeLeaseWithPrefix2Request { + return LeasesRevokeLeaseWithPrefix2RequestToJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithPrefix2RequestToJSONTyped( + value?: LeasesRevokeLeaseWithPrefix2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + sync: value['sync'], + }; +} diff --git a/ui/api-client/src/models/LeasesRevokeLeaseWithPrefixRequest.ts b/ui/api-client/src/models/LeasesRevokeLeaseWithPrefixRequest.ts new file mode 100644 index 0000000000..60c1ddd476 --- /dev/null +++ b/ui/api-client/src/models/LeasesRevokeLeaseWithPrefixRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LeasesRevokeLeaseWithPrefixRequest + */ +export interface LeasesRevokeLeaseWithPrefixRequest { + /** + * Whether or not to perform the revocation synchronously + * @type {boolean} + * @memberof LeasesRevokeLeaseWithPrefixRequest + */ + sync?: boolean; +} + +/** + * Check if a given object implements the LeasesRevokeLeaseWithPrefixRequest interface. + */ +export function instanceOfLeasesRevokeLeaseWithPrefixRequest( + value: object +): value is LeasesRevokeLeaseWithPrefixRequest { + return true; +} + +export function LeasesRevokeLeaseWithPrefixRequestFromJSON(json: any): LeasesRevokeLeaseWithPrefixRequest { + return LeasesRevokeLeaseWithPrefixRequestFromJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithPrefixRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LeasesRevokeLeaseWithPrefixRequest { + if (json == null) { + return json; + } + return { + sync: json['sync'] == null ? undefined : json['sync'], + }; +} + +export function LeasesRevokeLeaseWithPrefixRequestToJSON(json: any): LeasesRevokeLeaseWithPrefixRequest { + return LeasesRevokeLeaseWithPrefixRequestToJSONTyped(json, false); +} + +export function LeasesRevokeLeaseWithPrefixRequestToJSONTyped( + value?: LeasesRevokeLeaseWithPrefixRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + sync: value['sync'], + }; +} diff --git a/ui/api-client/src/models/LoggersUpdateVerbosityLevelForRequest.ts b/ui/api-client/src/models/LoggersUpdateVerbosityLevelForRequest.ts new file mode 100644 index 0000000000..27172ac99a --- /dev/null +++ b/ui/api-client/src/models/LoggersUpdateVerbosityLevelForRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LoggersUpdateVerbosityLevelForRequest + */ +export interface LoggersUpdateVerbosityLevelForRequest { + /** + * Log verbosity level. Supported values (in order of detail) are "trace", "debug", "info", "warn", and "error". + * @type {string} + * @memberof LoggersUpdateVerbosityLevelForRequest + */ + level?: string; +} + +/** + * Check if a given object implements the LoggersUpdateVerbosityLevelForRequest interface. + */ +export function instanceOfLoggersUpdateVerbosityLevelForRequest( + value: object +): value is LoggersUpdateVerbosityLevelForRequest { + return true; +} + +export function LoggersUpdateVerbosityLevelForRequestFromJSON( + json: any +): LoggersUpdateVerbosityLevelForRequest { + return LoggersUpdateVerbosityLevelForRequestFromJSONTyped(json, false); +} + +export function LoggersUpdateVerbosityLevelForRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LoggersUpdateVerbosityLevelForRequest { + if (json == null) { + return json; + } + return { + level: json['level'] == null ? undefined : json['level'], + }; +} + +export function LoggersUpdateVerbosityLevelForRequestToJSON( + json: any +): LoggersUpdateVerbosityLevelForRequest { + return LoggersUpdateVerbosityLevelForRequestToJSONTyped(json, false); +} + +export function LoggersUpdateVerbosityLevelForRequestToJSONTyped( + value?: LoggersUpdateVerbosityLevelForRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + level: value['level'], + }; +} diff --git a/ui/api-client/src/models/LoggersUpdateVerbosityLevelRequest.ts b/ui/api-client/src/models/LoggersUpdateVerbosityLevelRequest.ts new file mode 100644 index 0000000000..87f5ae1bc1 --- /dev/null +++ b/ui/api-client/src/models/LoggersUpdateVerbosityLevelRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LoggersUpdateVerbosityLevelRequest + */ +export interface LoggersUpdateVerbosityLevelRequest { + /** + * Log verbosity level. Supported values (in order of detail) are "trace", "debug", "info", "warn", and "error". + * @type {string} + * @memberof LoggersUpdateVerbosityLevelRequest + */ + level?: string; +} + +/** + * Check if a given object implements the LoggersUpdateVerbosityLevelRequest interface. + */ +export function instanceOfLoggersUpdateVerbosityLevelRequest( + value: object +): value is LoggersUpdateVerbosityLevelRequest { + return true; +} + +export function LoggersUpdateVerbosityLevelRequestFromJSON(json: any): LoggersUpdateVerbosityLevelRequest { + return LoggersUpdateVerbosityLevelRequestFromJSONTyped(json, false); +} + +export function LoggersUpdateVerbosityLevelRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): LoggersUpdateVerbosityLevelRequest { + if (json == null) { + return json; + } + return { + level: json['level'] == null ? undefined : json['level'], + }; +} + +export function LoggersUpdateVerbosityLevelRequestToJSON(json: any): LoggersUpdateVerbosityLevelRequest { + return LoggersUpdateVerbosityLevelRequestToJSONTyped(json, false); +} + +export function LoggersUpdateVerbosityLevelRequestToJSONTyped( + value?: LoggersUpdateVerbosityLevelRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + level: value['level'], + }; +} diff --git a/ui/api-client/src/models/MfaAdminDestroyTotpSecretRequest.ts b/ui/api-client/src/models/MfaAdminDestroyTotpSecretRequest.ts new file mode 100644 index 0000000000..c7a7fd71c8 --- /dev/null +++ b/ui/api-client/src/models/MfaAdminDestroyTotpSecretRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaAdminDestroyTotpSecretRequest + */ +export interface MfaAdminDestroyTotpSecretRequest { + /** + * Identifier of the entity from which the MFA method secret needs to be removed. + * @type {string} + * @memberof MfaAdminDestroyTotpSecretRequest + */ + entityId: string; + /** + * The unique identifier for this MFA method. + * @type {string} + * @memberof MfaAdminDestroyTotpSecretRequest + */ + methodId: string; +} + +/** + * Check if a given object implements the MfaAdminDestroyTotpSecretRequest interface. + */ +export function instanceOfMfaAdminDestroyTotpSecretRequest( + value: object +): value is MfaAdminDestroyTotpSecretRequest { + if (!('entityId' in value) || value['entityId'] === undefined) return false; + if (!('methodId' in value) || value['methodId'] === undefined) return false; + return true; +} + +export function MfaAdminDestroyTotpSecretRequestFromJSON(json: any): MfaAdminDestroyTotpSecretRequest { + return MfaAdminDestroyTotpSecretRequestFromJSONTyped(json, false); +} + +export function MfaAdminDestroyTotpSecretRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaAdminDestroyTotpSecretRequest { + if (json == null) { + return json; + } + return { + entityId: json['entity_id'], + methodId: json['method_id'], + }; +} + +export function MfaAdminDestroyTotpSecretRequestToJSON(json: any): MfaAdminDestroyTotpSecretRequest { + return MfaAdminDestroyTotpSecretRequestToJSONTyped(json, false); +} + +export function MfaAdminDestroyTotpSecretRequestToJSONTyped( + value?: MfaAdminDestroyTotpSecretRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_id: value['entityId'], + method_id: value['methodId'], + }; +} diff --git a/ui/api-client/src/models/MfaAdminGenerateTotpSecretRequest.ts b/ui/api-client/src/models/MfaAdminGenerateTotpSecretRequest.ts new file mode 100644 index 0000000000..61b8e2b5ae --- /dev/null +++ b/ui/api-client/src/models/MfaAdminGenerateTotpSecretRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaAdminGenerateTotpSecretRequest + */ +export interface MfaAdminGenerateTotpSecretRequest { + /** + * Entity ID on which the generated secret needs to get stored. + * @type {string} + * @memberof MfaAdminGenerateTotpSecretRequest + */ + entityId: string; + /** + * The unique identifier for this MFA method. + * @type {string} + * @memberof MfaAdminGenerateTotpSecretRequest + */ + methodId: string; +} + +/** + * Check if a given object implements the MfaAdminGenerateTotpSecretRequest interface. + */ +export function instanceOfMfaAdminGenerateTotpSecretRequest( + value: object +): value is MfaAdminGenerateTotpSecretRequest { + if (!('entityId' in value) || value['entityId'] === undefined) return false; + if (!('methodId' in value) || value['methodId'] === undefined) return false; + return true; +} + +export function MfaAdminGenerateTotpSecretRequestFromJSON(json: any): MfaAdminGenerateTotpSecretRequest { + return MfaAdminGenerateTotpSecretRequestFromJSONTyped(json, false); +} + +export function MfaAdminGenerateTotpSecretRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaAdminGenerateTotpSecretRequest { + if (json == null) { + return json; + } + return { + entityId: json['entity_id'], + methodId: json['method_id'], + }; +} + +export function MfaAdminGenerateTotpSecretRequestToJSON(json: any): MfaAdminGenerateTotpSecretRequest { + return MfaAdminGenerateTotpSecretRequestToJSONTyped(json, false); +} + +export function MfaAdminGenerateTotpSecretRequestToJSONTyped( + value?: MfaAdminGenerateTotpSecretRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_id: value['entityId'], + method_id: value['methodId'], + }; +} diff --git a/ui/api-client/src/models/MfaCreateDuoMethodRequest.ts b/ui/api-client/src/models/MfaCreateDuoMethodRequest.ts new file mode 100644 index 0000000000..8fd497c193 --- /dev/null +++ b/ui/api-client/src/models/MfaCreateDuoMethodRequest.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaCreateDuoMethodRequest + */ +export interface MfaCreateDuoMethodRequest { + /** + * API host name for Duo. + * @type {string} + * @memberof MfaCreateDuoMethodRequest + */ + apiHostname?: string; + /** + * Integration key for Duo. + * @type {string} + * @memberof MfaCreateDuoMethodRequest + */ + integrationKey?: string; + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaCreateDuoMethodRequest + */ + methodName?: string; + /** + * Push information for Duo. + * @type {string} + * @memberof MfaCreateDuoMethodRequest + */ + pushInfo?: string; + /** + * Secret key for Duo. + * @type {string} + * @memberof MfaCreateDuoMethodRequest + */ + secretKey?: string; + /** + * If true, the user is reminded to use the passcode upon MFA validation. This option does not enforce using the passcode. Defaults to false. + * @type {boolean} + * @memberof MfaCreateDuoMethodRequest + */ + usePasscode?: boolean; + /** + * A template string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. + * @type {string} + * @memberof MfaCreateDuoMethodRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the MfaCreateDuoMethodRequest interface. + */ +export function instanceOfMfaCreateDuoMethodRequest(value: object): value is MfaCreateDuoMethodRequest { + return true; +} + +export function MfaCreateDuoMethodRequestFromJSON(json: any): MfaCreateDuoMethodRequest { + return MfaCreateDuoMethodRequestFromJSONTyped(json, false); +} + +export function MfaCreateDuoMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaCreateDuoMethodRequest { + if (json == null) { + return json; + } + return { + apiHostname: json['api_hostname'] == null ? undefined : json['api_hostname'], + integrationKey: json['integration_key'] == null ? undefined : json['integration_key'], + methodName: json['method_name'] == null ? undefined : json['method_name'], + pushInfo: json['push_info'] == null ? undefined : json['push_info'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + usePasscode: json['use_passcode'] == null ? undefined : json['use_passcode'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function MfaCreateDuoMethodRequestToJSON(json: any): MfaCreateDuoMethodRequest { + return MfaCreateDuoMethodRequestToJSONTyped(json, false); +} + +export function MfaCreateDuoMethodRequestToJSONTyped( + value?: MfaCreateDuoMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + api_hostname: value['apiHostname'], + integration_key: value['integrationKey'], + method_name: value['methodName'], + push_info: value['pushInfo'], + secret_key: value['secretKey'], + use_passcode: value['usePasscode'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/MfaCreateOktaMethodRequest.ts b/ui/api-client/src/models/MfaCreateOktaMethodRequest.ts new file mode 100644 index 0000000000..5c262251de --- /dev/null +++ b/ui/api-client/src/models/MfaCreateOktaMethodRequest.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaCreateOktaMethodRequest + */ +export interface MfaCreateOktaMethodRequest { + /** + * Okta API key. + * @type {string} + * @memberof MfaCreateOktaMethodRequest + */ + apiToken?: string; + /** + * The base domain to use for the Okta API. When not specified in the configuration, "okta.com" is used. + * @type {string} + * @memberof MfaCreateOktaMethodRequest + */ + baseUrl?: string; + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaCreateOktaMethodRequest + */ + methodName?: string; + /** + * Name of the organization to be used in the Okta API. + * @type {string} + * @memberof MfaCreateOktaMethodRequest + */ + orgName?: string; + /** + * If true, the username will only match the primary email for the account. Defaults to false. + * @type {boolean} + * @memberof MfaCreateOktaMethodRequest + */ + primaryEmail?: boolean; + /** + * (DEPRECATED) Use base_url instead. + * @type {boolean} + * @memberof MfaCreateOktaMethodRequest + */ + production?: boolean; + /** + * A template string for mapping Identity names to MFA method names. Values to substitute should be placed in {{}}. For example, "{{entity.name}}@example.com". If blank, the Entity's name field will be used as-is. + * @type {string} + * @memberof MfaCreateOktaMethodRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the MfaCreateOktaMethodRequest interface. + */ +export function instanceOfMfaCreateOktaMethodRequest(value: object): value is MfaCreateOktaMethodRequest { + return true; +} + +export function MfaCreateOktaMethodRequestFromJSON(json: any): MfaCreateOktaMethodRequest { + return MfaCreateOktaMethodRequestFromJSONTyped(json, false); +} + +export function MfaCreateOktaMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaCreateOktaMethodRequest { + if (json == null) { + return json; + } + return { + apiToken: json['api_token'] == null ? undefined : json['api_token'], + baseUrl: json['base_url'] == null ? undefined : json['base_url'], + methodName: json['method_name'] == null ? undefined : json['method_name'], + orgName: json['org_name'] == null ? undefined : json['org_name'], + primaryEmail: json['primary_email'] == null ? undefined : json['primary_email'], + production: json['production'] == null ? undefined : json['production'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function MfaCreateOktaMethodRequestToJSON(json: any): MfaCreateOktaMethodRequest { + return MfaCreateOktaMethodRequestToJSONTyped(json, false); +} + +export function MfaCreateOktaMethodRequestToJSONTyped( + value?: MfaCreateOktaMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + api_token: value['apiToken'], + base_url: value['baseUrl'], + method_name: value['methodName'], + org_name: value['orgName'], + primary_email: value['primaryEmail'], + production: value['production'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/MfaCreatePingIdMethodRequest.ts b/ui/api-client/src/models/MfaCreatePingIdMethodRequest.ts new file mode 100644 index 0000000000..5511890f75 --- /dev/null +++ b/ui/api-client/src/models/MfaCreatePingIdMethodRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaCreatePingIdMethodRequest + */ +export interface MfaCreatePingIdMethodRequest { + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaCreatePingIdMethodRequest + */ + methodName?: string; + /** + * The settings file provided by Ping, Base64-encoded. This must be a settings file suitable for third-party clients, not the PingID SDK or PingFederate. + * @type {string} + * @memberof MfaCreatePingIdMethodRequest + */ + settingsFileBase64?: string; + /** + * A template string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. + * @type {string} + * @memberof MfaCreatePingIdMethodRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the MfaCreatePingIdMethodRequest interface. + */ +export function instanceOfMfaCreatePingIdMethodRequest(value: object): value is MfaCreatePingIdMethodRequest { + return true; +} + +export function MfaCreatePingIdMethodRequestFromJSON(json: any): MfaCreatePingIdMethodRequest { + return MfaCreatePingIdMethodRequestFromJSONTyped(json, false); +} + +export function MfaCreatePingIdMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaCreatePingIdMethodRequest { + if (json == null) { + return json; + } + return { + methodName: json['method_name'] == null ? undefined : json['method_name'], + settingsFileBase64: json['settings_file_base64'] == null ? undefined : json['settings_file_base64'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function MfaCreatePingIdMethodRequestToJSON(json: any): MfaCreatePingIdMethodRequest { + return MfaCreatePingIdMethodRequestToJSONTyped(json, false); +} + +export function MfaCreatePingIdMethodRequestToJSONTyped( + value?: MfaCreatePingIdMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + method_name: value['methodName'], + settings_file_base64: value['settingsFileBase64'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/MfaCreateTotpMethodRequest.ts b/ui/api-client/src/models/MfaCreateTotpMethodRequest.ts new file mode 100644 index 0000000000..c3abdc4156 --- /dev/null +++ b/ui/api-client/src/models/MfaCreateTotpMethodRequest.ts @@ -0,0 +1,133 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaCreateTotpMethodRequest + */ +export interface MfaCreateTotpMethodRequest { + /** + * The hashing algorithm used to generate the TOTP token. Options include SHA1, SHA256 and SHA512. + * @type {string} + * @memberof MfaCreateTotpMethodRequest + */ + algorithm?: string; + /** + * The number of digits in the generated TOTP token. This value can either be 6 or 8. + * @type {number} + * @memberof MfaCreateTotpMethodRequest + */ + digits?: number; + /** + * The name of the key's issuing organization. + * @type {string} + * @memberof MfaCreateTotpMethodRequest + */ + issuer?: string; + /** + * Determines the size in bytes of the generated key. + * @type {number} + * @memberof MfaCreateTotpMethodRequest + */ + keySize?: number; + /** + * Max number of allowed validation attempts. + * @type {number} + * @memberof MfaCreateTotpMethodRequest + */ + maxValidationAttempts?: number; + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaCreateTotpMethodRequest + */ + methodName?: string; + /** + * The length of time used to generate a counter for the TOTP token calculation. + * @type {string} + * @memberof MfaCreateTotpMethodRequest + */ + period?: string; + /** + * The pixel size of the generated square QR code. + * @type {number} + * @memberof MfaCreateTotpMethodRequest + */ + qrSize?: number; + /** + * The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. + * @type {number} + * @memberof MfaCreateTotpMethodRequest + */ + skew?: number; +} + +/** + * Check if a given object implements the MfaCreateTotpMethodRequest interface. + */ +export function instanceOfMfaCreateTotpMethodRequest(value: object): value is MfaCreateTotpMethodRequest { + return true; +} + +export function MfaCreateTotpMethodRequestFromJSON(json: any): MfaCreateTotpMethodRequest { + return MfaCreateTotpMethodRequestFromJSONTyped(json, false); +} + +export function MfaCreateTotpMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaCreateTotpMethodRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + digits: json['digits'] == null ? undefined : json['digits'], + issuer: json['issuer'] == null ? undefined : json['issuer'], + keySize: json['key_size'] == null ? undefined : json['key_size'], + maxValidationAttempts: + json['max_validation_attempts'] == null ? undefined : json['max_validation_attempts'], + methodName: json['method_name'] == null ? undefined : json['method_name'], + period: json['period'] == null ? undefined : json['period'], + qrSize: json['qr_size'] == null ? undefined : json['qr_size'], + skew: json['skew'] == null ? undefined : json['skew'], + }; +} + +export function MfaCreateTotpMethodRequestToJSON(json: any): MfaCreateTotpMethodRequest { + return MfaCreateTotpMethodRequestToJSONTyped(json, false); +} + +export function MfaCreateTotpMethodRequestToJSONTyped( + value?: MfaCreateTotpMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + digits: value['digits'], + issuer: value['issuer'], + key_size: value['keySize'], + max_validation_attempts: value['maxValidationAttempts'], + method_name: value['methodName'], + period: value['period'], + qr_size: value['qrSize'], + skew: value['skew'], + }; +} diff --git a/ui/api-client/src/models/MfaGenerateTotpSecretRequest.ts b/ui/api-client/src/models/MfaGenerateTotpSecretRequest.ts new file mode 100644 index 0000000000..f98b41acd1 --- /dev/null +++ b/ui/api-client/src/models/MfaGenerateTotpSecretRequest.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaGenerateTotpSecretRequest + */ +export interface MfaGenerateTotpSecretRequest { + /** + * The unique identifier for this MFA method. + * @type {string} + * @memberof MfaGenerateTotpSecretRequest + */ + methodId: string; +} + +/** + * Check if a given object implements the MfaGenerateTotpSecretRequest interface. + */ +export function instanceOfMfaGenerateTotpSecretRequest(value: object): value is MfaGenerateTotpSecretRequest { + if (!('methodId' in value) || value['methodId'] === undefined) return false; + return true; +} + +export function MfaGenerateTotpSecretRequestFromJSON(json: any): MfaGenerateTotpSecretRequest { + return MfaGenerateTotpSecretRequestFromJSONTyped(json, false); +} + +export function MfaGenerateTotpSecretRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaGenerateTotpSecretRequest { + if (json == null) { + return json; + } + return { + methodId: json['method_id'], + }; +} + +export function MfaGenerateTotpSecretRequestToJSON(json: any): MfaGenerateTotpSecretRequest { + return MfaGenerateTotpSecretRequestToJSONTyped(json, false); +} + +export function MfaGenerateTotpSecretRequestToJSONTyped( + value?: MfaGenerateTotpSecretRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + method_id: value['methodId'], + }; +} diff --git a/ui/api-client/src/models/MfaUpdateDuoMethodRequest.ts b/ui/api-client/src/models/MfaUpdateDuoMethodRequest.ts new file mode 100644 index 0000000000..9814ea671b --- /dev/null +++ b/ui/api-client/src/models/MfaUpdateDuoMethodRequest.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaUpdateDuoMethodRequest + */ +export interface MfaUpdateDuoMethodRequest { + /** + * API host name for Duo. + * @type {string} + * @memberof MfaUpdateDuoMethodRequest + */ + apiHostname?: string; + /** + * Integration key for Duo. + * @type {string} + * @memberof MfaUpdateDuoMethodRequest + */ + integrationKey?: string; + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaUpdateDuoMethodRequest + */ + methodName?: string; + /** + * Push information for Duo. + * @type {string} + * @memberof MfaUpdateDuoMethodRequest + */ + pushInfo?: string; + /** + * Secret key for Duo. + * @type {string} + * @memberof MfaUpdateDuoMethodRequest + */ + secretKey?: string; + /** + * If true, the user is reminded to use the passcode upon MFA validation. This option does not enforce using the passcode. Defaults to false. + * @type {boolean} + * @memberof MfaUpdateDuoMethodRequest + */ + usePasscode?: boolean; + /** + * A template string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. + * @type {string} + * @memberof MfaUpdateDuoMethodRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the MfaUpdateDuoMethodRequest interface. + */ +export function instanceOfMfaUpdateDuoMethodRequest(value: object): value is MfaUpdateDuoMethodRequest { + return true; +} + +export function MfaUpdateDuoMethodRequestFromJSON(json: any): MfaUpdateDuoMethodRequest { + return MfaUpdateDuoMethodRequestFromJSONTyped(json, false); +} + +export function MfaUpdateDuoMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaUpdateDuoMethodRequest { + if (json == null) { + return json; + } + return { + apiHostname: json['api_hostname'] == null ? undefined : json['api_hostname'], + integrationKey: json['integration_key'] == null ? undefined : json['integration_key'], + methodName: json['method_name'] == null ? undefined : json['method_name'], + pushInfo: json['push_info'] == null ? undefined : json['push_info'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + usePasscode: json['use_passcode'] == null ? undefined : json['use_passcode'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function MfaUpdateDuoMethodRequestToJSON(json: any): MfaUpdateDuoMethodRequest { + return MfaUpdateDuoMethodRequestToJSONTyped(json, false); +} + +export function MfaUpdateDuoMethodRequestToJSONTyped( + value?: MfaUpdateDuoMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + api_hostname: value['apiHostname'], + integration_key: value['integrationKey'], + method_name: value['methodName'], + push_info: value['pushInfo'], + secret_key: value['secretKey'], + use_passcode: value['usePasscode'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/MfaUpdateOktaMethodRequest.ts b/ui/api-client/src/models/MfaUpdateOktaMethodRequest.ts new file mode 100644 index 0000000000..b1d6f72e4e --- /dev/null +++ b/ui/api-client/src/models/MfaUpdateOktaMethodRequest.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaUpdateOktaMethodRequest + */ +export interface MfaUpdateOktaMethodRequest { + /** + * Okta API key. + * @type {string} + * @memberof MfaUpdateOktaMethodRequest + */ + apiToken?: string; + /** + * The base domain to use for the Okta API. When not specified in the configuration, "okta.com" is used. + * @type {string} + * @memberof MfaUpdateOktaMethodRequest + */ + baseUrl?: string; + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaUpdateOktaMethodRequest + */ + methodName?: string; + /** + * Name of the organization to be used in the Okta API. + * @type {string} + * @memberof MfaUpdateOktaMethodRequest + */ + orgName?: string; + /** + * If true, the username will only match the primary email for the account. Defaults to false. + * @type {boolean} + * @memberof MfaUpdateOktaMethodRequest + */ + primaryEmail?: boolean; + /** + * (DEPRECATED) Use base_url instead. + * @type {boolean} + * @memberof MfaUpdateOktaMethodRequest + */ + production?: boolean; + /** + * A template string for mapping Identity names to MFA method names. Values to substitute should be placed in {{}}. For example, "{{entity.name}}@example.com". If blank, the Entity's name field will be used as-is. + * @type {string} + * @memberof MfaUpdateOktaMethodRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the MfaUpdateOktaMethodRequest interface. + */ +export function instanceOfMfaUpdateOktaMethodRequest(value: object): value is MfaUpdateOktaMethodRequest { + return true; +} + +export function MfaUpdateOktaMethodRequestFromJSON(json: any): MfaUpdateOktaMethodRequest { + return MfaUpdateOktaMethodRequestFromJSONTyped(json, false); +} + +export function MfaUpdateOktaMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaUpdateOktaMethodRequest { + if (json == null) { + return json; + } + return { + apiToken: json['api_token'] == null ? undefined : json['api_token'], + baseUrl: json['base_url'] == null ? undefined : json['base_url'], + methodName: json['method_name'] == null ? undefined : json['method_name'], + orgName: json['org_name'] == null ? undefined : json['org_name'], + primaryEmail: json['primary_email'] == null ? undefined : json['primary_email'], + production: json['production'] == null ? undefined : json['production'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function MfaUpdateOktaMethodRequestToJSON(json: any): MfaUpdateOktaMethodRequest { + return MfaUpdateOktaMethodRequestToJSONTyped(json, false); +} + +export function MfaUpdateOktaMethodRequestToJSONTyped( + value?: MfaUpdateOktaMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + api_token: value['apiToken'], + base_url: value['baseUrl'], + method_name: value['methodName'], + org_name: value['orgName'], + primary_email: value['primaryEmail'], + production: value['production'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/MfaUpdatePingIdMethodRequest.ts b/ui/api-client/src/models/MfaUpdatePingIdMethodRequest.ts new file mode 100644 index 0000000000..cdafe18985 --- /dev/null +++ b/ui/api-client/src/models/MfaUpdatePingIdMethodRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaUpdatePingIdMethodRequest + */ +export interface MfaUpdatePingIdMethodRequest { + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaUpdatePingIdMethodRequest + */ + methodName?: string; + /** + * The settings file provided by Ping, Base64-encoded. This must be a settings file suitable for third-party clients, not the PingID SDK or PingFederate. + * @type {string} + * @memberof MfaUpdatePingIdMethodRequest + */ + settingsFileBase64?: string; + /** + * A template string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. + * @type {string} + * @memberof MfaUpdatePingIdMethodRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the MfaUpdatePingIdMethodRequest interface. + */ +export function instanceOfMfaUpdatePingIdMethodRequest(value: object): value is MfaUpdatePingIdMethodRequest { + return true; +} + +export function MfaUpdatePingIdMethodRequestFromJSON(json: any): MfaUpdatePingIdMethodRequest { + return MfaUpdatePingIdMethodRequestFromJSONTyped(json, false); +} + +export function MfaUpdatePingIdMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaUpdatePingIdMethodRequest { + if (json == null) { + return json; + } + return { + methodName: json['method_name'] == null ? undefined : json['method_name'], + settingsFileBase64: json['settings_file_base64'] == null ? undefined : json['settings_file_base64'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function MfaUpdatePingIdMethodRequestToJSON(json: any): MfaUpdatePingIdMethodRequest { + return MfaUpdatePingIdMethodRequestToJSONTyped(json, false); +} + +export function MfaUpdatePingIdMethodRequestToJSONTyped( + value?: MfaUpdatePingIdMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + method_name: value['methodName'], + settings_file_base64: value['settingsFileBase64'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/MfaUpdateTotpMethodRequest.ts b/ui/api-client/src/models/MfaUpdateTotpMethodRequest.ts new file mode 100644 index 0000000000..f7f7989693 --- /dev/null +++ b/ui/api-client/src/models/MfaUpdateTotpMethodRequest.ts @@ -0,0 +1,133 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaUpdateTotpMethodRequest + */ +export interface MfaUpdateTotpMethodRequest { + /** + * The hashing algorithm used to generate the TOTP token. Options include SHA1, SHA256 and SHA512. + * @type {string} + * @memberof MfaUpdateTotpMethodRequest + */ + algorithm?: string; + /** + * The number of digits in the generated TOTP token. This value can either be 6 or 8. + * @type {number} + * @memberof MfaUpdateTotpMethodRequest + */ + digits?: number; + /** + * The name of the key's issuing organization. + * @type {string} + * @memberof MfaUpdateTotpMethodRequest + */ + issuer?: string; + /** + * Determines the size in bytes of the generated key. + * @type {number} + * @memberof MfaUpdateTotpMethodRequest + */ + keySize?: number; + /** + * Max number of allowed validation attempts. + * @type {number} + * @memberof MfaUpdateTotpMethodRequest + */ + maxValidationAttempts?: number; + /** + * The unique name identifier for this MFA method. + * @type {string} + * @memberof MfaUpdateTotpMethodRequest + */ + methodName?: string; + /** + * The length of time used to generate a counter for the TOTP token calculation. + * @type {string} + * @memberof MfaUpdateTotpMethodRequest + */ + period?: string; + /** + * The pixel size of the generated square QR code. + * @type {number} + * @memberof MfaUpdateTotpMethodRequest + */ + qrSize?: number; + /** + * The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. + * @type {number} + * @memberof MfaUpdateTotpMethodRequest + */ + skew?: number; +} + +/** + * Check if a given object implements the MfaUpdateTotpMethodRequest interface. + */ +export function instanceOfMfaUpdateTotpMethodRequest(value: object): value is MfaUpdateTotpMethodRequest { + return true; +} + +export function MfaUpdateTotpMethodRequestFromJSON(json: any): MfaUpdateTotpMethodRequest { + return MfaUpdateTotpMethodRequestFromJSONTyped(json, false); +} + +export function MfaUpdateTotpMethodRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaUpdateTotpMethodRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + digits: json['digits'] == null ? undefined : json['digits'], + issuer: json['issuer'] == null ? undefined : json['issuer'], + keySize: json['key_size'] == null ? undefined : json['key_size'], + maxValidationAttempts: + json['max_validation_attempts'] == null ? undefined : json['max_validation_attempts'], + methodName: json['method_name'] == null ? undefined : json['method_name'], + period: json['period'] == null ? undefined : json['period'], + qrSize: json['qr_size'] == null ? undefined : json['qr_size'], + skew: json['skew'] == null ? undefined : json['skew'], + }; +} + +export function MfaUpdateTotpMethodRequestToJSON(json: any): MfaUpdateTotpMethodRequest { + return MfaUpdateTotpMethodRequestToJSONTyped(json, false); +} + +export function MfaUpdateTotpMethodRequestToJSONTyped( + value?: MfaUpdateTotpMethodRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + digits: value['digits'], + issuer: value['issuer'], + key_size: value['keySize'], + max_validation_attempts: value['maxValidationAttempts'], + method_name: value['methodName'], + period: value['period'], + qr_size: value['qrSize'], + skew: value['skew'], + }; +} diff --git a/ui/api-client/src/models/MfaValidateRequest.ts b/ui/api-client/src/models/MfaValidateRequest.ts new file mode 100644 index 0000000000..f7d80554a6 --- /dev/null +++ b/ui/api-client/src/models/MfaValidateRequest.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaValidateRequest + */ +export interface MfaValidateRequest { + /** + * A map from MFA method ID to a slice of passcodes or an empty slice if the method does not use passcodes + * @type {object} + * @memberof MfaValidateRequest + */ + mfaPayload: object; + /** + * ID for this MFA request + * @type {string} + * @memberof MfaValidateRequest + */ + mfaRequestId: string; +} + +/** + * Check if a given object implements the MfaValidateRequest interface. + */ +export function instanceOfMfaValidateRequest(value: object): value is MfaValidateRequest { + if (!('mfaPayload' in value) || value['mfaPayload'] === undefined) return false; + if (!('mfaRequestId' in value) || value['mfaRequestId'] === undefined) return false; + return true; +} + +export function MfaValidateRequestFromJSON(json: any): MfaValidateRequest { + return MfaValidateRequestFromJSONTyped(json, false); +} + +export function MfaValidateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MfaValidateRequest { + if (json == null) { + return json; + } + return { + mfaPayload: json['mfa_payload'], + mfaRequestId: json['mfa_request_id'], + }; +} + +export function MfaValidateRequestToJSON(json: any): MfaValidateRequest { + return MfaValidateRequestToJSONTyped(json, false); +} + +export function MfaValidateRequestToJSONTyped( + value?: MfaValidateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mfa_payload: value['mfaPayload'], + mfa_request_id: value['mfaRequestId'], + }; +} diff --git a/ui/api-client/src/models/MfaWriteLoginEnforcementRequest.ts b/ui/api-client/src/models/MfaWriteLoginEnforcementRequest.ts new file mode 100644 index 0000000000..d4dfbf9cdb --- /dev/null +++ b/ui/api-client/src/models/MfaWriteLoginEnforcementRequest.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MfaWriteLoginEnforcementRequest + */ +export interface MfaWriteLoginEnforcementRequest { + /** + * Array of auth mount accessor IDs + * @type {Array} + * @memberof MfaWriteLoginEnforcementRequest + */ + authMethodAccessors?: Array; + /** + * Array of auth mount types + * @type {Array} + * @memberof MfaWriteLoginEnforcementRequest + */ + authMethodTypes?: Array; + /** + * Array of identity entity IDs + * @type {Array} + * @memberof MfaWriteLoginEnforcementRequest + */ + identityEntityIds?: Array; + /** + * Array of identity group IDs + * @type {Array} + * @memberof MfaWriteLoginEnforcementRequest + */ + identityGroupIds?: Array; + /** + * Array of Method IDs that determine what methods will be enforced + * @type {Array} + * @memberof MfaWriteLoginEnforcementRequest + */ + mfaMethodIds: Array; +} + +/** + * Check if a given object implements the MfaWriteLoginEnforcementRequest interface. + */ +export function instanceOfMfaWriteLoginEnforcementRequest( + value: object +): value is MfaWriteLoginEnforcementRequest { + if (!('mfaMethodIds' in value) || value['mfaMethodIds'] === undefined) return false; + return true; +} + +export function MfaWriteLoginEnforcementRequestFromJSON(json: any): MfaWriteLoginEnforcementRequest { + return MfaWriteLoginEnforcementRequestFromJSONTyped(json, false); +} + +export function MfaWriteLoginEnforcementRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MfaWriteLoginEnforcementRequest { + if (json == null) { + return json; + } + return { + authMethodAccessors: json['auth_method_accessors'] == null ? undefined : json['auth_method_accessors'], + authMethodTypes: json['auth_method_types'] == null ? undefined : json['auth_method_types'], + identityEntityIds: json['identity_entity_ids'] == null ? undefined : json['identity_entity_ids'], + identityGroupIds: json['identity_group_ids'] == null ? undefined : json['identity_group_ids'], + mfaMethodIds: json['mfa_method_ids'], + }; +} + +export function MfaWriteLoginEnforcementRequestToJSON(json: any): MfaWriteLoginEnforcementRequest { + return MfaWriteLoginEnforcementRequestToJSONTyped(json, false); +} + +export function MfaWriteLoginEnforcementRequestToJSONTyped( + value?: MfaWriteLoginEnforcementRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + auth_method_accessors: value['authMethodAccessors'], + auth_method_types: value['authMethodTypes'], + identity_entity_ids: value['identityEntityIds'], + identity_group_ids: value['identityGroupIds'], + mfa_method_ids: value['mfaMethodIds'], + }; +} diff --git a/ui/api-client/src/models/MongoDbAtlasConfigureRequest.ts b/ui/api-client/src/models/MongoDbAtlasConfigureRequest.ts new file mode 100644 index 0000000000..2c68ec0979 --- /dev/null +++ b/ui/api-client/src/models/MongoDbAtlasConfigureRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MongoDbAtlasConfigureRequest + */ +export interface MongoDbAtlasConfigureRequest { + /** + * MongoDB Atlas Programmatic Private Key + * @type {string} + * @memberof MongoDbAtlasConfigureRequest + */ + privateKey: string; + /** + * MongoDB Atlas Programmatic Public Key + * @type {string} + * @memberof MongoDbAtlasConfigureRequest + */ + publicKey: string; +} + +/** + * Check if a given object implements the MongoDbAtlasConfigureRequest interface. + */ +export function instanceOfMongoDbAtlasConfigureRequest(value: object): value is MongoDbAtlasConfigureRequest { + if (!('privateKey' in value) || value['privateKey'] === undefined) return false; + if (!('publicKey' in value) || value['publicKey'] === undefined) return false; + return true; +} + +export function MongoDbAtlasConfigureRequestFromJSON(json: any): MongoDbAtlasConfigureRequest { + return MongoDbAtlasConfigureRequestFromJSONTyped(json, false); +} + +export function MongoDbAtlasConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MongoDbAtlasConfigureRequest { + if (json == null) { + return json; + } + return { + privateKey: json['private_key'], + publicKey: json['public_key'], + }; +} + +export function MongoDbAtlasConfigureRequestToJSON(json: any): MongoDbAtlasConfigureRequest { + return MongoDbAtlasConfigureRequestToJSONTyped(json, false); +} + +export function MongoDbAtlasConfigureRequestToJSONTyped( + value?: MongoDbAtlasConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + private_key: value['privateKey'], + public_key: value['publicKey'], + }; +} diff --git a/ui/api-client/src/models/MongoDbAtlasWriteRoleRequest.ts b/ui/api-client/src/models/MongoDbAtlasWriteRoleRequest.ts new file mode 100644 index 0000000000..96c4b6a16e --- /dev/null +++ b/ui/api-client/src/models/MongoDbAtlasWriteRoleRequest.ts @@ -0,0 +1,125 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MongoDbAtlasWriteRoleRequest + */ +export interface MongoDbAtlasWriteRoleRequest { + /** + * Access list entry in CIDR notation to be added for the API key. Optional for organization and project keys. + * @type {Array} + * @memberof MongoDbAtlasWriteRoleRequest + */ + cidrBlocks?: Array; + /** + * IP address to be added to the access list for the API key. Optional for organization and project keys. + * @type {Array} + * @memberof MongoDbAtlasWriteRoleRequest + */ + ipAddresses?: Array; + /** + * The maximum allowed lifetime of credentials issued using this role. + * @type {string} + * @memberof MongoDbAtlasWriteRoleRequest + */ + maxTtl?: string; + /** + * Organization ID required for an organization API key + * @type {string} + * @memberof MongoDbAtlasWriteRoleRequest + */ + organizationId?: string; + /** + * Project ID the project API key belongs to. + * @type {string} + * @memberof MongoDbAtlasWriteRoleRequest + */ + projectId?: string; + /** + * Roles assigned when an organization API Key is assigned to a project API key + * @type {Array} + * @memberof MongoDbAtlasWriteRoleRequest + */ + projectRoles?: Array; + /** + * List of roles that the API Key should be granted. A minimum of one role must be provided. Any roles provided must be valid for the assigned Project, required for organization and project keys. + * @type {Array} + * @memberof MongoDbAtlasWriteRoleRequest + */ + roles: Array; + /** + * Duration in seconds after which the issued credential should expire. Defaults to 0, in which case the value will fallback to the system/mount defaults. + * @type {string} + * @memberof MongoDbAtlasWriteRoleRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the MongoDbAtlasWriteRoleRequest interface. + */ +export function instanceOfMongoDbAtlasWriteRoleRequest(value: object): value is MongoDbAtlasWriteRoleRequest { + if (!('roles' in value) || value['roles'] === undefined) return false; + return true; +} + +export function MongoDbAtlasWriteRoleRequestFromJSON(json: any): MongoDbAtlasWriteRoleRequest { + return MongoDbAtlasWriteRoleRequestFromJSONTyped(json, false); +} + +export function MongoDbAtlasWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MongoDbAtlasWriteRoleRequest { + if (json == null) { + return json; + } + return { + cidrBlocks: json['cidr_blocks'] == null ? undefined : json['cidr_blocks'], + ipAddresses: json['ip_addresses'] == null ? undefined : json['ip_addresses'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + organizationId: json['organization_id'] == null ? undefined : json['organization_id'], + projectId: json['project_id'] == null ? undefined : json['project_id'], + projectRoles: json['project_roles'] == null ? undefined : json['project_roles'], + roles: json['roles'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function MongoDbAtlasWriteRoleRequestToJSON(json: any): MongoDbAtlasWriteRoleRequest { + return MongoDbAtlasWriteRoleRequestToJSONTyped(json, false); +} + +export function MongoDbAtlasWriteRoleRequestToJSONTyped( + value?: MongoDbAtlasWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cidr_blocks: value['cidrBlocks'], + ip_addresses: value['ipAddresses'], + max_ttl: value['maxTtl'], + organization_id: value['organizationId'], + project_id: value['projectId'], + project_roles: value['projectRoles'], + roles: value['roles'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/MountsEnableSecretsEngineRequest.ts b/ui/api-client/src/models/MountsEnableSecretsEngineRequest.ts new file mode 100644 index 0000000000..31f6198612 --- /dev/null +++ b/ui/api-client/src/models/MountsEnableSecretsEngineRequest.ts @@ -0,0 +1,135 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MountsEnableSecretsEngineRequest + */ +export interface MountsEnableSecretsEngineRequest { + /** + * Configuration for this mount, such as default_lease_ttl and max_lease_ttl. + * @type {object} + * @memberof MountsEnableSecretsEngineRequest + */ + config?: object; + /** + * User-friendly description for this mount. + * @type {string} + * @memberof MountsEnableSecretsEngineRequest + */ + description?: string; + /** + * Whether to give the mount access to Vault's external entropy. + * @type {boolean} + * @memberof MountsEnableSecretsEngineRequest + */ + externalEntropyAccess?: boolean; + /** + * Mark the mount as a local mount, which is not replicated and is unaffected by replication. + * @type {boolean} + * @memberof MountsEnableSecretsEngineRequest + */ + local?: boolean; + /** + * The options to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof MountsEnableSecretsEngineRequest + */ + options?: object; + /** + * Name of the plugin to mount based from the name registered in the plugin catalog. + * @type {string} + * @memberof MountsEnableSecretsEngineRequest + */ + pluginName?: string; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof MountsEnableSecretsEngineRequest + */ + pluginVersion?: string; + /** + * Whether to turn on seal wrapping for the mount. + * @type {boolean} + * @memberof MountsEnableSecretsEngineRequest + */ + sealWrap?: boolean; + /** + * The type of the backend. Example: "passthrough" + * @type {string} + * @memberof MountsEnableSecretsEngineRequest + */ + type?: string; +} + +/** + * Check if a given object implements the MountsEnableSecretsEngineRequest interface. + */ +export function instanceOfMountsEnableSecretsEngineRequest( + value: object +): value is MountsEnableSecretsEngineRequest { + return true; +} + +export function MountsEnableSecretsEngineRequestFromJSON(json: any): MountsEnableSecretsEngineRequest { + return MountsEnableSecretsEngineRequestFromJSONTyped(json, false); +} + +export function MountsEnableSecretsEngineRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MountsEnableSecretsEngineRequest { + if (json == null) { + return json; + } + return { + config: json['config'] == null ? undefined : json['config'], + description: json['description'] == null ? undefined : json['description'], + externalEntropyAccess: + json['external_entropy_access'] == null ? undefined : json['external_entropy_access'], + local: json['local'] == null ? undefined : json['local'], + options: json['options'] == null ? undefined : json['options'], + pluginName: json['plugin_name'] == null ? undefined : json['plugin_name'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + sealWrap: json['seal_wrap'] == null ? undefined : json['seal_wrap'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function MountsEnableSecretsEngineRequestToJSON(json: any): MountsEnableSecretsEngineRequest { + return MountsEnableSecretsEngineRequestToJSONTyped(json, false); +} + +export function MountsEnableSecretsEngineRequestToJSONTyped( + value?: MountsEnableSecretsEngineRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + config: value['config'], + description: value['description'], + external_entropy_access: value['externalEntropyAccess'], + local: value['local'], + options: value['options'], + plugin_name: value['pluginName'], + plugin_version: value['pluginVersion'], + seal_wrap: value['sealWrap'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/MountsReadConfigurationResponse.ts b/ui/api-client/src/models/MountsReadConfigurationResponse.ts new file mode 100644 index 0000000000..dc29974114 --- /dev/null +++ b/ui/api-client/src/models/MountsReadConfigurationResponse.ts @@ -0,0 +1,167 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MountsReadConfigurationResponse + */ +export interface MountsReadConfigurationResponse { + /** + * + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + accessor?: string; + /** + * Configuration for this mount, such as default_lease_ttl and max_lease_ttl. + * @type {object} + * @memberof MountsReadConfigurationResponse + */ + config?: object; + /** + * + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + deprecationStatus?: string; + /** + * User-friendly description for this mount. + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + description?: string; + /** + * + * @type {boolean} + * @memberof MountsReadConfigurationResponse + */ + externalEntropyAccess?: boolean; + /** + * Mark the mount as a local mount, which is not replicated and is unaffected by replication. + * @type {boolean} + * @memberof MountsReadConfigurationResponse + */ + local?: boolean; + /** + * The options to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof MountsReadConfigurationResponse + */ + options?: object; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + pluginVersion?: string; + /** + * + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + runningPluginVersion?: string; + /** + * + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + runningSha256?: string; + /** + * Whether to turn on seal wrapping for the mount. + * @type {boolean} + * @memberof MountsReadConfigurationResponse + */ + sealWrap?: boolean; + /** + * The type of the backend. Example: "passthrough" + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + type?: string; + /** + * + * @type {string} + * @memberof MountsReadConfigurationResponse + */ + uuid?: string; +} + +/** + * Check if a given object implements the MountsReadConfigurationResponse interface. + */ +export function instanceOfMountsReadConfigurationResponse( + value: object +): value is MountsReadConfigurationResponse { + return true; +} + +export function MountsReadConfigurationResponseFromJSON(json: any): MountsReadConfigurationResponse { + return MountsReadConfigurationResponseFromJSONTyped(json, false); +} + +export function MountsReadConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MountsReadConfigurationResponse { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + config: json['config'] == null ? undefined : json['config'], + deprecationStatus: json['deprecation_status'] == null ? undefined : json['deprecation_status'], + description: json['description'] == null ? undefined : json['description'], + externalEntropyAccess: + json['external_entropy_access'] == null ? undefined : json['external_entropy_access'], + local: json['local'] == null ? undefined : json['local'], + options: json['options'] == null ? undefined : json['options'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + runningPluginVersion: json['running_plugin_version'] == null ? undefined : json['running_plugin_version'], + runningSha256: json['running_sha256'] == null ? undefined : json['running_sha256'], + sealWrap: json['seal_wrap'] == null ? undefined : json['seal_wrap'], + type: json['type'] == null ? undefined : json['type'], + uuid: json['uuid'] == null ? undefined : json['uuid'], + }; +} + +export function MountsReadConfigurationResponseToJSON(json: any): MountsReadConfigurationResponse { + return MountsReadConfigurationResponseToJSONTyped(json, false); +} + +export function MountsReadConfigurationResponseToJSONTyped( + value?: MountsReadConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + config: value['config'], + deprecation_status: value['deprecationStatus'], + description: value['description'], + external_entropy_access: value['externalEntropyAccess'], + local: value['local'], + options: value['options'], + plugin_version: value['pluginVersion'], + running_plugin_version: value['runningPluginVersion'], + running_sha256: value['runningSha256'], + seal_wrap: value['sealWrap'], + type: value['type'], + uuid: value['uuid'], + }; +} diff --git a/ui/api-client/src/models/MountsReadTuningInformationResponse.ts b/ui/api-client/src/models/MountsReadTuningInformationResponse.ts new file mode 100644 index 0000000000..431ebd37f0 --- /dev/null +++ b/ui/api-client/src/models/MountsReadTuningInformationResponse.ts @@ -0,0 +1,240 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MountsReadTuningInformationResponse + */ +export interface MountsReadTuningInformationResponse { + /** + * + * @type {Array} + * @memberof MountsReadTuningInformationResponse + */ + allowedManagedKeys?: Array; + /** + * A list of headers to whitelist and allow a plugin to set on responses. + * @type {Array} + * @memberof MountsReadTuningInformationResponse + */ + allowedResponseHeaders?: Array; + /** + * + * @type {Array} + * @memberof MountsReadTuningInformationResponse + */ + auditNonHmacRequestKeys?: Array; + /** + * + * @type {Array} + * @memberof MountsReadTuningInformationResponse + */ + auditNonHmacResponseKeys?: Array; + /** + * The default lease TTL for this mount. + * @type {number} + * @memberof MountsReadTuningInformationResponse + */ + defaultLeaseTtl?: number; + /** + * A list of auth accessors that the mount is allowed to delegate authentication too + * @type {Array} + * @memberof MountsReadTuningInformationResponse + */ + delegatedAuthAccessors?: Array; + /** + * User-friendly description for this credential backend. + * @type {string} + * @memberof MountsReadTuningInformationResponse + */ + description?: string; + /** + * + * @type {boolean} + * @memberof MountsReadTuningInformationResponse + */ + externalEntropyAccess?: boolean; + /** + * + * @type {boolean} + * @memberof MountsReadTuningInformationResponse + */ + forceNoCache?: boolean; + /** + * + * @type {string} + * @memberof MountsReadTuningInformationResponse + */ + identityTokenKey?: string; + /** + * + * @type {string} + * @memberof MountsReadTuningInformationResponse + */ + listingVisibility?: string; + /** + * The max lease TTL for this mount. + * @type {number} + * @memberof MountsReadTuningInformationResponse + */ + maxLeaseTtl?: number; + /** + * The options to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof MountsReadTuningInformationResponse + */ + options?: object; + /** + * + * @type {Array} + * @memberof MountsReadTuningInformationResponse + */ + passthroughRequestHeaders?: Array; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof MountsReadTuningInformationResponse + */ + pluginVersion?: string; + /** + * The type of token to issue (service or batch). + * @type {string} + * @memberof MountsReadTuningInformationResponse + */ + tokenType?: string; + /** + * + * @type {boolean} + * @memberof MountsReadTuningInformationResponse + */ + trimRequestTrailingSlashes?: boolean; + /** + * + * @type {number} + * @memberof MountsReadTuningInformationResponse + */ + userLockoutCounterResetDuration?: number; + /** + * + * @type {boolean} + * @memberof MountsReadTuningInformationResponse + */ + userLockoutDisable?: boolean; + /** + * + * @type {number} + * @memberof MountsReadTuningInformationResponse + */ + userLockoutDuration?: number; + /** + * + * @type {number} + * @memberof MountsReadTuningInformationResponse + */ + userLockoutThreshold?: number; +} + +/** + * Check if a given object implements the MountsReadTuningInformationResponse interface. + */ +export function instanceOfMountsReadTuningInformationResponse( + value: object +): value is MountsReadTuningInformationResponse { + return true; +} + +export function MountsReadTuningInformationResponseFromJSON(json: any): MountsReadTuningInformationResponse { + return MountsReadTuningInformationResponseFromJSONTyped(json, false); +} + +export function MountsReadTuningInformationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MountsReadTuningInformationResponse { + if (json == null) { + return json; + } + return { + allowedManagedKeys: json['allowed_managed_keys'] == null ? undefined : json['allowed_managed_keys'], + allowedResponseHeaders: + json['allowed_response_headers'] == null ? undefined : json['allowed_response_headers'], + auditNonHmacRequestKeys: + json['audit_non_hmac_request_keys'] == null ? undefined : json['audit_non_hmac_request_keys'], + auditNonHmacResponseKeys: + json['audit_non_hmac_response_keys'] == null ? undefined : json['audit_non_hmac_response_keys'], + defaultLeaseTtl: json['default_lease_ttl'] == null ? undefined : json['default_lease_ttl'], + delegatedAuthAccessors: + json['delegated_auth_accessors'] == null ? undefined : json['delegated_auth_accessors'], + description: json['description'] == null ? undefined : json['description'], + externalEntropyAccess: + json['external_entropy_access'] == null ? undefined : json['external_entropy_access'], + forceNoCache: json['force_no_cache'] == null ? undefined : json['force_no_cache'], + identityTokenKey: json['identity_token_key'] == null ? undefined : json['identity_token_key'], + listingVisibility: json['listing_visibility'] == null ? undefined : json['listing_visibility'], + maxLeaseTtl: json['max_lease_ttl'] == null ? undefined : json['max_lease_ttl'], + options: json['options'] == null ? undefined : json['options'], + passthroughRequestHeaders: + json['passthrough_request_headers'] == null ? undefined : json['passthrough_request_headers'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + trimRequestTrailingSlashes: + json['trim_request_trailing_slashes'] == null ? undefined : json['trim_request_trailing_slashes'], + userLockoutCounterResetDuration: + json['user_lockout_counter_reset_duration'] == null + ? undefined + : json['user_lockout_counter_reset_duration'], + userLockoutDisable: json['user_lockout_disable'] == null ? undefined : json['user_lockout_disable'], + userLockoutDuration: json['user_lockout_duration'] == null ? undefined : json['user_lockout_duration'], + userLockoutThreshold: json['user_lockout_threshold'] == null ? undefined : json['user_lockout_threshold'], + }; +} + +export function MountsReadTuningInformationResponseToJSON(json: any): MountsReadTuningInformationResponse { + return MountsReadTuningInformationResponseToJSONTyped(json, false); +} + +export function MountsReadTuningInformationResponseToJSONTyped( + value?: MountsReadTuningInformationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_managed_keys: value['allowedManagedKeys'], + allowed_response_headers: value['allowedResponseHeaders'], + audit_non_hmac_request_keys: value['auditNonHmacRequestKeys'], + audit_non_hmac_response_keys: value['auditNonHmacResponseKeys'], + default_lease_ttl: value['defaultLeaseTtl'], + delegated_auth_accessors: value['delegatedAuthAccessors'], + description: value['description'], + external_entropy_access: value['externalEntropyAccess'], + force_no_cache: value['forceNoCache'], + identity_token_key: value['identityTokenKey'], + listing_visibility: value['listingVisibility'], + max_lease_ttl: value['maxLeaseTtl'], + options: value['options'], + passthrough_request_headers: value['passthroughRequestHeaders'], + plugin_version: value['pluginVersion'], + token_type: value['tokenType'], + trim_request_trailing_slashes: value['trimRequestTrailingSlashes'], + user_lockout_counter_reset_duration: value['userLockoutCounterResetDuration'], + user_lockout_disable: value['userLockoutDisable'], + user_lockout_duration: value['userLockoutDuration'], + user_lockout_threshold: value['userLockoutThreshold'], + }; +} diff --git a/ui/api-client/src/models/MountsTuneConfigurationParametersRequest.ts b/ui/api-client/src/models/MountsTuneConfigurationParametersRequest.ts new file mode 100644 index 0000000000..2a4296eb3a --- /dev/null +++ b/ui/api-client/src/models/MountsTuneConfigurationParametersRequest.ts @@ -0,0 +1,200 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MountsTuneConfigurationParametersRequest + */ +export interface MountsTuneConfigurationParametersRequest { + /** + * + * @type {Array} + * @memberof MountsTuneConfigurationParametersRequest + */ + allowedManagedKeys?: Array; + /** + * A list of headers to whitelist and allow a plugin to set on responses. + * @type {Array} + * @memberof MountsTuneConfigurationParametersRequest + */ + allowedResponseHeaders?: Array; + /** + * The list of keys in the request data object that will not be HMAC'd by audit devices. + * @type {Array} + * @memberof MountsTuneConfigurationParametersRequest + */ + auditNonHmacRequestKeys?: Array; + /** + * The list of keys in the response data object that will not be HMAC'd by audit devices. + * @type {Array} + * @memberof MountsTuneConfigurationParametersRequest + */ + auditNonHmacResponseKeys?: Array; + /** + * The default lease TTL for this mount. + * @type {string} + * @memberof MountsTuneConfigurationParametersRequest + */ + defaultLeaseTtl?: string; + /** + * + * @type {Array} + * @memberof MountsTuneConfigurationParametersRequest + */ + delegatedAuthAccessors?: Array; + /** + * User-friendly description for this credential backend. + * @type {string} + * @memberof MountsTuneConfigurationParametersRequest + */ + description?: string; + /** + * The name of the key used to sign plugin identity tokens. Defaults to the default key. + * @type {string} + * @memberof MountsTuneConfigurationParametersRequest + */ + identityTokenKey?: string; + /** + * Determines the visibility of the mount in the UI-specific listing endpoint. Accepted value are 'unauth' and 'hidden', with the empty default ('') behaving like 'hidden'. + * @type {string} + * @memberof MountsTuneConfigurationParametersRequest + */ + listingVisibility?: string; + /** + * The max lease TTL for this mount. + * @type {string} + * @memberof MountsTuneConfigurationParametersRequest + */ + maxLeaseTtl?: string; + /** + * The options to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof MountsTuneConfigurationParametersRequest + */ + options?: object; + /** + * A list of headers to whitelist and pass from the request to the plugin. + * @type {Array} + * @memberof MountsTuneConfigurationParametersRequest + */ + passthroughRequestHeaders?: Array; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof MountsTuneConfigurationParametersRequest + */ + pluginVersion?: string; + /** + * The type of token to issue (service or batch). + * @type {string} + * @memberof MountsTuneConfigurationParametersRequest + */ + tokenType?: string; + /** + * Whether to trim a trailing slash on incoming requests to this mount + * @type {boolean} + * @memberof MountsTuneConfigurationParametersRequest + */ + trimRequestTrailingSlashes?: boolean; + /** + * The user lockout configuration to pass into the backend. Should be a json object with string keys and values. + * @type {object} + * @memberof MountsTuneConfigurationParametersRequest + */ + userLockoutConfig?: object; +} + +/** + * Check if a given object implements the MountsTuneConfigurationParametersRequest interface. + */ +export function instanceOfMountsTuneConfigurationParametersRequest( + value: object +): value is MountsTuneConfigurationParametersRequest { + return true; +} + +export function MountsTuneConfigurationParametersRequestFromJSON( + json: any +): MountsTuneConfigurationParametersRequest { + return MountsTuneConfigurationParametersRequestFromJSONTyped(json, false); +} + +export function MountsTuneConfigurationParametersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): MountsTuneConfigurationParametersRequest { + if (json == null) { + return json; + } + return { + allowedManagedKeys: json['allowed_managed_keys'] == null ? undefined : json['allowed_managed_keys'], + allowedResponseHeaders: + json['allowed_response_headers'] == null ? undefined : json['allowed_response_headers'], + auditNonHmacRequestKeys: + json['audit_non_hmac_request_keys'] == null ? undefined : json['audit_non_hmac_request_keys'], + auditNonHmacResponseKeys: + json['audit_non_hmac_response_keys'] == null ? undefined : json['audit_non_hmac_response_keys'], + defaultLeaseTtl: json['default_lease_ttl'] == null ? undefined : json['default_lease_ttl'], + delegatedAuthAccessors: + json['delegated_auth_accessors'] == null ? undefined : json['delegated_auth_accessors'], + description: json['description'] == null ? undefined : json['description'], + identityTokenKey: json['identity_token_key'] == null ? undefined : json['identity_token_key'], + listingVisibility: json['listing_visibility'] == null ? undefined : json['listing_visibility'], + maxLeaseTtl: json['max_lease_ttl'] == null ? undefined : json['max_lease_ttl'], + options: json['options'] == null ? undefined : json['options'], + passthroughRequestHeaders: + json['passthrough_request_headers'] == null ? undefined : json['passthrough_request_headers'], + pluginVersion: json['plugin_version'] == null ? undefined : json['plugin_version'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + trimRequestTrailingSlashes: + json['trim_request_trailing_slashes'] == null ? undefined : json['trim_request_trailing_slashes'], + userLockoutConfig: json['user_lockout_config'] == null ? undefined : json['user_lockout_config'], + }; +} + +export function MountsTuneConfigurationParametersRequestToJSON( + json: any +): MountsTuneConfigurationParametersRequest { + return MountsTuneConfigurationParametersRequestToJSONTyped(json, false); +} + +export function MountsTuneConfigurationParametersRequestToJSONTyped( + value?: MountsTuneConfigurationParametersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_managed_keys: value['allowedManagedKeys'], + allowed_response_headers: value['allowedResponseHeaders'], + audit_non_hmac_request_keys: value['auditNonHmacRequestKeys'], + audit_non_hmac_response_keys: value['auditNonHmacResponseKeys'], + default_lease_ttl: value['defaultLeaseTtl'], + delegated_auth_accessors: value['delegatedAuthAccessors'], + description: value['description'], + identity_token_key: value['identityTokenKey'], + listing_visibility: value['listingVisibility'], + max_lease_ttl: value['maxLeaseTtl'], + options: value['options'], + passthrough_request_headers: value['passthroughRequestHeaders'], + plugin_version: value['pluginVersion'], + token_type: value['tokenType'], + trim_request_trailing_slashes: value['trimRequestTrailingSlashes'], + user_lockout_config: value['userLockoutConfig'], + }; +} diff --git a/ui/api-client/src/models/NomadConfigureAccessRequest.ts b/ui/api-client/src/models/NomadConfigureAccessRequest.ts new file mode 100644 index 0000000000..8d4f38b408 --- /dev/null +++ b/ui/api-client/src/models/NomadConfigureAccessRequest.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface NomadConfigureAccessRequest + */ +export interface NomadConfigureAccessRequest { + /** + * Nomad server address + * @type {string} + * @memberof NomadConfigureAccessRequest + */ + address?: string; + /** + * CA certificate to use when verifying Nomad server certificate, must be x509 PEM encoded. + * @type {string} + * @memberof NomadConfigureAccessRequest + */ + caCert?: string; + /** + * Client certificate used for Nomad's TLS communication, must be x509 PEM encoded and if this is set you need to also set client_key. + * @type {string} + * @memberof NomadConfigureAccessRequest + */ + clientCert?: string; + /** + * Client key used for Nomad's TLS communication, must be x509 PEM encoded and if this is set you need to also set client_cert. + * @type {string} + * @memberof NomadConfigureAccessRequest + */ + clientKey?: string; + /** + * Max length for name of generated Nomad tokens + * @type {number} + * @memberof NomadConfigureAccessRequest + */ + maxTokenNameLength?: number; + /** + * Token for API calls + * @type {string} + * @memberof NomadConfigureAccessRequest + */ + token?: string; +} + +/** + * Check if a given object implements the NomadConfigureAccessRequest interface. + */ +export function instanceOfNomadConfigureAccessRequest(value: object): value is NomadConfigureAccessRequest { + return true; +} + +export function NomadConfigureAccessRequestFromJSON(json: any): NomadConfigureAccessRequest { + return NomadConfigureAccessRequestFromJSONTyped(json, false); +} + +export function NomadConfigureAccessRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): NomadConfigureAccessRequest { + if (json == null) { + return json; + } + return { + address: json['address'] == null ? undefined : json['address'], + caCert: json['ca_cert'] == null ? undefined : json['ca_cert'], + clientCert: json['client_cert'] == null ? undefined : json['client_cert'], + clientKey: json['client_key'] == null ? undefined : json['client_key'], + maxTokenNameLength: json['max_token_name_length'] == null ? undefined : json['max_token_name_length'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function NomadConfigureAccessRequestToJSON(json: any): NomadConfigureAccessRequest { + return NomadConfigureAccessRequestToJSONTyped(json, false); +} + +export function NomadConfigureAccessRequestToJSONTyped( + value?: NomadConfigureAccessRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + address: value['address'], + ca_cert: value['caCert'], + client_cert: value['clientCert'], + client_key: value['clientKey'], + max_token_name_length: value['maxTokenNameLength'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/NomadConfigureLeaseRequest.ts b/ui/api-client/src/models/NomadConfigureLeaseRequest.ts new file mode 100644 index 0000000000..20ef5410cf --- /dev/null +++ b/ui/api-client/src/models/NomadConfigureLeaseRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface NomadConfigureLeaseRequest + */ +export interface NomadConfigureLeaseRequest { + /** + * Duration after which the issued token should not be allowed to be renewed + * @type {string} + * @memberof NomadConfigureLeaseRequest + */ + maxTtl?: string; + /** + * Duration before which the issued token needs renewal + * @type {string} + * @memberof NomadConfigureLeaseRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the NomadConfigureLeaseRequest interface. + */ +export function instanceOfNomadConfigureLeaseRequest(value: object): value is NomadConfigureLeaseRequest { + return true; +} + +export function NomadConfigureLeaseRequestFromJSON(json: any): NomadConfigureLeaseRequest { + return NomadConfigureLeaseRequestFromJSONTyped(json, false); +} + +export function NomadConfigureLeaseRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): NomadConfigureLeaseRequest { + if (json == null) { + return json; + } + return { + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function NomadConfigureLeaseRequestToJSON(json: any): NomadConfigureLeaseRequest { + return NomadConfigureLeaseRequestToJSONTyped(json, false); +} + +export function NomadConfigureLeaseRequestToJSONTyped( + value?: NomadConfigureLeaseRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + max_ttl: value['maxTtl'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/NomadWriteRoleRequest.ts b/ui/api-client/src/models/NomadWriteRoleRequest.ts new file mode 100644 index 0000000000..8075e432c3 --- /dev/null +++ b/ui/api-client/src/models/NomadWriteRoleRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface NomadWriteRoleRequest + */ +export interface NomadWriteRoleRequest { + /** + * Boolean value describing if the token should be global or not. Defaults to false. + * @type {boolean} + * @memberof NomadWriteRoleRequest + */ + global?: boolean; + /** + * Comma-separated string or list of policies as previously created in Nomad. Required for 'client' token. + * @type {Array} + * @memberof NomadWriteRoleRequest + */ + policies?: Array; + /** + * Which type of token to create: 'client' or 'management'. If a 'management' token, the "policies" parameter is not required. Defaults to 'client'. + * @type {string} + * @memberof NomadWriteRoleRequest + */ + type?: string; +} + +/** + * Check if a given object implements the NomadWriteRoleRequest interface. + */ +export function instanceOfNomadWriteRoleRequest(value: object): value is NomadWriteRoleRequest { + return true; +} + +export function NomadWriteRoleRequestFromJSON(json: any): NomadWriteRoleRequest { + return NomadWriteRoleRequestFromJSONTyped(json, false); +} + +export function NomadWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): NomadWriteRoleRequest { + if (json == null) { + return json; + } + return { + global: json['global'] == null ? undefined : json['global'], + policies: json['policies'] == null ? undefined : json['policies'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function NomadWriteRoleRequestToJSON(json: any): NomadWriteRoleRequest { + return NomadWriteRoleRequestToJSONTyped(json, false); +} + +export function NomadWriteRoleRequestToJSONTyped( + value?: NomadWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + global: value['global'], + policies: value['policies'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/OciConfigureRequest.ts b/ui/api-client/src/models/OciConfigureRequest.ts new file mode 100644 index 0000000000..f14b480ffc --- /dev/null +++ b/ui/api-client/src/models/OciConfigureRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OciConfigureRequest + */ +export interface OciConfigureRequest { + /** + * The tenancy id of the account. + * @type {string} + * @memberof OciConfigureRequest + */ + homeTenancyId?: string; +} + +/** + * Check if a given object implements the OciConfigureRequest interface. + */ +export function instanceOfOciConfigureRequest(value: object): value is OciConfigureRequest { + return true; +} + +export function OciConfigureRequestFromJSON(json: any): OciConfigureRequest { + return OciConfigureRequestFromJSONTyped(json, false); +} + +export function OciConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OciConfigureRequest { + if (json == null) { + return json; + } + return { + homeTenancyId: json['home_tenancy_id'] == null ? undefined : json['home_tenancy_id'], + }; +} + +export function OciConfigureRequestToJSON(json: any): OciConfigureRequest { + return OciConfigureRequestToJSONTyped(json, false); +} + +export function OciConfigureRequestToJSONTyped( + value?: OciConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + home_tenancy_id: value['homeTenancyId'], + }; +} diff --git a/ui/api-client/src/models/OciLoginRequest.ts b/ui/api-client/src/models/OciLoginRequest.ts new file mode 100644 index 0000000000..1ebf0c065d --- /dev/null +++ b/ui/api-client/src/models/OciLoginRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OciLoginRequest + */ +export interface OciLoginRequest { + /** + * The signed headers of the client + * @type {string} + * @memberof OciLoginRequest + */ + requestHeaders?: string; +} + +/** + * Check if a given object implements the OciLoginRequest interface. + */ +export function instanceOfOciLoginRequest(value: object): value is OciLoginRequest { + return true; +} + +export function OciLoginRequestFromJSON(json: any): OciLoginRequest { + return OciLoginRequestFromJSONTyped(json, false); +} + +export function OciLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OciLoginRequest { + if (json == null) { + return json; + } + return { + requestHeaders: json['request_headers'] == null ? undefined : json['request_headers'], + }; +} + +export function OciLoginRequestToJSON(json: any): OciLoginRequest { + return OciLoginRequestToJSONTyped(json, false); +} + +export function OciLoginRequestToJSONTyped( + value?: OciLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + request_headers: value['requestHeaders'], + }; +} diff --git a/ui/api-client/src/models/OciWriteRoleRequest.ts b/ui/api-client/src/models/OciWriteRoleRequest.ts new file mode 100644 index 0000000000..b33531df6a --- /dev/null +++ b/ui/api-client/src/models/OciWriteRoleRequest.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OciWriteRoleRequest + */ +export interface OciWriteRoleRequest { + /** + * A comma separated list of Group or Dynamic Group OCIDs that are allowed to take this role. + * @type {Array} + * @memberof OciWriteRoleRequest + */ + ocidList?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof OciWriteRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof OciWriteRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof OciWriteRoleRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof OciWriteRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof OciWriteRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof OciWriteRoleRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof OciWriteRoleRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof OciWriteRoleRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof OciWriteRoleRequest + */ + tokenType?: string; +} + +/** + * Check if a given object implements the OciWriteRoleRequest interface. + */ +export function instanceOfOciWriteRoleRequest(value: object): value is OciWriteRoleRequest { + return true; +} + +export function OciWriteRoleRequestFromJSON(json: any): OciWriteRoleRequest { + return OciWriteRoleRequestFromJSONTyped(json, false); +} + +export function OciWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OciWriteRoleRequest { + if (json == null) { + return json; + } + return { + ocidList: json['ocid_list'] == null ? undefined : json['ocid_list'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + }; +} + +export function OciWriteRoleRequestToJSON(json: any): OciWriteRoleRequest { + return OciWriteRoleRequestToJSONTyped(json, false); +} + +export function OciWriteRoleRequestToJSONTyped( + value?: OciWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ocid_list: value['ocidList'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + }; +} diff --git a/ui/api-client/src/models/OidcConfigureRequest.ts b/ui/api-client/src/models/OidcConfigureRequest.ts new file mode 100644 index 0000000000..141aa65b38 --- /dev/null +++ b/ui/api-client/src/models/OidcConfigureRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcConfigureRequest + */ +export interface OidcConfigureRequest { + /** + * Issuer URL to be used in the iss claim of the token. If not set, Vault's app_addr will be used. + * @type {string} + * @memberof OidcConfigureRequest + */ + issuer?: string; +} + +/** + * Check if a given object implements the OidcConfigureRequest interface. + */ +export function instanceOfOidcConfigureRequest(value: object): value is OidcConfigureRequest { + return true; +} + +export function OidcConfigureRequestFromJSON(json: any): OidcConfigureRequest { + return OidcConfigureRequestFromJSONTyped(json, false); +} + +export function OidcConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcConfigureRequest { + if (json == null) { + return json; + } + return { + issuer: json['issuer'] == null ? undefined : json['issuer'], + }; +} + +export function OidcConfigureRequestToJSON(json: any): OidcConfigureRequest { + return OidcConfigureRequestToJSONTyped(json, false); +} + +export function OidcConfigureRequestToJSONTyped( + value?: OidcConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + issuer: value['issuer'], + }; +} diff --git a/ui/api-client/src/models/OidcIntrospectRequest.ts b/ui/api-client/src/models/OidcIntrospectRequest.ts new file mode 100644 index 0000000000..bc75f7f1b5 --- /dev/null +++ b/ui/api-client/src/models/OidcIntrospectRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcIntrospectRequest + */ +export interface OidcIntrospectRequest { + /** + * Optional client_id to verify + * @type {string} + * @memberof OidcIntrospectRequest + */ + clientId?: string; + /** + * Token to verify + * @type {string} + * @memberof OidcIntrospectRequest + */ + token?: string; +} + +/** + * Check if a given object implements the OidcIntrospectRequest interface. + */ +export function instanceOfOidcIntrospectRequest(value: object): value is OidcIntrospectRequest { + return true; +} + +export function OidcIntrospectRequestFromJSON(json: any): OidcIntrospectRequest { + return OidcIntrospectRequestFromJSONTyped(json, false); +} + +export function OidcIntrospectRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcIntrospectRequest { + if (json == null) { + return json; + } + return { + clientId: json['client_id'] == null ? undefined : json['client_id'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function OidcIntrospectRequestToJSON(json: any): OidcIntrospectRequest { + return OidcIntrospectRequestToJSONTyped(json, false); +} + +export function OidcIntrospectRequestToJSONTyped( + value?: OidcIntrospectRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_id: value['clientId'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/OidcProviderAuthorizeWithParametersRequest.ts b/ui/api-client/src/models/OidcProviderAuthorizeWithParametersRequest.ts new file mode 100644 index 0000000000..a12276b384 --- /dev/null +++ b/ui/api-client/src/models/OidcProviderAuthorizeWithParametersRequest.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcProviderAuthorizeWithParametersRequest + */ +export interface OidcProviderAuthorizeWithParametersRequest { + /** + * The ID of the requesting client. + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + clientId: string; + /** + * The code challenge derived from the code verifier. + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + codeChallenge?: string; + /** + * The method that was used to derive the code challenge. The following methods are supported: 'S256', 'plain'. Defaults to 'plain'. + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + codeChallengeMethod?: string; + /** + * The allowable elapsed time in seconds since the last time the end-user was actively authenticated. + * @type {number} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + maxAge?: number; + /** + * The value that will be returned in the ID token nonce claim after a token exchange. + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + nonce?: string; + /** + * The redirection URI to which the response will be sent. + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + redirectUri: string; + /** + * The OIDC authentication flow to be used. The following response types are supported: 'code' + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + responseType: string; + /** + * A space-delimited, case-sensitive list of scopes to be requested. The 'openid' scope is required. + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + scope: string; + /** + * The value used to maintain state between the authentication request and client. + * @type {string} + * @memberof OidcProviderAuthorizeWithParametersRequest + */ + state?: string; +} + +/** + * Check if a given object implements the OidcProviderAuthorizeWithParametersRequest interface. + */ +export function instanceOfOidcProviderAuthorizeWithParametersRequest( + value: object +): value is OidcProviderAuthorizeWithParametersRequest { + if (!('clientId' in value) || value['clientId'] === undefined) return false; + if (!('redirectUri' in value) || value['redirectUri'] === undefined) return false; + if (!('responseType' in value) || value['responseType'] === undefined) return false; + if (!('scope' in value) || value['scope'] === undefined) return false; + return true; +} + +export function OidcProviderAuthorizeWithParametersRequestFromJSON( + json: any +): OidcProviderAuthorizeWithParametersRequest { + return OidcProviderAuthorizeWithParametersRequestFromJSONTyped(json, false); +} + +export function OidcProviderAuthorizeWithParametersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcProviderAuthorizeWithParametersRequest { + if (json == null) { + return json; + } + return { + clientId: json['client_id'], + codeChallenge: json['code_challenge'] == null ? undefined : json['code_challenge'], + codeChallengeMethod: json['code_challenge_method'] == null ? undefined : json['code_challenge_method'], + maxAge: json['max_age'] == null ? undefined : json['max_age'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + redirectUri: json['redirect_uri'], + responseType: json['response_type'], + scope: json['scope'], + state: json['state'] == null ? undefined : json['state'], + }; +} + +export function OidcProviderAuthorizeWithParametersRequestToJSON( + json: any +): OidcProviderAuthorizeWithParametersRequest { + return OidcProviderAuthorizeWithParametersRequestToJSONTyped(json, false); +} + +export function OidcProviderAuthorizeWithParametersRequestToJSONTyped( + value?: OidcProviderAuthorizeWithParametersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_id: value['clientId'], + code_challenge: value['codeChallenge'], + code_challenge_method: value['codeChallengeMethod'], + max_age: value['maxAge'], + nonce: value['nonce'], + redirect_uri: value['redirectUri'], + response_type: value['responseType'], + scope: value['scope'], + state: value['state'], + }; +} diff --git a/ui/api-client/src/models/OidcProviderTokenRequest.ts b/ui/api-client/src/models/OidcProviderTokenRequest.ts new file mode 100644 index 0000000000..deb6938ff7 --- /dev/null +++ b/ui/api-client/src/models/OidcProviderTokenRequest.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcProviderTokenRequest + */ +export interface OidcProviderTokenRequest { + /** + * The ID of the requesting client. + * @type {string} + * @memberof OidcProviderTokenRequest + */ + clientId?: string; + /** + * The secret of the requesting client. + * @type {string} + * @memberof OidcProviderTokenRequest + */ + clientSecret?: string; + /** + * The authorization code received from the provider's authorization endpoint. + * @type {string} + * @memberof OidcProviderTokenRequest + */ + code: string; + /** + * The code verifier associated with the authorization code. + * @type {string} + * @memberof OidcProviderTokenRequest + */ + codeVerifier?: string; + /** + * The authorization grant type. The following grant types are supported: 'authorization_code'. + * @type {string} + * @memberof OidcProviderTokenRequest + */ + grantType: string; + /** + * The callback location where the authentication response was sent. + * @type {string} + * @memberof OidcProviderTokenRequest + */ + redirectUri: string; +} + +/** + * Check if a given object implements the OidcProviderTokenRequest interface. + */ +export function instanceOfOidcProviderTokenRequest(value: object): value is OidcProviderTokenRequest { + if (!('code' in value) || value['code'] === undefined) return false; + if (!('grantType' in value) || value['grantType'] === undefined) return false; + if (!('redirectUri' in value) || value['redirectUri'] === undefined) return false; + return true; +} + +export function OidcProviderTokenRequestFromJSON(json: any): OidcProviderTokenRequest { + return OidcProviderTokenRequestFromJSONTyped(json, false); +} + +export function OidcProviderTokenRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcProviderTokenRequest { + if (json == null) { + return json; + } + return { + clientId: json['client_id'] == null ? undefined : json['client_id'], + clientSecret: json['client_secret'] == null ? undefined : json['client_secret'], + code: json['code'], + codeVerifier: json['code_verifier'] == null ? undefined : json['code_verifier'], + grantType: json['grant_type'], + redirectUri: json['redirect_uri'], + }; +} + +export function OidcProviderTokenRequestToJSON(json: any): OidcProviderTokenRequest { + return OidcProviderTokenRequestToJSONTyped(json, false); +} + +export function OidcProviderTokenRequestToJSONTyped( + value?: OidcProviderTokenRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_id: value['clientId'], + client_secret: value['clientSecret'], + code: value['code'], + code_verifier: value['codeVerifier'], + grant_type: value['grantType'], + redirect_uri: value['redirectUri'], + }; +} diff --git a/ui/api-client/src/models/OidcRotateKeyRequest.ts b/ui/api-client/src/models/OidcRotateKeyRequest.ts new file mode 100644 index 0000000000..ee2bad2c9e --- /dev/null +++ b/ui/api-client/src/models/OidcRotateKeyRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcRotateKeyRequest + */ +export interface OidcRotateKeyRequest { + /** + * Controls how long the public portion of a key will be available for verification after being rotated. Setting verification_ttl here will override the verification_ttl set on the key. + * @type {string} + * @memberof OidcRotateKeyRequest + */ + verificationTtl?: string; +} + +/** + * Check if a given object implements the OidcRotateKeyRequest interface. + */ +export function instanceOfOidcRotateKeyRequest(value: object): value is OidcRotateKeyRequest { + return true; +} + +export function OidcRotateKeyRequestFromJSON(json: any): OidcRotateKeyRequest { + return OidcRotateKeyRequestFromJSONTyped(json, false); +} + +export function OidcRotateKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcRotateKeyRequest { + if (json == null) { + return json; + } + return { + verificationTtl: json['verification_ttl'] == null ? undefined : json['verification_ttl'], + }; +} + +export function OidcRotateKeyRequestToJSON(json: any): OidcRotateKeyRequest { + return OidcRotateKeyRequestToJSONTyped(json, false); +} + +export function OidcRotateKeyRequestToJSONTyped( + value?: OidcRotateKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + verification_ttl: value['verificationTtl'], + }; +} diff --git a/ui/api-client/src/models/OidcWriteAssignmentRequest.ts b/ui/api-client/src/models/OidcWriteAssignmentRequest.ts new file mode 100644 index 0000000000..af2e592e12 --- /dev/null +++ b/ui/api-client/src/models/OidcWriteAssignmentRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcWriteAssignmentRequest + */ +export interface OidcWriteAssignmentRequest { + /** + * Comma separated string or array of identity entity IDs + * @type {Array} + * @memberof OidcWriteAssignmentRequest + */ + entityIds?: Array; + /** + * Comma separated string or array of identity group IDs + * @type {Array} + * @memberof OidcWriteAssignmentRequest + */ + groupIds?: Array; +} + +/** + * Check if a given object implements the OidcWriteAssignmentRequest interface. + */ +export function instanceOfOidcWriteAssignmentRequest(value: object): value is OidcWriteAssignmentRequest { + return true; +} + +export function OidcWriteAssignmentRequestFromJSON(json: any): OidcWriteAssignmentRequest { + return OidcWriteAssignmentRequestFromJSONTyped(json, false); +} + +export function OidcWriteAssignmentRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcWriteAssignmentRequest { + if (json == null) { + return json; + } + return { + entityIds: json['entity_ids'] == null ? undefined : json['entity_ids'], + groupIds: json['group_ids'] == null ? undefined : json['group_ids'], + }; +} + +export function OidcWriteAssignmentRequestToJSON(json: any): OidcWriteAssignmentRequest { + return OidcWriteAssignmentRequestToJSONTyped(json, false); +} + +export function OidcWriteAssignmentRequestToJSONTyped( + value?: OidcWriteAssignmentRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_ids: value['entityIds'], + group_ids: value['groupIds'], + }; +} diff --git a/ui/api-client/src/models/OidcWriteClientRequest.ts b/ui/api-client/src/models/OidcWriteClientRequest.ts new file mode 100644 index 0000000000..ffe12eeec1 --- /dev/null +++ b/ui/api-client/src/models/OidcWriteClientRequest.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcWriteClientRequest + */ +export interface OidcWriteClientRequest { + /** + * The time-to-live for access tokens obtained by the client. + * @type {string} + * @memberof OidcWriteClientRequest + */ + accessTokenTtl?: string; + /** + * Comma separated string or array of assignment resources. + * @type {Array} + * @memberof OidcWriteClientRequest + */ + assignments?: Array; + /** + * The client type based on its ability to maintain confidentiality of credentials. The following client types are supported: 'confidential', 'public'. Defaults to 'confidential'. + * @type {string} + * @memberof OidcWriteClientRequest + */ + clientType?: string; + /** + * The time-to-live for ID tokens obtained by the client. + * @type {string} + * @memberof OidcWriteClientRequest + */ + idTokenTtl?: string; + /** + * A reference to a named key resource. Cannot be modified after creation. Defaults to the 'default' key. + * @type {string} + * @memberof OidcWriteClientRequest + */ + key?: string; + /** + * Comma separated string or array of redirect URIs used by the client. One of these values must exactly match the redirect_uri parameter value used in each authentication request. + * @type {Array} + * @memberof OidcWriteClientRequest + */ + redirectUris?: Array; +} + +/** + * Check if a given object implements the OidcWriteClientRequest interface. + */ +export function instanceOfOidcWriteClientRequest(value: object): value is OidcWriteClientRequest { + return true; +} + +export function OidcWriteClientRequestFromJSON(json: any): OidcWriteClientRequest { + return OidcWriteClientRequestFromJSONTyped(json, false); +} + +export function OidcWriteClientRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcWriteClientRequest { + if (json == null) { + return json; + } + return { + accessTokenTtl: json['access_token_ttl'] == null ? undefined : json['access_token_ttl'], + assignments: json['assignments'] == null ? undefined : json['assignments'], + clientType: json['client_type'] == null ? undefined : json['client_type'], + idTokenTtl: json['id_token_ttl'] == null ? undefined : json['id_token_ttl'], + key: json['key'] == null ? undefined : json['key'], + redirectUris: json['redirect_uris'] == null ? undefined : json['redirect_uris'], + }; +} + +export function OidcWriteClientRequestToJSON(json: any): OidcWriteClientRequest { + return OidcWriteClientRequestToJSONTyped(json, false); +} + +export function OidcWriteClientRequestToJSONTyped( + value?: OidcWriteClientRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_token_ttl: value['accessTokenTtl'], + assignments: value['assignments'], + client_type: value['clientType'], + id_token_ttl: value['idTokenTtl'], + key: value['key'], + redirect_uris: value['redirectUris'], + }; +} diff --git a/ui/api-client/src/models/OidcWriteKeyRequest.ts b/ui/api-client/src/models/OidcWriteKeyRequest.ts new file mode 100644 index 0000000000..8a3b3c5afc --- /dev/null +++ b/ui/api-client/src/models/OidcWriteKeyRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcWriteKeyRequest + */ +export interface OidcWriteKeyRequest { + /** + * Signing algorithm to use. This will default to RS256. + * @type {string} + * @memberof OidcWriteKeyRequest + */ + algorithm?: string; + /** + * Comma separated string or array of role client ids allowed to use this key for signing. If empty no roles are allowed. If "*" all roles are allowed. + * @type {Array} + * @memberof OidcWriteKeyRequest + */ + allowedClientIds?: Array; + /** + * How often to generate a new keypair. + * @type {string} + * @memberof OidcWriteKeyRequest + */ + rotationPeriod?: string; + /** + * Controls how long the public portion of a key will be available for verification after being rotated. + * @type {string} + * @memberof OidcWriteKeyRequest + */ + verificationTtl?: string; +} + +/** + * Check if a given object implements the OidcWriteKeyRequest interface. + */ +export function instanceOfOidcWriteKeyRequest(value: object): value is OidcWriteKeyRequest { + return true; +} + +export function OidcWriteKeyRequestFromJSON(json: any): OidcWriteKeyRequest { + return OidcWriteKeyRequestFromJSONTyped(json, false); +} + +export function OidcWriteKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcWriteKeyRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + allowedClientIds: json['allowed_client_ids'] == null ? undefined : json['allowed_client_ids'], + rotationPeriod: json['rotation_period'] == null ? undefined : json['rotation_period'], + verificationTtl: json['verification_ttl'] == null ? undefined : json['verification_ttl'], + }; +} + +export function OidcWriteKeyRequestToJSON(json: any): OidcWriteKeyRequest { + return OidcWriteKeyRequestToJSONTyped(json, false); +} + +export function OidcWriteKeyRequestToJSONTyped( + value?: OidcWriteKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + allowed_client_ids: value['allowedClientIds'], + rotation_period: value['rotationPeriod'], + verification_ttl: value['verificationTtl'], + }; +} diff --git a/ui/api-client/src/models/OidcWriteProviderRequest.ts b/ui/api-client/src/models/OidcWriteProviderRequest.ts new file mode 100644 index 0000000000..abf5cb5cef --- /dev/null +++ b/ui/api-client/src/models/OidcWriteProviderRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcWriteProviderRequest + */ +export interface OidcWriteProviderRequest { + /** + * The client IDs that are permitted to use the provider + * @type {Array} + * @memberof OidcWriteProviderRequest + */ + allowedClientIds?: Array; + /** + * Specifies what will be used for the iss claim of ID tokens. + * @type {string} + * @memberof OidcWriteProviderRequest + */ + issuer?: string; + /** + * The scopes supported for requesting on the provider + * @type {Array} + * @memberof OidcWriteProviderRequest + */ + scopesSupported?: Array; +} + +/** + * Check if a given object implements the OidcWriteProviderRequest interface. + */ +export function instanceOfOidcWriteProviderRequest(value: object): value is OidcWriteProviderRequest { + return true; +} + +export function OidcWriteProviderRequestFromJSON(json: any): OidcWriteProviderRequest { + return OidcWriteProviderRequestFromJSONTyped(json, false); +} + +export function OidcWriteProviderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcWriteProviderRequest { + if (json == null) { + return json; + } + return { + allowedClientIds: json['allowed_client_ids'] == null ? undefined : json['allowed_client_ids'], + issuer: json['issuer'] == null ? undefined : json['issuer'], + scopesSupported: json['scopes_supported'] == null ? undefined : json['scopes_supported'], + }; +} + +export function OidcWriteProviderRequestToJSON(json: any): OidcWriteProviderRequest { + return OidcWriteProviderRequestToJSONTyped(json, false); +} + +export function OidcWriteProviderRequestToJSONTyped( + value?: OidcWriteProviderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_client_ids: value['allowedClientIds'], + issuer: value['issuer'], + scopes_supported: value['scopesSupported'], + }; +} diff --git a/ui/api-client/src/models/OidcWriteRoleRequest.ts b/ui/api-client/src/models/OidcWriteRoleRequest.ts new file mode 100644 index 0000000000..335a66b2f5 --- /dev/null +++ b/ui/api-client/src/models/OidcWriteRoleRequest.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcWriteRoleRequest + */ +export interface OidcWriteRoleRequest { + /** + * Optional client_id + * @type {string} + * @memberof OidcWriteRoleRequest + */ + clientId?: string; + /** + * The OIDC key to use for generating tokens. The specified key must already exist. + * @type {string} + * @memberof OidcWriteRoleRequest + */ + key: string; + /** + * The template string to use for generating tokens. This may be in string-ified JSON or base64 format. + * @type {string} + * @memberof OidcWriteRoleRequest + */ + template?: string; + /** + * TTL of the tokens generated against the role. + * @type {string} + * @memberof OidcWriteRoleRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the OidcWriteRoleRequest interface. + */ +export function instanceOfOidcWriteRoleRequest(value: object): value is OidcWriteRoleRequest { + if (!('key' in value) || value['key'] === undefined) return false; + return true; +} + +export function OidcWriteRoleRequestFromJSON(json: any): OidcWriteRoleRequest { + return OidcWriteRoleRequestFromJSONTyped(json, false); +} + +export function OidcWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcWriteRoleRequest { + if (json == null) { + return json; + } + return { + clientId: json['client_id'] == null ? undefined : json['client_id'], + key: json['key'], + template: json['template'] == null ? undefined : json['template'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function OidcWriteRoleRequestToJSON(json: any): OidcWriteRoleRequest { + return OidcWriteRoleRequestToJSONTyped(json, false); +} + +export function OidcWriteRoleRequestToJSONTyped( + value?: OidcWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + client_id: value['clientId'], + key: value['key'], + template: value['template'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/OidcWriteScopeRequest.ts b/ui/api-client/src/models/OidcWriteScopeRequest.ts new file mode 100644 index 0000000000..1cb98f50e0 --- /dev/null +++ b/ui/api-client/src/models/OidcWriteScopeRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OidcWriteScopeRequest + */ +export interface OidcWriteScopeRequest { + /** + * The description of the scope + * @type {string} + * @memberof OidcWriteScopeRequest + */ + description?: string; + /** + * The template string to use for the scope. This may be in string-ified JSON or base64 format. + * @type {string} + * @memberof OidcWriteScopeRequest + */ + template?: string; +} + +/** + * Check if a given object implements the OidcWriteScopeRequest interface. + */ +export function instanceOfOidcWriteScopeRequest(value: object): value is OidcWriteScopeRequest { + return true; +} + +export function OidcWriteScopeRequestFromJSON(json: any): OidcWriteScopeRequest { + return OidcWriteScopeRequestFromJSONTyped(json, false); +} + +export function OidcWriteScopeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OidcWriteScopeRequest { + if (json == null) { + return json; + } + return { + description: json['description'] == null ? undefined : json['description'], + template: json['template'] == null ? undefined : json['template'], + }; +} + +export function OidcWriteScopeRequestToJSON(json: any): OidcWriteScopeRequest { + return OidcWriteScopeRequestToJSONTyped(json, false); +} + +export function OidcWriteScopeRequestToJSONTyped( + value?: OidcWriteScopeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + description: value['description'], + template: value['template'], + }; +} diff --git a/ui/api-client/src/models/OktaConfigureRequest.ts b/ui/api-client/src/models/OktaConfigureRequest.ts new file mode 100644 index 0000000000..810e4efbf0 --- /dev/null +++ b/ui/api-client/src/models/OktaConfigureRequest.ts @@ -0,0 +1,210 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OktaConfigureRequest + */ +export interface OktaConfigureRequest { + /** + * Okta API key. + * @type {string} + * @memberof OktaConfigureRequest + */ + apiToken?: string; + /** + * The base domain to use for the Okta API. When not specified in the configuration, "okta.com" is used. + * @type {string} + * @memberof OktaConfigureRequest + */ + baseUrl?: string; + /** + * When set true, requests by Okta for a MFA check will be bypassed. This also disallows certain status checks on the account, such as whether the password is expired. + * @type {boolean} + * @memberof OktaConfigureRequest + */ + bypassOktaMfa?: boolean; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof OktaConfigureRequest + * @deprecated + */ + maxTtl?: string; + /** + * Name of the organization to be used in the Okta API. + * @type {string} + * @memberof OktaConfigureRequest + */ + orgName?: string; + /** + * Use org_name instead. + * @type {string} + * @memberof OktaConfigureRequest + * @deprecated + */ + organization?: string; + /** + * Use base_url instead. + * @type {boolean} + * @memberof OktaConfigureRequest + * @deprecated + */ + production?: boolean; + /** + * Use api_token instead. + * @type {string} + * @memberof OktaConfigureRequest + * @deprecated + */ + token?: string; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof OktaConfigureRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof OktaConfigureRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof OktaConfigureRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof OktaConfigureRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof OktaConfigureRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof OktaConfigureRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies. This will apply to all tokens generated by this auth method, in addition to any configured for specific users/groups. + * @type {Array} + * @memberof OktaConfigureRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof OktaConfigureRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof OktaConfigureRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof OktaConfigureRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the OktaConfigureRequest interface. + */ +export function instanceOfOktaConfigureRequest(value: object): value is OktaConfigureRequest { + return true; +} + +export function OktaConfigureRequestFromJSON(json: any): OktaConfigureRequest { + return OktaConfigureRequestFromJSONTyped(json, false); +} + +export function OktaConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OktaConfigureRequest { + if (json == null) { + return json; + } + return { + apiToken: json['api_token'] == null ? undefined : json['api_token'], + baseUrl: json['base_url'] == null ? undefined : json['base_url'], + bypassOktaMfa: json['bypass_okta_mfa'] == null ? undefined : json['bypass_okta_mfa'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + orgName: json['org_name'] == null ? undefined : json['org_name'], + organization: json['organization'] == null ? undefined : json['organization'], + production: json['production'] == null ? undefined : json['production'], + token: json['token'] == null ? undefined : json['token'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function OktaConfigureRequestToJSON(json: any): OktaConfigureRequest { + return OktaConfigureRequestToJSONTyped(json, false); +} + +export function OktaConfigureRequestToJSONTyped( + value?: OktaConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + api_token: value['apiToken'], + base_url: value['baseUrl'], + bypass_okta_mfa: value['bypassOktaMfa'], + max_ttl: value['maxTtl'], + org_name: value['orgName'], + organization: value['organization'], + production: value['production'], + token: value['token'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/OktaLoginRequest.ts b/ui/api-client/src/models/OktaLoginRequest.ts new file mode 100644 index 0000000000..30a2693642 --- /dev/null +++ b/ui/api-client/src/models/OktaLoginRequest.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OktaLoginRequest + */ +export interface OktaLoginRequest { + /** + * Nonce provided if performing login that requires number verification challenge. Logins through the vault login CLI command will automatically generate a nonce. + * @type {string} + * @memberof OktaLoginRequest + */ + nonce?: string; + /** + * Password for this user. + * @type {string} + * @memberof OktaLoginRequest + */ + password?: string; + /** + * Preferred factor provider. + * @type {string} + * @memberof OktaLoginRequest + */ + provider?: string; + /** + * TOTP passcode. + * @type {string} + * @memberof OktaLoginRequest + */ + totp?: string; +} + +/** + * Check if a given object implements the OktaLoginRequest interface. + */ +export function instanceOfOktaLoginRequest(value: object): value is OktaLoginRequest { + return true; +} + +export function OktaLoginRequestFromJSON(json: any): OktaLoginRequest { + return OktaLoginRequestFromJSONTyped(json, false); +} + +export function OktaLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OktaLoginRequest { + if (json == null) { + return json; + } + return { + nonce: json['nonce'] == null ? undefined : json['nonce'], + password: json['password'] == null ? undefined : json['password'], + provider: json['provider'] == null ? undefined : json['provider'], + totp: json['totp'] == null ? undefined : json['totp'], + }; +} + +export function OktaLoginRequestToJSON(json: any): OktaLoginRequest { + return OktaLoginRequestToJSONTyped(json, false); +} + +export function OktaLoginRequestToJSONTyped( + value?: OktaLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + nonce: value['nonce'], + password: value['password'], + provider: value['provider'], + totp: value['totp'], + }; +} diff --git a/ui/api-client/src/models/OktaWriteGroupRequest.ts b/ui/api-client/src/models/OktaWriteGroupRequest.ts new file mode 100644 index 0000000000..8f015f2a9c --- /dev/null +++ b/ui/api-client/src/models/OktaWriteGroupRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OktaWriteGroupRequest + */ +export interface OktaWriteGroupRequest { + /** + * Comma-separated list of policies associated to the group. + * @type {Array} + * @memberof OktaWriteGroupRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the OktaWriteGroupRequest interface. + */ +export function instanceOfOktaWriteGroupRequest(value: object): value is OktaWriteGroupRequest { + return true; +} + +export function OktaWriteGroupRequestFromJSON(json: any): OktaWriteGroupRequest { + return OktaWriteGroupRequestFromJSONTyped(json, false); +} + +export function OktaWriteGroupRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OktaWriteGroupRequest { + if (json == null) { + return json; + } + return { + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function OktaWriteGroupRequestToJSON(json: any): OktaWriteGroupRequest { + return OktaWriteGroupRequestToJSONTyped(json, false); +} + +export function OktaWriteGroupRequestToJSONTyped( + value?: OktaWriteGroupRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/OktaWriteUserRequest.ts b/ui/api-client/src/models/OktaWriteUserRequest.ts new file mode 100644 index 0000000000..e67b17bce2 --- /dev/null +++ b/ui/api-client/src/models/OktaWriteUserRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface OktaWriteUserRequest + */ +export interface OktaWriteUserRequest { + /** + * List of groups associated with the user. + * @type {Array} + * @memberof OktaWriteUserRequest + */ + groups?: Array; + /** + * List of policies associated with the user. + * @type {Array} + * @memberof OktaWriteUserRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the OktaWriteUserRequest interface. + */ +export function instanceOfOktaWriteUserRequest(value: object): value is OktaWriteUserRequest { + return true; +} + +export function OktaWriteUserRequestFromJSON(json: any): OktaWriteUserRequest { + return OktaWriteUserRequestFromJSONTyped(json, false); +} + +export function OktaWriteUserRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): OktaWriteUserRequest { + if (json == null) { + return json; + } + return { + groups: json['groups'] == null ? undefined : json['groups'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function OktaWriteUserRequestToJSON(json: any): OktaWriteUserRequest { + return OktaWriteUserRequestToJSONTyped(json, false); +} + +export function OktaWriteUserRequestToJSONTyped( + value?: OktaWriteUserRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + groups: value['groups'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/PersonaCreateRequest.ts b/ui/api-client/src/models/PersonaCreateRequest.ts new file mode 100644 index 0000000000..1beb0fbb2c --- /dev/null +++ b/ui/api-client/src/models/PersonaCreateRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PersonaCreateRequest + */ +export interface PersonaCreateRequest { + /** + * Entity ID to which this persona belongs to + * @type {string} + * @memberof PersonaCreateRequest + */ + entityId?: string; + /** + * ID of the persona + * @type {string} + * @memberof PersonaCreateRequest + */ + id?: string; + /** + * Metadata to be associated with the persona. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof PersonaCreateRequest + */ + metadata?: object; + /** + * Mount accessor to which this persona belongs to + * @type {string} + * @memberof PersonaCreateRequest + */ + mountAccessor?: string; + /** + * Name of the persona + * @type {string} + * @memberof PersonaCreateRequest + */ + name?: string; +} + +/** + * Check if a given object implements the PersonaCreateRequest interface. + */ +export function instanceOfPersonaCreateRequest(value: object): value is PersonaCreateRequest { + return true; +} + +export function PersonaCreateRequestFromJSON(json: any): PersonaCreateRequest { + return PersonaCreateRequestFromJSONTyped(json, false); +} + +export function PersonaCreateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PersonaCreateRequest { + if (json == null) { + return json; + } + return { + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + id: json['id'] == null ? undefined : json['id'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function PersonaCreateRequestToJSON(json: any): PersonaCreateRequest { + return PersonaCreateRequestToJSONTyped(json, false); +} + +export function PersonaCreateRequestToJSONTyped( + value?: PersonaCreateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_id: value['entityId'], + id: value['id'], + metadata: value['metadata'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/PersonaUpdateByIdRequest.ts b/ui/api-client/src/models/PersonaUpdateByIdRequest.ts new file mode 100644 index 0000000000..16e36eeb69 --- /dev/null +++ b/ui/api-client/src/models/PersonaUpdateByIdRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PersonaUpdateByIdRequest + */ +export interface PersonaUpdateByIdRequest { + /** + * Entity ID to which this persona should be tied to + * @type {string} + * @memberof PersonaUpdateByIdRequest + */ + entityId?: string; + /** + * Metadata to be associated with the persona. In CLI, this parameter can be repeated multiple times, and it all gets merged together. For example: vault metadata=key1=value1 metadata=key2=value2 + * @type {object} + * @memberof PersonaUpdateByIdRequest + */ + metadata?: object; + /** + * Mount accessor to which this persona belongs to + * @type {string} + * @memberof PersonaUpdateByIdRequest + */ + mountAccessor?: string; + /** + * Name of the persona + * @type {string} + * @memberof PersonaUpdateByIdRequest + */ + name?: string; +} + +/** + * Check if a given object implements the PersonaUpdateByIdRequest interface. + */ +export function instanceOfPersonaUpdateByIdRequest(value: object): value is PersonaUpdateByIdRequest { + return true; +} + +export function PersonaUpdateByIdRequestFromJSON(json: any): PersonaUpdateByIdRequest { + return PersonaUpdateByIdRequestFromJSONTyped(json, false); +} + +export function PersonaUpdateByIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PersonaUpdateByIdRequest { + if (json == null) { + return json; + } + return { + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + metadata: json['metadata'] == null ? undefined : json['metadata'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function PersonaUpdateByIdRequestToJSON(json: any): PersonaUpdateByIdRequest { + return PersonaUpdateByIdRequestToJSONTyped(json, false); +} + +export function PersonaUpdateByIdRequestToJSONTyped( + value?: PersonaUpdateByIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_id: value['entityId'], + metadata: value['metadata'], + mount_accessor: value['mountAccessor'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureAcmeRequest.ts b/ui/api-client/src/models/PkiConfigureAcmeRequest.ts new file mode 100644 index 0000000000..f7c51d8081 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureAcmeRequest.ts @@ -0,0 +1,126 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureAcmeRequest + */ +export interface PkiConfigureAcmeRequest { + /** + * whether the ExtKeyUsage field from a role is used, defaults to false meaning that certificate will be signed with ServerAuth. + * @type {boolean} + * @memberof PkiConfigureAcmeRequest + */ + allowRoleExtKeyUsage?: boolean; + /** + * which issuers are allowed for use with ACME; by default, this will only be the primary (default) issuer + * @type {Array} + * @memberof PkiConfigureAcmeRequest + */ + allowedIssuers?: Array; + /** + * which roles are allowed for use with ACME; by default via '*', these will be all roles including sign-verbatim; when concrete role names are specified, any default_directory_policy role must be included to allow usage of the default acme directories under /pki/acme/directory and /pki/issuer/:issuer_id/acme/directory. + * @type {Array} + * @memberof PkiConfigureAcmeRequest + */ + allowedRoles?: Array; + /** + * the policy to be used for non-role-qualified ACME requests; by default ACME issuance will be otherwise unrestricted, equivalent to the sign-verbatim endpoint; one may also specify a role to use as this policy, as "role:", the specified role must be allowed by allowed_roles + * @type {string} + * @memberof PkiConfigureAcmeRequest + */ + defaultDirectoryPolicy?: string; + /** + * DNS resolver to use for domain resolution on this mount. Defaults to using the default system resolver. Must be in the format :, with both parts mandatory. + * @type {string} + * @memberof PkiConfigureAcmeRequest + */ + dnsResolver?: string; + /** + * Specify the policy to use for external account binding behaviour, 'not-required', 'new-account-required' or 'always-required' + * @type {string} + * @memberof PkiConfigureAcmeRequest + */ + eabPolicy?: string; + /** + * whether ACME is enabled, defaults to false meaning that clusters will by default not get ACME support + * @type {boolean} + * @memberof PkiConfigureAcmeRequest + */ + enabled?: boolean; + /** + * Specify the maximum TTL for ACME certificates. Role TTL values will be limited to this value + * @type {string} + * @memberof PkiConfigureAcmeRequest + */ + maxTtl?: string; +} + +/** + * Check if a given object implements the PkiConfigureAcmeRequest interface. + */ +export function instanceOfPkiConfigureAcmeRequest(value: object): value is PkiConfigureAcmeRequest { + return true; +} + +export function PkiConfigureAcmeRequestFromJSON(json: any): PkiConfigureAcmeRequest { + return PkiConfigureAcmeRequestFromJSONTyped(json, false); +} + +export function PkiConfigureAcmeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureAcmeRequest { + if (json == null) { + return json; + } + return { + allowRoleExtKeyUsage: + json['allow_role_ext_key_usage'] == null ? undefined : json['allow_role_ext_key_usage'], + allowedIssuers: json['allowed_issuers'] == null ? undefined : json['allowed_issuers'], + allowedRoles: json['allowed_roles'] == null ? undefined : json['allowed_roles'], + defaultDirectoryPolicy: + json['default_directory_policy'] == null ? undefined : json['default_directory_policy'], + dnsResolver: json['dns_resolver'] == null ? undefined : json['dns_resolver'], + eabPolicy: json['eab_policy'] == null ? undefined : json['eab_policy'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + }; +} + +export function PkiConfigureAcmeRequestToJSON(json: any): PkiConfigureAcmeRequest { + return PkiConfigureAcmeRequestToJSONTyped(json, false); +} + +export function PkiConfigureAcmeRequestToJSONTyped( + value?: PkiConfigureAcmeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_role_ext_key_usage: value['allowRoleExtKeyUsage'], + allowed_issuers: value['allowedIssuers'], + allowed_roles: value['allowedRoles'], + default_directory_policy: value['defaultDirectoryPolicy'], + dns_resolver: value['dnsResolver'], + eab_policy: value['eabPolicy'], + enabled: value['enabled'], + max_ttl: value['maxTtl'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureAutoTidyRequest.ts b/ui/api-client/src/models/PkiConfigureAutoTidyRequest.ts new file mode 100644 index 0000000000..8c8b2df67a --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureAutoTidyRequest.ts @@ -0,0 +1,251 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureAutoTidyRequest + */ +export interface PkiConfigureAutoTidyRequest { + /** + * The amount of time that must pass after creation that an account with no orders is marked revoked, and the amount of time after being marked revoked or deactivated. + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + acmeAccountSafetyBuffer?: string; + /** + * Set to true to enable automatic tidy operations. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + enabled?: boolean; + /** + * Interval at which to run an auto-tidy operation. This is the time between tidy invocations (after one finishes to the start of the next). Running a manual tidy will reset this duration. + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + intervalDuration?: string; + /** + * The amount of extra time that must have passed beyond issuer's expiration before it is removed from the backend storage. Defaults to 8760 hours (1 year). + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + issuerSafetyBuffer?: string; + /** + * This configures whether stored certificates are counted upon initialization of the backend, and whether during normal operation, a running count of certificates stored is maintained. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + maintainStoredCertificateCounts?: boolean; + /** + * The maximum amount of time in seconds auto-tidy will be delayed after startup. + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + maxStartupBackoffDuration?: string; + /** + * The minimum amount of time in seconds auto-tidy will be delayed after startup. + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + minStartupBackoffDuration?: string; + /** + * The amount of time to wait between processing certificates. This allows operators to change the execution profile of tidy to take consume less resources by slowing down how long it takes to run. Note that the entire list of certificates will be stored in memory during the entire tidy operation, but resources to read/process/update existing entries will be spread out over a greater period of time. By default this is zero seconds. + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + pauseDuration?: string; + /** + * This configures whether the stored certificate count is published to the metrics consumer. It does not affect if the stored certificate count is maintained, and if maintained, it will be available on the tidy-status endpoint. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + publishStoredCertificateCountMetrics?: boolean; + /** + * The amount of time that must pass from the cross-cluster revocation request being initiated to when it will be slated for removal. Setting this too low may remove valid revocation requests before the owning cluster has a chance to process them, especially if the cluster is offline. + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + revocationQueueSafetyBuffer?: string; + /** + * The amount of extra time that must have passed beyond certificate expiration before it is removed from the backend storage and/or revocation list. Defaults to 72 hours. + * @type {string} + * @memberof PkiConfigureAutoTidyRequest + */ + safetyBuffer?: string; + /** + * Set to true to enable tidying ACME accounts, orders and authorizations. ACME orders are tidied (deleted) safety_buffer after the certificate associated with them expires, or after the order and relevant authorizations have expired if no certificate was produced. Authorizations are tidied with the corresponding order. When a valid ACME Account is at least acme_account_safety_buffer old, and has no remaining orders associated with it, the account is marked as revoked. After another acme_account_safety_buffer has passed from the revocation or deactivation date, a revoked or deactivated ACME account is deleted. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyAcme?: boolean; + /** + * Set to true to enable tidying up certificate metadata + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyCertMetadata?: boolean; + /** + * Set to true to enable tidying up the certificate store + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyCertStore?: boolean; + /** + * Set to true to enable tidying up the CMPv2 nonce store + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyCmpv2NonceStore?: boolean; + /** + * Set to true to enable tidying up the cross-cluster revoked certificate store. Only runs on the active primary node. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyCrossClusterRevokedCerts?: boolean; + /** + * Set to true to automatically remove expired issuers past the issuer_safety_buffer. No keys will be removed as part of this operation. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyExpiredIssuers?: boolean; + /** + * Set to true to move the legacy ca_bundle from /config/ca_bundle to /config/ca_bundle.bak. This prevents downgrades to pre-Vault 1.11 versions (as older PKI engines do not know about the new multi-issuer storage layout), but improves the performance on seal wrapped PKI mounts. This will only occur if at least issuer_safety_buffer time has occurred after the initial storage migration. This backup is saved in case of an issue in future migrations. Operators may consider removing it via sys/raw if they desire. The backup will be removed via a DELETE /root call, but note that this removes ALL issuers within the mount (and is thus not desirable in most operational scenarios). + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyMoveLegacyCaBundle?: boolean; + /** + * Deprecated; synonym for 'tidy_revoked_certs + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyRevocationList?: boolean; + /** + * Set to true to remove stale revocation queue entries that haven't been confirmed by any active cluster. Only runs on the active primary node + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyRevocationQueue?: boolean; + /** + * Set to true to validate issuer associations on revocation entries. This helps increase the performance of CRL building and OCSP responses. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyRevokedCertIssuerAssociations?: boolean; + /** + * Set to true to expire all revoked and expired certificates, removing them both from the CRL and from storage. The CRL will be rotated if this causes any values to be removed. + * @type {boolean} + * @memberof PkiConfigureAutoTidyRequest + */ + tidyRevokedCerts?: boolean; +} + +/** + * Check if a given object implements the PkiConfigureAutoTidyRequest interface. + */ +export function instanceOfPkiConfigureAutoTidyRequest(value: object): value is PkiConfigureAutoTidyRequest { + return true; +} + +export function PkiConfigureAutoTidyRequestFromJSON(json: any): PkiConfigureAutoTidyRequest { + return PkiConfigureAutoTidyRequestFromJSONTyped(json, false); +} + +export function PkiConfigureAutoTidyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureAutoTidyRequest { + if (json == null) { + return json; + } + return { + acmeAccountSafetyBuffer: + json['acme_account_safety_buffer'] == null ? undefined : json['acme_account_safety_buffer'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + intervalDuration: json['interval_duration'] == null ? undefined : json['interval_duration'], + issuerSafetyBuffer: json['issuer_safety_buffer'] == null ? undefined : json['issuer_safety_buffer'], + maintainStoredCertificateCounts: + json['maintain_stored_certificate_counts'] == null + ? undefined + : json['maintain_stored_certificate_counts'], + maxStartupBackoffDuration: + json['max_startup_backoff_duration'] == null ? undefined : json['max_startup_backoff_duration'], + minStartupBackoffDuration: + json['min_startup_backoff_duration'] == null ? undefined : json['min_startup_backoff_duration'], + pauseDuration: json['pause_duration'] == null ? undefined : json['pause_duration'], + publishStoredCertificateCountMetrics: + json['publish_stored_certificate_count_metrics'] == null + ? undefined + : json['publish_stored_certificate_count_metrics'], + revocationQueueSafetyBuffer: + json['revocation_queue_safety_buffer'] == null ? undefined : json['revocation_queue_safety_buffer'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + tidyAcme: json['tidy_acme'] == null ? undefined : json['tidy_acme'], + tidyCertMetadata: json['tidy_cert_metadata'] == null ? undefined : json['tidy_cert_metadata'], + tidyCertStore: json['tidy_cert_store'] == null ? undefined : json['tidy_cert_store'], + tidyCmpv2NonceStore: json['tidy_cmpv2_nonce_store'] == null ? undefined : json['tidy_cmpv2_nonce_store'], + tidyCrossClusterRevokedCerts: + json['tidy_cross_cluster_revoked_certs'] == null ? undefined : json['tidy_cross_cluster_revoked_certs'], + tidyExpiredIssuers: json['tidy_expired_issuers'] == null ? undefined : json['tidy_expired_issuers'], + tidyMoveLegacyCaBundle: + json['tidy_move_legacy_ca_bundle'] == null ? undefined : json['tidy_move_legacy_ca_bundle'], + tidyRevocationList: json['tidy_revocation_list'] == null ? undefined : json['tidy_revocation_list'], + tidyRevocationQueue: json['tidy_revocation_queue'] == null ? undefined : json['tidy_revocation_queue'], + tidyRevokedCertIssuerAssociations: + json['tidy_revoked_cert_issuer_associations'] == null + ? undefined + : json['tidy_revoked_cert_issuer_associations'], + tidyRevokedCerts: json['tidy_revoked_certs'] == null ? undefined : json['tidy_revoked_certs'], + }; +} + +export function PkiConfigureAutoTidyRequestToJSON(json: any): PkiConfigureAutoTidyRequest { + return PkiConfigureAutoTidyRequestToJSONTyped(json, false); +} + +export function PkiConfigureAutoTidyRequestToJSONTyped( + value?: PkiConfigureAutoTidyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_account_safety_buffer: value['acmeAccountSafetyBuffer'], + enabled: value['enabled'], + interval_duration: value['intervalDuration'], + issuer_safety_buffer: value['issuerSafetyBuffer'], + maintain_stored_certificate_counts: value['maintainStoredCertificateCounts'], + max_startup_backoff_duration: value['maxStartupBackoffDuration'], + min_startup_backoff_duration: value['minStartupBackoffDuration'], + pause_duration: value['pauseDuration'], + publish_stored_certificate_count_metrics: value['publishStoredCertificateCountMetrics'], + revocation_queue_safety_buffer: value['revocationQueueSafetyBuffer'], + safety_buffer: value['safetyBuffer'], + tidy_acme: value['tidyAcme'], + tidy_cert_metadata: value['tidyCertMetadata'], + tidy_cert_store: value['tidyCertStore'], + tidy_cmpv2_nonce_store: value['tidyCmpv2NonceStore'], + tidy_cross_cluster_revoked_certs: value['tidyCrossClusterRevokedCerts'], + tidy_expired_issuers: value['tidyExpiredIssuers'], + tidy_move_legacy_ca_bundle: value['tidyMoveLegacyCaBundle'], + tidy_revocation_list: value['tidyRevocationList'], + tidy_revocation_queue: value['tidyRevocationQueue'], + tidy_revoked_cert_issuer_associations: value['tidyRevokedCertIssuerAssociations'], + tidy_revoked_certs: value['tidyRevokedCerts'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureAutoTidyResponse.ts b/ui/api-client/src/models/PkiConfigureAutoTidyResponse.ts new file mode 100644 index 0000000000..412aa8f92c --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureAutoTidyResponse.ts @@ -0,0 +1,243 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureAutoTidyResponse + */ +export interface PkiConfigureAutoTidyResponse { + /** + * Safety buffer after creation after which accounts lacking orders are revoked + * @type {number} + * @memberof PkiConfigureAutoTidyResponse + */ + acmeAccountSafetyBuffer?: number; + /** + * Specifies whether automatic tidy is enabled or not + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + enabled?: boolean; + /** + * Specifies the duration between automatic tidy operation + * @type {number} + * @memberof PkiConfigureAutoTidyResponse + */ + intervalDuration?: number; + /** + * Issuer safety buffer + * @type {number} + * @memberof PkiConfigureAutoTidyResponse + */ + issuerSafetyBuffer?: number; + /** + * + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + maintainStoredCertificateCounts?: boolean; + /** + * The maximum amount of time in seconds auto-tidy will be delayed after startup + * @type {number} + * @memberof PkiConfigureAutoTidyResponse + */ + maxStartupBackoffDuration?: number; + /** + * The minimum amount of time in seconds auto-tidy will be delayed after startup + * @type {number} + * @memberof PkiConfigureAutoTidyResponse + */ + minStartupBackoffDuration?: number; + /** + * Duration to pause between tidying certificates + * @type {string} + * @memberof PkiConfigureAutoTidyResponse + */ + pauseDuration?: string; + /** + * + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + publishStoredCertificateCountMetrics?: boolean; + /** + * + * @type {number} + * @memberof PkiConfigureAutoTidyResponse + */ + revocationQueueSafetyBuffer?: number; + /** + * Safety buffer time duration + * @type {number} + * @memberof PkiConfigureAutoTidyResponse + */ + safetyBuffer?: number; + /** + * Tidy Unused Acme Accounts, and Orders + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyAcme?: boolean; + /** + * Tidy cert metadata + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyCertMetadata?: boolean; + /** + * Specifies whether to tidy up the certificate store + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyCertStore?: boolean; + /** + * Tidy CMPv2 nonce store + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyCmpv2NonceStore?: boolean; + /** + * Tidy the cross-cluster revoked certificate store + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyCrossClusterRevokedCerts?: boolean; + /** + * Specifies whether tidy expired issuers + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyExpiredIssuers?: boolean; + /** + * + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyMoveLegacyCaBundle?: boolean; + /** + * + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyRevocationQueue?: boolean; + /** + * Specifies whether to associate revoked certificates with their corresponding issuers + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyRevokedCertIssuerAssociations?: boolean; + /** + * Specifies whether to remove all invalid and expired certificates from storage + * @type {boolean} + * @memberof PkiConfigureAutoTidyResponse + */ + tidyRevokedCerts?: boolean; +} + +/** + * Check if a given object implements the PkiConfigureAutoTidyResponse interface. + */ +export function instanceOfPkiConfigureAutoTidyResponse(value: object): value is PkiConfigureAutoTidyResponse { + return true; +} + +export function PkiConfigureAutoTidyResponseFromJSON(json: any): PkiConfigureAutoTidyResponse { + return PkiConfigureAutoTidyResponseFromJSONTyped(json, false); +} + +export function PkiConfigureAutoTidyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureAutoTidyResponse { + if (json == null) { + return json; + } + return { + acmeAccountSafetyBuffer: + json['acme_account_safety_buffer'] == null ? undefined : json['acme_account_safety_buffer'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + intervalDuration: json['interval_duration'] == null ? undefined : json['interval_duration'], + issuerSafetyBuffer: json['issuer_safety_buffer'] == null ? undefined : json['issuer_safety_buffer'], + maintainStoredCertificateCounts: + json['maintain_stored_certificate_counts'] == null + ? undefined + : json['maintain_stored_certificate_counts'], + maxStartupBackoffDuration: + json['max_startup_backoff_duration'] == null ? undefined : json['max_startup_backoff_duration'], + minStartupBackoffDuration: + json['min_startup_backoff_duration'] == null ? undefined : json['min_startup_backoff_duration'], + pauseDuration: json['pause_duration'] == null ? undefined : json['pause_duration'], + publishStoredCertificateCountMetrics: + json['publish_stored_certificate_count_metrics'] == null + ? undefined + : json['publish_stored_certificate_count_metrics'], + revocationQueueSafetyBuffer: + json['revocation_queue_safety_buffer'] == null ? undefined : json['revocation_queue_safety_buffer'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + tidyAcme: json['tidy_acme'] == null ? undefined : json['tidy_acme'], + tidyCertMetadata: json['tidy_cert_metadata'] == null ? undefined : json['tidy_cert_metadata'], + tidyCertStore: json['tidy_cert_store'] == null ? undefined : json['tidy_cert_store'], + tidyCmpv2NonceStore: json['tidy_cmpv2_nonce_store'] == null ? undefined : json['tidy_cmpv2_nonce_store'], + tidyCrossClusterRevokedCerts: + json['tidy_cross_cluster_revoked_certs'] == null ? undefined : json['tidy_cross_cluster_revoked_certs'], + tidyExpiredIssuers: json['tidy_expired_issuers'] == null ? undefined : json['tidy_expired_issuers'], + tidyMoveLegacyCaBundle: + json['tidy_move_legacy_ca_bundle'] == null ? undefined : json['tidy_move_legacy_ca_bundle'], + tidyRevocationQueue: json['tidy_revocation_queue'] == null ? undefined : json['tidy_revocation_queue'], + tidyRevokedCertIssuerAssociations: + json['tidy_revoked_cert_issuer_associations'] == null + ? undefined + : json['tidy_revoked_cert_issuer_associations'], + tidyRevokedCerts: json['tidy_revoked_certs'] == null ? undefined : json['tidy_revoked_certs'], + }; +} + +export function PkiConfigureAutoTidyResponseToJSON(json: any): PkiConfigureAutoTidyResponse { + return PkiConfigureAutoTidyResponseToJSONTyped(json, false); +} + +export function PkiConfigureAutoTidyResponseToJSONTyped( + value?: PkiConfigureAutoTidyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_account_safety_buffer: value['acmeAccountSafetyBuffer'], + enabled: value['enabled'], + interval_duration: value['intervalDuration'], + issuer_safety_buffer: value['issuerSafetyBuffer'], + maintain_stored_certificate_counts: value['maintainStoredCertificateCounts'], + max_startup_backoff_duration: value['maxStartupBackoffDuration'], + min_startup_backoff_duration: value['minStartupBackoffDuration'], + pause_duration: value['pauseDuration'], + publish_stored_certificate_count_metrics: value['publishStoredCertificateCountMetrics'], + revocation_queue_safety_buffer: value['revocationQueueSafetyBuffer'], + safety_buffer: value['safetyBuffer'], + tidy_acme: value['tidyAcme'], + tidy_cert_metadata: value['tidyCertMetadata'], + tidy_cert_store: value['tidyCertStore'], + tidy_cmpv2_nonce_store: value['tidyCmpv2NonceStore'], + tidy_cross_cluster_revoked_certs: value['tidyCrossClusterRevokedCerts'], + tidy_expired_issuers: value['tidyExpiredIssuers'], + tidy_move_legacy_ca_bundle: value['tidyMoveLegacyCaBundle'], + tidy_revocation_queue: value['tidyRevocationQueue'], + tidy_revoked_cert_issuer_associations: value['tidyRevokedCertIssuerAssociations'], + tidy_revoked_certs: value['tidyRevokedCerts'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureCaRequest.ts b/ui/api-client/src/models/PkiConfigureCaRequest.ts new file mode 100644 index 0000000000..e3630114c0 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureCaRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureCaRequest + */ +export interface PkiConfigureCaRequest { + /** + * PEM-format, concatenated unencrypted secret key and certificate. + * @type {string} + * @memberof PkiConfigureCaRequest + */ + pemBundle?: string; +} + +/** + * Check if a given object implements the PkiConfigureCaRequest interface. + */ +export function instanceOfPkiConfigureCaRequest(value: object): value is PkiConfigureCaRequest { + return true; +} + +export function PkiConfigureCaRequestFromJSON(json: any): PkiConfigureCaRequest { + return PkiConfigureCaRequestFromJSONTyped(json, false); +} + +export function PkiConfigureCaRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureCaRequest { + if (json == null) { + return json; + } + return { + pemBundle: json['pem_bundle'] == null ? undefined : json['pem_bundle'], + }; +} + +export function PkiConfigureCaRequestToJSON(json: any): PkiConfigureCaRequest { + return PkiConfigureCaRequestToJSONTyped(json, false); +} + +export function PkiConfigureCaRequestToJSONTyped( + value?: PkiConfigureCaRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + pem_bundle: value['pemBundle'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureCaResponse.ts b/ui/api-client/src/models/PkiConfigureCaResponse.ts new file mode 100644 index 0000000000..7031ae89ff --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureCaResponse.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureCaResponse + */ +export interface PkiConfigureCaResponse { + /** + * Existing issuers specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiConfigureCaResponse + */ + existingIssuers?: Array; + /** + * Existing keys specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiConfigureCaResponse + */ + existingKeys?: Array; + /** + * Net-new issuers imported as a part of this request + * @type {Array} + * @memberof PkiConfigureCaResponse + */ + importedIssuers?: Array; + /** + * Net-new keys imported as a part of this request + * @type {Array} + * @memberof PkiConfigureCaResponse + */ + importedKeys?: Array; + /** + * A mapping of issuer_id to key_id for all issuers included in this request + * @type {object} + * @memberof PkiConfigureCaResponse + */ + mapping?: object; +} + +/** + * Check if a given object implements the PkiConfigureCaResponse interface. + */ +export function instanceOfPkiConfigureCaResponse(value: object): value is PkiConfigureCaResponse { + return true; +} + +export function PkiConfigureCaResponseFromJSON(json: any): PkiConfigureCaResponse { + return PkiConfigureCaResponseFromJSONTyped(json, false); +} + +export function PkiConfigureCaResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureCaResponse { + if (json == null) { + return json; + } + return { + existingIssuers: json['existing_issuers'] == null ? undefined : json['existing_issuers'], + existingKeys: json['existing_keys'] == null ? undefined : json['existing_keys'], + importedIssuers: json['imported_issuers'] == null ? undefined : json['imported_issuers'], + importedKeys: json['imported_keys'] == null ? undefined : json['imported_keys'], + mapping: json['mapping'] == null ? undefined : json['mapping'], + }; +} + +export function PkiConfigureCaResponseToJSON(json: any): PkiConfigureCaResponse { + return PkiConfigureCaResponseToJSONTyped(json, false); +} + +export function PkiConfigureCaResponseToJSONTyped( + value?: PkiConfigureCaResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + existing_issuers: value['existingIssuers'], + existing_keys: value['existingKeys'], + imported_issuers: value['importedIssuers'], + imported_keys: value['importedKeys'], + mapping: value['mapping'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureClusterRequest.ts b/ui/api-client/src/models/PkiConfigureClusterRequest.ts new file mode 100644 index 0000000000..22cd39df15 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureClusterRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureClusterRequest + */ +export interface PkiConfigureClusterRequest { + /** + * Optional URI to this mount's AIA distribution point; may refer to an external non-Vault responder. This is for resolving AIA URLs and providing the {{cluster_aia_path}} template parameter and will not be used for other purposes. As such, unlike path above, this could safely be an insecure transit mechanism (like HTTP without TLS). For example: http://cdn.example.com/pr1/pki + * @type {string} + * @memberof PkiConfigureClusterRequest + */ + aiaPath?: string; + /** + * Canonical URI to this mount on this performance replication cluster's external address. This is for resolving AIA URLs and providing the {{cluster_path}} template parameter but might be used for other purposes in the future. This should only point back to this particular PR replica and should not ever point to another PR cluster. It may point to any node in the PR replica, including standby nodes, and need not always point to the active node. For example: https://pr1.vault.example.com:8200/v1/pki + * @type {string} + * @memberof PkiConfigureClusterRequest + */ + path?: string; +} + +/** + * Check if a given object implements the PkiConfigureClusterRequest interface. + */ +export function instanceOfPkiConfigureClusterRequest(value: object): value is PkiConfigureClusterRequest { + return true; +} + +export function PkiConfigureClusterRequestFromJSON(json: any): PkiConfigureClusterRequest { + return PkiConfigureClusterRequestFromJSONTyped(json, false); +} + +export function PkiConfigureClusterRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureClusterRequest { + if (json == null) { + return json; + } + return { + aiaPath: json['aia_path'] == null ? undefined : json['aia_path'], + path: json['path'] == null ? undefined : json['path'], + }; +} + +export function PkiConfigureClusterRequestToJSON(json: any): PkiConfigureClusterRequest { + return PkiConfigureClusterRequestToJSONTyped(json, false); +} + +export function PkiConfigureClusterRequestToJSONTyped( + value?: PkiConfigureClusterRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + aia_path: value['aiaPath'], + path: value['path'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureClusterResponse.ts b/ui/api-client/src/models/PkiConfigureClusterResponse.ts new file mode 100644 index 0000000000..d7ac1a7950 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureClusterResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureClusterResponse + */ +export interface PkiConfigureClusterResponse { + /** + * Optional URI to this mount's AIA distribution point; may refer to an external non-Vault responder. This is for resolving AIA URLs and providing the {{cluster_aia_path}} template parameter and will not be used for other purposes. As such, unlike path above, this could safely be an insecure transit mechanism (like HTTP without TLS). For example: http://cdn.example.com/pr1/pki + * @type {string} + * @memberof PkiConfigureClusterResponse + */ + aiaPath?: string; + /** + * Canonical URI to this mount on this performance replication cluster's external address. This is for resolving AIA URLs and providing the {{cluster_path}} template parameter but might be used for other purposes in the future. This should only point back to this particular PR replica and should not ever point to another PR cluster. It may point to any node in the PR replica, including standby nodes, and need not always point to the active node. For example: https://pr1.vault.example.com:8200/v1/pki + * @type {string} + * @memberof PkiConfigureClusterResponse + */ + path?: string; +} + +/** + * Check if a given object implements the PkiConfigureClusterResponse interface. + */ +export function instanceOfPkiConfigureClusterResponse(value: object): value is PkiConfigureClusterResponse { + return true; +} + +export function PkiConfigureClusterResponseFromJSON(json: any): PkiConfigureClusterResponse { + return PkiConfigureClusterResponseFromJSONTyped(json, false); +} + +export function PkiConfigureClusterResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureClusterResponse { + if (json == null) { + return json; + } + return { + aiaPath: json['aia_path'] == null ? undefined : json['aia_path'], + path: json['path'] == null ? undefined : json['path'], + }; +} + +export function PkiConfigureClusterResponseToJSON(json: any): PkiConfigureClusterResponse { + return PkiConfigureClusterResponseToJSONTyped(json, false); +} + +export function PkiConfigureClusterResponseToJSONTyped( + value?: PkiConfigureClusterResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + aia_path: value['aiaPath'], + path: value['path'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureCmpRequest.ts b/ui/api-client/src/models/PkiConfigureCmpRequest.ts new file mode 100644 index 0000000000..4ab87ded90 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureCmpRequest.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureCmpRequest + */ +export interface PkiConfigureCmpRequest { + /** + * Fields parsed from the CSR that appear in the audit and can be used by sentinel policies. Options are: [csr common_name alt_names ip_sans uri_sans other_sans signature_bits exclude_cn_from_sans ou organization country locality province street_address postal_code serial_number use_pss key_type key_bits add_basic_constraints] + * @type {Array} + * @memberof PkiConfigureCmpRequest + */ + auditFields?: Array; + /** + * A map of authentication type to authentication parameters + * @type {object} + * @memberof PkiConfigureCmpRequest + */ + authenticators?: object; + /** + * the policy to be used for non-role-qualified CMP requests; valid values are 'sign-verbatim ', or "role:" to specify a role to use as this policy. + * @type {string} + * @memberof PkiConfigureCmpRequest + */ + defaultPathPolicy?: string; + /** + * Parse CSR to that its fields can be used by sentinel policies. + * @type {boolean} + * @memberof PkiConfigureCmpRequest + */ + enableSentinelParsing?: boolean; + /** + * whether CMPv2 is enabled, defaults to false + * @type {boolean} + * @memberof PkiConfigureCmpRequest + */ + enabled?: boolean; +} + +/** + * Check if a given object implements the PkiConfigureCmpRequest interface. + */ +export function instanceOfPkiConfigureCmpRequest(value: object): value is PkiConfigureCmpRequest { + return true; +} + +export function PkiConfigureCmpRequestFromJSON(json: any): PkiConfigureCmpRequest { + return PkiConfigureCmpRequestFromJSONTyped(json, false); +} + +export function PkiConfigureCmpRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureCmpRequest { + if (json == null) { + return json; + } + return { + auditFields: json['audit_fields'] == null ? undefined : json['audit_fields'], + authenticators: json['authenticators'] == null ? undefined : json['authenticators'], + defaultPathPolicy: json['default_path_policy'] == null ? undefined : json['default_path_policy'], + enableSentinelParsing: + json['enable_sentinel_parsing'] == null ? undefined : json['enable_sentinel_parsing'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + }; +} + +export function PkiConfigureCmpRequestToJSON(json: any): PkiConfigureCmpRequest { + return PkiConfigureCmpRequestToJSONTyped(json, false); +} + +export function PkiConfigureCmpRequestToJSONTyped( + value?: PkiConfigureCmpRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + audit_fields: value['auditFields'], + authenticators: value['authenticators'], + default_path_policy: value['defaultPathPolicy'], + enable_sentinel_parsing: value['enableSentinelParsing'], + enabled: value['enabled'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureCrlRequest.ts b/ui/api-client/src/models/PkiConfigureCrlRequest.ts new file mode 100644 index 0000000000..607a908db2 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureCrlRequest.ts @@ -0,0 +1,159 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureCrlRequest + */ +export interface PkiConfigureCrlRequest { + /** + * If set to true, enables automatic rebuilding of the CRL + * @type {boolean} + * @memberof PkiConfigureCrlRequest + */ + autoRebuild?: boolean; + /** + * The time before the CRL expires to automatically rebuild it, when enabled. Must be shorter than the CRL expiry. Defaults to 12h. + * @type {string} + * @memberof PkiConfigureCrlRequest + */ + autoRebuildGracePeriod?: string; + /** + * Whether to enable a global, cross-cluster revocation queue. Must be used with auto_rebuild=true. + * @type {boolean} + * @memberof PkiConfigureCrlRequest + */ + crossClusterRevocation?: boolean; + /** + * The time between delta CRL rebuilds if a new revocation has occurred. Must be shorter than the CRL expiry. Defaults to 15m. + * @type {string} + * @memberof PkiConfigureCrlRequest + */ + deltaRebuildInterval?: string; + /** + * If set to true, disables generating the CRL entirely. + * @type {boolean} + * @memberof PkiConfigureCrlRequest + */ + disable?: boolean; + /** + * Whether to enable delta CRLs between authoritative CRL rebuilds + * @type {boolean} + * @memberof PkiConfigureCrlRequest + */ + enableDelta?: boolean; + /** + * The amount of time the generated CRL should be valid; defaults to 72 hours + * @type {string} + * @memberof PkiConfigureCrlRequest + */ + expiry?: string; + /** + * The maximum number of entries the CRL can contain. This is meant as a guard against accidental runaway revocations overloading Vault storage. If this limit is exceeded writing the CRL will fail. If set to -1 this limit is disabled. + * @type {number} + * @memberof PkiConfigureCrlRequest + */ + maxCrlEntries?: number; + /** + * If set to true, ocsp unauthorized responses will be returned. + * @type {boolean} + * @memberof PkiConfigureCrlRequest + */ + ocspDisable?: boolean; + /** + * The amount of time an OCSP response will be valid (controls the NextUpdate field); defaults to 12 hours + * @type {string} + * @memberof PkiConfigureCrlRequest + */ + ocspExpiry?: string; + /** + * If set to true enables global replication of revocation entries, also enabling unified versions of OCSP and CRLs if their respective features are enabled. disable for CRLs and ocsp_disable for OCSP. + * @type {boolean} + * @memberof PkiConfigureCrlRequest + */ + unifiedCrl?: boolean; + /** + * If set to true, existing CRL and OCSP paths will return the unified CRL instead of a response based on cluster-local data + * @type {boolean} + * @memberof PkiConfigureCrlRequest + */ + unifiedCrlOnExistingPaths?: boolean; +} + +/** + * Check if a given object implements the PkiConfigureCrlRequest interface. + */ +export function instanceOfPkiConfigureCrlRequest(value: object): value is PkiConfigureCrlRequest { + return true; +} + +export function PkiConfigureCrlRequestFromJSON(json: any): PkiConfigureCrlRequest { + return PkiConfigureCrlRequestFromJSONTyped(json, false); +} + +export function PkiConfigureCrlRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureCrlRequest { + if (json == null) { + return json; + } + return { + autoRebuild: json['auto_rebuild'] == null ? undefined : json['auto_rebuild'], + autoRebuildGracePeriod: + json['auto_rebuild_grace_period'] == null ? undefined : json['auto_rebuild_grace_period'], + crossClusterRevocation: + json['cross_cluster_revocation'] == null ? undefined : json['cross_cluster_revocation'], + deltaRebuildInterval: json['delta_rebuild_interval'] == null ? undefined : json['delta_rebuild_interval'], + disable: json['disable'] == null ? undefined : json['disable'], + enableDelta: json['enable_delta'] == null ? undefined : json['enable_delta'], + expiry: json['expiry'] == null ? undefined : json['expiry'], + maxCrlEntries: json['max_crl_entries'] == null ? undefined : json['max_crl_entries'], + ocspDisable: json['ocsp_disable'] == null ? undefined : json['ocsp_disable'], + ocspExpiry: json['ocsp_expiry'] == null ? undefined : json['ocsp_expiry'], + unifiedCrl: json['unified_crl'] == null ? undefined : json['unified_crl'], + unifiedCrlOnExistingPaths: + json['unified_crl_on_existing_paths'] == null ? undefined : json['unified_crl_on_existing_paths'], + }; +} + +export function PkiConfigureCrlRequestToJSON(json: any): PkiConfigureCrlRequest { + return PkiConfigureCrlRequestToJSONTyped(json, false); +} + +export function PkiConfigureCrlRequestToJSONTyped( + value?: PkiConfigureCrlRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + auto_rebuild: value['autoRebuild'], + auto_rebuild_grace_period: value['autoRebuildGracePeriod'], + cross_cluster_revocation: value['crossClusterRevocation'], + delta_rebuild_interval: value['deltaRebuildInterval'], + disable: value['disable'], + enable_delta: value['enableDelta'], + expiry: value['expiry'], + max_crl_entries: value['maxCrlEntries'], + ocsp_disable: value['ocspDisable'], + ocsp_expiry: value['ocspExpiry'], + unified_crl: value['unifiedCrl'], + unified_crl_on_existing_paths: value['unifiedCrlOnExistingPaths'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureCrlResponse.ts b/ui/api-client/src/models/PkiConfigureCrlResponse.ts new file mode 100644 index 0000000000..273cb853f3 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureCrlResponse.ts @@ -0,0 +1,159 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureCrlResponse + */ +export interface PkiConfigureCrlResponse { + /** + * If set to true, enables automatic rebuilding of the CRL + * @type {boolean} + * @memberof PkiConfigureCrlResponse + */ + autoRebuild?: boolean; + /** + * The time before the CRL expires to automatically rebuild it, when enabled. Must be shorter than the CRL expiry. Defaults to 12h. + * @type {string} + * @memberof PkiConfigureCrlResponse + */ + autoRebuildGracePeriod?: string; + /** + * Whether to enable a global, cross-cluster revocation queue. Must be used with auto_rebuild=true. + * @type {boolean} + * @memberof PkiConfigureCrlResponse + */ + crossClusterRevocation?: boolean; + /** + * The time between delta CRL rebuilds if a new revocation has occurred. Must be shorter than the CRL expiry. Defaults to 15m. + * @type {string} + * @memberof PkiConfigureCrlResponse + */ + deltaRebuildInterval?: string; + /** + * If set to true, disables generating the CRL entirely. + * @type {boolean} + * @memberof PkiConfigureCrlResponse + */ + disable?: boolean; + /** + * Whether to enable delta CRLs between authoritative CRL rebuilds + * @type {boolean} + * @memberof PkiConfigureCrlResponse + */ + enableDelta?: boolean; + /** + * The amount of time the generated CRL should be valid; defaults to 72 hours + * @type {string} + * @memberof PkiConfigureCrlResponse + */ + expiry?: string; + /** + * The maximum number of entries the CRL can contain. This is meant as a guard against accidental runaway revocations overloading Vault storage. If this limit is exceeded writing the CRL will fail. If set to -1 this limit is disabled. + * @type {number} + * @memberof PkiConfigureCrlResponse + */ + maxCrlEntries?: number; + /** + * If set to true, ocsp unauthorized responses will be returned. + * @type {boolean} + * @memberof PkiConfigureCrlResponse + */ + ocspDisable?: boolean; + /** + * The amount of time an OCSP response will be valid (controls the NextUpdate field); defaults to 12 hours + * @type {string} + * @memberof PkiConfigureCrlResponse + */ + ocspExpiry?: string; + /** + * If set to true enables global replication of revocation entries, also enabling unified versions of OCSP and CRLs if their respective features are enabled. disable for CRLs and ocsp_disable for OCSP. + * @type {boolean} + * @memberof PkiConfigureCrlResponse + */ + unifiedCrl?: boolean; + /** + * If set to true, existing CRL and OCSP paths will return the unified CRL instead of a response based on cluster-local data + * @type {boolean} + * @memberof PkiConfigureCrlResponse + */ + unifiedCrlOnExistingPaths?: boolean; +} + +/** + * Check if a given object implements the PkiConfigureCrlResponse interface. + */ +export function instanceOfPkiConfigureCrlResponse(value: object): value is PkiConfigureCrlResponse { + return true; +} + +export function PkiConfigureCrlResponseFromJSON(json: any): PkiConfigureCrlResponse { + return PkiConfigureCrlResponseFromJSONTyped(json, false); +} + +export function PkiConfigureCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureCrlResponse { + if (json == null) { + return json; + } + return { + autoRebuild: json['auto_rebuild'] == null ? undefined : json['auto_rebuild'], + autoRebuildGracePeriod: + json['auto_rebuild_grace_period'] == null ? undefined : json['auto_rebuild_grace_period'], + crossClusterRevocation: + json['cross_cluster_revocation'] == null ? undefined : json['cross_cluster_revocation'], + deltaRebuildInterval: json['delta_rebuild_interval'] == null ? undefined : json['delta_rebuild_interval'], + disable: json['disable'] == null ? undefined : json['disable'], + enableDelta: json['enable_delta'] == null ? undefined : json['enable_delta'], + expiry: json['expiry'] == null ? undefined : json['expiry'], + maxCrlEntries: json['max_crl_entries'] == null ? undefined : json['max_crl_entries'], + ocspDisable: json['ocsp_disable'] == null ? undefined : json['ocsp_disable'], + ocspExpiry: json['ocsp_expiry'] == null ? undefined : json['ocsp_expiry'], + unifiedCrl: json['unified_crl'] == null ? undefined : json['unified_crl'], + unifiedCrlOnExistingPaths: + json['unified_crl_on_existing_paths'] == null ? undefined : json['unified_crl_on_existing_paths'], + }; +} + +export function PkiConfigureCrlResponseToJSON(json: any): PkiConfigureCrlResponse { + return PkiConfigureCrlResponseToJSONTyped(json, false); +} + +export function PkiConfigureCrlResponseToJSONTyped( + value?: PkiConfigureCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + auto_rebuild: value['autoRebuild'], + auto_rebuild_grace_period: value['autoRebuildGracePeriod'], + cross_cluster_revocation: value['crossClusterRevocation'], + delta_rebuild_interval: value['deltaRebuildInterval'], + disable: value['disable'], + enable_delta: value['enableDelta'], + expiry: value['expiry'], + max_crl_entries: value['maxCrlEntries'], + ocsp_disable: value['ocspDisable'], + ocsp_expiry: value['ocspExpiry'], + unified_crl: value['unifiedCrl'], + unified_crl_on_existing_paths: value['unifiedCrlOnExistingPaths'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureEstRequest.ts b/ui/api-client/src/models/PkiConfigureEstRequest.ts new file mode 100644 index 0000000000..67b3bc43ac --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureEstRequest.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureEstRequest + */ +export interface PkiConfigureEstRequest { + /** + * Fields parsed from the CSR that appear in the audit and can be used by sentinel policies. Options are: [csr common_name alt_names ip_sans uri_sans other_sans signature_bits exclude_cn_from_sans ou organization country locality province street_address postal_code serial_number use_pss key_type key_bits add_basic_constraints] + * @type {Array} + * @memberof PkiConfigureEstRequest + */ + auditFields?: Array; + /** + * A map of authentication type to authentication parameters + * @type {object} + * @memberof PkiConfigureEstRequest + */ + authenticators?: object; + /** + * Indicates if this mount owns the .well-known/est mount path + * @type {boolean} + * @memberof PkiConfigureEstRequest + */ + defaultMount?: boolean; + /** + * the policy of the default EST responder path, required if default_mount is true + * @type {string} + * @memberof PkiConfigureEstRequest + */ + defaultPathPolicy?: string; + /** + * Parse CSR to that its fields can be used by sentinel policies. + * @type {boolean} + * @memberof PkiConfigureEstRequest + */ + enableSentinelParsing?: boolean; + /** + * whether EST is enabled, defaults to false + * @type {boolean} + * @memberof PkiConfigureEstRequest + */ + enabled?: boolean; + /** + * The EST label to register and its associated role path + * @type {object} + * @memberof PkiConfigureEstRequest + */ + labelToPathPolicy?: object; +} + +/** + * Check if a given object implements the PkiConfigureEstRequest interface. + */ +export function instanceOfPkiConfigureEstRequest(value: object): value is PkiConfigureEstRequest { + return true; +} + +export function PkiConfigureEstRequestFromJSON(json: any): PkiConfigureEstRequest { + return PkiConfigureEstRequestFromJSONTyped(json, false); +} + +export function PkiConfigureEstRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureEstRequest { + if (json == null) { + return json; + } + return { + auditFields: json['audit_fields'] == null ? undefined : json['audit_fields'], + authenticators: json['authenticators'] == null ? undefined : json['authenticators'], + defaultMount: json['default_mount'] == null ? undefined : json['default_mount'], + defaultPathPolicy: json['default_path_policy'] == null ? undefined : json['default_path_policy'], + enableSentinelParsing: + json['enable_sentinel_parsing'] == null ? undefined : json['enable_sentinel_parsing'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + labelToPathPolicy: json['label_to_path_policy'] == null ? undefined : json['label_to_path_policy'], + }; +} + +export function PkiConfigureEstRequestToJSON(json: any): PkiConfigureEstRequest { + return PkiConfigureEstRequestToJSONTyped(json, false); +} + +export function PkiConfigureEstRequestToJSONTyped( + value?: PkiConfigureEstRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + audit_fields: value['auditFields'], + authenticators: value['authenticators'], + default_mount: value['defaultMount'], + default_path_policy: value['defaultPathPolicy'], + enable_sentinel_parsing: value['enableSentinelParsing'], + enabled: value['enabled'], + label_to_path_policy: value['labelToPathPolicy'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureExternalPolicyRequest.ts b/ui/api-client/src/models/PkiConfigureExternalPolicyRequest.ts new file mode 100644 index 0000000000..d6ee35a959 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureExternalPolicyRequest.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureExternalPolicyRequest + */ +export interface PkiConfigureExternalPolicyRequest { + /** + * Whether the external validation engine is enabled at all for this mount + * @type {boolean} + * @memberof PkiConfigureExternalPolicyRequest + */ + enabled?: boolean; + /** + * A JMESPath search string that will extract the entity meta data to be sent to the CIEPS service. If blank, none of the entity metadata will be sent to the service. + * @type {string} + * @memberof PkiConfigureExternalPolicyRequest + */ + entityJmespath?: string; + /** + * The URL where the external policy service is accessible to vault + * @type {string} + * @memberof PkiConfigureExternalPolicyRequest + */ + externalServiceUrl?: string; + /** + * A JMESPath search string that will extract the entity group information to be sent to the CIEPS service. If blank, none of the group entity metadata will be sent to the service. + * @type {string} + * @memberof PkiConfigureExternalPolicyRequest + */ + groupJmespath?: string; + /** + * This is how long any particular request should wait for a timeout + * @type {string} + * @memberof PkiConfigureExternalPolicyRequest + */ + timeout?: string; + /** + * If this is set, vault will trust any leaf-certificate issued by this certificate to be the external policy service + * @type {string} + * @memberof PkiConfigureExternalPolicyRequest + */ + trustedCa?: string; + /** + * This is the PEM of the leaf certificate(s) that vault will expect to do certificate pinning + * @type {string} + * @memberof PkiConfigureExternalPolicyRequest + */ + trustedLeafCertificateBundle?: string; + /** + * The vault client certificate used to authenticate vault to the external policy engine, and theprivate key to use it. + * @type {string} + * @memberof PkiConfigureExternalPolicyRequest + */ + vaultClientCertBundle?: string; +} + +/** + * Check if a given object implements the PkiConfigureExternalPolicyRequest interface. + */ +export function instanceOfPkiConfigureExternalPolicyRequest( + value: object +): value is PkiConfigureExternalPolicyRequest { + return true; +} + +export function PkiConfigureExternalPolicyRequestFromJSON(json: any): PkiConfigureExternalPolicyRequest { + return PkiConfigureExternalPolicyRequestFromJSONTyped(json, false); +} + +export function PkiConfigureExternalPolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureExternalPolicyRequest { + if (json == null) { + return json; + } + return { + enabled: json['enabled'] == null ? undefined : json['enabled'], + entityJmespath: json['entity_jmespath'] == null ? undefined : json['entity_jmespath'], + externalServiceUrl: json['external_service_url'] == null ? undefined : json['external_service_url'], + groupJmespath: json['group_jmespath'] == null ? undefined : json['group_jmespath'], + timeout: json['timeout'] == null ? undefined : json['timeout'], + trustedCa: json['trusted_ca'] == null ? undefined : json['trusted_ca'], + trustedLeafCertificateBundle: + json['trusted_leaf_certificate_bundle'] == null ? undefined : json['trusted_leaf_certificate_bundle'], + vaultClientCertBundle: + json['vault_client_cert_bundle'] == null ? undefined : json['vault_client_cert_bundle'], + }; +} + +export function PkiConfigureExternalPolicyRequestToJSON(json: any): PkiConfigureExternalPolicyRequest { + return PkiConfigureExternalPolicyRequestToJSONTyped(json, false); +} + +export function PkiConfigureExternalPolicyRequestToJSONTyped( + value?: PkiConfigureExternalPolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + enabled: value['enabled'], + entity_jmespath: value['entityJmespath'], + external_service_url: value['externalServiceUrl'], + group_jmespath: value['groupJmespath'], + timeout: value['timeout'], + trusted_ca: value['trustedCa'], + trusted_leaf_certificate_bundle: value['trustedLeafCertificateBundle'], + vault_client_cert_bundle: value['vaultClientCertBundle'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureExternalPolicyResponse.ts b/ui/api-client/src/models/PkiConfigureExternalPolicyResponse.ts new file mode 100644 index 0000000000..17faacbe86 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureExternalPolicyResponse.ts @@ -0,0 +1,155 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureExternalPolicyResponse + */ +export interface PkiConfigureExternalPolicyResponse { + /** + * Whether the external validation engine is enabled at all for this mount + * @type {boolean} + * @memberof PkiConfigureExternalPolicyResponse + */ + enabled?: boolean; + /** + * A JMESPath search string that will extract the entity meta data to be sent to the CIEPS service. If blank, none of the entity metadata will be sent to the service. + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + entityJmespath?: string; + /** + * Timestamp of the last update of the external policy engine configuration, (empty if never configured) + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + externalServiceLastUpdated?: string; + /** + * The URL where the external policy service is accessible to vault + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + externalServiceUrl?: string; + /** + * Has the current user configuration been successfully used since the last update + * @type {boolean} + * @memberof PkiConfigureExternalPolicyResponse + */ + externalServiceValidated?: boolean; + /** + * A JMESPath search string that will extract the entity group information to be sent to the CIEPS service. If blank, none of the group entity metadata will be sent to the service. + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + groupJmespath?: string; + /** + * Timestamp of the last successful request with the policy engine (empty if no request has succeeded on this mount) + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + lastSuccessfulRequest?: string; + /** + * This is how long any particular request should wait for a timeout + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + timeout?: string; + /** + * If this is set, vault will trust any leaf-certificate issued by this certificate to be the external policy service + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + trustedCa?: string; + /** + * This is the PEM of the leaf certificate(s) that vault will expect to do certificate pinning + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + trustedLeafCertificateBundle?: string; + /** + * The vault client certificate used to authenticate vault to the external policy engine + * @type {string} + * @memberof PkiConfigureExternalPolicyResponse + */ + vaultClientCertBundleNoKeys?: string; +} + +/** + * Check if a given object implements the PkiConfigureExternalPolicyResponse interface. + */ +export function instanceOfPkiConfigureExternalPolicyResponse( + value: object +): value is PkiConfigureExternalPolicyResponse { + return true; +} + +export function PkiConfigureExternalPolicyResponseFromJSON(json: any): PkiConfigureExternalPolicyResponse { + return PkiConfigureExternalPolicyResponseFromJSONTyped(json, false); +} + +export function PkiConfigureExternalPolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureExternalPolicyResponse { + if (json == null) { + return json; + } + return { + enabled: json['enabled'] == null ? undefined : json['enabled'], + entityJmespath: json['entity_jmespath'] == null ? undefined : json['entity_jmespath'], + externalServiceLastUpdated: + json['external_service_last_updated'] == null ? undefined : json['external_service_last_updated'], + externalServiceUrl: json['external_service_url'] == null ? undefined : json['external_service_url'], + externalServiceValidated: + json['external_service_validated'] == null ? undefined : json['external_service_validated'], + groupJmespath: json['group_jmespath'] == null ? undefined : json['group_jmespath'], + lastSuccessfulRequest: + json['last_successful_request'] == null ? undefined : json['last_successful_request'], + timeout: json['timeout'] == null ? undefined : json['timeout'], + trustedCa: json['trusted_ca'] == null ? undefined : json['trusted_ca'], + trustedLeafCertificateBundle: + json['trusted_leaf_certificate_bundle'] == null ? undefined : json['trusted_leaf_certificate_bundle'], + vaultClientCertBundleNoKeys: + json['vault_client_cert_bundle_no_keys'] == null ? undefined : json['vault_client_cert_bundle_no_keys'], + }; +} + +export function PkiConfigureExternalPolicyResponseToJSON(json: any): PkiConfigureExternalPolicyResponse { + return PkiConfigureExternalPolicyResponseToJSONTyped(json, false); +} + +export function PkiConfigureExternalPolicyResponseToJSONTyped( + value?: PkiConfigureExternalPolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + enabled: value['enabled'], + entity_jmespath: value['entityJmespath'], + external_service_last_updated: value['externalServiceLastUpdated'], + external_service_url: value['externalServiceUrl'], + external_service_validated: value['externalServiceValidated'], + group_jmespath: value['groupJmespath'], + last_successful_request: value['lastSuccessfulRequest'], + timeout: value['timeout'], + trusted_ca: value['trustedCa'], + trusted_leaf_certificate_bundle: value['trustedLeafCertificateBundle'], + vault_client_cert_bundle_no_keys: value['vaultClientCertBundleNoKeys'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureIssuersRequest.ts b/ui/api-client/src/models/PkiConfigureIssuersRequest.ts new file mode 100644 index 0000000000..cdf2ec1544 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureIssuersRequest.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureIssuersRequest + */ +export interface PkiConfigureIssuersRequest { + /** + * Reference (name or identifier) to the default issuer. + * @type {string} + * @memberof PkiConfigureIssuersRequest + */ + _default?: string; + /** + * Whether the default issuer should automatically follow the latest generated or imported issuer. Defaults to false. + * @type {boolean} + * @memberof PkiConfigureIssuersRequest + */ + defaultFollowsLatestIssuer?: boolean; +} + +/** + * Check if a given object implements the PkiConfigureIssuersRequest interface. + */ +export function instanceOfPkiConfigureIssuersRequest(value: object): value is PkiConfigureIssuersRequest { + return true; +} + +export function PkiConfigureIssuersRequestFromJSON(json: any): PkiConfigureIssuersRequest { + return PkiConfigureIssuersRequestFromJSONTyped(json, false); +} + +export function PkiConfigureIssuersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureIssuersRequest { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + defaultFollowsLatestIssuer: + json['default_follows_latest_issuer'] == null ? undefined : json['default_follows_latest_issuer'], + }; +} + +export function PkiConfigureIssuersRequestToJSON(json: any): PkiConfigureIssuersRequest { + return PkiConfigureIssuersRequestToJSONTyped(json, false); +} + +export function PkiConfigureIssuersRequestToJSONTyped( + value?: PkiConfigureIssuersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + default_follows_latest_issuer: value['defaultFollowsLatestIssuer'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureIssuersResponse.ts b/ui/api-client/src/models/PkiConfigureIssuersResponse.ts new file mode 100644 index 0000000000..c1af25e5c1 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureIssuersResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureIssuersResponse + */ +export interface PkiConfigureIssuersResponse { + /** + * Reference (name or identifier) to the default issuer. + * @type {string} + * @memberof PkiConfigureIssuersResponse + */ + _default?: string; + /** + * Whether the default issuer should automatically follow the latest generated or imported issuer. Defaults to false. + * @type {boolean} + * @memberof PkiConfigureIssuersResponse + */ + defaultFollowsLatestIssuer?: boolean; +} + +/** + * Check if a given object implements the PkiConfigureIssuersResponse interface. + */ +export function instanceOfPkiConfigureIssuersResponse(value: object): value is PkiConfigureIssuersResponse { + return true; +} + +export function PkiConfigureIssuersResponseFromJSON(json: any): PkiConfigureIssuersResponse { + return PkiConfigureIssuersResponseFromJSONTyped(json, false); +} + +export function PkiConfigureIssuersResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureIssuersResponse { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + defaultFollowsLatestIssuer: + json['default_follows_latest_issuer'] == null ? undefined : json['default_follows_latest_issuer'], + }; +} + +export function PkiConfigureIssuersResponseToJSON(json: any): PkiConfigureIssuersResponse { + return PkiConfigureIssuersResponseToJSONTyped(json, false); +} + +export function PkiConfigureIssuersResponseToJSONTyped( + value?: PkiConfigureIssuersResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + default_follows_latest_issuer: value['defaultFollowsLatestIssuer'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureKeysRequest.ts b/ui/api-client/src/models/PkiConfigureKeysRequest.ts new file mode 100644 index 0000000000..564233c633 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureKeysRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureKeysRequest + */ +export interface PkiConfigureKeysRequest { + /** + * Reference (name or identifier) of the default key. + * @type {string} + * @memberof PkiConfigureKeysRequest + */ + _default?: string; +} + +/** + * Check if a given object implements the PkiConfigureKeysRequest interface. + */ +export function instanceOfPkiConfigureKeysRequest(value: object): value is PkiConfigureKeysRequest { + return true; +} + +export function PkiConfigureKeysRequestFromJSON(json: any): PkiConfigureKeysRequest { + return PkiConfigureKeysRequestFromJSONTyped(json, false); +} + +export function PkiConfigureKeysRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureKeysRequest { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + }; +} + +export function PkiConfigureKeysRequestToJSON(json: any): PkiConfigureKeysRequest { + return PkiConfigureKeysRequestToJSONTyped(json, false); +} + +export function PkiConfigureKeysRequestToJSONTyped( + value?: PkiConfigureKeysRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureKeysResponse.ts b/ui/api-client/src/models/PkiConfigureKeysResponse.ts new file mode 100644 index 0000000000..800bf5df3f --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureKeysResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureKeysResponse + */ +export interface PkiConfigureKeysResponse { + /** + * Reference (name or identifier) to the default issuer. + * @type {string} + * @memberof PkiConfigureKeysResponse + */ + _default?: string; +} + +/** + * Check if a given object implements the PkiConfigureKeysResponse interface. + */ +export function instanceOfPkiConfigureKeysResponse(value: object): value is PkiConfigureKeysResponse { + return true; +} + +export function PkiConfigureKeysResponseFromJSON(json: any): PkiConfigureKeysResponse { + return PkiConfigureKeysResponseFromJSONTyped(json, false); +} + +export function PkiConfigureKeysResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureKeysResponse { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + }; +} + +export function PkiConfigureKeysResponseToJSON(json: any): PkiConfigureKeysResponse { + return PkiConfigureKeysResponseToJSONTyped(json, false); +} + +export function PkiConfigureKeysResponseToJSONTyped( + value?: PkiConfigureKeysResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureScepRequest.ts b/ui/api-client/src/models/PkiConfigureScepRequest.ts new file mode 100644 index 0000000000..07cfa906cd --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureScepRequest.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureScepRequest + */ +export interface PkiConfigureScepRequest { + /** + * the list of allowed digest algorithms for SCEP requests + * @type {Array} + * @memberof PkiConfigureScepRequest + */ + allowedDigestAlgorithms?: PkiConfigureScepRequestAllowedDigestAlgorithmsEnum; + /** + * the list of allowed encryption algorithms for SCEP requests + * @type {Array} + * @memberof PkiConfigureScepRequest + */ + allowedEncryptionAlgorithms?: PkiConfigureScepRequestAllowedEncryptionAlgorithmsEnum; + /** + * A map of authentication type to authentication parameters + * @type {object} + * @memberof PkiConfigureScepRequest + */ + authenticators?: object; + /** + * the policy to be used for non-role-qualified SCEP requests; valid values are 'sign-verbatim', or "role:" to specify a role to use as this policy. + * @type {string} + * @memberof PkiConfigureScepRequest + */ + defaultPathPolicy?: string; + /** + * whether SCEP is enabled, defaults to false + * @type {boolean} + * @memberof PkiConfigureScepRequest + */ + enabled?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiConfigureScepRequestAllowedDigestAlgorithmsEnum {} +/** + * @export + * @enum {string} + */ +export enum PkiConfigureScepRequestAllowedEncryptionAlgorithmsEnum {} + +/** + * Check if a given object implements the PkiConfigureScepRequest interface. + */ +export function instanceOfPkiConfigureScepRequest(value: object): value is PkiConfigureScepRequest { + return true; +} + +export function PkiConfigureScepRequestFromJSON(json: any): PkiConfigureScepRequest { + return PkiConfigureScepRequestFromJSONTyped(json, false); +} + +export function PkiConfigureScepRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureScepRequest { + if (json == null) { + return json; + } + return { + allowedDigestAlgorithms: + json['allowed_digest_algorithms'] == null ? undefined : json['allowed_digest_algorithms'], + allowedEncryptionAlgorithms: + json['allowed_encryption_algorithms'] == null ? undefined : json['allowed_encryption_algorithms'], + authenticators: json['authenticators'] == null ? undefined : json['authenticators'], + defaultPathPolicy: json['default_path_policy'] == null ? undefined : json['default_path_policy'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + }; +} + +export function PkiConfigureScepRequestToJSON(json: any): PkiConfigureScepRequest { + return PkiConfigureScepRequestToJSONTyped(json, false); +} + +export function PkiConfigureScepRequestToJSONTyped( + value?: PkiConfigureScepRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_digest_algorithms: value['allowedDigestAlgorithms'], + allowed_encryption_algorithms: value['allowedEncryptionAlgorithms'], + authenticators: value['authenticators'], + default_path_policy: value['defaultPathPolicy'], + enabled: value['enabled'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureUrlsRequest.ts b/ui/api-client/src/models/PkiConfigureUrlsRequest.ts new file mode 100644 index 0000000000..504edc47dd --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureUrlsRequest.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureUrlsRequest + */ +export interface PkiConfigureUrlsRequest { + /** + * Comma-separated list of URLs to be used for the CRL distribution points attribute. See also RFC 5280 Section 4.2.1.13. + * @type {Array} + * @memberof PkiConfigureUrlsRequest + */ + crlDistributionPoints?: Array; + /** + * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}', '{{cluster_path}}', and '{{cluster_aia_path}}' are available, but the addresses are not checked for URI validity until issuance time. Using '{{cluster_path}}' requires /config/cluster's 'path' member to be set on all PR Secondary clusters and using '{{cluster_aia_path}}' requires /config/cluster's 'aia_path' member to be set on all PR secondary clusters. + * @type {boolean} + * @memberof PkiConfigureUrlsRequest + */ + enableTemplating?: boolean; + /** + * Comma-separated list of URLs to be used for the issuing certificate attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiConfigureUrlsRequest + */ + issuingCertificates?: Array; + /** + * Comma-separated list of URLs to be used for the OCSP servers attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiConfigureUrlsRequest + */ + ocspServers?: Array; +} + +/** + * Check if a given object implements the PkiConfigureUrlsRequest interface. + */ +export function instanceOfPkiConfigureUrlsRequest(value: object): value is PkiConfigureUrlsRequest { + return true; +} + +export function PkiConfigureUrlsRequestFromJSON(json: any): PkiConfigureUrlsRequest { + return PkiConfigureUrlsRequestFromJSONTyped(json, false); +} + +export function PkiConfigureUrlsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureUrlsRequest { + if (json == null) { + return json; + } + return { + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + enableTemplating: json['enable_templating'] == null ? undefined : json['enable_templating'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + }; +} + +export function PkiConfigureUrlsRequestToJSON(json: any): PkiConfigureUrlsRequest { + return PkiConfigureUrlsRequestToJSONTyped(json, false); +} + +export function PkiConfigureUrlsRequestToJSONTyped( + value?: PkiConfigureUrlsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl_distribution_points: value['crlDistributionPoints'], + enable_templating: value['enableTemplating'], + issuing_certificates: value['issuingCertificates'], + ocsp_servers: value['ocspServers'], + }; +} diff --git a/ui/api-client/src/models/PkiConfigureUrlsResponse.ts b/ui/api-client/src/models/PkiConfigureUrlsResponse.ts new file mode 100644 index 0000000000..70d29e0c38 --- /dev/null +++ b/ui/api-client/src/models/PkiConfigureUrlsResponse.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiConfigureUrlsResponse + */ +export interface PkiConfigureUrlsResponse { + /** + * Comma-separated list of URLs to be used for the CRL distribution points attribute. See also RFC 5280 Section 4.2.1.13. + * @type {Array} + * @memberof PkiConfigureUrlsResponse + */ + crlDistributionPoints?: Array; + /** + * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. + * @type {boolean} + * @memberof PkiConfigureUrlsResponse + */ + enableTemplating?: boolean; + /** + * Comma-separated list of URLs to be used for the issuing certificate attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiConfigureUrlsResponse + */ + issuingCertificates?: Array; + /** + * Comma-separated list of URLs to be used for the OCSP servers attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiConfigureUrlsResponse + */ + ocspServers?: Array; +} + +/** + * Check if a given object implements the PkiConfigureUrlsResponse interface. + */ +export function instanceOfPkiConfigureUrlsResponse(value: object): value is PkiConfigureUrlsResponse { + return true; +} + +export function PkiConfigureUrlsResponseFromJSON(json: any): PkiConfigureUrlsResponse { + return PkiConfigureUrlsResponseFromJSONTyped(json, false); +} + +export function PkiConfigureUrlsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiConfigureUrlsResponse { + if (json == null) { + return json; + } + return { + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + enableTemplating: json['enable_templating'] == null ? undefined : json['enable_templating'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + }; +} + +export function PkiConfigureUrlsResponseToJSON(json: any): PkiConfigureUrlsResponse { + return PkiConfigureUrlsResponseToJSONTyped(json, false); +} + +export function PkiConfigureUrlsResponseToJSONTyped( + value?: PkiConfigureUrlsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl_distribution_points: value['crlDistributionPoints'], + enable_templating: value['enableTemplating'], + issuing_certificates: value['issuingCertificates'], + ocsp_servers: value['ocspServers'], + }; +} diff --git a/ui/api-client/src/models/PkiCrossSignIntermediateRequest.ts b/ui/api-client/src/models/PkiCrossSignIntermediateRequest.ts new file mode 100644 index 0000000000..818509dbb2 --- /dev/null +++ b/ui/api-client/src/models/PkiCrossSignIntermediateRequest.ts @@ -0,0 +1,332 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiCrossSignIntermediateRequest + */ +export interface PkiCrossSignIntermediateRequest { + /** + * Whether to add a Basic Constraints extension with CA: true. Only needed as a workaround in some compatibility scenarios with Active Directory Certificate Services. + * @type {boolean} + * @memberof PkiCrossSignIntermediateRequest + */ + addBasicConstraints?: boolean; + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + country?: Array; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiCrossSignIntermediateRequest + */ + excludeCnFromSans?: boolean; + /** + * Must be "internal", "exported" or "kms". If set to "exported", the generated private key will be returned. This is your *only* chance to retrieve the private key! + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + exported?: PkiCrossSignIntermediateRequestExportedEnum; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + format?: PkiCrossSignIntermediateRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + ipSans?: Array; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiCrossSignIntermediateRequest + */ + keyBits?: number; + /** + * Provide a name to the generated or existing key, the name must be unique across all keys and not be the reserved value 'default' + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + keyName?: string; + /** + * Reference to a existing key; either "default" for the configured default key, an identifier or the name assigned to the key. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + keyRef?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + keyType?: PkiCrossSignIntermediateRequestKeyTypeEnum; + /** + * Specifies key_usage to encode in the certificate signing request. This is a comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. If not set, key usage will not appear on the CSR. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + locality?: Array; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + managedKeyName?: string; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + ou?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + privateKeyFormat?: PkiCrossSignIntermediateRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiCrossSignIntermediateRequest + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiCrossSignIntermediateRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiCrossSignIntermediateRequest + */ + uriSans?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiCrossSignIntermediateRequestExportedEnum { + INTERNAL = 'internal', + EXTERNAL = 'external', + KMS = 'kms', +} +/** + * @export + * @enum {string} + */ +export enum PkiCrossSignIntermediateRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiCrossSignIntermediateRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiCrossSignIntermediateRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiCrossSignIntermediateRequest interface. + */ +export function instanceOfPkiCrossSignIntermediateRequest( + value: object +): value is PkiCrossSignIntermediateRequest { + return true; +} + +export function PkiCrossSignIntermediateRequestFromJSON(json: any): PkiCrossSignIntermediateRequest { + return PkiCrossSignIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiCrossSignIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiCrossSignIntermediateRequest { + if (json == null) { + return json; + } + return { + addBasicConstraints: json['add_basic_constraints'] == null ? undefined : json['add_basic_constraints'], + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + exported: json['exported'] == null ? undefined : json['exported'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyRef: json['key_ref'] == null ? undefined : json['key_ref'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + }; +} + +export function PkiCrossSignIntermediateRequestToJSON(json: any): PkiCrossSignIntermediateRequest { + return PkiCrossSignIntermediateRequestToJSONTyped(json, false); +} + +export function PkiCrossSignIntermediateRequestToJSONTyped( + value?: PkiCrossSignIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + add_basic_constraints: value['addBasicConstraints'], + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + exclude_cn_from_sans: value['excludeCnFromSans'], + exported: value['exported'], + format: value['format'], + ip_sans: value['ipSans'], + key_bits: value['keyBits'], + key_name: value['keyName'], + key_ref: value['keyRef'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + }; +} diff --git a/ui/api-client/src/models/PkiCrossSignIntermediateResponse.ts b/ui/api-client/src/models/PkiCrossSignIntermediateResponse.ts new file mode 100644 index 0000000000..52dd268e4b --- /dev/null +++ b/ui/api-client/src/models/PkiCrossSignIntermediateResponse.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiCrossSignIntermediateResponse + */ +export interface PkiCrossSignIntermediateResponse { + /** + * Certificate signing request. + * @type {string} + * @memberof PkiCrossSignIntermediateResponse + */ + csr?: string; + /** + * Id of the key. + * @type {string} + * @memberof PkiCrossSignIntermediateResponse + */ + keyId?: string; + /** + * Generated private key. + * @type {string} + * @memberof PkiCrossSignIntermediateResponse + */ + privateKey?: string; + /** + * Specifies the format used for marshaling the private key. + * @type {string} + * @memberof PkiCrossSignIntermediateResponse + */ + privateKeyType?: string; +} + +/** + * Check if a given object implements the PkiCrossSignIntermediateResponse interface. + */ +export function instanceOfPkiCrossSignIntermediateResponse( + value: object +): value is PkiCrossSignIntermediateResponse { + return true; +} + +export function PkiCrossSignIntermediateResponseFromJSON(json: any): PkiCrossSignIntermediateResponse { + return PkiCrossSignIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiCrossSignIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiCrossSignIntermediateResponse { + if (json == null) { + return json; + } + return { + csr: json['csr'] == null ? undefined : json['csr'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + }; +} + +export function PkiCrossSignIntermediateResponseToJSON(json: any): PkiCrossSignIntermediateResponse { + return PkiCrossSignIntermediateResponseToJSONTyped(json, false); +} + +export function PkiCrossSignIntermediateResponseToJSONTyped( + value?: PkiCrossSignIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + csr: value['csr'], + key_id: value['keyId'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateEabKeyForIssuerAndRoleResponse.ts b/ui/api-client/src/models/PkiGenerateEabKeyForIssuerAndRoleResponse.ts new file mode 100644 index 0000000000..67f5ffd89c --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateEabKeyForIssuerAndRoleResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateEabKeyForIssuerAndRoleResponse + */ +export interface PkiGenerateEabKeyForIssuerAndRoleResponse { + /** + * The ACME directory to which the key belongs + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerAndRoleResponse + */ + acmeDirectory?: string; + /** + * An RFC3339 formatted date time when the EAB token was created + * @type {Date} + * @memberof PkiGenerateEabKeyForIssuerAndRoleResponse + */ + createdOn?: Date; + /** + * The EAB key identifier + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerAndRoleResponse + */ + id?: string; + /** + * The EAB hmac key + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerAndRoleResponse + */ + key?: string; + /** + * The EAB key type + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerAndRoleResponse + */ + keyType?: string; +} + +/** + * Check if a given object implements the PkiGenerateEabKeyForIssuerAndRoleResponse interface. + */ +export function instanceOfPkiGenerateEabKeyForIssuerAndRoleResponse( + value: object +): value is PkiGenerateEabKeyForIssuerAndRoleResponse { + return true; +} + +export function PkiGenerateEabKeyForIssuerAndRoleResponseFromJSON( + json: any +): PkiGenerateEabKeyForIssuerAndRoleResponse { + return PkiGenerateEabKeyForIssuerAndRoleResponseFromJSONTyped(json, false); +} + +export function PkiGenerateEabKeyForIssuerAndRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateEabKeyForIssuerAndRoleResponse { + if (json == null) { + return json; + } + return { + acmeDirectory: json['acme_directory'] == null ? undefined : json['acme_directory'], + createdOn: json['created_on'] == null ? undefined : new Date(json['created_on']), + id: json['id'] == null ? undefined : json['id'], + key: json['key'] == null ? undefined : json['key'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + }; +} + +export function PkiGenerateEabKeyForIssuerAndRoleResponseToJSON( + json: any +): PkiGenerateEabKeyForIssuerAndRoleResponse { + return PkiGenerateEabKeyForIssuerAndRoleResponseToJSONTyped(json, false); +} + +export function PkiGenerateEabKeyForIssuerAndRoleResponseToJSONTyped( + value?: PkiGenerateEabKeyForIssuerAndRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_directory: value['acmeDirectory'], + created_on: value['createdOn'] == null ? undefined : value['createdOn'].toISOString(), + id: value['id'], + key: value['key'], + key_type: value['keyType'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateEabKeyForIssuerResponse.ts b/ui/api-client/src/models/PkiGenerateEabKeyForIssuerResponse.ts new file mode 100644 index 0000000000..921bfb5988 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateEabKeyForIssuerResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateEabKeyForIssuerResponse + */ +export interface PkiGenerateEabKeyForIssuerResponse { + /** + * The ACME directory to which the key belongs + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerResponse + */ + acmeDirectory?: string; + /** + * An RFC3339 formatted date time when the EAB token was created + * @type {Date} + * @memberof PkiGenerateEabKeyForIssuerResponse + */ + createdOn?: Date; + /** + * The EAB key identifier + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerResponse + */ + id?: string; + /** + * The EAB hmac key + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerResponse + */ + key?: string; + /** + * The EAB key type + * @type {string} + * @memberof PkiGenerateEabKeyForIssuerResponse + */ + keyType?: string; +} + +/** + * Check if a given object implements the PkiGenerateEabKeyForIssuerResponse interface. + */ +export function instanceOfPkiGenerateEabKeyForIssuerResponse( + value: object +): value is PkiGenerateEabKeyForIssuerResponse { + return true; +} + +export function PkiGenerateEabKeyForIssuerResponseFromJSON(json: any): PkiGenerateEabKeyForIssuerResponse { + return PkiGenerateEabKeyForIssuerResponseFromJSONTyped(json, false); +} + +export function PkiGenerateEabKeyForIssuerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateEabKeyForIssuerResponse { + if (json == null) { + return json; + } + return { + acmeDirectory: json['acme_directory'] == null ? undefined : json['acme_directory'], + createdOn: json['created_on'] == null ? undefined : new Date(json['created_on']), + id: json['id'] == null ? undefined : json['id'], + key: json['key'] == null ? undefined : json['key'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + }; +} + +export function PkiGenerateEabKeyForIssuerResponseToJSON(json: any): PkiGenerateEabKeyForIssuerResponse { + return PkiGenerateEabKeyForIssuerResponseToJSONTyped(json, false); +} + +export function PkiGenerateEabKeyForIssuerResponseToJSONTyped( + value?: PkiGenerateEabKeyForIssuerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_directory: value['acmeDirectory'], + created_on: value['createdOn'] == null ? undefined : value['createdOn'].toISOString(), + id: value['id'], + key: value['key'], + key_type: value['keyType'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateEabKeyForRoleResponse.ts b/ui/api-client/src/models/PkiGenerateEabKeyForRoleResponse.ts new file mode 100644 index 0000000000..c3c710bd48 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateEabKeyForRoleResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateEabKeyForRoleResponse + */ +export interface PkiGenerateEabKeyForRoleResponse { + /** + * The ACME directory to which the key belongs + * @type {string} + * @memberof PkiGenerateEabKeyForRoleResponse + */ + acmeDirectory?: string; + /** + * An RFC3339 formatted date time when the EAB token was created + * @type {Date} + * @memberof PkiGenerateEabKeyForRoleResponse + */ + createdOn?: Date; + /** + * The EAB key identifier + * @type {string} + * @memberof PkiGenerateEabKeyForRoleResponse + */ + id?: string; + /** + * The EAB hmac key + * @type {string} + * @memberof PkiGenerateEabKeyForRoleResponse + */ + key?: string; + /** + * The EAB key type + * @type {string} + * @memberof PkiGenerateEabKeyForRoleResponse + */ + keyType?: string; +} + +/** + * Check if a given object implements the PkiGenerateEabKeyForRoleResponse interface. + */ +export function instanceOfPkiGenerateEabKeyForRoleResponse( + value: object +): value is PkiGenerateEabKeyForRoleResponse { + return true; +} + +export function PkiGenerateEabKeyForRoleResponseFromJSON(json: any): PkiGenerateEabKeyForRoleResponse { + return PkiGenerateEabKeyForRoleResponseFromJSONTyped(json, false); +} + +export function PkiGenerateEabKeyForRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateEabKeyForRoleResponse { + if (json == null) { + return json; + } + return { + acmeDirectory: json['acme_directory'] == null ? undefined : json['acme_directory'], + createdOn: json['created_on'] == null ? undefined : new Date(json['created_on']), + id: json['id'] == null ? undefined : json['id'], + key: json['key'] == null ? undefined : json['key'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + }; +} + +export function PkiGenerateEabKeyForRoleResponseToJSON(json: any): PkiGenerateEabKeyForRoleResponse { + return PkiGenerateEabKeyForRoleResponseToJSONTyped(json, false); +} + +export function PkiGenerateEabKeyForRoleResponseToJSONTyped( + value?: PkiGenerateEabKeyForRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_directory: value['acmeDirectory'], + created_on: value['createdOn'] == null ? undefined : value['createdOn'].toISOString(), + id: value['id'], + key: value['key'], + key_type: value['keyType'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateEabKeyResponse.ts b/ui/api-client/src/models/PkiGenerateEabKeyResponse.ts new file mode 100644 index 0000000000..1e6f5ed4d3 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateEabKeyResponse.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateEabKeyResponse + */ +export interface PkiGenerateEabKeyResponse { + /** + * The ACME directory to which the key belongs + * @type {string} + * @memberof PkiGenerateEabKeyResponse + */ + acmeDirectory?: string; + /** + * An RFC3339 formatted date time when the EAB token was created + * @type {Date} + * @memberof PkiGenerateEabKeyResponse + */ + createdOn?: Date; + /** + * The EAB key identifier + * @type {string} + * @memberof PkiGenerateEabKeyResponse + */ + id?: string; + /** + * The EAB hmac key + * @type {string} + * @memberof PkiGenerateEabKeyResponse + */ + key?: string; + /** + * The EAB key type + * @type {string} + * @memberof PkiGenerateEabKeyResponse + */ + keyType?: string; +} + +/** + * Check if a given object implements the PkiGenerateEabKeyResponse interface. + */ +export function instanceOfPkiGenerateEabKeyResponse(value: object): value is PkiGenerateEabKeyResponse { + return true; +} + +export function PkiGenerateEabKeyResponseFromJSON(json: any): PkiGenerateEabKeyResponse { + return PkiGenerateEabKeyResponseFromJSONTyped(json, false); +} + +export function PkiGenerateEabKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateEabKeyResponse { + if (json == null) { + return json; + } + return { + acmeDirectory: json['acme_directory'] == null ? undefined : json['acme_directory'], + createdOn: json['created_on'] == null ? undefined : new Date(json['created_on']), + id: json['id'] == null ? undefined : json['id'], + key: json['key'] == null ? undefined : json['key'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + }; +} + +export function PkiGenerateEabKeyResponseToJSON(json: any): PkiGenerateEabKeyResponse { + return PkiGenerateEabKeyResponseToJSONTyped(json, false); +} + +export function PkiGenerateEabKeyResponseToJSONTyped( + value?: PkiGenerateEabKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_directory: value['acmeDirectory'], + created_on: value['createdOn'] == null ? undefined : value['createdOn'].toISOString(), + id: value['id'], + key: value['key'], + key_type: value['keyType'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateExportedKeyRequest.ts b/ui/api-client/src/models/PkiGenerateExportedKeyRequest.ts new file mode 100644 index 0000000000..98499814b4 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateExportedKeyRequest.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateExportedKeyRequest + */ +export interface PkiGenerateExportedKeyRequest { + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiGenerateExportedKeyRequest + */ + keyBits?: number; + /** + * Optional name to be used for this key + * @type {string} + * @memberof PkiGenerateExportedKeyRequest + */ + keyName?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateExportedKeyRequest + */ + keyType?: PkiGenerateExportedKeyRequestKeyTypeEnum; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateExportedKeyRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateExportedKeyRequest + */ + managedKeyName?: string; +} + +/** + * @export + * @enum {string} + */ +export enum PkiGenerateExportedKeyRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} + +/** + * Check if a given object implements the PkiGenerateExportedKeyRequest interface. + */ +export function instanceOfPkiGenerateExportedKeyRequest( + value: object +): value is PkiGenerateExportedKeyRequest { + return true; +} + +export function PkiGenerateExportedKeyRequestFromJSON(json: any): PkiGenerateExportedKeyRequest { + return PkiGenerateExportedKeyRequestFromJSONTyped(json, false); +} + +export function PkiGenerateExportedKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateExportedKeyRequest { + if (json == null) { + return json; + } + return { + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + }; +} + +export function PkiGenerateExportedKeyRequestToJSON(json: any): PkiGenerateExportedKeyRequest { + return PkiGenerateExportedKeyRequestToJSONTyped(json, false); +} + +export function PkiGenerateExportedKeyRequestToJSONTyped( + value?: PkiGenerateExportedKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_bits: value['keyBits'], + key_name: value['keyName'], + key_type: value['keyType'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateExportedKeyResponse.ts b/ui/api-client/src/models/PkiGenerateExportedKeyResponse.ts new file mode 100644 index 0000000000..1804c24eda --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateExportedKeyResponse.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateExportedKeyResponse + */ +export interface PkiGenerateExportedKeyResponse { + /** + * ID assigned to this key. + * @type {string} + * @memberof PkiGenerateExportedKeyResponse + */ + keyId?: string; + /** + * Name assigned to this key. + * @type {string} + * @memberof PkiGenerateExportedKeyResponse + */ + keyName?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateExportedKeyResponse + */ + keyType?: string; + /** + * The private key string + * @type {string} + * @memberof PkiGenerateExportedKeyResponse + */ + privateKey?: string; +} + +/** + * Check if a given object implements the PkiGenerateExportedKeyResponse interface. + */ +export function instanceOfPkiGenerateExportedKeyResponse( + value: object +): value is PkiGenerateExportedKeyResponse { + return true; +} + +export function PkiGenerateExportedKeyResponseFromJSON(json: any): PkiGenerateExportedKeyResponse { + return PkiGenerateExportedKeyResponseFromJSONTyped(json, false); +} + +export function PkiGenerateExportedKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateExportedKeyResponse { + if (json == null) { + return json; + } + return { + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + }; +} + +export function PkiGenerateExportedKeyResponseToJSON(json: any): PkiGenerateExportedKeyResponse { + return PkiGenerateExportedKeyResponseToJSONTyped(json, false); +} + +export function PkiGenerateExportedKeyResponseToJSONTyped( + value?: PkiGenerateExportedKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_id: value['keyId'], + key_name: value['keyName'], + key_type: value['keyType'], + private_key: value['privateKey'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateIntermediateRequest.ts b/ui/api-client/src/models/PkiGenerateIntermediateRequest.ts new file mode 100644 index 0000000000..c1ed6bed62 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateIntermediateRequest.ts @@ -0,0 +1,315 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateIntermediateRequest + */ +export interface PkiGenerateIntermediateRequest { + /** + * Whether to add a Basic Constraints extension with CA: true. Only needed as a workaround in some compatibility scenarios with Active Directory Certificate Services. + * @type {boolean} + * @memberof PkiGenerateIntermediateRequest + */ + addBasicConstraints?: boolean; + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + country?: Array; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiGenerateIntermediateRequest + */ + excludeCnFromSans?: boolean; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + format?: PkiGenerateIntermediateRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + ipSans?: Array; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiGenerateIntermediateRequest + */ + keyBits?: number; + /** + * Provide a name to the generated or existing key, the name must be unique across all keys and not be the reserved value 'default' + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + keyName?: string; + /** + * Reference to a existing key; either "default" for the configured default key, an identifier or the name assigned to the key. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + keyRef?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + keyType?: PkiGenerateIntermediateRequestKeyTypeEnum; + /** + * Specifies key_usage to encode in the certificate signing request. This is a comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. If not set, key usage will not appear on the CSR. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + locality?: Array; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + managedKeyName?: string; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + ou?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + privateKeyFormat?: PkiGenerateIntermediateRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiGenerateIntermediateRequest + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiGenerateIntermediateRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiGenerateIntermediateRequest + */ + uriSans?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiGenerateIntermediateRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiGenerateIntermediateRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiGenerateIntermediateRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiGenerateIntermediateRequest interface. + */ +export function instanceOfPkiGenerateIntermediateRequest( + value: object +): value is PkiGenerateIntermediateRequest { + return true; +} + +export function PkiGenerateIntermediateRequestFromJSON(json: any): PkiGenerateIntermediateRequest { + return PkiGenerateIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiGenerateIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateIntermediateRequest { + if (json == null) { + return json; + } + return { + addBasicConstraints: json['add_basic_constraints'] == null ? undefined : json['add_basic_constraints'], + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyRef: json['key_ref'] == null ? undefined : json['key_ref'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + }; +} + +export function PkiGenerateIntermediateRequestToJSON(json: any): PkiGenerateIntermediateRequest { + return PkiGenerateIntermediateRequestToJSONTyped(json, false); +} + +export function PkiGenerateIntermediateRequestToJSONTyped( + value?: PkiGenerateIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + add_basic_constraints: value['addBasicConstraints'], + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + exclude_cn_from_sans: value['excludeCnFromSans'], + format: value['format'], + ip_sans: value['ipSans'], + key_bits: value['keyBits'], + key_name: value['keyName'], + key_ref: value['keyRef'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateIntermediateResponse.ts b/ui/api-client/src/models/PkiGenerateIntermediateResponse.ts new file mode 100644 index 0000000000..07eec362f5 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateIntermediateResponse.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateIntermediateResponse + */ +export interface PkiGenerateIntermediateResponse { + /** + * Certificate signing request. + * @type {string} + * @memberof PkiGenerateIntermediateResponse + */ + csr?: string; + /** + * Id of the key. + * @type {string} + * @memberof PkiGenerateIntermediateResponse + */ + keyId?: string; + /** + * Generated private key. + * @type {string} + * @memberof PkiGenerateIntermediateResponse + */ + privateKey?: string; + /** + * Specifies the format used for marshaling the private key. + * @type {string} + * @memberof PkiGenerateIntermediateResponse + */ + privateKeyType?: string; +} + +/** + * Check if a given object implements the PkiGenerateIntermediateResponse interface. + */ +export function instanceOfPkiGenerateIntermediateResponse( + value: object +): value is PkiGenerateIntermediateResponse { + return true; +} + +export function PkiGenerateIntermediateResponseFromJSON(json: any): PkiGenerateIntermediateResponse { + return PkiGenerateIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiGenerateIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateIntermediateResponse { + if (json == null) { + return json; + } + return { + csr: json['csr'] == null ? undefined : json['csr'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + }; +} + +export function PkiGenerateIntermediateResponseToJSON(json: any): PkiGenerateIntermediateResponse { + return PkiGenerateIntermediateResponseToJSONTyped(json, false); +} + +export function PkiGenerateIntermediateResponseToJSONTyped( + value?: PkiGenerateIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + csr: value['csr'], + key_id: value['keyId'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateInternalKeyRequest.ts b/ui/api-client/src/models/PkiGenerateInternalKeyRequest.ts new file mode 100644 index 0000000000..69adf254e3 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateInternalKeyRequest.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateInternalKeyRequest + */ +export interface PkiGenerateInternalKeyRequest { + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiGenerateInternalKeyRequest + */ + keyBits?: number; + /** + * Optional name to be used for this key + * @type {string} + * @memberof PkiGenerateInternalKeyRequest + */ + keyName?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateInternalKeyRequest + */ + keyType?: PkiGenerateInternalKeyRequestKeyTypeEnum; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateInternalKeyRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateInternalKeyRequest + */ + managedKeyName?: string; +} + +/** + * @export + * @enum {string} + */ +export enum PkiGenerateInternalKeyRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} + +/** + * Check if a given object implements the PkiGenerateInternalKeyRequest interface. + */ +export function instanceOfPkiGenerateInternalKeyRequest( + value: object +): value is PkiGenerateInternalKeyRequest { + return true; +} + +export function PkiGenerateInternalKeyRequestFromJSON(json: any): PkiGenerateInternalKeyRequest { + return PkiGenerateInternalKeyRequestFromJSONTyped(json, false); +} + +export function PkiGenerateInternalKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateInternalKeyRequest { + if (json == null) { + return json; + } + return { + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + }; +} + +export function PkiGenerateInternalKeyRequestToJSON(json: any): PkiGenerateInternalKeyRequest { + return PkiGenerateInternalKeyRequestToJSONTyped(json, false); +} + +export function PkiGenerateInternalKeyRequestToJSONTyped( + value?: PkiGenerateInternalKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_bits: value['keyBits'], + key_name: value['keyName'], + key_type: value['keyType'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateInternalKeyResponse.ts b/ui/api-client/src/models/PkiGenerateInternalKeyResponse.ts new file mode 100644 index 0000000000..11f0b8f0e5 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateInternalKeyResponse.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateInternalKeyResponse + */ +export interface PkiGenerateInternalKeyResponse { + /** + * ID assigned to this key. + * @type {string} + * @memberof PkiGenerateInternalKeyResponse + */ + keyId?: string; + /** + * Name assigned to this key. + * @type {string} + * @memberof PkiGenerateInternalKeyResponse + */ + keyName?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateInternalKeyResponse + */ + keyType?: string; + /** + * The private key string + * @type {string} + * @memberof PkiGenerateInternalKeyResponse + */ + privateKey?: string; +} + +/** + * Check if a given object implements the PkiGenerateInternalKeyResponse interface. + */ +export function instanceOfPkiGenerateInternalKeyResponse( + value: object +): value is PkiGenerateInternalKeyResponse { + return true; +} + +export function PkiGenerateInternalKeyResponseFromJSON(json: any): PkiGenerateInternalKeyResponse { + return PkiGenerateInternalKeyResponseFromJSONTyped(json, false); +} + +export function PkiGenerateInternalKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateInternalKeyResponse { + if (json == null) { + return json; + } + return { + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + }; +} + +export function PkiGenerateInternalKeyResponseToJSON(json: any): PkiGenerateInternalKeyResponse { + return PkiGenerateInternalKeyResponseToJSONTyped(json, false); +} + +export function PkiGenerateInternalKeyResponseToJSONTyped( + value?: PkiGenerateInternalKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_id: value['keyId'], + key_name: value['keyName'], + key_type: value['keyType'], + private_key: value['privateKey'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateKmsKeyRequest.ts b/ui/api-client/src/models/PkiGenerateKmsKeyRequest.ts new file mode 100644 index 0000000000..0996e4c8f0 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateKmsKeyRequest.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateKmsKeyRequest + */ +export interface PkiGenerateKmsKeyRequest { + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiGenerateKmsKeyRequest + */ + keyBits?: number; + /** + * Optional name to be used for this key + * @type {string} + * @memberof PkiGenerateKmsKeyRequest + */ + keyName?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateKmsKeyRequest + */ + keyType?: PkiGenerateKmsKeyRequestKeyTypeEnum; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateKmsKeyRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateKmsKeyRequest + */ + managedKeyName?: string; +} + +/** + * @export + * @enum {string} + */ +export enum PkiGenerateKmsKeyRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} + +/** + * Check if a given object implements the PkiGenerateKmsKeyRequest interface. + */ +export function instanceOfPkiGenerateKmsKeyRequest(value: object): value is PkiGenerateKmsKeyRequest { + return true; +} + +export function PkiGenerateKmsKeyRequestFromJSON(json: any): PkiGenerateKmsKeyRequest { + return PkiGenerateKmsKeyRequestFromJSONTyped(json, false); +} + +export function PkiGenerateKmsKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateKmsKeyRequest { + if (json == null) { + return json; + } + return { + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + }; +} + +export function PkiGenerateKmsKeyRequestToJSON(json: any): PkiGenerateKmsKeyRequest { + return PkiGenerateKmsKeyRequestToJSONTyped(json, false); +} + +export function PkiGenerateKmsKeyRequestToJSONTyped( + value?: PkiGenerateKmsKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_bits: value['keyBits'], + key_name: value['keyName'], + key_type: value['keyType'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateKmsKeyResponse.ts b/ui/api-client/src/models/PkiGenerateKmsKeyResponse.ts new file mode 100644 index 0000000000..2906ba2e5d --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateKmsKeyResponse.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateKmsKeyResponse + */ +export interface PkiGenerateKmsKeyResponse { + /** + * ID assigned to this key. + * @type {string} + * @memberof PkiGenerateKmsKeyResponse + */ + keyId?: string; + /** + * Name assigned to this key. + * @type {string} + * @memberof PkiGenerateKmsKeyResponse + */ + keyName?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateKmsKeyResponse + */ + keyType?: string; + /** + * The private key string + * @type {string} + * @memberof PkiGenerateKmsKeyResponse + */ + privateKey?: string; +} + +/** + * Check if a given object implements the PkiGenerateKmsKeyResponse interface. + */ +export function instanceOfPkiGenerateKmsKeyResponse(value: object): value is PkiGenerateKmsKeyResponse { + return true; +} + +export function PkiGenerateKmsKeyResponseFromJSON(json: any): PkiGenerateKmsKeyResponse { + return PkiGenerateKmsKeyResponseFromJSONTyped(json, false); +} + +export function PkiGenerateKmsKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateKmsKeyResponse { + if (json == null) { + return json; + } + return { + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + }; +} + +export function PkiGenerateKmsKeyResponseToJSON(json: any): PkiGenerateKmsKeyResponse { + return PkiGenerateKmsKeyResponseToJSONTyped(json, false); +} + +export function PkiGenerateKmsKeyResponseToJSONTyped( + value?: PkiGenerateKmsKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_id: value['keyId'], + key_name: value['keyName'], + key_type: value['keyType'], + private_key: value['privateKey'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateRootRequest.ts b/ui/api-client/src/models/PkiGenerateRootRequest.ts new file mode 100644 index 0000000000..2c9488a006 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateRootRequest.ts @@ -0,0 +1,395 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateRootRequest + */ +export interface PkiGenerateRootRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + country?: Array; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiGenerateRootRequest + */ + excludeCnFromSans?: boolean; + /** + * Domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + excludedDnsDomains?: Array; + /** + * Email addresses for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + excludedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + excludedIpRanges?: Array; + /** + * URI domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + excludedUriDomains?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiGenerateRootRequest + */ + format?: PkiGenerateRootRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + ipSans?: Array; + /** + * Provide a name to the generated or existing issuer, the name must be unique across all issuers and not be the reserved value 'default' + * @type {string} + * @memberof PkiGenerateRootRequest + */ + issuerName?: string; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiGenerateRootRequest + */ + keyBits?: number; + /** + * Provide a name to the generated or existing key, the name must be unique across all keys and not be the reserved value 'default' + * @type {string} + * @memberof PkiGenerateRootRequest + */ + keyName?: string; + /** + * Reference to a existing key; either "default" for the configured default key, an identifier or the name assigned to the key. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + keyRef?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + keyType?: PkiGenerateRootRequestKeyTypeEnum; + /** + * This list of key usages (not extended key usages) will be added to the existing set of key usages, CRL,CertSign, on the generated certificate. Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To use the issuer for CMPv2, DigitalSignature must be set. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + locality?: Array; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + managedKeyName?: string; + /** + * The maximum allowable path length + * @type {number} + * @memberof PkiGenerateRootRequest + */ + maxPathLength?: number; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiGenerateRootRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + ou?: Array; + /** + * Domains for which this certificate is allowed to sign or issue child certificates. If set, all DNS names (subject and alt) on child certs must be exact matches or subsets of the given domains (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + permittedDnsDomains?: Array; + /** + * Email addresses for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + permittedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + permittedIpRanges?: Array; + /** + * URI domains for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + permittedUriDomains?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiGenerateRootRequest + */ + privateKeyFormat?: PkiGenerateRootRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiGenerateRootRequest + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiGenerateRootRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiGenerateRootRequest + */ + uriSans?: Array; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiGenerateRootRequest + */ + usePss?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiGenerateRootRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiGenerateRootRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiGenerateRootRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiGenerateRootRequest interface. + */ +export function instanceOfPkiGenerateRootRequest(value: object): value is PkiGenerateRootRequest { + return true; +} + +export function PkiGenerateRootRequestFromJSON(json: any): PkiGenerateRootRequest { + return PkiGenerateRootRequestFromJSONTyped(json, false); +} + +export function PkiGenerateRootRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateRootRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + excludedDnsDomains: json['excluded_dns_domains'] == null ? undefined : json['excluded_dns_domains'], + excludedEmailAddresses: + json['excluded_email_addresses'] == null ? undefined : json['excluded_email_addresses'], + excludedIpRanges: json['excluded_ip_ranges'] == null ? undefined : json['excluded_ip_ranges'], + excludedUriDomains: json['excluded_uri_domains'] == null ? undefined : json['excluded_uri_domains'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyRef: json['key_ref'] == null ? undefined : json['key_ref'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + maxPathLength: json['max_path_length'] == null ? undefined : json['max_path_length'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + permittedDnsDomains: json['permitted_dns_domains'] == null ? undefined : json['permitted_dns_domains'], + permittedEmailAddresses: + json['permitted_email_addresses'] == null ? undefined : json['permitted_email_addresses'], + permittedIpRanges: json['permitted_ip_ranges'] == null ? undefined : json['permitted_ip_ranges'], + permittedUriDomains: json['permitted_uri_domains'] == null ? undefined : json['permitted_uri_domains'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiGenerateRootRequestToJSON(json: any): PkiGenerateRootRequest { + return PkiGenerateRootRequestToJSONTyped(json, false); +} + +export function PkiGenerateRootRequestToJSONTyped( + value?: PkiGenerateRootRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + exclude_cn_from_sans: value['excludeCnFromSans'], + excluded_dns_domains: value['excludedDnsDomains'], + excluded_email_addresses: value['excludedEmailAddresses'], + excluded_ip_ranges: value['excludedIpRanges'], + excluded_uri_domains: value['excludedUriDomains'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_name: value['issuerName'], + key_bits: value['keyBits'], + key_name: value['keyName'], + key_ref: value['keyRef'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + max_path_length: value['maxPathLength'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + permitted_dns_domains: value['permittedDnsDomains'], + permitted_email_addresses: value['permittedEmailAddresses'], + permitted_ip_ranges: value['permittedIpRanges'], + permitted_uri_domains: value['permittedUriDomains'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiGenerateRootResponse.ts b/ui/api-client/src/models/PkiGenerateRootResponse.ts new file mode 100644 index 0000000000..b207a5a671 --- /dev/null +++ b/ui/api-client/src/models/PkiGenerateRootResponse.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiGenerateRootResponse + */ +export interface PkiGenerateRootResponse { + /** + * The generated self-signed CA certificate. + * @type {string} + * @memberof PkiGenerateRootResponse + */ + certificate?: string; + /** + * The expiration of the given issuer. + * @type {number} + * @memberof PkiGenerateRootResponse + */ + expiration?: number; + /** + * The ID of the issuer + * @type {string} + * @memberof PkiGenerateRootResponse + */ + issuerId?: string; + /** + * The name of the issuer. + * @type {string} + * @memberof PkiGenerateRootResponse + */ + issuerName?: string; + /** + * The issuing certificate authority. + * @type {string} + * @memberof PkiGenerateRootResponse + */ + issuingCa?: string; + /** + * The ID of the key. + * @type {string} + * @memberof PkiGenerateRootResponse + */ + keyId?: string; + /** + * The key name if given. + * @type {string} + * @memberof PkiGenerateRootResponse + */ + keyName?: string; + /** + * The private key if exported was specified. + * @type {string} + * @memberof PkiGenerateRootResponse + */ + privateKey?: string; + /** + * The requested Subject's named serial number. + * @type {string} + * @memberof PkiGenerateRootResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiGenerateRootResponse interface. + */ +export function instanceOfPkiGenerateRootResponse(value: object): value is PkiGenerateRootResponse { + return true; +} + +export function PkiGenerateRootResponseFromJSON(json: any): PkiGenerateRootResponse { + return PkiGenerateRootResponseFromJSONTyped(json, false); +} + +export function PkiGenerateRootResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiGenerateRootResponse { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiGenerateRootResponseToJSON(json: any): PkiGenerateRootResponse { + return PkiGenerateRootResponseToJSONTyped(json, false); +} + +export function PkiGenerateRootResponseToJSONTyped( + value?: PkiGenerateRootResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + expiration: value['expiration'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + issuing_ca: value['issuingCa'], + key_id: value['keyId'], + key_name: value['keyName'], + private_key: value['privateKey'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiImportKeyRequest.ts b/ui/api-client/src/models/PkiImportKeyRequest.ts new file mode 100644 index 0000000000..5454d42cc8 --- /dev/null +++ b/ui/api-client/src/models/PkiImportKeyRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiImportKeyRequest + */ +export interface PkiImportKeyRequest { + /** + * Optional name to be used for this key + * @type {string} + * @memberof PkiImportKeyRequest + */ + keyName?: string; + /** + * PEM-format, unencrypted secret key + * @type {string} + * @memberof PkiImportKeyRequest + */ + pemBundle?: string; +} + +/** + * Check if a given object implements the PkiImportKeyRequest interface. + */ +export function instanceOfPkiImportKeyRequest(value: object): value is PkiImportKeyRequest { + return true; +} + +export function PkiImportKeyRequestFromJSON(json: any): PkiImportKeyRequest { + return PkiImportKeyRequestFromJSONTyped(json, false); +} + +export function PkiImportKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiImportKeyRequest { + if (json == null) { + return json; + } + return { + keyName: json['key_name'] == null ? undefined : json['key_name'], + pemBundle: json['pem_bundle'] == null ? undefined : json['pem_bundle'], + }; +} + +export function PkiImportKeyRequestToJSON(json: any): PkiImportKeyRequest { + return PkiImportKeyRequestToJSONTyped(json, false); +} + +export function PkiImportKeyRequestToJSONTyped( + value?: PkiImportKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_name: value['keyName'], + pem_bundle: value['pemBundle'], + }; +} diff --git a/ui/api-client/src/models/PkiImportKeyResponse.ts b/ui/api-client/src/models/PkiImportKeyResponse.ts new file mode 100644 index 0000000000..e006d464d5 --- /dev/null +++ b/ui/api-client/src/models/PkiImportKeyResponse.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiImportKeyResponse + */ +export interface PkiImportKeyResponse { + /** + * ID assigned to this key. + * @type {string} + * @memberof PkiImportKeyResponse + */ + keyId?: string; + /** + * Name assigned to this key. + * @type {string} + * @memberof PkiImportKeyResponse + */ + keyName?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiImportKeyResponse + */ + keyType?: string; +} + +/** + * Check if a given object implements the PkiImportKeyResponse interface. + */ +export function instanceOfPkiImportKeyResponse(value: object): value is PkiImportKeyResponse { + return true; +} + +export function PkiImportKeyResponseFromJSON(json: any): PkiImportKeyResponse { + return PkiImportKeyResponseFromJSONTyped(json, false); +} + +export function PkiImportKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiImportKeyResponse { + if (json == null) { + return json; + } + return { + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + }; +} + +export function PkiImportKeyResponseToJSON(json: any): PkiImportKeyResponse { + return PkiImportKeyResponseToJSONTyped(json, false); +} + +export function PkiImportKeyResponseToJSONTyped( + value?: PkiImportKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_id: value['keyId'], + key_name: value['keyName'], + key_type: value['keyType'], + }; +} diff --git a/ui/api-client/src/models/PkiIssueWithRoleRequest.ts b/ui/api-client/src/models/PkiIssueWithRoleRequest.ts new file mode 100644 index 0000000000..4f7a8deef2 --- /dev/null +++ b/ui/api-client/src/models/PkiIssueWithRoleRequest.ts @@ -0,0 +1,201 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssueWithRoleRequest + */ +export interface PkiIssueWithRoleRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + commonName?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssueWithRoleRequest + */ + excludeCnFromSans?: boolean; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + format?: PkiIssueWithRoleRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssueWithRoleRequest + */ + ipSans?: Array; + /** + * Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + issuerRef?: string; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssueWithRoleRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + privateKeyFormat?: PkiIssueWithRoleRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiIssueWithRoleRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + serialNumber?: string; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiIssueWithRoleRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssueWithRoleRequest + */ + uriSans?: Array; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiIssueWithRoleRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssueWithRoleRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssueWithRoleRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssueWithRoleRequest interface. + */ +export function instanceOfPkiIssueWithRoleRequest(value: object): value is PkiIssueWithRoleRequest { + return true; +} + +export function PkiIssueWithRoleRequestFromJSON(json: any): PkiIssueWithRoleRequest { + return PkiIssueWithRoleRequestFromJSONTyped(json, false); +} + +export function PkiIssueWithRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssueWithRoleRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiIssueWithRoleRequestToJSON(json: any): PkiIssueWithRoleRequest { + return PkiIssueWithRoleRequestToJSONTyped(json, false); +} + +export function PkiIssueWithRoleRequestToJSONTyped( + value?: PkiIssueWithRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + exclude_cn_from_sans: value['excludeCnFromSans'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_ref: value['issuerRef'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiIssueWithRoleResponse.ts b/ui/api-client/src/models/PkiIssueWithRoleResponse.ts new file mode 100644 index 0000000000..219d964a23 --- /dev/null +++ b/ui/api-client/src/models/PkiIssueWithRoleResponse.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssueWithRoleResponse + */ +export interface PkiIssueWithRoleResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiIssueWithRoleResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiIssueWithRoleResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiIssueWithRoleResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiIssueWithRoleResponse + */ + issuingCa?: string; + /** + * Private key + * @type {string} + * @memberof PkiIssueWithRoleResponse + */ + privateKey?: string; + /** + * Private key type + * @type {string} + * @memberof PkiIssueWithRoleResponse + */ + privateKeyType?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiIssueWithRoleResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiIssueWithRoleResponse interface. + */ +export function instanceOfPkiIssueWithRoleResponse(value: object): value is PkiIssueWithRoleResponse { + return true; +} + +export function PkiIssueWithRoleResponseFromJSON(json: any): PkiIssueWithRoleResponse { + return PkiIssueWithRoleResponseFromJSONTyped(json, false); +} + +export function PkiIssueWithRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssueWithRoleResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiIssueWithRoleResponseToJSON(json: any): PkiIssueWithRoleResponse { + return PkiIssueWithRoleResponseToJSONTyped(json, false); +} + +export function PkiIssueWithRoleResponseToJSONTyped( + value?: PkiIssueWithRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerIssueWithRoleRequest.ts b/ui/api-client/src/models/PkiIssuerIssueWithRoleRequest.ts new file mode 100644 index 0000000000..c7490ff412 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerIssueWithRoleRequest.ts @@ -0,0 +1,195 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerIssueWithRoleRequest + */ +export interface PkiIssuerIssueWithRoleRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + commonName?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssuerIssueWithRoleRequest + */ + excludeCnFromSans?: boolean; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + format?: PkiIssuerIssueWithRoleRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssuerIssueWithRoleRequest + */ + ipSans?: Array; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssuerIssueWithRoleRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + privateKeyFormat?: PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiIssuerIssueWithRoleRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + serialNumber?: string; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiIssuerIssueWithRoleRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssuerIssueWithRoleRequest + */ + uriSans?: Array; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiIssuerIssueWithRoleRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssuerIssueWithRoleRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuerIssueWithRoleRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssuerIssueWithRoleRequest interface. + */ +export function instanceOfPkiIssuerIssueWithRoleRequest( + value: object +): value is PkiIssuerIssueWithRoleRequest { + return true; +} + +export function PkiIssuerIssueWithRoleRequestFromJSON(json: any): PkiIssuerIssueWithRoleRequest { + return PkiIssuerIssueWithRoleRequestFromJSONTyped(json, false); +} + +export function PkiIssuerIssueWithRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerIssueWithRoleRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiIssuerIssueWithRoleRequestToJSON(json: any): PkiIssuerIssueWithRoleRequest { + return PkiIssuerIssueWithRoleRequestToJSONTyped(json, false); +} + +export function PkiIssuerIssueWithRoleRequestToJSONTyped( + value?: PkiIssuerIssueWithRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + exclude_cn_from_sans: value['excludeCnFromSans'], + format: value['format'], + ip_sans: value['ipSans'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerIssueWithRoleResponse.ts b/ui/api-client/src/models/PkiIssuerIssueWithRoleResponse.ts new file mode 100644 index 0000000000..cad9bcc449 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerIssueWithRoleResponse.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerIssueWithRoleResponse + */ +export interface PkiIssuerIssueWithRoleResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiIssuerIssueWithRoleResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiIssuerIssueWithRoleResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiIssuerIssueWithRoleResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiIssuerIssueWithRoleResponse + */ + issuingCa?: string; + /** + * Private key + * @type {string} + * @memberof PkiIssuerIssueWithRoleResponse + */ + privateKey?: string; + /** + * Private key type + * @type {string} + * @memberof PkiIssuerIssueWithRoleResponse + */ + privateKeyType?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiIssuerIssueWithRoleResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiIssuerIssueWithRoleResponse interface. + */ +export function instanceOfPkiIssuerIssueWithRoleResponse( + value: object +): value is PkiIssuerIssueWithRoleResponse { + return true; +} + +export function PkiIssuerIssueWithRoleResponseFromJSON(json: any): PkiIssuerIssueWithRoleResponse { + return PkiIssuerIssueWithRoleResponseFromJSONTyped(json, false); +} + +export function PkiIssuerIssueWithRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerIssueWithRoleResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiIssuerIssueWithRoleResponseToJSON(json: any): PkiIssuerIssueWithRoleResponse { + return PkiIssuerIssueWithRoleResponseToJSONTyped(json, false); +} + +export function PkiIssuerIssueWithRoleResponseToJSONTyped( + value?: PkiIssuerIssueWithRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadCrlDeltaDerResponse.ts b/ui/api-client/src/models/PkiIssuerReadCrlDeltaDerResponse.ts new file mode 100644 index 0000000000..84aa6429d5 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadCrlDeltaDerResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadCrlDeltaDerResponse + */ +export interface PkiIssuerReadCrlDeltaDerResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadCrlDeltaDerResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadCrlDeltaDerResponse interface. + */ +export function instanceOfPkiIssuerReadCrlDeltaDerResponse( + value: object +): value is PkiIssuerReadCrlDeltaDerResponse { + return true; +} + +export function PkiIssuerReadCrlDeltaDerResponseFromJSON(json: any): PkiIssuerReadCrlDeltaDerResponse { + return PkiIssuerReadCrlDeltaDerResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDeltaDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadCrlDeltaDerResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadCrlDeltaDerResponseToJSON(json: any): PkiIssuerReadCrlDeltaDerResponse { + return PkiIssuerReadCrlDeltaDerResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDeltaDerResponseToJSONTyped( + value?: PkiIssuerReadCrlDeltaDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadCrlDeltaPemResponse.ts b/ui/api-client/src/models/PkiIssuerReadCrlDeltaPemResponse.ts new file mode 100644 index 0000000000..2974b3d496 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadCrlDeltaPemResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadCrlDeltaPemResponse + */ +export interface PkiIssuerReadCrlDeltaPemResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadCrlDeltaPemResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadCrlDeltaPemResponse interface. + */ +export function instanceOfPkiIssuerReadCrlDeltaPemResponse( + value: object +): value is PkiIssuerReadCrlDeltaPemResponse { + return true; +} + +export function PkiIssuerReadCrlDeltaPemResponseFromJSON(json: any): PkiIssuerReadCrlDeltaPemResponse { + return PkiIssuerReadCrlDeltaPemResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDeltaPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadCrlDeltaPemResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadCrlDeltaPemResponseToJSON(json: any): PkiIssuerReadCrlDeltaPemResponse { + return PkiIssuerReadCrlDeltaPemResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDeltaPemResponseToJSONTyped( + value?: PkiIssuerReadCrlDeltaPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadCrlDeltaResponse.ts b/ui/api-client/src/models/PkiIssuerReadCrlDeltaResponse.ts new file mode 100644 index 0000000000..c8e954554f --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadCrlDeltaResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadCrlDeltaResponse + */ +export interface PkiIssuerReadCrlDeltaResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadCrlDeltaResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadCrlDeltaResponse interface. + */ +export function instanceOfPkiIssuerReadCrlDeltaResponse( + value: object +): value is PkiIssuerReadCrlDeltaResponse { + return true; +} + +export function PkiIssuerReadCrlDeltaResponseFromJSON(json: any): PkiIssuerReadCrlDeltaResponse { + return PkiIssuerReadCrlDeltaResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDeltaResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadCrlDeltaResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadCrlDeltaResponseToJSON(json: any): PkiIssuerReadCrlDeltaResponse { + return PkiIssuerReadCrlDeltaResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDeltaResponseToJSONTyped( + value?: PkiIssuerReadCrlDeltaResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadCrlDerResponse.ts b/ui/api-client/src/models/PkiIssuerReadCrlDerResponse.ts new file mode 100644 index 0000000000..1cf4979cc8 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadCrlDerResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadCrlDerResponse + */ +export interface PkiIssuerReadCrlDerResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadCrlDerResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadCrlDerResponse interface. + */ +export function instanceOfPkiIssuerReadCrlDerResponse(value: object): value is PkiIssuerReadCrlDerResponse { + return true; +} + +export function PkiIssuerReadCrlDerResponseFromJSON(json: any): PkiIssuerReadCrlDerResponse { + return PkiIssuerReadCrlDerResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadCrlDerResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadCrlDerResponseToJSON(json: any): PkiIssuerReadCrlDerResponse { + return PkiIssuerReadCrlDerResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadCrlDerResponseToJSONTyped( + value?: PkiIssuerReadCrlDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadCrlPemResponse.ts b/ui/api-client/src/models/PkiIssuerReadCrlPemResponse.ts new file mode 100644 index 0000000000..c66ff9eeca --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadCrlPemResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadCrlPemResponse + */ +export interface PkiIssuerReadCrlPemResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadCrlPemResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadCrlPemResponse interface. + */ +export function instanceOfPkiIssuerReadCrlPemResponse(value: object): value is PkiIssuerReadCrlPemResponse { + return true; +} + +export function PkiIssuerReadCrlPemResponseFromJSON(json: any): PkiIssuerReadCrlPemResponse { + return PkiIssuerReadCrlPemResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadCrlPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadCrlPemResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadCrlPemResponseToJSON(json: any): PkiIssuerReadCrlPemResponse { + return PkiIssuerReadCrlPemResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadCrlPemResponseToJSONTyped( + value?: PkiIssuerReadCrlPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadCrlResponse.ts b/ui/api-client/src/models/PkiIssuerReadCrlResponse.ts new file mode 100644 index 0000000000..c7e222c656 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadCrlResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadCrlResponse + */ +export interface PkiIssuerReadCrlResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadCrlResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadCrlResponse interface. + */ +export function instanceOfPkiIssuerReadCrlResponse(value: object): value is PkiIssuerReadCrlResponse { + return true; +} + +export function PkiIssuerReadCrlResponseFromJSON(json: any): PkiIssuerReadCrlResponse { + return PkiIssuerReadCrlResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadCrlResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadCrlResponseToJSON(json: any): PkiIssuerReadCrlResponse { + return PkiIssuerReadCrlResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadCrlResponseToJSONTyped( + value?: PkiIssuerReadCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaDerResponse.ts b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaDerResponse.ts new file mode 100644 index 0000000000..d853e3b9f3 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaDerResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadUnifiedCrlDeltaDerResponse + */ +export interface PkiIssuerReadUnifiedCrlDeltaDerResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadUnifiedCrlDeltaDerResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadUnifiedCrlDeltaDerResponse interface. + */ +export function instanceOfPkiIssuerReadUnifiedCrlDeltaDerResponse( + value: object +): value is PkiIssuerReadUnifiedCrlDeltaDerResponse { + return true; +} + +export function PkiIssuerReadUnifiedCrlDeltaDerResponseFromJSON( + json: any +): PkiIssuerReadUnifiedCrlDeltaDerResponse { + return PkiIssuerReadUnifiedCrlDeltaDerResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDeltaDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadUnifiedCrlDeltaDerResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadUnifiedCrlDeltaDerResponseToJSON( + json: any +): PkiIssuerReadUnifiedCrlDeltaDerResponse { + return PkiIssuerReadUnifiedCrlDeltaDerResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDeltaDerResponseToJSONTyped( + value?: PkiIssuerReadUnifiedCrlDeltaDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaPemResponse.ts b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaPemResponse.ts new file mode 100644 index 0000000000..c4189cf055 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaPemResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadUnifiedCrlDeltaPemResponse + */ +export interface PkiIssuerReadUnifiedCrlDeltaPemResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadUnifiedCrlDeltaPemResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadUnifiedCrlDeltaPemResponse interface. + */ +export function instanceOfPkiIssuerReadUnifiedCrlDeltaPemResponse( + value: object +): value is PkiIssuerReadUnifiedCrlDeltaPemResponse { + return true; +} + +export function PkiIssuerReadUnifiedCrlDeltaPemResponseFromJSON( + json: any +): PkiIssuerReadUnifiedCrlDeltaPemResponse { + return PkiIssuerReadUnifiedCrlDeltaPemResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDeltaPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadUnifiedCrlDeltaPemResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadUnifiedCrlDeltaPemResponseToJSON( + json: any +): PkiIssuerReadUnifiedCrlDeltaPemResponse { + return PkiIssuerReadUnifiedCrlDeltaPemResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDeltaPemResponseToJSONTyped( + value?: PkiIssuerReadUnifiedCrlDeltaPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaResponse.ts b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaResponse.ts new file mode 100644 index 0000000000..f5320cdb9b --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDeltaResponse.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadUnifiedCrlDeltaResponse + */ +export interface PkiIssuerReadUnifiedCrlDeltaResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadUnifiedCrlDeltaResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadUnifiedCrlDeltaResponse interface. + */ +export function instanceOfPkiIssuerReadUnifiedCrlDeltaResponse( + value: object +): value is PkiIssuerReadUnifiedCrlDeltaResponse { + return true; +} + +export function PkiIssuerReadUnifiedCrlDeltaResponseFromJSON( + json: any +): PkiIssuerReadUnifiedCrlDeltaResponse { + return PkiIssuerReadUnifiedCrlDeltaResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDeltaResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadUnifiedCrlDeltaResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadUnifiedCrlDeltaResponseToJSON(json: any): PkiIssuerReadUnifiedCrlDeltaResponse { + return PkiIssuerReadUnifiedCrlDeltaResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDeltaResponseToJSONTyped( + value?: PkiIssuerReadUnifiedCrlDeltaResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDerResponse.ts b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDerResponse.ts new file mode 100644 index 0000000000..2f74ce1e7a --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlDerResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadUnifiedCrlDerResponse + */ +export interface PkiIssuerReadUnifiedCrlDerResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadUnifiedCrlDerResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadUnifiedCrlDerResponse interface. + */ +export function instanceOfPkiIssuerReadUnifiedCrlDerResponse( + value: object +): value is PkiIssuerReadUnifiedCrlDerResponse { + return true; +} + +export function PkiIssuerReadUnifiedCrlDerResponseFromJSON(json: any): PkiIssuerReadUnifiedCrlDerResponse { + return PkiIssuerReadUnifiedCrlDerResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadUnifiedCrlDerResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadUnifiedCrlDerResponseToJSON(json: any): PkiIssuerReadUnifiedCrlDerResponse { + return PkiIssuerReadUnifiedCrlDerResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlDerResponseToJSONTyped( + value?: PkiIssuerReadUnifiedCrlDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadUnifiedCrlPemResponse.ts b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlPemResponse.ts new file mode 100644 index 0000000000..925fdeb803 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlPemResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadUnifiedCrlPemResponse + */ +export interface PkiIssuerReadUnifiedCrlPemResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadUnifiedCrlPemResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadUnifiedCrlPemResponse interface. + */ +export function instanceOfPkiIssuerReadUnifiedCrlPemResponse( + value: object +): value is PkiIssuerReadUnifiedCrlPemResponse { + return true; +} + +export function PkiIssuerReadUnifiedCrlPemResponseFromJSON(json: any): PkiIssuerReadUnifiedCrlPemResponse { + return PkiIssuerReadUnifiedCrlPemResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadUnifiedCrlPemResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadUnifiedCrlPemResponseToJSON(json: any): PkiIssuerReadUnifiedCrlPemResponse { + return PkiIssuerReadUnifiedCrlPemResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlPemResponseToJSONTyped( + value?: PkiIssuerReadUnifiedCrlPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerReadUnifiedCrlResponse.ts b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlResponse.ts new file mode 100644 index 0000000000..8c2f9c0878 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerReadUnifiedCrlResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerReadUnifiedCrlResponse + */ +export interface PkiIssuerReadUnifiedCrlResponse { + /** + * + * @type {string} + * @memberof PkiIssuerReadUnifiedCrlResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerReadUnifiedCrlResponse interface. + */ +export function instanceOfPkiIssuerReadUnifiedCrlResponse( + value: object +): value is PkiIssuerReadUnifiedCrlResponse { + return true; +} + +export function PkiIssuerReadUnifiedCrlResponseFromJSON(json: any): PkiIssuerReadUnifiedCrlResponse { + return PkiIssuerReadUnifiedCrlResponseFromJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerReadUnifiedCrlResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerReadUnifiedCrlResponseToJSON(json: any): PkiIssuerReadUnifiedCrlResponse { + return PkiIssuerReadUnifiedCrlResponseToJSONTyped(json, false); +} + +export function PkiIssuerReadUnifiedCrlResponseToJSONTyped( + value?: PkiIssuerReadUnifiedCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerResignCrlsRequest.ts b/ui/api-client/src/models/PkiIssuerResignCrlsRequest.ts new file mode 100644 index 0000000000..4b9cae8ddd --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerResignCrlsRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerResignCrlsRequest + */ +export interface PkiIssuerResignCrlsRequest { + /** + * The sequence number to be written within the CRL Number extension. + * @type {number} + * @memberof PkiIssuerResignCrlsRequest + */ + crlNumber?: number; + /** + * A list of PEM encoded CRLs to combine, originally signed by the requested issuer. + * @type {Array} + * @memberof PkiIssuerResignCrlsRequest + */ + crls?: Array; + /** + * Using a zero or greater value specifies the base CRL revision number to encode within a Delta CRL indicator extension, otherwise the extension will not be added. + * @type {number} + * @memberof PkiIssuerResignCrlsRequest + */ + deltaCrlBaseNumber?: number; + /** + * The format of the combined CRL, can be "pem" or "der". If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuerResignCrlsRequest + */ + format?: string; + /** + * The amount of time the generated CRL should be valid; defaults to 72 hours. + * @type {string} + * @memberof PkiIssuerResignCrlsRequest + */ + nextUpdate?: string; +} + +/** + * Check if a given object implements the PkiIssuerResignCrlsRequest interface. + */ +export function instanceOfPkiIssuerResignCrlsRequest(value: object): value is PkiIssuerResignCrlsRequest { + return true; +} + +export function PkiIssuerResignCrlsRequestFromJSON(json: any): PkiIssuerResignCrlsRequest { + return PkiIssuerResignCrlsRequestFromJSONTyped(json, false); +} + +export function PkiIssuerResignCrlsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerResignCrlsRequest { + if (json == null) { + return json; + } + return { + crlNumber: json['crl_number'] == null ? undefined : json['crl_number'], + crls: json['crls'] == null ? undefined : json['crls'], + deltaCrlBaseNumber: json['delta_crl_base_number'] == null ? undefined : json['delta_crl_base_number'], + format: json['format'] == null ? undefined : json['format'], + nextUpdate: json['next_update'] == null ? undefined : json['next_update'], + }; +} + +export function PkiIssuerResignCrlsRequestToJSON(json: any): PkiIssuerResignCrlsRequest { + return PkiIssuerResignCrlsRequestToJSONTyped(json, false); +} + +export function PkiIssuerResignCrlsRequestToJSONTyped( + value?: PkiIssuerResignCrlsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl_number: value['crlNumber'], + crls: value['crls'], + delta_crl_base_number: value['deltaCrlBaseNumber'], + format: value['format'], + next_update: value['nextUpdate'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerResignCrlsResponse.ts b/ui/api-client/src/models/PkiIssuerResignCrlsResponse.ts new file mode 100644 index 0000000000..38c323db9e --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerResignCrlsResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerResignCrlsResponse + */ +export interface PkiIssuerResignCrlsResponse { + /** + * CRL + * @type {string} + * @memberof PkiIssuerResignCrlsResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerResignCrlsResponse interface. + */ +export function instanceOfPkiIssuerResignCrlsResponse(value: object): value is PkiIssuerResignCrlsResponse { + return true; +} + +export function PkiIssuerResignCrlsResponseFromJSON(json: any): PkiIssuerResignCrlsResponse { + return PkiIssuerResignCrlsResponseFromJSONTyped(json, false); +} + +export function PkiIssuerResignCrlsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerResignCrlsResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerResignCrlsResponseToJSON(json: any): PkiIssuerResignCrlsResponse { + return PkiIssuerResignCrlsResponseToJSONTyped(json, false); +} + +export function PkiIssuerResignCrlsResponseToJSONTyped( + value?: PkiIssuerResignCrlsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignIntermediateRequest.ts b/ui/api-client/src/models/PkiIssuerSignIntermediateRequest.ts new file mode 100644 index 0000000000..92d8f19804 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignIntermediateRequest.ts @@ -0,0 +1,373 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignIntermediateRequest + */ +export interface PkiIssuerSignIntermediateRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + country?: Array; + /** + * PEM-format CSR to be signed. + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + csr?: string; + /** + * Do not truncate the NotAfter field, use the issuer's configured leaf_not_after_behavior + * @type {boolean} + * @memberof PkiIssuerSignIntermediateRequest + */ + enforceLeafNotAfterBehavior?: boolean; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssuerSignIntermediateRequest + */ + excludeCnFromSans?: boolean; + /** + * Domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + excludedDnsDomains?: Array; + /** + * Email addresses for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + excludedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + excludedIpRanges?: Array; + /** + * URI domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + excludedUriDomains?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + format?: PkiIssuerSignIntermediateRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + ipSans?: Array; + /** + * Provide a name to the generated or existing issuer, the name must be unique across all issuers and not be the reserved value 'default' + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + issuerName?: string; + /** + * This list of key usages (not extended key usages) will be added to the existing set of key usages, CRL,CertSign, on the generated certificate. Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To use the issuer for CMPv2, DigitalSignature must be set. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + locality?: Array; + /** + * The maximum allowable path length + * @type {number} + * @memberof PkiIssuerSignIntermediateRequest + */ + maxPathLength?: number; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + ou?: Array; + /** + * Domains for which this certificate is allowed to sign or issue child certificates. If set, all DNS names (subject and alt) on child certs must be exact matches or subsets of the given domains (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + permittedDnsDomains?: Array; + /** + * Email addresses for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + permittedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + permittedIpRanges?: Array; + /** + * URI domains for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + permittedUriDomains?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + privateKeyFormat?: PkiIssuerSignIntermediateRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiIssuerSignIntermediateRequest + */ + signatureBits?: number; + /** + * Value for the Subject Key Identifier field (RFC 5280 Section 4.2.1.2). This value should ONLY be used when cross-signing to mimic the existing certificate's SKID value; this is necessary to allow certain TLS implementations (such as OpenSSL) which use SKID/AKID matches in chain building to restrict possible valid chains. Specified as a string in hex format. Default is empty, allowing Vault to automatically calculate the SKID according to method one in the above RFC section. + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + skid?: string; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiIssuerSignIntermediateRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssuerSignIntermediateRequest + */ + uriSans?: Array; + /** + * If true, then: 1) Subject information, including names and alternate names, will be preserved from the CSR rather than using values provided in the other parameters to this path; 2) Any key usages requested in the CSR will be added to the basic set of key usages used for CA certs signed by this path; for instance, the non-repudiation flag; 3) Extensions requested in the CSR will be copied into the issued certificate. + * @type {boolean} + * @memberof PkiIssuerSignIntermediateRequest + */ + useCsrValues?: boolean; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiIssuerSignIntermediateRequest + */ + usePss?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignIntermediateRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignIntermediateRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssuerSignIntermediateRequest interface. + */ +export function instanceOfPkiIssuerSignIntermediateRequest( + value: object +): value is PkiIssuerSignIntermediateRequest { + return true; +} + +export function PkiIssuerSignIntermediateRequestFromJSON(json: any): PkiIssuerSignIntermediateRequest { + return PkiIssuerSignIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiIssuerSignIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignIntermediateRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + csr: json['csr'] == null ? undefined : json['csr'], + enforceLeafNotAfterBehavior: + json['enforce_leaf_not_after_behavior'] == null ? undefined : json['enforce_leaf_not_after_behavior'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + excludedDnsDomains: json['excluded_dns_domains'] == null ? undefined : json['excluded_dns_domains'], + excludedEmailAddresses: + json['excluded_email_addresses'] == null ? undefined : json['excluded_email_addresses'], + excludedIpRanges: json['excluded_ip_ranges'] == null ? undefined : json['excluded_ip_ranges'], + excludedUriDomains: json['excluded_uri_domains'] == null ? undefined : json['excluded_uri_domains'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + maxPathLength: json['max_path_length'] == null ? undefined : json['max_path_length'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + permittedDnsDomains: json['permitted_dns_domains'] == null ? undefined : json['permitted_dns_domains'], + permittedEmailAddresses: + json['permitted_email_addresses'] == null ? undefined : json['permitted_email_addresses'], + permittedIpRanges: json['permitted_ip_ranges'] == null ? undefined : json['permitted_ip_ranges'], + permittedUriDomains: json['permitted_uri_domains'] == null ? undefined : json['permitted_uri_domains'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + skid: json['skid'] == null ? undefined : json['skid'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + useCsrValues: json['use_csr_values'] == null ? undefined : json['use_csr_values'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiIssuerSignIntermediateRequestToJSON(json: any): PkiIssuerSignIntermediateRequest { + return PkiIssuerSignIntermediateRequestToJSONTyped(json, false); +} + +export function PkiIssuerSignIntermediateRequestToJSONTyped( + value?: PkiIssuerSignIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + csr: value['csr'], + enforce_leaf_not_after_behavior: value['enforceLeafNotAfterBehavior'], + exclude_cn_from_sans: value['excludeCnFromSans'], + excluded_dns_domains: value['excludedDnsDomains'], + excluded_email_addresses: value['excludedEmailAddresses'], + excluded_ip_ranges: value['excludedIpRanges'], + excluded_uri_domains: value['excludedUriDomains'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_name: value['issuerName'], + key_usage: value['keyUsage'], + locality: value['locality'], + max_path_length: value['maxPathLength'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + permitted_dns_domains: value['permittedDnsDomains'], + permitted_email_addresses: value['permittedEmailAddresses'], + permitted_ip_ranges: value['permittedIpRanges'], + permitted_uri_domains: value['permittedUriDomains'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + skid: value['skid'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_csr_values: value['useCsrValues'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignIntermediateResponse.ts b/ui/api-client/src/models/PkiIssuerSignIntermediateResponse.ts new file mode 100644 index 0000000000..fc6f27e1aa --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignIntermediateResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignIntermediateResponse + */ +export interface PkiIssuerSignIntermediateResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiIssuerSignIntermediateResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiIssuerSignIntermediateResponse + */ + certificate?: string; + /** + * Expiration Time + * @type {number} + * @memberof PkiIssuerSignIntermediateResponse + */ + expiration?: number; + /** + * Issuing CA + * @type {string} + * @memberof PkiIssuerSignIntermediateResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiIssuerSignIntermediateResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiIssuerSignIntermediateResponse interface. + */ +export function instanceOfPkiIssuerSignIntermediateResponse( + value: object +): value is PkiIssuerSignIntermediateResponse { + return true; +} + +export function PkiIssuerSignIntermediateResponseFromJSON(json: any): PkiIssuerSignIntermediateResponse { + return PkiIssuerSignIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiIssuerSignIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignIntermediateResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiIssuerSignIntermediateResponseToJSON(json: any): PkiIssuerSignIntermediateResponse { + return PkiIssuerSignIntermediateResponseToJSONTyped(json, false); +} + +export function PkiIssuerSignIntermediateResponseToJSONTyped( + value?: PkiIssuerSignIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignRevocationListRequest.ts b/ui/api-client/src/models/PkiIssuerSignRevocationListRequest.ts new file mode 100644 index 0000000000..e5c7648b9c --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignRevocationListRequest.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignRevocationListRequest + */ +export interface PkiIssuerSignRevocationListRequest { + /** + * The sequence number to be written within the CRL Number extension. + * @type {number} + * @memberof PkiIssuerSignRevocationListRequest + */ + crlNumber?: number; + /** + * Using a zero or greater value specifies the base CRL revision number to encode within a Delta CRL indicator extension, otherwise the extension will not be added. + * @type {number} + * @memberof PkiIssuerSignRevocationListRequest + */ + deltaCrlBaseNumber?: number; + /** + * A list of maps containing extensions with keys id (string), critical (bool), value (string) + * @type {Array} + * @memberof PkiIssuerSignRevocationListRequest + */ + extensions?: Array; + /** + * The format of the combined CRL, can be "pem" or "der". If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuerSignRevocationListRequest + */ + format?: string; + /** + * The amount of time the generated CRL should be valid; defaults to 72 hours. + * @type {string} + * @memberof PkiIssuerSignRevocationListRequest + */ + nextUpdate?: string; + /** + * A list of maps containing the keys serial_number (string), revocation_time (string), and extensions (map with keys id (string), critical (bool), value (string)) + * @type {Array} + * @memberof PkiIssuerSignRevocationListRequest + */ + revokedCerts?: Array; +} + +/** + * Check if a given object implements the PkiIssuerSignRevocationListRequest interface. + */ +export function instanceOfPkiIssuerSignRevocationListRequest( + value: object +): value is PkiIssuerSignRevocationListRequest { + return true; +} + +export function PkiIssuerSignRevocationListRequestFromJSON(json: any): PkiIssuerSignRevocationListRequest { + return PkiIssuerSignRevocationListRequestFromJSONTyped(json, false); +} + +export function PkiIssuerSignRevocationListRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignRevocationListRequest { + if (json == null) { + return json; + } + return { + crlNumber: json['crl_number'] == null ? undefined : json['crl_number'], + deltaCrlBaseNumber: json['delta_crl_base_number'] == null ? undefined : json['delta_crl_base_number'], + extensions: json['extensions'] == null ? undefined : json['extensions'], + format: json['format'] == null ? undefined : json['format'], + nextUpdate: json['next_update'] == null ? undefined : json['next_update'], + revokedCerts: json['revoked_certs'] == null ? undefined : json['revoked_certs'], + }; +} + +export function PkiIssuerSignRevocationListRequestToJSON(json: any): PkiIssuerSignRevocationListRequest { + return PkiIssuerSignRevocationListRequestToJSONTyped(json, false); +} + +export function PkiIssuerSignRevocationListRequestToJSONTyped( + value?: PkiIssuerSignRevocationListRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl_number: value['crlNumber'], + delta_crl_base_number: value['deltaCrlBaseNumber'], + extensions: value['extensions'], + format: value['format'], + next_update: value['nextUpdate'], + revoked_certs: value['revokedCerts'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignRevocationListResponse.ts b/ui/api-client/src/models/PkiIssuerSignRevocationListResponse.ts new file mode 100644 index 0000000000..43ed993950 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignRevocationListResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignRevocationListResponse + */ +export interface PkiIssuerSignRevocationListResponse { + /** + * CRL + * @type {string} + * @memberof PkiIssuerSignRevocationListResponse + */ + crl?: string; +} + +/** + * Check if a given object implements the PkiIssuerSignRevocationListResponse interface. + */ +export function instanceOfPkiIssuerSignRevocationListResponse( + value: object +): value is PkiIssuerSignRevocationListResponse { + return true; +} + +export function PkiIssuerSignRevocationListResponseFromJSON(json: any): PkiIssuerSignRevocationListResponse { + return PkiIssuerSignRevocationListResponseFromJSONTyped(json, false); +} + +export function PkiIssuerSignRevocationListResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignRevocationListResponse { + if (json == null) { + return json; + } + return { + crl: json['crl'] == null ? undefined : json['crl'], + }; +} + +export function PkiIssuerSignRevocationListResponseToJSON(json: any): PkiIssuerSignRevocationListResponse { + return PkiIssuerSignRevocationListResponseToJSONTyped(json, false); +} + +export function PkiIssuerSignRevocationListResponseToJSONTyped( + value?: PkiIssuerSignRevocationListResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl: value['crl'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignSelfIssuedRequest.ts b/ui/api-client/src/models/PkiIssuerSignSelfIssuedRequest.ts new file mode 100644 index 0000000000..93d3c82b55 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignSelfIssuedRequest.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignSelfIssuedRequest + */ +export interface PkiIssuerSignSelfIssuedRequest { + /** + * PEM-format self-issued certificate to be signed. + * @type {string} + * @memberof PkiIssuerSignSelfIssuedRequest + */ + certificate?: string; + /** + * If true, require the public key algorithm of the signer to match that of the self issued certificate. + * @type {boolean} + * @memberof PkiIssuerSignSelfIssuedRequest + */ + requireMatchingCertificateAlgorithms?: boolean; +} + +/** + * Check if a given object implements the PkiIssuerSignSelfIssuedRequest interface. + */ +export function instanceOfPkiIssuerSignSelfIssuedRequest( + value: object +): value is PkiIssuerSignSelfIssuedRequest { + return true; +} + +export function PkiIssuerSignSelfIssuedRequestFromJSON(json: any): PkiIssuerSignSelfIssuedRequest { + return PkiIssuerSignSelfIssuedRequestFromJSONTyped(json, false); +} + +export function PkiIssuerSignSelfIssuedRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignSelfIssuedRequest { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + requireMatchingCertificateAlgorithms: + json['require_matching_certificate_algorithms'] == null + ? undefined + : json['require_matching_certificate_algorithms'], + }; +} + +export function PkiIssuerSignSelfIssuedRequestToJSON(json: any): PkiIssuerSignSelfIssuedRequest { + return PkiIssuerSignSelfIssuedRequestToJSONTyped(json, false); +} + +export function PkiIssuerSignSelfIssuedRequestToJSONTyped( + value?: PkiIssuerSignSelfIssuedRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + require_matching_certificate_algorithms: value['requireMatchingCertificateAlgorithms'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignSelfIssuedResponse.ts b/ui/api-client/src/models/PkiIssuerSignSelfIssuedResponse.ts new file mode 100644 index 0000000000..bb6e29ab65 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignSelfIssuedResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignSelfIssuedResponse + */ +export interface PkiIssuerSignSelfIssuedResponse { + /** + * Certificate + * @type {string} + * @memberof PkiIssuerSignSelfIssuedResponse + */ + certificate?: string; + /** + * Issuing CA + * @type {string} + * @memberof PkiIssuerSignSelfIssuedResponse + */ + issuingCa?: string; +} + +/** + * Check if a given object implements the PkiIssuerSignSelfIssuedResponse interface. + */ +export function instanceOfPkiIssuerSignSelfIssuedResponse( + value: object +): value is PkiIssuerSignSelfIssuedResponse { + return true; +} + +export function PkiIssuerSignSelfIssuedResponseFromJSON(json: any): PkiIssuerSignSelfIssuedResponse { + return PkiIssuerSignSelfIssuedResponseFromJSONTyped(json, false); +} + +export function PkiIssuerSignSelfIssuedResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignSelfIssuedResponse { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + }; +} + +export function PkiIssuerSignSelfIssuedResponseToJSON(json: any): PkiIssuerSignSelfIssuedResponse { + return PkiIssuerSignSelfIssuedResponseToJSONTyped(json, false); +} + +export function PkiIssuerSignSelfIssuedResponseToJSONTyped( + value?: PkiIssuerSignSelfIssuedResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + issuing_ca: value['issuingCa'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignVerbatimRequest.ts b/ui/api-client/src/models/PkiIssuerSignVerbatimRequest.ts new file mode 100644 index 0000000000..cec4ea42dc --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignVerbatimRequest.ts @@ -0,0 +1,241 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignVerbatimRequest + */ +export interface PkiIssuerSignVerbatimRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + commonName?: string; + /** + * PEM-format CSR to be signed. Values will be taken verbatim from the CSR, except for basic constraints. + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + csr?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssuerSignVerbatimRequest + */ + excludeCnFromSans?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiIssuerSignVerbatimRequest + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiIssuerSignVerbatimRequest + */ + extKeyUsageOids?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + format?: PkiIssuerSignVerbatimRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssuerSignVerbatimRequest + */ + ipSans?: Array; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiIssuerSignVerbatimRequest + */ + keyUsage?: Array; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssuerSignVerbatimRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + privateKeyFormat?: PkiIssuerSignVerbatimRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiIssuerSignVerbatimRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiIssuerSignVerbatimRequest + */ + signatureBits?: number; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiIssuerSignVerbatimRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssuerSignVerbatimRequest + */ + uriSans?: Array; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiIssuerSignVerbatimRequest + */ + usePss?: boolean; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiIssuerSignVerbatimRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignVerbatimRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignVerbatimRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssuerSignVerbatimRequest interface. + */ +export function instanceOfPkiIssuerSignVerbatimRequest(value: object): value is PkiIssuerSignVerbatimRequest { + return true; +} + +export function PkiIssuerSignVerbatimRequestFromJSON(json: any): PkiIssuerSignVerbatimRequest { + return PkiIssuerSignVerbatimRequestFromJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignVerbatimRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + csr: json['csr'] == null ? undefined : json['csr'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiIssuerSignVerbatimRequestToJSON(json: any): PkiIssuerSignVerbatimRequest { + return PkiIssuerSignVerbatimRequestToJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimRequestToJSONTyped( + value?: PkiIssuerSignVerbatimRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + csr: value['csr'], + exclude_cn_from_sans: value['excludeCnFromSans'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + format: value['format'], + ip_sans: value['ipSans'], + key_usage: value['keyUsage'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_pss: value['usePss'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignVerbatimResponse.ts b/ui/api-client/src/models/PkiIssuerSignVerbatimResponse.ts new file mode 100644 index 0000000000..3375a6fd20 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignVerbatimResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignVerbatimResponse + */ +export interface PkiIssuerSignVerbatimResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiIssuerSignVerbatimResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiIssuerSignVerbatimResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiIssuerSignVerbatimResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiIssuerSignVerbatimResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiIssuerSignVerbatimResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiIssuerSignVerbatimResponse interface. + */ +export function instanceOfPkiIssuerSignVerbatimResponse( + value: object +): value is PkiIssuerSignVerbatimResponse { + return true; +} + +export function PkiIssuerSignVerbatimResponseFromJSON(json: any): PkiIssuerSignVerbatimResponse { + return PkiIssuerSignVerbatimResponseFromJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignVerbatimResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiIssuerSignVerbatimResponseToJSON(json: any): PkiIssuerSignVerbatimResponse { + return PkiIssuerSignVerbatimResponseToJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimResponseToJSONTyped( + value?: PkiIssuerSignVerbatimResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignVerbatimWithRoleRequest.ts b/ui/api-client/src/models/PkiIssuerSignVerbatimWithRoleRequest.ts new file mode 100644 index 0000000000..0097487155 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignVerbatimWithRoleRequest.ts @@ -0,0 +1,245 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignVerbatimWithRoleRequest + */ +export interface PkiIssuerSignVerbatimWithRoleRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + commonName?: string; + /** + * PEM-format CSR to be signed. Values will be taken verbatim from the CSR, except for basic constraints. + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + csr?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + excludeCnFromSans?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + extKeyUsageOids?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + format?: PkiIssuerSignVerbatimWithRoleRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + ipSans?: Array; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + keyUsage?: Array; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + privateKeyFormat?: PkiIssuerSignVerbatimWithRoleRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + signatureBits?: number; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + uriSans?: Array; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + usePss?: boolean; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignVerbatimWithRoleRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignVerbatimWithRoleRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssuerSignVerbatimWithRoleRequest interface. + */ +export function instanceOfPkiIssuerSignVerbatimWithRoleRequest( + value: object +): value is PkiIssuerSignVerbatimWithRoleRequest { + return true; +} + +export function PkiIssuerSignVerbatimWithRoleRequestFromJSON( + json: any +): PkiIssuerSignVerbatimWithRoleRequest { + return PkiIssuerSignVerbatimWithRoleRequestFromJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimWithRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignVerbatimWithRoleRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + csr: json['csr'] == null ? undefined : json['csr'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiIssuerSignVerbatimWithRoleRequestToJSON(json: any): PkiIssuerSignVerbatimWithRoleRequest { + return PkiIssuerSignVerbatimWithRoleRequestToJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimWithRoleRequestToJSONTyped( + value?: PkiIssuerSignVerbatimWithRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + csr: value['csr'], + exclude_cn_from_sans: value['excludeCnFromSans'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + format: value['format'], + ip_sans: value['ipSans'], + key_usage: value['keyUsage'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_pss: value['usePss'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignVerbatimWithRoleResponse.ts b/ui/api-client/src/models/PkiIssuerSignVerbatimWithRoleResponse.ts new file mode 100644 index 0000000000..3c86043adc --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignVerbatimWithRoleResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignVerbatimWithRoleResponse + */ +export interface PkiIssuerSignVerbatimWithRoleResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiIssuerSignVerbatimWithRoleResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiIssuerSignVerbatimWithRoleResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiIssuerSignVerbatimWithRoleResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiIssuerSignVerbatimWithRoleResponse interface. + */ +export function instanceOfPkiIssuerSignVerbatimWithRoleResponse( + value: object +): value is PkiIssuerSignVerbatimWithRoleResponse { + return true; +} + +export function PkiIssuerSignVerbatimWithRoleResponseFromJSON( + json: any +): PkiIssuerSignVerbatimWithRoleResponse { + return PkiIssuerSignVerbatimWithRoleResponseFromJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimWithRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignVerbatimWithRoleResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiIssuerSignVerbatimWithRoleResponseToJSON( + json: any +): PkiIssuerSignVerbatimWithRoleResponse { + return PkiIssuerSignVerbatimWithRoleResponseToJSONTyped(json, false); +} + +export function PkiIssuerSignVerbatimWithRoleResponseToJSONTyped( + value?: PkiIssuerSignVerbatimWithRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignWithRoleRequest.ts b/ui/api-client/src/models/PkiIssuerSignWithRoleRequest.ts new file mode 100644 index 0000000000..7513da034f --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignWithRoleRequest.ts @@ -0,0 +1,201 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignWithRoleRequest + */ +export interface PkiIssuerSignWithRoleRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + commonName?: string; + /** + * PEM-format CSR to be signed. + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + csr?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssuerSignWithRoleRequest + */ + excludeCnFromSans?: boolean; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + format?: PkiIssuerSignWithRoleRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssuerSignWithRoleRequest + */ + ipSans?: Array; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssuerSignWithRoleRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + privateKeyFormat?: PkiIssuerSignWithRoleRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiIssuerSignWithRoleRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + serialNumber?: string; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiIssuerSignWithRoleRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssuerSignWithRoleRequest + */ + uriSans?: Array; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiIssuerSignWithRoleRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignWithRoleRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuerSignWithRoleRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssuerSignWithRoleRequest interface. + */ +export function instanceOfPkiIssuerSignWithRoleRequest(value: object): value is PkiIssuerSignWithRoleRequest { + return true; +} + +export function PkiIssuerSignWithRoleRequestFromJSON(json: any): PkiIssuerSignWithRoleRequest { + return PkiIssuerSignWithRoleRequestFromJSONTyped(json, false); +} + +export function PkiIssuerSignWithRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignWithRoleRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + csr: json['csr'] == null ? undefined : json['csr'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiIssuerSignWithRoleRequestToJSON(json: any): PkiIssuerSignWithRoleRequest { + return PkiIssuerSignWithRoleRequestToJSONTyped(json, false); +} + +export function PkiIssuerSignWithRoleRequestToJSONTyped( + value?: PkiIssuerSignWithRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + csr: value['csr'], + exclude_cn_from_sans: value['excludeCnFromSans'], + format: value['format'], + ip_sans: value['ipSans'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuerSignWithRoleResponse.ts b/ui/api-client/src/models/PkiIssuerSignWithRoleResponse.ts new file mode 100644 index 0000000000..928b208a57 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuerSignWithRoleResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuerSignWithRoleResponse + */ +export interface PkiIssuerSignWithRoleResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiIssuerSignWithRoleResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiIssuerSignWithRoleResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiIssuerSignWithRoleResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiIssuerSignWithRoleResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiIssuerSignWithRoleResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiIssuerSignWithRoleResponse interface. + */ +export function instanceOfPkiIssuerSignWithRoleResponse( + value: object +): value is PkiIssuerSignWithRoleResponse { + return true; +} + +export function PkiIssuerSignWithRoleResponseFromJSON(json: any): PkiIssuerSignWithRoleResponse { + return PkiIssuerSignWithRoleResponseFromJSONTyped(json, false); +} + +export function PkiIssuerSignWithRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuerSignWithRoleResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiIssuerSignWithRoleResponseToJSON(json: any): PkiIssuerSignWithRoleResponse { + return PkiIssuerSignWithRoleResponseToJSONTyped(json, false); +} + +export function PkiIssuerSignWithRoleResponseToJSONTyped( + value?: PkiIssuerSignWithRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersGenerateIntermediateRequest.ts b/ui/api-client/src/models/PkiIssuersGenerateIntermediateRequest.ts new file mode 100644 index 0000000000..9669103c80 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersGenerateIntermediateRequest.ts @@ -0,0 +1,319 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersGenerateIntermediateRequest + */ +export interface PkiIssuersGenerateIntermediateRequest { + /** + * Whether to add a Basic Constraints extension with CA: true. Only needed as a workaround in some compatibility scenarios with Active Directory Certificate Services. + * @type {boolean} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + addBasicConstraints?: boolean; + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + country?: Array; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + excludeCnFromSans?: boolean; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + format?: PkiIssuersGenerateIntermediateRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + ipSans?: Array; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + keyBits?: number; + /** + * Provide a name to the generated or existing key, the name must be unique across all keys and not be the reserved value 'default' + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + keyName?: string; + /** + * Reference to a existing key; either "default" for the configured default key, an identifier or the name assigned to the key. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + keyRef?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + keyType?: PkiIssuersGenerateIntermediateRequestKeyTypeEnum; + /** + * Specifies key_usage to encode in the certificate signing request. This is a comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. If not set, key usage will not appear on the CSR. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + locality?: Array; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + managedKeyName?: string; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + ou?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + privateKeyFormat?: PkiIssuersGenerateIntermediateRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssuersGenerateIntermediateRequest + */ + uriSans?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateIntermediateRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateIntermediateRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateIntermediateRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssuersGenerateIntermediateRequest interface. + */ +export function instanceOfPkiIssuersGenerateIntermediateRequest( + value: object +): value is PkiIssuersGenerateIntermediateRequest { + return true; +} + +export function PkiIssuersGenerateIntermediateRequestFromJSON( + json: any +): PkiIssuersGenerateIntermediateRequest { + return PkiIssuersGenerateIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiIssuersGenerateIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersGenerateIntermediateRequest { + if (json == null) { + return json; + } + return { + addBasicConstraints: json['add_basic_constraints'] == null ? undefined : json['add_basic_constraints'], + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyRef: json['key_ref'] == null ? undefined : json['key_ref'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + }; +} + +export function PkiIssuersGenerateIntermediateRequestToJSON( + json: any +): PkiIssuersGenerateIntermediateRequest { + return PkiIssuersGenerateIntermediateRequestToJSONTyped(json, false); +} + +export function PkiIssuersGenerateIntermediateRequestToJSONTyped( + value?: PkiIssuersGenerateIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + add_basic_constraints: value['addBasicConstraints'], + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + exclude_cn_from_sans: value['excludeCnFromSans'], + format: value['format'], + ip_sans: value['ipSans'], + key_bits: value['keyBits'], + key_name: value['keyName'], + key_ref: value['keyRef'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersGenerateIntermediateResponse.ts b/ui/api-client/src/models/PkiIssuersGenerateIntermediateResponse.ts new file mode 100644 index 0000000000..a2eed0fb7d --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersGenerateIntermediateResponse.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersGenerateIntermediateResponse + */ +export interface PkiIssuersGenerateIntermediateResponse { + /** + * Certificate signing request. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateResponse + */ + csr?: string; + /** + * Id of the key. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateResponse + */ + keyId?: string; + /** + * Generated private key. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateResponse + */ + privateKey?: string; + /** + * Specifies the format used for marshaling the private key. + * @type {string} + * @memberof PkiIssuersGenerateIntermediateResponse + */ + privateKeyType?: string; +} + +/** + * Check if a given object implements the PkiIssuersGenerateIntermediateResponse interface. + */ +export function instanceOfPkiIssuersGenerateIntermediateResponse( + value: object +): value is PkiIssuersGenerateIntermediateResponse { + return true; +} + +export function PkiIssuersGenerateIntermediateResponseFromJSON( + json: any +): PkiIssuersGenerateIntermediateResponse { + return PkiIssuersGenerateIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiIssuersGenerateIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersGenerateIntermediateResponse { + if (json == null) { + return json; + } + return { + csr: json['csr'] == null ? undefined : json['csr'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + }; +} + +export function PkiIssuersGenerateIntermediateResponseToJSON( + json: any +): PkiIssuersGenerateIntermediateResponse { + return PkiIssuersGenerateIntermediateResponseToJSONTyped(json, false); +} + +export function PkiIssuersGenerateIntermediateResponseToJSONTyped( + value?: PkiIssuersGenerateIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + csr: value['csr'], + key_id: value['keyId'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersGenerateRootRequest.ts b/ui/api-client/src/models/PkiIssuersGenerateRootRequest.ts new file mode 100644 index 0000000000..08e40e373a --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersGenerateRootRequest.ts @@ -0,0 +1,397 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersGenerateRootRequest + */ +export interface PkiIssuersGenerateRootRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + country?: Array; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiIssuersGenerateRootRequest + */ + excludeCnFromSans?: boolean; + /** + * Domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + excludedDnsDomains?: Array; + /** + * Email addresses for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + excludedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + excludedIpRanges?: Array; + /** + * URI domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + excludedUriDomains?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + format?: PkiIssuersGenerateRootRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + ipSans?: Array; + /** + * Provide a name to the generated or existing issuer, the name must be unique across all issuers and not be the reserved value 'default' + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + issuerName?: string; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiIssuersGenerateRootRequest + */ + keyBits?: number; + /** + * Provide a name to the generated or existing key, the name must be unique across all keys and not be the reserved value 'default' + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + keyName?: string; + /** + * Reference to a existing key; either "default" for the configured default key, an identifier or the name assigned to the key. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + keyRef?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + keyType?: PkiIssuersGenerateRootRequestKeyTypeEnum; + /** + * This list of key usages (not extended key usages) will be added to the existing set of key usages, CRL,CertSign, on the generated certificate. Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To use the issuer for CMPv2, DigitalSignature must be set. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + locality?: Array; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + managedKeyName?: string; + /** + * The maximum allowable path length + * @type {number} + * @memberof PkiIssuersGenerateRootRequest + */ + maxPathLength?: number; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + ou?: Array; + /** + * Domains for which this certificate is allowed to sign or issue child certificates. If set, all DNS names (subject and alt) on child certs must be exact matches or subsets of the given domains (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + permittedDnsDomains?: Array; + /** + * Email addresses for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + permittedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + permittedIpRanges?: Array; + /** + * URI domains for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + permittedUriDomains?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + privateKeyFormat?: PkiIssuersGenerateRootRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiIssuersGenerateRootRequest + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiIssuersGenerateRootRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiIssuersGenerateRootRequest + */ + uriSans?: Array; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiIssuersGenerateRootRequest + */ + usePss?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateRootRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateRootRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiIssuersGenerateRootRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiIssuersGenerateRootRequest interface. + */ +export function instanceOfPkiIssuersGenerateRootRequest( + value: object +): value is PkiIssuersGenerateRootRequest { + return true; +} + +export function PkiIssuersGenerateRootRequestFromJSON(json: any): PkiIssuersGenerateRootRequest { + return PkiIssuersGenerateRootRequestFromJSONTyped(json, false); +} + +export function PkiIssuersGenerateRootRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersGenerateRootRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + excludedDnsDomains: json['excluded_dns_domains'] == null ? undefined : json['excluded_dns_domains'], + excludedEmailAddresses: + json['excluded_email_addresses'] == null ? undefined : json['excluded_email_addresses'], + excludedIpRanges: json['excluded_ip_ranges'] == null ? undefined : json['excluded_ip_ranges'], + excludedUriDomains: json['excluded_uri_domains'] == null ? undefined : json['excluded_uri_domains'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyRef: json['key_ref'] == null ? undefined : json['key_ref'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + maxPathLength: json['max_path_length'] == null ? undefined : json['max_path_length'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + permittedDnsDomains: json['permitted_dns_domains'] == null ? undefined : json['permitted_dns_domains'], + permittedEmailAddresses: + json['permitted_email_addresses'] == null ? undefined : json['permitted_email_addresses'], + permittedIpRanges: json['permitted_ip_ranges'] == null ? undefined : json['permitted_ip_ranges'], + permittedUriDomains: json['permitted_uri_domains'] == null ? undefined : json['permitted_uri_domains'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiIssuersGenerateRootRequestToJSON(json: any): PkiIssuersGenerateRootRequest { + return PkiIssuersGenerateRootRequestToJSONTyped(json, false); +} + +export function PkiIssuersGenerateRootRequestToJSONTyped( + value?: PkiIssuersGenerateRootRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + exclude_cn_from_sans: value['excludeCnFromSans'], + excluded_dns_domains: value['excludedDnsDomains'], + excluded_email_addresses: value['excludedEmailAddresses'], + excluded_ip_ranges: value['excludedIpRanges'], + excluded_uri_domains: value['excludedUriDomains'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_name: value['issuerName'], + key_bits: value['keyBits'], + key_name: value['keyName'], + key_ref: value['keyRef'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + max_path_length: value['maxPathLength'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + permitted_dns_domains: value['permittedDnsDomains'], + permitted_email_addresses: value['permittedEmailAddresses'], + permitted_ip_ranges: value['permittedIpRanges'], + permitted_uri_domains: value['permittedUriDomains'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersGenerateRootResponse.ts b/ui/api-client/src/models/PkiIssuersGenerateRootResponse.ts new file mode 100644 index 0000000000..249f4943a5 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersGenerateRootResponse.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersGenerateRootResponse + */ +export interface PkiIssuersGenerateRootResponse { + /** + * The generated self-signed CA certificate. + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + certificate?: string; + /** + * The expiration of the given issuer. + * @type {number} + * @memberof PkiIssuersGenerateRootResponse + */ + expiration?: number; + /** + * The ID of the issuer + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + issuerId?: string; + /** + * The name of the issuer. + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + issuerName?: string; + /** + * The issuing certificate authority. + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + issuingCa?: string; + /** + * The ID of the key. + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + keyId?: string; + /** + * The key name if given. + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + keyName?: string; + /** + * The private key if exported was specified. + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + privateKey?: string; + /** + * The requested Subject's named serial number. + * @type {string} + * @memberof PkiIssuersGenerateRootResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiIssuersGenerateRootResponse interface. + */ +export function instanceOfPkiIssuersGenerateRootResponse( + value: object +): value is PkiIssuersGenerateRootResponse { + return true; +} + +export function PkiIssuersGenerateRootResponseFromJSON(json: any): PkiIssuersGenerateRootResponse { + return PkiIssuersGenerateRootResponseFromJSONTyped(json, false); +} + +export function PkiIssuersGenerateRootResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersGenerateRootResponse { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiIssuersGenerateRootResponseToJSON(json: any): PkiIssuersGenerateRootResponse { + return PkiIssuersGenerateRootResponseToJSONTyped(json, false); +} + +export function PkiIssuersGenerateRootResponseToJSONTyped( + value?: PkiIssuersGenerateRootResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + expiration: value['expiration'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + issuing_ca: value['issuingCa'], + key_id: value['keyId'], + key_name: value['keyName'], + private_key: value['privateKey'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersImportBundleRequest.ts b/ui/api-client/src/models/PkiIssuersImportBundleRequest.ts new file mode 100644 index 0000000000..196347ead1 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersImportBundleRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersImportBundleRequest + */ +export interface PkiIssuersImportBundleRequest { + /** + * PEM-format, concatenated unencrypted secret-key (optional) and certificates. + * @type {string} + * @memberof PkiIssuersImportBundleRequest + */ + pemBundle?: string; +} + +/** + * Check if a given object implements the PkiIssuersImportBundleRequest interface. + */ +export function instanceOfPkiIssuersImportBundleRequest( + value: object +): value is PkiIssuersImportBundleRequest { + return true; +} + +export function PkiIssuersImportBundleRequestFromJSON(json: any): PkiIssuersImportBundleRequest { + return PkiIssuersImportBundleRequestFromJSONTyped(json, false); +} + +export function PkiIssuersImportBundleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersImportBundleRequest { + if (json == null) { + return json; + } + return { + pemBundle: json['pem_bundle'] == null ? undefined : json['pem_bundle'], + }; +} + +export function PkiIssuersImportBundleRequestToJSON(json: any): PkiIssuersImportBundleRequest { + return PkiIssuersImportBundleRequestToJSONTyped(json, false); +} + +export function PkiIssuersImportBundleRequestToJSONTyped( + value?: PkiIssuersImportBundleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + pem_bundle: value['pemBundle'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersImportBundleResponse.ts b/ui/api-client/src/models/PkiIssuersImportBundleResponse.ts new file mode 100644 index 0000000000..7d2ff9f8ea --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersImportBundleResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersImportBundleResponse + */ +export interface PkiIssuersImportBundleResponse { + /** + * Existing issuers specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiIssuersImportBundleResponse + */ + existingIssuers?: Array; + /** + * Existing keys specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiIssuersImportBundleResponse + */ + existingKeys?: Array; + /** + * Net-new issuers imported as a part of this request + * @type {Array} + * @memberof PkiIssuersImportBundleResponse + */ + importedIssuers?: Array; + /** + * Net-new keys imported as a part of this request + * @type {Array} + * @memberof PkiIssuersImportBundleResponse + */ + importedKeys?: Array; + /** + * A mapping of issuer_id to key_id for all issuers included in this request + * @type {object} + * @memberof PkiIssuersImportBundleResponse + */ + mapping?: object; +} + +/** + * Check if a given object implements the PkiIssuersImportBundleResponse interface. + */ +export function instanceOfPkiIssuersImportBundleResponse( + value: object +): value is PkiIssuersImportBundleResponse { + return true; +} + +export function PkiIssuersImportBundleResponseFromJSON(json: any): PkiIssuersImportBundleResponse { + return PkiIssuersImportBundleResponseFromJSONTyped(json, false); +} + +export function PkiIssuersImportBundleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersImportBundleResponse { + if (json == null) { + return json; + } + return { + existingIssuers: json['existing_issuers'] == null ? undefined : json['existing_issuers'], + existingKeys: json['existing_keys'] == null ? undefined : json['existing_keys'], + importedIssuers: json['imported_issuers'] == null ? undefined : json['imported_issuers'], + importedKeys: json['imported_keys'] == null ? undefined : json['imported_keys'], + mapping: json['mapping'] == null ? undefined : json['mapping'], + }; +} + +export function PkiIssuersImportBundleResponseToJSON(json: any): PkiIssuersImportBundleResponse { + return PkiIssuersImportBundleResponseToJSONTyped(json, false); +} + +export function PkiIssuersImportBundleResponseToJSONTyped( + value?: PkiIssuersImportBundleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + existing_issuers: value['existingIssuers'], + existing_keys: value['existingKeys'], + imported_issuers: value['importedIssuers'], + imported_keys: value['importedKeys'], + mapping: value['mapping'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersImportCertRequest.ts b/ui/api-client/src/models/PkiIssuersImportCertRequest.ts new file mode 100644 index 0000000000..87f4e77f77 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersImportCertRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersImportCertRequest + */ +export interface PkiIssuersImportCertRequest { + /** + * PEM-format, concatenated unencrypted secret-key (optional) and certificates. + * @type {string} + * @memberof PkiIssuersImportCertRequest + */ + pemBundle?: string; +} + +/** + * Check if a given object implements the PkiIssuersImportCertRequest interface. + */ +export function instanceOfPkiIssuersImportCertRequest(value: object): value is PkiIssuersImportCertRequest { + return true; +} + +export function PkiIssuersImportCertRequestFromJSON(json: any): PkiIssuersImportCertRequest { + return PkiIssuersImportCertRequestFromJSONTyped(json, false); +} + +export function PkiIssuersImportCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersImportCertRequest { + if (json == null) { + return json; + } + return { + pemBundle: json['pem_bundle'] == null ? undefined : json['pem_bundle'], + }; +} + +export function PkiIssuersImportCertRequestToJSON(json: any): PkiIssuersImportCertRequest { + return PkiIssuersImportCertRequestToJSONTyped(json, false); +} + +export function PkiIssuersImportCertRequestToJSONTyped( + value?: PkiIssuersImportCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + pem_bundle: value['pemBundle'], + }; +} diff --git a/ui/api-client/src/models/PkiIssuersImportCertResponse.ts b/ui/api-client/src/models/PkiIssuersImportCertResponse.ts new file mode 100644 index 0000000000..0726d8e511 --- /dev/null +++ b/ui/api-client/src/models/PkiIssuersImportCertResponse.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiIssuersImportCertResponse + */ +export interface PkiIssuersImportCertResponse { + /** + * Existing issuers specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiIssuersImportCertResponse + */ + existingIssuers?: Array; + /** + * Existing keys specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiIssuersImportCertResponse + */ + existingKeys?: Array; + /** + * Net-new issuers imported as a part of this request + * @type {Array} + * @memberof PkiIssuersImportCertResponse + */ + importedIssuers?: Array; + /** + * Net-new keys imported as a part of this request + * @type {Array} + * @memberof PkiIssuersImportCertResponse + */ + importedKeys?: Array; + /** + * A mapping of issuer_id to key_id for all issuers included in this request + * @type {object} + * @memberof PkiIssuersImportCertResponse + */ + mapping?: object; +} + +/** + * Check if a given object implements the PkiIssuersImportCertResponse interface. + */ +export function instanceOfPkiIssuersImportCertResponse(value: object): value is PkiIssuersImportCertResponse { + return true; +} + +export function PkiIssuersImportCertResponseFromJSON(json: any): PkiIssuersImportCertResponse { + return PkiIssuersImportCertResponseFromJSONTyped(json, false); +} + +export function PkiIssuersImportCertResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiIssuersImportCertResponse { + if (json == null) { + return json; + } + return { + existingIssuers: json['existing_issuers'] == null ? undefined : json['existing_issuers'], + existingKeys: json['existing_keys'] == null ? undefined : json['existing_keys'], + importedIssuers: json['imported_issuers'] == null ? undefined : json['imported_issuers'], + importedKeys: json['imported_keys'] == null ? undefined : json['imported_keys'], + mapping: json['mapping'] == null ? undefined : json['mapping'], + }; +} + +export function PkiIssuersImportCertResponseToJSON(json: any): PkiIssuersImportCertResponse { + return PkiIssuersImportCertResponseToJSONTyped(json, false); +} + +export function PkiIssuersImportCertResponseToJSONTyped( + value?: PkiIssuersImportCertResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + existing_issuers: value['existingIssuers'], + existing_keys: value['existingKeys'], + imported_issuers: value['importedIssuers'], + imported_keys: value['importedKeys'], + mapping: value['mapping'], + }; +} diff --git a/ui/api-client/src/models/PkiListEabKeysResponse.ts b/ui/api-client/src/models/PkiListEabKeysResponse.ts new file mode 100644 index 0000000000..1a1f9565a4 --- /dev/null +++ b/ui/api-client/src/models/PkiListEabKeysResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiListEabKeysResponse + */ +export interface PkiListEabKeysResponse { + /** + * EAB details keyed by the eab key id + * @type {object} + * @memberof PkiListEabKeysResponse + */ + keyInfo?: object; + /** + * A list of unused eab keys + * @type {Array} + * @memberof PkiListEabKeysResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the PkiListEabKeysResponse interface. + */ +export function instanceOfPkiListEabKeysResponse(value: object): value is PkiListEabKeysResponse { + return true; +} + +export function PkiListEabKeysResponseFromJSON(json: any): PkiListEabKeysResponse { + return PkiListEabKeysResponseFromJSONTyped(json, false); +} + +export function PkiListEabKeysResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiListEabKeysResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function PkiListEabKeysResponseToJSON(json: any): PkiListEabKeysResponse { + return PkiListEabKeysResponseToJSONTyped(json, false); +} + +export function PkiListEabKeysResponseToJSONTyped( + value?: PkiListEabKeysResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/PkiListIssuersResponse.ts b/ui/api-client/src/models/PkiListIssuersResponse.ts new file mode 100644 index 0000000000..8ab4904f3f --- /dev/null +++ b/ui/api-client/src/models/PkiListIssuersResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiListIssuersResponse + */ +export interface PkiListIssuersResponse { + /** + * Key info with issuer name + * @type {object} + * @memberof PkiListIssuersResponse + */ + keyInfo?: object; + /** + * A list of keys + * @type {Array} + * @memberof PkiListIssuersResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the PkiListIssuersResponse interface. + */ +export function instanceOfPkiListIssuersResponse(value: object): value is PkiListIssuersResponse { + return true; +} + +export function PkiListIssuersResponseFromJSON(json: any): PkiListIssuersResponse { + return PkiListIssuersResponseFromJSONTyped(json, false); +} + +export function PkiListIssuersResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiListIssuersResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function PkiListIssuersResponseToJSON(json: any): PkiListIssuersResponse { + return PkiListIssuersResponseToJSONTyped(json, false); +} + +export function PkiListIssuersResponseToJSONTyped( + value?: PkiListIssuersResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/PkiListKeysResponse.ts b/ui/api-client/src/models/PkiListKeysResponse.ts new file mode 100644 index 0000000000..69270fc551 --- /dev/null +++ b/ui/api-client/src/models/PkiListKeysResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiListKeysResponse + */ +export interface PkiListKeysResponse { + /** + * Key info with issuer name + * @type {object} + * @memberof PkiListKeysResponse + */ + keyInfo?: object; + /** + * A list of keys + * @type {Array} + * @memberof PkiListKeysResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the PkiListKeysResponse interface. + */ +export function instanceOfPkiListKeysResponse(value: object): value is PkiListKeysResponse { + return true; +} + +export function PkiListKeysResponseFromJSON(json: any): PkiListKeysResponse { + return PkiListKeysResponseFromJSONTyped(json, false); +} + +export function PkiListKeysResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiListKeysResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function PkiListKeysResponseToJSON(json: any): PkiListKeysResponse { + return PkiListKeysResponseToJSONTyped(json, false); +} + +export function PkiListKeysResponseToJSONTyped( + value?: PkiListKeysResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/PkiListUnifiedRevokedCertsResponse.ts b/ui/api-client/src/models/PkiListUnifiedRevokedCertsResponse.ts new file mode 100644 index 0000000000..3ec32720e2 --- /dev/null +++ b/ui/api-client/src/models/PkiListUnifiedRevokedCertsResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiListUnifiedRevokedCertsResponse + */ +export interface PkiListUnifiedRevokedCertsResponse { + /** + * Key information + * @type {string} + * @memberof PkiListUnifiedRevokedCertsResponse + */ + keyInfo?: string; + /** + * List of Keys + * @type {Array} + * @memberof PkiListUnifiedRevokedCertsResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the PkiListUnifiedRevokedCertsResponse interface. + */ +export function instanceOfPkiListUnifiedRevokedCertsResponse( + value: object +): value is PkiListUnifiedRevokedCertsResponse { + return true; +} + +export function PkiListUnifiedRevokedCertsResponseFromJSON(json: any): PkiListUnifiedRevokedCertsResponse { + return PkiListUnifiedRevokedCertsResponseFromJSONTyped(json, false); +} + +export function PkiListUnifiedRevokedCertsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiListUnifiedRevokedCertsResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function PkiListUnifiedRevokedCertsResponseToJSON(json: any): PkiListUnifiedRevokedCertsResponse { + return PkiListUnifiedRevokedCertsResponseToJSONTyped(json, false); +} + +export function PkiListUnifiedRevokedCertsResponseToJSONTyped( + value?: PkiListUnifiedRevokedCertsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/PkiPatchIssuerResponse.ts b/ui/api-client/src/models/PkiPatchIssuerResponse.ts new file mode 100644 index 0000000000..173affce10 --- /dev/null +++ b/ui/api-client/src/models/PkiPatchIssuerResponse.ts @@ -0,0 +1,230 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiPatchIssuerResponse + */ +export interface PkiPatchIssuerResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + certificate?: string; + /** + * CRL Distribution Points + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + crlDistributionPoints?: Array; + /** + * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiPatchIssuerResponse + */ + disableCriticalExtensionChecks?: boolean; + /** + * Whether the issuer name check should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiPatchIssuerResponse + */ + disableNameChecks?: boolean; + /** + * Whether name contraint checks shoul be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiPatchIssuerResponse + */ + disableNameConstraintChecks?: boolean; + /** + * Whether max path length checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiPatchIssuerResponse + */ + disablePathLengthChecks?: boolean; + /** + * Whether or not templating is enabled for AIA fields + * @type {boolean} + * @memberof PkiPatchIssuerResponse + */ + enableAiaUrlTemplating?: boolean; + /** + * Issuer Id + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + issuerId?: string; + /** + * Issuer Name + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + issuerName?: string; + /** + * Issuing Certificates + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + issuingCertificates?: Array; + /** + * Key Id + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + keyId?: string; + /** + * Leaf Not After Behavior + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + leafNotAfterBehavior?: string; + /** + * Manual Chain + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + manualChain?: Array; + /** + * OCSP Servers + * @type {Array} + * @memberof PkiPatchIssuerResponse + */ + ocspServers?: Array; + /** + * Revocation Signature Alogrithm + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + revocationSignatureAlgorithm?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiPatchIssuerResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + revocationTimeRfc3339?: string; + /** + * Revoked + * @type {boolean} + * @memberof PkiPatchIssuerResponse + */ + revoked?: boolean; + /** + * Usage + * @type {string} + * @memberof PkiPatchIssuerResponse + */ + usage?: string; +} + +/** + * Check if a given object implements the PkiPatchIssuerResponse interface. + */ +export function instanceOfPkiPatchIssuerResponse(value: object): value is PkiPatchIssuerResponse { + return true; +} + +export function PkiPatchIssuerResponseFromJSON(json: any): PkiPatchIssuerResponse { + return PkiPatchIssuerResponseFromJSONTyped(json, false); +} + +export function PkiPatchIssuerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiPatchIssuerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + disableCriticalExtensionChecks: + json['disable_critical_extension_checks'] == null + ? undefined + : json['disable_critical_extension_checks'], + disableNameChecks: json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], + disableNameConstraintChecks: + json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], + disablePathLengthChecks: + json['disable_path_length_checks'] == null ? undefined : json['disable_path_length_checks'], + enableAiaUrlTemplating: + json['enable_aia_url_templating'] == null ? undefined : json['enable_aia_url_templating'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + leafNotAfterBehavior: + json['leaf_not_after_behavior'] == null ? undefined : json['leaf_not_after_behavior'], + manualChain: json['manual_chain'] == null ? undefined : json['manual_chain'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + revocationSignatureAlgorithm: + json['revocation_signature_algorithm'] == null ? undefined : json['revocation_signature_algorithm'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + revoked: json['revoked'] == null ? undefined : json['revoked'], + usage: json['usage'] == null ? undefined : json['usage'], + }; +} + +export function PkiPatchIssuerResponseToJSON(json: any): PkiPatchIssuerResponse { + return PkiPatchIssuerResponseToJSONTyped(json, false); +} + +export function PkiPatchIssuerResponseToJSONTyped( + value?: PkiPatchIssuerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + crl_distribution_points: value['crlDistributionPoints'], + disable_critical_extension_checks: value['disableCriticalExtensionChecks'], + disable_name_checks: value['disableNameChecks'], + disable_name_constraint_checks: value['disableNameConstraintChecks'], + disable_path_length_checks: value['disablePathLengthChecks'], + enable_aia_url_templating: value['enableAiaUrlTemplating'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + issuing_certificates: value['issuingCertificates'], + key_id: value['keyId'], + leaf_not_after_behavior: value['leafNotAfterBehavior'], + manual_chain: value['manualChain'], + ocsp_servers: value['ocspServers'], + revocation_signature_algorithm: value['revocationSignatureAlgorithm'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + revoked: value['revoked'], + usage: value['usage'], + }; +} diff --git a/ui/api-client/src/models/PkiPatchRoleResponse.ts b/ui/api-client/src/models/PkiPatchRoleResponse.ts new file mode 100644 index 0000000000..86af5d48d7 --- /dev/null +++ b/ui/api-client/src/models/PkiPatchRoleResponse.ts @@ -0,0 +1,459 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiPatchRoleResponse + */ +export interface PkiPatchRoleResponse { + /** + * If set, clients can request certificates for any domain, regardless of allowed_domains restrictions. See the documentation for more information. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowAnyName?: boolean; + /** + * If set, clients can request certificates for the base domains themselves, e.g. "example.com" of domains listed in allowed_domains. This is a separate option as in some cases this can be considered a security threat. See the documentation for more information. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowBareDomains?: boolean; + /** + * If set, domains specified in allowed_domains can include shell-style glob patterns, e.g. "ftp*.example.com". See the documentation for more information. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowGlobDomains?: boolean; + /** + * If set, IP Subject Alternative Names are allowed. Any valid IP is accepted and No authorization checking is performed. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowIpSans?: boolean; + /** + * Whether to allow "localhost" and "localdomain" as a valid common name in a request, independent of allowed_domains value. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowLocalhost?: boolean; + /** + * If set, clients can request certificates for subdomains of domains listed in allowed_domains, including wildcard subdomains. See the documentation for more information. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowSubdomains?: boolean; + /** + * Whether to allow "localhost" and "localdomain" as a valid common name in a request, independent of allowed_domains value. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowTokenDisplayname?: boolean; + /** + * If set, allows certificates with wildcards in the common name to be issued, conforming to RFC 6125's Section 6.4.3; e.g., "*.example.net" or "b*z.example.net". See the documentation for more information. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowWildcardCertificates?: boolean; + /** + * Specifies the domains this role is allowed to issue certificates for. This is used with the allow_bare_domains, allow_subdomains, and allow_glob_domains to determine matches for the common name, DNS-typed SAN entries, and Email-typed SAN entries of certificates. See the documentation for more information. This parameter accepts a comma-separated string or list of domains. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + allowedDomains?: Array; + /** + * If set, Allowed domains can be specified using identity template policies. Non-templated domains are also permitted. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowedDomainsTemplate?: boolean; + /** + * If set, an array of allowed other names to put in SANs. These values support globbing and must be in the format ;:. Currently only "utf8" is a valid type. All values, including globbing values, must use this syntax, with the exception being a single "*" which allows any OID and any value (but type must still be utf8). + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + allowedOtherSans?: Array; + /** + * If set, an array of allowed serial numbers to put in Subject. These values support globbing. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + allowedSerialNumbers?: Array; + /** + * If set, an array of allowed URIs for URI Subject Alternative Names. Any valid URI is accepted, these values support globbing. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + allowedUriSans?: Array; + /** + * If set, Allowed URI SANs can be specified using identity template policies. Non-templated URI SANs are also permitted. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + allowedUriSansTemplate?: boolean; + /** + * If set, an array of allowed user-ids to put in user system login name specified here: https://www.rfc-editor.org/rfc/rfc1274#section-9.3.1 + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + allowedUserIds?: Array; + /** + * Mark Basic Constraints valid when issuing non-CA certificates. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + basicConstraintsValidForNonCa?: boolean; + /** + * If set, certificates are flagged for client auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + clientFlag?: boolean; + /** + * List of allowed validations to run against the Common Name field. Values can include 'email' to validate the CN is a email address, 'hostname' to validate the CN is a valid hostname (potentially including wildcards). When multiple validations are specified, these take OR semantics (either email OR hostname are allowed). The special value 'disabled' allows disabling all CN name validations, allowing for arbitrary non-Hostname, non-Email address CNs. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + cnValidations?: Array; + /** + * If set, certificates are flagged for code signing use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + codeSigningFlag?: boolean; + /** + * If set, Country will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + country?: Array; + /** + * If set, certificates are flagged for email protection use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + emailProtectionFlag?: boolean; + /** + * If set, only valid host names are allowed for CN and DNS SANs, and the host part of email addresses. Defaults to true. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + enforceHostnames?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.12. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + extKeyUsageOids?: Array; + /** + * If set, certificates issued/signed against this role will have Vault leases attached to them. Defaults to "false". Certificates can be added to the CRL by "vault revoke " when certificates are associated with leases. It can also be done using the "pki/revoke" endpoint. However, when lease generation is disabled, invoking "pki/revoke" would be the only way to add the certificates to the CRL. When large number of certificates are generated with long lifetimes, it is recommended that lease generation be disabled, as large amount of leases adversely affect the startup time of Vault. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + generateLease?: boolean; + /** + * Reference to the issuer used to sign requests serviced by this role. + * @type {string} + * @memberof PkiPatchRoleResponse + */ + issuerRef?: string; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiPatchRoleResponse + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec", "ed25519" and "any" are the only valid values. + * @type {string} + * @memberof PkiPatchRoleResponse + */ + keyType?: string; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.3. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + locality?: Array; + /** + * The maximum allowed lease duration. If not set, defaults to the system maximum lease TTL. + * @type {number} + * @memberof PkiPatchRoleResponse + */ + maxTtl?: number; + /** + * If set, certificates issued/signed against this role will not be stored in the storage backend. This can improve performance when issuing large numbers of certificates. However, certificates issued in this way cannot be enumerated or revoked, so this option is recommended only for certificates that are non-sensitive, or extremely short-lived. This option implies a value of "false" for "generate_lease". + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + noStore?: boolean; + /** + * If set, if a client attempts to issue or sign a certificate with attached cert_metadata to store, the issuance / signing instead fails. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + noStoreMetadata?: boolean; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ. + * @type {string} + * @memberof PkiPatchRoleResponse + */ + notAfter?: string; + /** + * The duration in seconds before now which the certificate needs to be backdated by. + * @type {number} + * @memberof PkiPatchRoleResponse + */ + notBeforeDuration?: number; + /** + * If set, O (Organization) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + organization?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + ou?: Array; + /** + * A comma-separated string or list of policy OIDs, or a JSON list of qualified policy information, which must include an oid, and may include a notice and/or cps url, using the form [{"oid"="1.3.6.1.4.1.7.8","notice"="I am a user Notice"}, {"oid"="1.3.6.1.4.1.44947.1.2.4 ","cps"="https://example.com"}]. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + policyIdentifiers?: Array; + /** + * If set, Postal Code will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + postalCode?: Array; + /** + * If set, Province will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + province?: Array; + /** + * If set to false, makes the 'common_name' field optional while generating a certificate. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + requireCn?: boolean; + /** + * Source for the certificate subject serial number. If "json-csr" (default), the value from the JSON serial_number field is used, falling back to the value in the CSR if empty. If "json", the value from the serial_number JSON field is used, ignoring the value in the CSR. + * @type {string} + * @memberof PkiPatchRoleResponse + */ + serialNumberSource?: string; + /** + * If set, certificates are flagged for server auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + serverFlag?: boolean; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiPatchRoleResponse + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiPatchRoleResponse + */ + streetAddress?: Array; + /** + * The lease duration (validity period of the certificate) if no specific lease duration is requested. The lease duration controls the expiration of certificates issued by this backend. Defaults to the system default value or the value of max_ttl, whichever is shorter. + * @type {number} + * @memberof PkiPatchRoleResponse + */ + ttl?: number; + /** + * If set, when used with a signing profile, the common name in the CSR will be used. This does *not* include any requested Subject Alternative Names; use use_csr_sans for that. Defaults to true. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + useCsrCommonName?: boolean; + /** + * If set, when used with a signing profile, the SANs in the CSR will be used. This does *not* include the Common Name (cn); use use_csr_common_name for that. Defaults to true. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + useCsrSans?: boolean; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiPatchRoleResponse + */ + usePss?: boolean; +} + +/** + * Check if a given object implements the PkiPatchRoleResponse interface. + */ +export function instanceOfPkiPatchRoleResponse(value: object): value is PkiPatchRoleResponse { + return true; +} + +export function PkiPatchRoleResponseFromJSON(json: any): PkiPatchRoleResponse { + return PkiPatchRoleResponseFromJSONTyped(json, false); +} + +export function PkiPatchRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiPatchRoleResponse { + if (json == null) { + return json; + } + return { + allowAnyName: json['allow_any_name'] == null ? undefined : json['allow_any_name'], + allowBareDomains: json['allow_bare_domains'] == null ? undefined : json['allow_bare_domains'], + allowGlobDomains: json['allow_glob_domains'] == null ? undefined : json['allow_glob_domains'], + allowIpSans: json['allow_ip_sans'] == null ? undefined : json['allow_ip_sans'], + allowLocalhost: json['allow_localhost'] == null ? undefined : json['allow_localhost'], + allowSubdomains: json['allow_subdomains'] == null ? undefined : json['allow_subdomains'], + allowTokenDisplayname: + json['allow_token_displayname'] == null ? undefined : json['allow_token_displayname'], + allowWildcardCertificates: + json['allow_wildcard_certificates'] == null ? undefined : json['allow_wildcard_certificates'], + allowedDomains: json['allowed_domains'] == null ? undefined : json['allowed_domains'], + allowedDomainsTemplate: + json['allowed_domains_template'] == null ? undefined : json['allowed_domains_template'], + allowedOtherSans: json['allowed_other_sans'] == null ? undefined : json['allowed_other_sans'], + allowedSerialNumbers: json['allowed_serial_numbers'] == null ? undefined : json['allowed_serial_numbers'], + allowedUriSans: json['allowed_uri_sans'] == null ? undefined : json['allowed_uri_sans'], + allowedUriSansTemplate: + json['allowed_uri_sans_template'] == null ? undefined : json['allowed_uri_sans_template'], + allowedUserIds: json['allowed_user_ids'] == null ? undefined : json['allowed_user_ids'], + basicConstraintsValidForNonCa: + json['basic_constraints_valid_for_non_ca'] == null + ? undefined + : json['basic_constraints_valid_for_non_ca'], + clientFlag: json['client_flag'] == null ? undefined : json['client_flag'], + cnValidations: json['cn_validations'] == null ? undefined : json['cn_validations'], + codeSigningFlag: json['code_signing_flag'] == null ? undefined : json['code_signing_flag'], + country: json['country'] == null ? undefined : json['country'], + emailProtectionFlag: json['email_protection_flag'] == null ? undefined : json['email_protection_flag'], + enforceHostnames: json['enforce_hostnames'] == null ? undefined : json['enforce_hostnames'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + generateLease: json['generate_lease'] == null ? undefined : json['generate_lease'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + noStore: json['no_store'] == null ? undefined : json['no_store'], + noStoreMetadata: json['no_store_metadata'] == null ? undefined : json['no_store_metadata'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + ou: json['ou'] == null ? undefined : json['ou'], + policyIdentifiers: json['policy_identifiers'] == null ? undefined : json['policy_identifiers'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + province: json['province'] == null ? undefined : json['province'], + requireCn: json['require_cn'] == null ? undefined : json['require_cn'], + serialNumberSource: json['serial_number_source'] == null ? undefined : json['serial_number_source'], + serverFlag: json['server_flag'] == null ? undefined : json['server_flag'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + useCsrCommonName: json['use_csr_common_name'] == null ? undefined : json['use_csr_common_name'], + useCsrSans: json['use_csr_sans'] == null ? undefined : json['use_csr_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiPatchRoleResponseToJSON(json: any): PkiPatchRoleResponse { + return PkiPatchRoleResponseToJSONTyped(json, false); +} + +export function PkiPatchRoleResponseToJSONTyped( + value?: PkiPatchRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_any_name: value['allowAnyName'], + allow_bare_domains: value['allowBareDomains'], + allow_glob_domains: value['allowGlobDomains'], + allow_ip_sans: value['allowIpSans'], + allow_localhost: value['allowLocalhost'], + allow_subdomains: value['allowSubdomains'], + allow_token_displayname: value['allowTokenDisplayname'], + allow_wildcard_certificates: value['allowWildcardCertificates'], + allowed_domains: value['allowedDomains'], + allowed_domains_template: value['allowedDomainsTemplate'], + allowed_other_sans: value['allowedOtherSans'], + allowed_serial_numbers: value['allowedSerialNumbers'], + allowed_uri_sans: value['allowedUriSans'], + allowed_uri_sans_template: value['allowedUriSansTemplate'], + allowed_user_ids: value['allowedUserIds'], + basic_constraints_valid_for_non_ca: value['basicConstraintsValidForNonCa'], + client_flag: value['clientFlag'], + cn_validations: value['cnValidations'], + code_signing_flag: value['codeSigningFlag'], + country: value['country'], + email_protection_flag: value['emailProtectionFlag'], + enforce_hostnames: value['enforceHostnames'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + generate_lease: value['generateLease'], + issuer_ref: value['issuerRef'], + key_bits: value['keyBits'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + max_ttl: value['maxTtl'], + no_store: value['noStore'], + no_store_metadata: value['noStoreMetadata'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + ou: value['ou'], + policy_identifiers: value['policyIdentifiers'], + postal_code: value['postalCode'], + province: value['province'], + require_cn: value['requireCn'], + serial_number_source: value['serialNumberSource'], + server_flag: value['serverFlag'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + use_csr_common_name: value['useCsrCommonName'], + use_csr_sans: value['useCsrSans'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiReadAutoTidyConfigurationResponse.ts b/ui/api-client/src/models/PkiReadAutoTidyConfigurationResponse.ts new file mode 100644 index 0000000000..ae892b1c00 --- /dev/null +++ b/ui/api-client/src/models/PkiReadAutoTidyConfigurationResponse.ts @@ -0,0 +1,247 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadAutoTidyConfigurationResponse + */ +export interface PkiReadAutoTidyConfigurationResponse { + /** + * Safety buffer after creation after which accounts lacking orders are revoked + * @type {number} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + acmeAccountSafetyBuffer?: number; + /** + * Specifies whether automatic tidy is enabled or not + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + enabled?: boolean; + /** + * Specifies the duration between automatic tidy operation + * @type {number} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + intervalDuration?: number; + /** + * Issuer safety buffer + * @type {number} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + issuerSafetyBuffer?: number; + /** + * + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + maintainStoredCertificateCounts?: boolean; + /** + * The maximum amount of time in seconds auto-tidy will be delayed after startup + * @type {number} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + maxStartupBackoffDuration?: number; + /** + * The minimum amount of time in seconds auto-tidy will be delayed after startup + * @type {number} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + minStartupBackoffDuration?: number; + /** + * Duration to pause between tidying certificates + * @type {string} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + pauseDuration?: string; + /** + * + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + publishStoredCertificateCountMetrics?: boolean; + /** + * + * @type {number} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + revocationQueueSafetyBuffer?: number; + /** + * Safety buffer time duration + * @type {number} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + safetyBuffer?: number; + /** + * Tidy Unused Acme Accounts, and Orders + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyAcme?: boolean; + /** + * Tidy cert metadata + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyCertMetadata?: boolean; + /** + * Specifies whether to tidy up the certificate store + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyCertStore?: boolean; + /** + * Tidy CMPv2 nonce store + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyCmpv2NonceStore?: boolean; + /** + * Tidy the cross-cluster revoked certificate store + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyCrossClusterRevokedCerts?: boolean; + /** + * Specifies whether tidy expired issuers + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyExpiredIssuers?: boolean; + /** + * + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyMoveLegacyCaBundle?: boolean; + /** + * + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyRevocationQueue?: boolean; + /** + * Specifies whether to associate revoked certificates with their corresponding issuers + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyRevokedCertIssuerAssociations?: boolean; + /** + * Specifies whether to remove all invalid and expired certificates from storage + * @type {boolean} + * @memberof PkiReadAutoTidyConfigurationResponse + */ + tidyRevokedCerts?: boolean; +} + +/** + * Check if a given object implements the PkiReadAutoTidyConfigurationResponse interface. + */ +export function instanceOfPkiReadAutoTidyConfigurationResponse( + value: object +): value is PkiReadAutoTidyConfigurationResponse { + return true; +} + +export function PkiReadAutoTidyConfigurationResponseFromJSON( + json: any +): PkiReadAutoTidyConfigurationResponse { + return PkiReadAutoTidyConfigurationResponseFromJSONTyped(json, false); +} + +export function PkiReadAutoTidyConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadAutoTidyConfigurationResponse { + if (json == null) { + return json; + } + return { + acmeAccountSafetyBuffer: + json['acme_account_safety_buffer'] == null ? undefined : json['acme_account_safety_buffer'], + enabled: json['enabled'] == null ? undefined : json['enabled'], + intervalDuration: json['interval_duration'] == null ? undefined : json['interval_duration'], + issuerSafetyBuffer: json['issuer_safety_buffer'] == null ? undefined : json['issuer_safety_buffer'], + maintainStoredCertificateCounts: + json['maintain_stored_certificate_counts'] == null + ? undefined + : json['maintain_stored_certificate_counts'], + maxStartupBackoffDuration: + json['max_startup_backoff_duration'] == null ? undefined : json['max_startup_backoff_duration'], + minStartupBackoffDuration: + json['min_startup_backoff_duration'] == null ? undefined : json['min_startup_backoff_duration'], + pauseDuration: json['pause_duration'] == null ? undefined : json['pause_duration'], + publishStoredCertificateCountMetrics: + json['publish_stored_certificate_count_metrics'] == null + ? undefined + : json['publish_stored_certificate_count_metrics'], + revocationQueueSafetyBuffer: + json['revocation_queue_safety_buffer'] == null ? undefined : json['revocation_queue_safety_buffer'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + tidyAcme: json['tidy_acme'] == null ? undefined : json['tidy_acme'], + tidyCertMetadata: json['tidy_cert_metadata'] == null ? undefined : json['tidy_cert_metadata'], + tidyCertStore: json['tidy_cert_store'] == null ? undefined : json['tidy_cert_store'], + tidyCmpv2NonceStore: json['tidy_cmpv2_nonce_store'] == null ? undefined : json['tidy_cmpv2_nonce_store'], + tidyCrossClusterRevokedCerts: + json['tidy_cross_cluster_revoked_certs'] == null ? undefined : json['tidy_cross_cluster_revoked_certs'], + tidyExpiredIssuers: json['tidy_expired_issuers'] == null ? undefined : json['tidy_expired_issuers'], + tidyMoveLegacyCaBundle: + json['tidy_move_legacy_ca_bundle'] == null ? undefined : json['tidy_move_legacy_ca_bundle'], + tidyRevocationQueue: json['tidy_revocation_queue'] == null ? undefined : json['tidy_revocation_queue'], + tidyRevokedCertIssuerAssociations: + json['tidy_revoked_cert_issuer_associations'] == null + ? undefined + : json['tidy_revoked_cert_issuer_associations'], + tidyRevokedCerts: json['tidy_revoked_certs'] == null ? undefined : json['tidy_revoked_certs'], + }; +} + +export function PkiReadAutoTidyConfigurationResponseToJSON(json: any): PkiReadAutoTidyConfigurationResponse { + return PkiReadAutoTidyConfigurationResponseToJSONTyped(json, false); +} + +export function PkiReadAutoTidyConfigurationResponseToJSONTyped( + value?: PkiReadAutoTidyConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_account_safety_buffer: value['acmeAccountSafetyBuffer'], + enabled: value['enabled'], + interval_duration: value['intervalDuration'], + issuer_safety_buffer: value['issuerSafetyBuffer'], + maintain_stored_certificate_counts: value['maintainStoredCertificateCounts'], + max_startup_backoff_duration: value['maxStartupBackoffDuration'], + min_startup_backoff_duration: value['minStartupBackoffDuration'], + pause_duration: value['pauseDuration'], + publish_stored_certificate_count_metrics: value['publishStoredCertificateCountMetrics'], + revocation_queue_safety_buffer: value['revocationQueueSafetyBuffer'], + safety_buffer: value['safetyBuffer'], + tidy_acme: value['tidyAcme'], + tidy_cert_metadata: value['tidyCertMetadata'], + tidy_cert_store: value['tidyCertStore'], + tidy_cmpv2_nonce_store: value['tidyCmpv2NonceStore'], + tidy_cross_cluster_revoked_certs: value['tidyCrossClusterRevokedCerts'], + tidy_expired_issuers: value['tidyExpiredIssuers'], + tidy_move_legacy_ca_bundle: value['tidyMoveLegacyCaBundle'], + tidy_revocation_queue: value['tidyRevocationQueue'], + tidy_revoked_cert_issuer_associations: value['tidyRevokedCertIssuerAssociations'], + tidy_revoked_certs: value['tidyRevokedCerts'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCaChainPemResponse.ts b/ui/api-client/src/models/PkiReadCaChainPemResponse.ts new file mode 100644 index 0000000000..7ec555ac2c --- /dev/null +++ b/ui/api-client/src/models/PkiReadCaChainPemResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCaChainPemResponse + */ +export interface PkiReadCaChainPemResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCaChainPemResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCaChainPemResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCaChainPemResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCaChainPemResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCaChainPemResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCaChainPemResponse interface. + */ +export function instanceOfPkiReadCaChainPemResponse(value: object): value is PkiReadCaChainPemResponse { + return true; +} + +export function PkiReadCaChainPemResponseFromJSON(json: any): PkiReadCaChainPemResponse { + return PkiReadCaChainPemResponseFromJSONTyped(json, false); +} + +export function PkiReadCaChainPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCaChainPemResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCaChainPemResponseToJSON(json: any): PkiReadCaChainPemResponse { + return PkiReadCaChainPemResponseToJSONTyped(json, false); +} + +export function PkiReadCaChainPemResponseToJSONTyped( + value?: PkiReadCaChainPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCaDerResponse.ts b/ui/api-client/src/models/PkiReadCaDerResponse.ts new file mode 100644 index 0000000000..358ddf5914 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCaDerResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCaDerResponse + */ +export interface PkiReadCaDerResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCaDerResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCaDerResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCaDerResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCaDerResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCaDerResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCaDerResponse interface. + */ +export function instanceOfPkiReadCaDerResponse(value: object): value is PkiReadCaDerResponse { + return true; +} + +export function PkiReadCaDerResponseFromJSON(json: any): PkiReadCaDerResponse { + return PkiReadCaDerResponseFromJSONTyped(json, false); +} + +export function PkiReadCaDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCaDerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCaDerResponseToJSON(json: any): PkiReadCaDerResponse { + return PkiReadCaDerResponseToJSONTyped(json, false); +} + +export function PkiReadCaDerResponseToJSONTyped( + value?: PkiReadCaDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCaPemResponse.ts b/ui/api-client/src/models/PkiReadCaPemResponse.ts new file mode 100644 index 0000000000..9a3b57b738 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCaPemResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCaPemResponse + */ +export interface PkiReadCaPemResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCaPemResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCaPemResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCaPemResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCaPemResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCaPemResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCaPemResponse interface. + */ +export function instanceOfPkiReadCaPemResponse(value: object): value is PkiReadCaPemResponse { + return true; +} + +export function PkiReadCaPemResponseFromJSON(json: any): PkiReadCaPemResponse { + return PkiReadCaPemResponseFromJSONTyped(json, false); +} + +export function PkiReadCaPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCaPemResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCaPemResponseToJSON(json: any): PkiReadCaPemResponse { + return PkiReadCaPemResponseToJSONTyped(json, false); +} + +export function PkiReadCaPemResponseToJSONTyped( + value?: PkiReadCaPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertCaChainResponse.ts b/ui/api-client/src/models/PkiReadCertCaChainResponse.ts new file mode 100644 index 0000000000..b91d64b08a --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertCaChainResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertCaChainResponse + */ +export interface PkiReadCertCaChainResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertCaChainResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertCaChainResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertCaChainResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertCaChainResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertCaChainResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertCaChainResponse interface. + */ +export function instanceOfPkiReadCertCaChainResponse(value: object): value is PkiReadCertCaChainResponse { + return true; +} + +export function PkiReadCertCaChainResponseFromJSON(json: any): PkiReadCertCaChainResponse { + return PkiReadCertCaChainResponseFromJSONTyped(json, false); +} + +export function PkiReadCertCaChainResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertCaChainResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertCaChainResponseToJSON(json: any): PkiReadCertCaChainResponse { + return PkiReadCertCaChainResponseToJSONTyped(json, false); +} + +export function PkiReadCertCaChainResponseToJSONTyped( + value?: PkiReadCertCaChainResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertCrlResponse.ts b/ui/api-client/src/models/PkiReadCertCrlResponse.ts new file mode 100644 index 0000000000..f203fab292 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertCrlResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertCrlResponse + */ +export interface PkiReadCertCrlResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertCrlResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertCrlResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertCrlResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertCrlResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertCrlResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertCrlResponse interface. + */ +export function instanceOfPkiReadCertCrlResponse(value: object): value is PkiReadCertCrlResponse { + return true; +} + +export function PkiReadCertCrlResponseFromJSON(json: any): PkiReadCertCrlResponse { + return PkiReadCertCrlResponseFromJSONTyped(json, false); +} + +export function PkiReadCertCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertCrlResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertCrlResponseToJSON(json: any): PkiReadCertCrlResponse { + return PkiReadCertCrlResponseToJSONTyped(json, false); +} + +export function PkiReadCertCrlResponseToJSONTyped( + value?: PkiReadCertCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertDeltaCrlResponse.ts b/ui/api-client/src/models/PkiReadCertDeltaCrlResponse.ts new file mode 100644 index 0000000000..6d264cdc8f --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertDeltaCrlResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertDeltaCrlResponse + */ +export interface PkiReadCertDeltaCrlResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertDeltaCrlResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertDeltaCrlResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertDeltaCrlResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertDeltaCrlResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertDeltaCrlResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertDeltaCrlResponse interface. + */ +export function instanceOfPkiReadCertDeltaCrlResponse(value: object): value is PkiReadCertDeltaCrlResponse { + return true; +} + +export function PkiReadCertDeltaCrlResponseFromJSON(json: any): PkiReadCertDeltaCrlResponse { + return PkiReadCertDeltaCrlResponseFromJSONTyped(json, false); +} + +export function PkiReadCertDeltaCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertDeltaCrlResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertDeltaCrlResponseToJSON(json: any): PkiReadCertDeltaCrlResponse { + return PkiReadCertDeltaCrlResponseToJSONTyped(json, false); +} + +export function PkiReadCertDeltaCrlResponseToJSONTyped( + value?: PkiReadCertDeltaCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertMetadataResponse.ts b/ui/api-client/src/models/PkiReadCertMetadataResponse.ts new file mode 100644 index 0000000000..6288938402 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertMetadataResponse.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertMetadataResponse + */ +export interface PkiReadCertMetadataResponse { + /** + * User provided certificate metadata, base64 encoded + * @type {string} + * @memberof PkiReadCertMetadataResponse + */ + certMetadata?: string; + /** + * Expiration time of the certificate, RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertMetadataResponse + */ + expiration?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertMetadataResponse + */ + issuerId?: string; + /** + * Role that issued the certificate + * @type {string} + * @memberof PkiReadCertMetadataResponse + */ + role?: string; + /** + * Serial number associated with the certificate metadata in colon-separated format + * @type {string} + * @memberof PkiReadCertMetadataResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiReadCertMetadataResponse interface. + */ +export function instanceOfPkiReadCertMetadataResponse(value: object): value is PkiReadCertMetadataResponse { + return true; +} + +export function PkiReadCertMetadataResponseFromJSON(json: any): PkiReadCertMetadataResponse { + return PkiReadCertMetadataResponseFromJSONTyped(json, false); +} + +export function PkiReadCertMetadataResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertMetadataResponse { + if (json == null) { + return json; + } + return { + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + role: json['role'] == null ? undefined : json['role'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiReadCertMetadataResponseToJSON(json: any): PkiReadCertMetadataResponse { + return PkiReadCertMetadataResponseToJSONTyped(json, false); +} + +export function PkiReadCertMetadataResponseToJSONTyped( + value?: PkiReadCertMetadataResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cert_metadata: value['certMetadata'], + expiration: value['expiration'], + issuer_id: value['issuerId'], + role: value['role'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertRawDerResponse.ts b/ui/api-client/src/models/PkiReadCertRawDerResponse.ts new file mode 100644 index 0000000000..2a4e03b4ec --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertRawDerResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertRawDerResponse + */ +export interface PkiReadCertRawDerResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertRawDerResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertRawDerResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertRawDerResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertRawDerResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertRawDerResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertRawDerResponse interface. + */ +export function instanceOfPkiReadCertRawDerResponse(value: object): value is PkiReadCertRawDerResponse { + return true; +} + +export function PkiReadCertRawDerResponseFromJSON(json: any): PkiReadCertRawDerResponse { + return PkiReadCertRawDerResponseFromJSONTyped(json, false); +} + +export function PkiReadCertRawDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertRawDerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertRawDerResponseToJSON(json: any): PkiReadCertRawDerResponse { + return PkiReadCertRawDerResponseToJSONTyped(json, false); +} + +export function PkiReadCertRawDerResponseToJSONTyped( + value?: PkiReadCertRawDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertRawPemResponse.ts b/ui/api-client/src/models/PkiReadCertRawPemResponse.ts new file mode 100644 index 0000000000..eccf468af3 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertRawPemResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertRawPemResponse + */ +export interface PkiReadCertRawPemResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertRawPemResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertRawPemResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertRawPemResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertRawPemResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertRawPemResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertRawPemResponse interface. + */ +export function instanceOfPkiReadCertRawPemResponse(value: object): value is PkiReadCertRawPemResponse { + return true; +} + +export function PkiReadCertRawPemResponseFromJSON(json: any): PkiReadCertRawPemResponse { + return PkiReadCertRawPemResponseFromJSONTyped(json, false); +} + +export function PkiReadCertRawPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertRawPemResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertRawPemResponseToJSON(json: any): PkiReadCertRawPemResponse { + return PkiReadCertRawPemResponseToJSONTyped(json, false); +} + +export function PkiReadCertRawPemResponseToJSONTyped( + value?: PkiReadCertRawPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertResponse.ts b/ui/api-client/src/models/PkiReadCertResponse.ts new file mode 100644 index 0000000000..2a7c1922e9 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertResponse + */ +export interface PkiReadCertResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertResponse interface. + */ +export function instanceOfPkiReadCertResponse(value: object): value is PkiReadCertResponse { + return true; +} + +export function PkiReadCertResponseFromJSON(json: any): PkiReadCertResponse { + return PkiReadCertResponseFromJSONTyped(json, false); +} + +export function PkiReadCertResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertResponseToJSON(json: any): PkiReadCertResponse { + return PkiReadCertResponseToJSONTyped(json, false); +} + +export function PkiReadCertResponseToJSONTyped( + value?: PkiReadCertResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertUnifiedCrlResponse.ts b/ui/api-client/src/models/PkiReadCertUnifiedCrlResponse.ts new file mode 100644 index 0000000000..3f00416b0f --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertUnifiedCrlResponse.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertUnifiedCrlResponse + */ +export interface PkiReadCertUnifiedCrlResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertUnifiedCrlResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertUnifiedCrlResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertUnifiedCrlResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertUnifiedCrlResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertUnifiedCrlResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertUnifiedCrlResponse interface. + */ +export function instanceOfPkiReadCertUnifiedCrlResponse( + value: object +): value is PkiReadCertUnifiedCrlResponse { + return true; +} + +export function PkiReadCertUnifiedCrlResponseFromJSON(json: any): PkiReadCertUnifiedCrlResponse { + return PkiReadCertUnifiedCrlResponseFromJSONTyped(json, false); +} + +export function PkiReadCertUnifiedCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertUnifiedCrlResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertUnifiedCrlResponseToJSON(json: any): PkiReadCertUnifiedCrlResponse { + return PkiReadCertUnifiedCrlResponseToJSONTyped(json, false); +} + +export function PkiReadCertUnifiedCrlResponseToJSONTyped( + value?: PkiReadCertUnifiedCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCertUnifiedDeltaCrlResponse.ts b/ui/api-client/src/models/PkiReadCertUnifiedDeltaCrlResponse.ts new file mode 100644 index 0000000000..116fa68d4e --- /dev/null +++ b/ui/api-client/src/models/PkiReadCertUnifiedDeltaCrlResponse.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCertUnifiedDeltaCrlResponse + */ +export interface PkiReadCertUnifiedDeltaCrlResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCertUnifiedDeltaCrlResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCertUnifiedDeltaCrlResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCertUnifiedDeltaCrlResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCertUnifiedDeltaCrlResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCertUnifiedDeltaCrlResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCertUnifiedDeltaCrlResponse interface. + */ +export function instanceOfPkiReadCertUnifiedDeltaCrlResponse( + value: object +): value is PkiReadCertUnifiedDeltaCrlResponse { + return true; +} + +export function PkiReadCertUnifiedDeltaCrlResponseFromJSON(json: any): PkiReadCertUnifiedDeltaCrlResponse { + return PkiReadCertUnifiedDeltaCrlResponseFromJSONTyped(json, false); +} + +export function PkiReadCertUnifiedDeltaCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCertUnifiedDeltaCrlResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCertUnifiedDeltaCrlResponseToJSON(json: any): PkiReadCertUnifiedDeltaCrlResponse { + return PkiReadCertUnifiedDeltaCrlResponseToJSONTyped(json, false); +} + +export function PkiReadCertUnifiedDeltaCrlResponseToJSONTyped( + value?: PkiReadCertUnifiedDeltaCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadClusterConfigurationResponse.ts b/ui/api-client/src/models/PkiReadClusterConfigurationResponse.ts new file mode 100644 index 0000000000..5367a912e7 --- /dev/null +++ b/ui/api-client/src/models/PkiReadClusterConfigurationResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadClusterConfigurationResponse + */ +export interface PkiReadClusterConfigurationResponse { + /** + * Optional URI to this mount's AIA distribution point; may refer to an external non-Vault responder. This is for resolving AIA URLs and providing the {{cluster_aia_path}} template parameter and will not be used for other purposes. As such, unlike path above, this could safely be an insecure transit mechanism (like HTTP without TLS). For example: http://cdn.example.com/pr1/pki + * @type {string} + * @memberof PkiReadClusterConfigurationResponse + */ + aiaPath?: string; + /** + * Canonical URI to this mount on this performance replication cluster's external address. This is for resolving AIA URLs and providing the {{cluster_path}} template parameter but might be used for other purposes in the future. This should only point back to this particular PR replica and should not ever point to another PR cluster. It may point to any node in the PR replica, including standby nodes, and need not always point to the active node. For example: https://pr1.vault.example.com:8200/v1/pki + * @type {string} + * @memberof PkiReadClusterConfigurationResponse + */ + path?: string; +} + +/** + * Check if a given object implements the PkiReadClusterConfigurationResponse interface. + */ +export function instanceOfPkiReadClusterConfigurationResponse( + value: object +): value is PkiReadClusterConfigurationResponse { + return true; +} + +export function PkiReadClusterConfigurationResponseFromJSON(json: any): PkiReadClusterConfigurationResponse { + return PkiReadClusterConfigurationResponseFromJSONTyped(json, false); +} + +export function PkiReadClusterConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadClusterConfigurationResponse { + if (json == null) { + return json; + } + return { + aiaPath: json['aia_path'] == null ? undefined : json['aia_path'], + path: json['path'] == null ? undefined : json['path'], + }; +} + +export function PkiReadClusterConfigurationResponseToJSON(json: any): PkiReadClusterConfigurationResponse { + return PkiReadClusterConfigurationResponseToJSONTyped(json, false); +} + +export function PkiReadClusterConfigurationResponseToJSONTyped( + value?: PkiReadClusterConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + aia_path: value['aiaPath'], + path: value['path'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCrlConfigurationResponse.ts b/ui/api-client/src/models/PkiReadCrlConfigurationResponse.ts new file mode 100644 index 0000000000..352888a7a7 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCrlConfigurationResponse.ts @@ -0,0 +1,161 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCrlConfigurationResponse + */ +export interface PkiReadCrlConfigurationResponse { + /** + * If set to true, enables automatic rebuilding of the CRL + * @type {boolean} + * @memberof PkiReadCrlConfigurationResponse + */ + autoRebuild?: boolean; + /** + * The time before the CRL expires to automatically rebuild it, when enabled. Must be shorter than the CRL expiry. Defaults to 12h. + * @type {string} + * @memberof PkiReadCrlConfigurationResponse + */ + autoRebuildGracePeriod?: string; + /** + * Whether to enable a global, cross-cluster revocation queue. Must be used with auto_rebuild=true. + * @type {boolean} + * @memberof PkiReadCrlConfigurationResponse + */ + crossClusterRevocation?: boolean; + /** + * The time between delta CRL rebuilds if a new revocation has occurred. Must be shorter than the CRL expiry. Defaults to 15m. + * @type {string} + * @memberof PkiReadCrlConfigurationResponse + */ + deltaRebuildInterval?: string; + /** + * If set to true, disables generating the CRL entirely. + * @type {boolean} + * @memberof PkiReadCrlConfigurationResponse + */ + disable?: boolean; + /** + * Whether to enable delta CRLs between authoritative CRL rebuilds + * @type {boolean} + * @memberof PkiReadCrlConfigurationResponse + */ + enableDelta?: boolean; + /** + * The amount of time the generated CRL should be valid; defaults to 72 hours + * @type {string} + * @memberof PkiReadCrlConfigurationResponse + */ + expiry?: string; + /** + * The maximum number of entries the CRL can contain. This is meant as a guard against accidental runaway revocations overloading Vault storage. If this limit is exceeded writing the CRL will fail. If set to -1 this limit is disabled. + * @type {number} + * @memberof PkiReadCrlConfigurationResponse + */ + maxCrlEntries?: number; + /** + * If set to true, ocsp unauthorized responses will be returned. + * @type {boolean} + * @memberof PkiReadCrlConfigurationResponse + */ + ocspDisable?: boolean; + /** + * The amount of time an OCSP response will be valid (controls the NextUpdate field); defaults to 12 hours + * @type {string} + * @memberof PkiReadCrlConfigurationResponse + */ + ocspExpiry?: string; + /** + * If set to true enables global replication of revocation entries, also enabling unified versions of OCSP and CRLs if their respective features are enabled. disable for CRLs and ocsp_disable for OCSP. + * @type {boolean} + * @memberof PkiReadCrlConfigurationResponse + */ + unifiedCrl?: boolean; + /** + * If set to true, existing CRL and OCSP paths will return the unified CRL instead of a response based on cluster-local data + * @type {boolean} + * @memberof PkiReadCrlConfigurationResponse + */ + unifiedCrlOnExistingPaths?: boolean; +} + +/** + * Check if a given object implements the PkiReadCrlConfigurationResponse interface. + */ +export function instanceOfPkiReadCrlConfigurationResponse( + value: object +): value is PkiReadCrlConfigurationResponse { + return true; +} + +export function PkiReadCrlConfigurationResponseFromJSON(json: any): PkiReadCrlConfigurationResponse { + return PkiReadCrlConfigurationResponseFromJSONTyped(json, false); +} + +export function PkiReadCrlConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCrlConfigurationResponse { + if (json == null) { + return json; + } + return { + autoRebuild: json['auto_rebuild'] == null ? undefined : json['auto_rebuild'], + autoRebuildGracePeriod: + json['auto_rebuild_grace_period'] == null ? undefined : json['auto_rebuild_grace_period'], + crossClusterRevocation: + json['cross_cluster_revocation'] == null ? undefined : json['cross_cluster_revocation'], + deltaRebuildInterval: json['delta_rebuild_interval'] == null ? undefined : json['delta_rebuild_interval'], + disable: json['disable'] == null ? undefined : json['disable'], + enableDelta: json['enable_delta'] == null ? undefined : json['enable_delta'], + expiry: json['expiry'] == null ? undefined : json['expiry'], + maxCrlEntries: json['max_crl_entries'] == null ? undefined : json['max_crl_entries'], + ocspDisable: json['ocsp_disable'] == null ? undefined : json['ocsp_disable'], + ocspExpiry: json['ocsp_expiry'] == null ? undefined : json['ocsp_expiry'], + unifiedCrl: json['unified_crl'] == null ? undefined : json['unified_crl'], + unifiedCrlOnExistingPaths: + json['unified_crl_on_existing_paths'] == null ? undefined : json['unified_crl_on_existing_paths'], + }; +} + +export function PkiReadCrlConfigurationResponseToJSON(json: any): PkiReadCrlConfigurationResponse { + return PkiReadCrlConfigurationResponseToJSONTyped(json, false); +} + +export function PkiReadCrlConfigurationResponseToJSONTyped( + value?: PkiReadCrlConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + auto_rebuild: value['autoRebuild'], + auto_rebuild_grace_period: value['autoRebuildGracePeriod'], + cross_cluster_revocation: value['crossClusterRevocation'], + delta_rebuild_interval: value['deltaRebuildInterval'], + disable: value['disable'], + enable_delta: value['enableDelta'], + expiry: value['expiry'], + max_crl_entries: value['maxCrlEntries'], + ocsp_disable: value['ocspDisable'], + ocsp_expiry: value['ocspExpiry'], + unified_crl: value['unifiedCrl'], + unified_crl_on_existing_paths: value['unifiedCrlOnExistingPaths'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCrlDeltaPemResponse.ts b/ui/api-client/src/models/PkiReadCrlDeltaPemResponse.ts new file mode 100644 index 0000000000..bb556d9a6d --- /dev/null +++ b/ui/api-client/src/models/PkiReadCrlDeltaPemResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCrlDeltaPemResponse + */ +export interface PkiReadCrlDeltaPemResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCrlDeltaPemResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCrlDeltaPemResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCrlDeltaPemResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCrlDeltaPemResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCrlDeltaPemResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCrlDeltaPemResponse interface. + */ +export function instanceOfPkiReadCrlDeltaPemResponse(value: object): value is PkiReadCrlDeltaPemResponse { + return true; +} + +export function PkiReadCrlDeltaPemResponseFromJSON(json: any): PkiReadCrlDeltaPemResponse { + return PkiReadCrlDeltaPemResponseFromJSONTyped(json, false); +} + +export function PkiReadCrlDeltaPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCrlDeltaPemResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCrlDeltaPemResponseToJSON(json: any): PkiReadCrlDeltaPemResponse { + return PkiReadCrlDeltaPemResponseToJSONTyped(json, false); +} + +export function PkiReadCrlDeltaPemResponseToJSONTyped( + value?: PkiReadCrlDeltaPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCrlDeltaResponse.ts b/ui/api-client/src/models/PkiReadCrlDeltaResponse.ts new file mode 100644 index 0000000000..7ef3537ed6 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCrlDeltaResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCrlDeltaResponse + */ +export interface PkiReadCrlDeltaResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCrlDeltaResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCrlDeltaResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCrlDeltaResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCrlDeltaResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCrlDeltaResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCrlDeltaResponse interface. + */ +export function instanceOfPkiReadCrlDeltaResponse(value: object): value is PkiReadCrlDeltaResponse { + return true; +} + +export function PkiReadCrlDeltaResponseFromJSON(json: any): PkiReadCrlDeltaResponse { + return PkiReadCrlDeltaResponseFromJSONTyped(json, false); +} + +export function PkiReadCrlDeltaResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCrlDeltaResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCrlDeltaResponseToJSON(json: any): PkiReadCrlDeltaResponse { + return PkiReadCrlDeltaResponseToJSONTyped(json, false); +} + +export function PkiReadCrlDeltaResponseToJSONTyped( + value?: PkiReadCrlDeltaResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCrlDerResponse.ts b/ui/api-client/src/models/PkiReadCrlDerResponse.ts new file mode 100644 index 0000000000..2bb0d77973 --- /dev/null +++ b/ui/api-client/src/models/PkiReadCrlDerResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCrlDerResponse + */ +export interface PkiReadCrlDerResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCrlDerResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCrlDerResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCrlDerResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCrlDerResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCrlDerResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCrlDerResponse interface. + */ +export function instanceOfPkiReadCrlDerResponse(value: object): value is PkiReadCrlDerResponse { + return true; +} + +export function PkiReadCrlDerResponseFromJSON(json: any): PkiReadCrlDerResponse { + return PkiReadCrlDerResponseFromJSONTyped(json, false); +} + +export function PkiReadCrlDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCrlDerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCrlDerResponseToJSON(json: any): PkiReadCrlDerResponse { + return PkiReadCrlDerResponseToJSONTyped(json, false); +} + +export function PkiReadCrlDerResponseToJSONTyped( + value?: PkiReadCrlDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadCrlPemResponse.ts b/ui/api-client/src/models/PkiReadCrlPemResponse.ts new file mode 100644 index 0000000000..b7164dd11d --- /dev/null +++ b/ui/api-client/src/models/PkiReadCrlPemResponse.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadCrlPemResponse + */ +export interface PkiReadCrlPemResponse { + /** + * Issuing CA Chain + * @type {string} + * @memberof PkiReadCrlPemResponse + */ + caChain?: string; + /** + * Certificate + * @type {string} + * @memberof PkiReadCrlPemResponse + */ + certificate?: string; + /** + * ID of the issuer + * @type {string} + * @memberof PkiReadCrlPemResponse + */ + issuerId?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadCrlPemResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadCrlPemResponse + */ + revocationTimeRfc3339?: string; +} + +/** + * Check if a given object implements the PkiReadCrlPemResponse interface. + */ +export function instanceOfPkiReadCrlPemResponse(value: object): value is PkiReadCrlPemResponse { + return true; +} + +export function PkiReadCrlPemResponseFromJSON(json: any): PkiReadCrlPemResponse { + return PkiReadCrlPemResponseFromJSONTyped(json, false); +} + +export function PkiReadCrlPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadCrlPemResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + }; +} + +export function PkiReadCrlPemResponseToJSON(json: any): PkiReadCrlPemResponse { + return PkiReadCrlPemResponseToJSONTyped(json, false); +} + +export function PkiReadCrlPemResponseToJSONTyped( + value?: PkiReadCrlPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + }; +} diff --git a/ui/api-client/src/models/PkiReadIssuerDerResponse.ts b/ui/api-client/src/models/PkiReadIssuerDerResponse.ts new file mode 100644 index 0000000000..3f88334eaa --- /dev/null +++ b/ui/api-client/src/models/PkiReadIssuerDerResponse.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadIssuerDerResponse + */ +export interface PkiReadIssuerDerResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiReadIssuerDerResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiReadIssuerDerResponse + */ + certificate?: string; + /** + * Issuer Id + * @type {string} + * @memberof PkiReadIssuerDerResponse + */ + issuerId?: string; + /** + * Issuer Name + * @type {string} + * @memberof PkiReadIssuerDerResponse + */ + issuerName?: string; +} + +/** + * Check if a given object implements the PkiReadIssuerDerResponse interface. + */ +export function instanceOfPkiReadIssuerDerResponse(value: object): value is PkiReadIssuerDerResponse { + return true; +} + +export function PkiReadIssuerDerResponseFromJSON(json: any): PkiReadIssuerDerResponse { + return PkiReadIssuerDerResponseFromJSONTyped(json, false); +} + +export function PkiReadIssuerDerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadIssuerDerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + }; +} + +export function PkiReadIssuerDerResponseToJSON(json: any): PkiReadIssuerDerResponse { + return PkiReadIssuerDerResponseToJSONTyped(json, false); +} + +export function PkiReadIssuerDerResponseToJSONTyped( + value?: PkiReadIssuerDerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + }; +} diff --git a/ui/api-client/src/models/PkiReadIssuerJsonResponse.ts b/ui/api-client/src/models/PkiReadIssuerJsonResponse.ts new file mode 100644 index 0000000000..8361d3110b --- /dev/null +++ b/ui/api-client/src/models/PkiReadIssuerJsonResponse.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadIssuerJsonResponse + */ +export interface PkiReadIssuerJsonResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiReadIssuerJsonResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiReadIssuerJsonResponse + */ + certificate?: string; + /** + * Issuer Id + * @type {string} + * @memberof PkiReadIssuerJsonResponse + */ + issuerId?: string; + /** + * Issuer Name + * @type {string} + * @memberof PkiReadIssuerJsonResponse + */ + issuerName?: string; +} + +/** + * Check if a given object implements the PkiReadIssuerJsonResponse interface. + */ +export function instanceOfPkiReadIssuerJsonResponse(value: object): value is PkiReadIssuerJsonResponse { + return true; +} + +export function PkiReadIssuerJsonResponseFromJSON(json: any): PkiReadIssuerJsonResponse { + return PkiReadIssuerJsonResponseFromJSONTyped(json, false); +} + +export function PkiReadIssuerJsonResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadIssuerJsonResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + }; +} + +export function PkiReadIssuerJsonResponseToJSON(json: any): PkiReadIssuerJsonResponse { + return PkiReadIssuerJsonResponseToJSONTyped(json, false); +} + +export function PkiReadIssuerJsonResponseToJSONTyped( + value?: PkiReadIssuerJsonResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + }; +} diff --git a/ui/api-client/src/models/PkiReadIssuerPemResponse.ts b/ui/api-client/src/models/PkiReadIssuerPemResponse.ts new file mode 100644 index 0000000000..fe701fc70b --- /dev/null +++ b/ui/api-client/src/models/PkiReadIssuerPemResponse.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadIssuerPemResponse + */ +export interface PkiReadIssuerPemResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiReadIssuerPemResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiReadIssuerPemResponse + */ + certificate?: string; + /** + * Issuer Id + * @type {string} + * @memberof PkiReadIssuerPemResponse + */ + issuerId?: string; + /** + * Issuer Name + * @type {string} + * @memberof PkiReadIssuerPemResponse + */ + issuerName?: string; +} + +/** + * Check if a given object implements the PkiReadIssuerPemResponse interface. + */ +export function instanceOfPkiReadIssuerPemResponse(value: object): value is PkiReadIssuerPemResponse { + return true; +} + +export function PkiReadIssuerPemResponseFromJSON(json: any): PkiReadIssuerPemResponse { + return PkiReadIssuerPemResponseFromJSONTyped(json, false); +} + +export function PkiReadIssuerPemResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadIssuerPemResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + }; +} + +export function PkiReadIssuerPemResponseToJSON(json: any): PkiReadIssuerPemResponse { + return PkiReadIssuerPemResponseToJSONTyped(json, false); +} + +export function PkiReadIssuerPemResponseToJSONTyped( + value?: PkiReadIssuerPemResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + }; +} diff --git a/ui/api-client/src/models/PkiReadIssuerResponse.ts b/ui/api-client/src/models/PkiReadIssuerResponse.ts new file mode 100644 index 0000000000..dda08660d7 --- /dev/null +++ b/ui/api-client/src/models/PkiReadIssuerResponse.ts @@ -0,0 +1,230 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadIssuerResponse + */ +export interface PkiReadIssuerResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiReadIssuerResponse + */ + certificate?: string; + /** + * CRL Distribution Points + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + crlDistributionPoints?: Array; + /** + * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiReadIssuerResponse + */ + disableCriticalExtensionChecks?: boolean; + /** + * Whether the issuer name check should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiReadIssuerResponse + */ + disableNameChecks?: boolean; + /** + * Whether name contraint checks shoul be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiReadIssuerResponse + */ + disableNameConstraintChecks?: boolean; + /** + * Whether max path length checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiReadIssuerResponse + */ + disablePathLengthChecks?: boolean; + /** + * Whether or not templating is enabled for AIA fields + * @type {boolean} + * @memberof PkiReadIssuerResponse + */ + enableAiaUrlTemplating?: boolean; + /** + * Issuer Id + * @type {string} + * @memberof PkiReadIssuerResponse + */ + issuerId?: string; + /** + * Issuer Name + * @type {string} + * @memberof PkiReadIssuerResponse + */ + issuerName?: string; + /** + * Issuing Certificates + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + issuingCertificates?: Array; + /** + * Key Id + * @type {string} + * @memberof PkiReadIssuerResponse + */ + keyId?: string; + /** + * Leaf Not After Behavior + * @type {string} + * @memberof PkiReadIssuerResponse + */ + leafNotAfterBehavior?: string; + /** + * Manual Chain + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + manualChain?: Array; + /** + * OCSP Servers + * @type {Array} + * @memberof PkiReadIssuerResponse + */ + ocspServers?: Array; + /** + * Revocation Signature Alogrithm + * @type {string} + * @memberof PkiReadIssuerResponse + */ + revocationSignatureAlgorithm?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiReadIssuerResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiReadIssuerResponse + */ + revocationTimeRfc3339?: string; + /** + * Revoked + * @type {boolean} + * @memberof PkiReadIssuerResponse + */ + revoked?: boolean; + /** + * Usage + * @type {string} + * @memberof PkiReadIssuerResponse + */ + usage?: string; +} + +/** + * Check if a given object implements the PkiReadIssuerResponse interface. + */ +export function instanceOfPkiReadIssuerResponse(value: object): value is PkiReadIssuerResponse { + return true; +} + +export function PkiReadIssuerResponseFromJSON(json: any): PkiReadIssuerResponse { + return PkiReadIssuerResponseFromJSONTyped(json, false); +} + +export function PkiReadIssuerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadIssuerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + disableCriticalExtensionChecks: + json['disable_critical_extension_checks'] == null + ? undefined + : json['disable_critical_extension_checks'], + disableNameChecks: json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], + disableNameConstraintChecks: + json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], + disablePathLengthChecks: + json['disable_path_length_checks'] == null ? undefined : json['disable_path_length_checks'], + enableAiaUrlTemplating: + json['enable_aia_url_templating'] == null ? undefined : json['enable_aia_url_templating'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + leafNotAfterBehavior: + json['leaf_not_after_behavior'] == null ? undefined : json['leaf_not_after_behavior'], + manualChain: json['manual_chain'] == null ? undefined : json['manual_chain'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + revocationSignatureAlgorithm: + json['revocation_signature_algorithm'] == null ? undefined : json['revocation_signature_algorithm'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + revoked: json['revoked'] == null ? undefined : json['revoked'], + usage: json['usage'] == null ? undefined : json['usage'], + }; +} + +export function PkiReadIssuerResponseToJSON(json: any): PkiReadIssuerResponse { + return PkiReadIssuerResponseToJSONTyped(json, false); +} + +export function PkiReadIssuerResponseToJSONTyped( + value?: PkiReadIssuerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + crl_distribution_points: value['crlDistributionPoints'], + disable_critical_extension_checks: value['disableCriticalExtensionChecks'], + disable_name_checks: value['disableNameChecks'], + disable_name_constraint_checks: value['disableNameConstraintChecks'], + disable_path_length_checks: value['disablePathLengthChecks'], + enable_aia_url_templating: value['enableAiaUrlTemplating'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + issuing_certificates: value['issuingCertificates'], + key_id: value['keyId'], + leaf_not_after_behavior: value['leafNotAfterBehavior'], + manual_chain: value['manualChain'], + ocsp_servers: value['ocspServers'], + revocation_signature_algorithm: value['revocationSignatureAlgorithm'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + revoked: value['revoked'], + usage: value['usage'], + }; +} diff --git a/ui/api-client/src/models/PkiReadIssuersConfigurationResponse.ts b/ui/api-client/src/models/PkiReadIssuersConfigurationResponse.ts new file mode 100644 index 0000000000..7f86c04cf6 --- /dev/null +++ b/ui/api-client/src/models/PkiReadIssuersConfigurationResponse.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadIssuersConfigurationResponse + */ +export interface PkiReadIssuersConfigurationResponse { + /** + * Reference (name or identifier) to the default issuer. + * @type {string} + * @memberof PkiReadIssuersConfigurationResponse + */ + _default?: string; + /** + * Whether the default issuer should automatically follow the latest generated or imported issuer. Defaults to false. + * @type {boolean} + * @memberof PkiReadIssuersConfigurationResponse + */ + defaultFollowsLatestIssuer?: boolean; +} + +/** + * Check if a given object implements the PkiReadIssuersConfigurationResponse interface. + */ +export function instanceOfPkiReadIssuersConfigurationResponse( + value: object +): value is PkiReadIssuersConfigurationResponse { + return true; +} + +export function PkiReadIssuersConfigurationResponseFromJSON(json: any): PkiReadIssuersConfigurationResponse { + return PkiReadIssuersConfigurationResponseFromJSONTyped(json, false); +} + +export function PkiReadIssuersConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadIssuersConfigurationResponse { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + defaultFollowsLatestIssuer: + json['default_follows_latest_issuer'] == null ? undefined : json['default_follows_latest_issuer'], + }; +} + +export function PkiReadIssuersConfigurationResponseToJSON(json: any): PkiReadIssuersConfigurationResponse { + return PkiReadIssuersConfigurationResponseToJSONTyped(json, false); +} + +export function PkiReadIssuersConfigurationResponseToJSONTyped( + value?: PkiReadIssuersConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + default_follows_latest_issuer: value['defaultFollowsLatestIssuer'], + }; +} diff --git a/ui/api-client/src/models/PkiReadKeyResponse.ts b/ui/api-client/src/models/PkiReadKeyResponse.ts new file mode 100644 index 0000000000..c84e2195be --- /dev/null +++ b/ui/api-client/src/models/PkiReadKeyResponse.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadKeyResponse + */ +export interface PkiReadKeyResponse { + /** + * Key Id + * @type {string} + * @memberof PkiReadKeyResponse + */ + keyId?: string; + /** + * Key Name + * @type {string} + * @memberof PkiReadKeyResponse + */ + keyName?: string; + /** + * Key Type + * @type {string} + * @memberof PkiReadKeyResponse + */ + keyType?: string; + /** + * Managed Key Id + * @type {string} + * @memberof PkiReadKeyResponse + */ + managedKeyId?: string; + /** + * Managed Key Name + * @type {string} + * @memberof PkiReadKeyResponse + */ + managedKeyName?: string; + /** + * RFC 5280 Subject Key Identifier of the public counterpart + * @type {string} + * @memberof PkiReadKeyResponse + */ + subjectKeyId?: string; +} + +/** + * Check if a given object implements the PkiReadKeyResponse interface. + */ +export function instanceOfPkiReadKeyResponse(value: object): value is PkiReadKeyResponse { + return true; +} + +export function PkiReadKeyResponseFromJSON(json: any): PkiReadKeyResponse { + return PkiReadKeyResponseFromJSONTyped(json, false); +} + +export function PkiReadKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PkiReadKeyResponse { + if (json == null) { + return json; + } + return { + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + subjectKeyId: json['subject_key_id'] == null ? undefined : json['subject_key_id'], + }; +} + +export function PkiReadKeyResponseToJSON(json: any): PkiReadKeyResponse { + return PkiReadKeyResponseToJSONTyped(json, false); +} + +export function PkiReadKeyResponseToJSONTyped( + value?: PkiReadKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_id: value['keyId'], + key_name: value['keyName'], + key_type: value['keyType'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + subject_key_id: value['subjectKeyId'], + }; +} diff --git a/ui/api-client/src/models/PkiReadKeysConfigurationResponse.ts b/ui/api-client/src/models/PkiReadKeysConfigurationResponse.ts new file mode 100644 index 0000000000..60a90bd9af --- /dev/null +++ b/ui/api-client/src/models/PkiReadKeysConfigurationResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadKeysConfigurationResponse + */ +export interface PkiReadKeysConfigurationResponse { + /** + * Reference (name or identifier) to the default issuer. + * @type {string} + * @memberof PkiReadKeysConfigurationResponse + */ + _default?: string; +} + +/** + * Check if a given object implements the PkiReadKeysConfigurationResponse interface. + */ +export function instanceOfPkiReadKeysConfigurationResponse( + value: object +): value is PkiReadKeysConfigurationResponse { + return true; +} + +export function PkiReadKeysConfigurationResponseFromJSON(json: any): PkiReadKeysConfigurationResponse { + return PkiReadKeysConfigurationResponseFromJSONTyped(json, false); +} + +export function PkiReadKeysConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadKeysConfigurationResponse { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + }; +} + +export function PkiReadKeysConfigurationResponseToJSON(json: any): PkiReadKeysConfigurationResponse { + return PkiReadKeysConfigurationResponseToJSONTyped(json, false); +} + +export function PkiReadKeysConfigurationResponseToJSONTyped( + value?: PkiReadKeysConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + }; +} diff --git a/ui/api-client/src/models/PkiReadRoleResponse.ts b/ui/api-client/src/models/PkiReadRoleResponse.ts new file mode 100644 index 0000000000..8203af8772 --- /dev/null +++ b/ui/api-client/src/models/PkiReadRoleResponse.ts @@ -0,0 +1,459 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadRoleResponse + */ +export interface PkiReadRoleResponse { + /** + * If set, clients can request certificates for any domain, regardless of allowed_domains restrictions. See the documentation for more information. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowAnyName?: boolean; + /** + * If set, clients can request certificates for the base domains themselves, e.g. "example.com" of domains listed in allowed_domains. This is a separate option as in some cases this can be considered a security threat. See the documentation for more information. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowBareDomains?: boolean; + /** + * If set, domains specified in allowed_domains can include shell-style glob patterns, e.g. "ftp*.example.com". See the documentation for more information. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowGlobDomains?: boolean; + /** + * If set, IP Subject Alternative Names are allowed. Any valid IP is accepted and No authorization checking is performed. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowIpSans?: boolean; + /** + * Whether to allow "localhost" and "localdomain" as a valid common name in a request, independent of allowed_domains value. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowLocalhost?: boolean; + /** + * If set, clients can request certificates for subdomains of domains listed in allowed_domains, including wildcard subdomains. See the documentation for more information. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowSubdomains?: boolean; + /** + * Whether to allow "localhost" and "localdomain" as a valid common name in a request, independent of allowed_domains value. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowTokenDisplayname?: boolean; + /** + * If set, allows certificates with wildcards in the common name to be issued, conforming to RFC 6125's Section 6.4.3; e.g., "*.example.net" or "b*z.example.net". See the documentation for more information. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowWildcardCertificates?: boolean; + /** + * Specifies the domains this role is allowed to issue certificates for. This is used with the allow_bare_domains, allow_subdomains, and allow_glob_domains to determine matches for the common name, DNS-typed SAN entries, and Email-typed SAN entries of certificates. See the documentation for more information. This parameter accepts a comma-separated string or list of domains. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + allowedDomains?: Array; + /** + * If set, Allowed domains can be specified using identity template policies. Non-templated domains are also permitted. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowedDomainsTemplate?: boolean; + /** + * If set, an array of allowed other names to put in SANs. These values support globbing and must be in the format ;:. Currently only "utf8" is a valid type. All values, including globbing values, must use this syntax, with the exception being a single "*" which allows any OID and any value (but type must still be utf8). + * @type {Array} + * @memberof PkiReadRoleResponse + */ + allowedOtherSans?: Array; + /** + * If set, an array of allowed serial numbers to put in Subject. These values support globbing. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + allowedSerialNumbers?: Array; + /** + * If set, an array of allowed URIs for URI Subject Alternative Names. Any valid URI is accepted, these values support globbing. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + allowedUriSans?: Array; + /** + * If set, Allowed URI SANs can be specified using identity template policies. Non-templated URI SANs are also permitted. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + allowedUriSansTemplate?: boolean; + /** + * If set, an array of allowed user-ids to put in user system login name specified here: https://www.rfc-editor.org/rfc/rfc1274#section-9.3.1 + * @type {Array} + * @memberof PkiReadRoleResponse + */ + allowedUserIds?: Array; + /** + * Mark Basic Constraints valid when issuing non-CA certificates. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + basicConstraintsValidForNonCa?: boolean; + /** + * If set, certificates are flagged for client auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + clientFlag?: boolean; + /** + * List of allowed validations to run against the Common Name field. Values can include 'email' to validate the CN is a email address, 'hostname' to validate the CN is a valid hostname (potentially including wildcards). When multiple validations are specified, these take OR semantics (either email OR hostname are allowed). The special value 'disabled' allows disabling all CN name validations, allowing for arbitrary non-Hostname, non-Email address CNs. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + cnValidations?: Array; + /** + * If set, certificates are flagged for code signing use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + codeSigningFlag?: boolean; + /** + * If set, Country will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + country?: Array; + /** + * If set, certificates are flagged for email protection use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + emailProtectionFlag?: boolean; + /** + * If set, only valid host names are allowed for CN and DNS SANs, and the host part of email addresses. Defaults to true. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + enforceHostnames?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.12. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + extKeyUsageOids?: Array; + /** + * If set, certificates issued/signed against this role will have Vault leases attached to them. Defaults to "false". Certificates can be added to the CRL by "vault revoke " when certificates are associated with leases. It can also be done using the "pki/revoke" endpoint. However, when lease generation is disabled, invoking "pki/revoke" would be the only way to add the certificates to the CRL. When large number of certificates are generated with long lifetimes, it is recommended that lease generation be disabled, as large amount of leases adversely affect the startup time of Vault. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + generateLease?: boolean; + /** + * Reference to the issuer used to sign requests serviced by this role. + * @type {string} + * @memberof PkiReadRoleResponse + */ + issuerRef?: string; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiReadRoleResponse + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec", "ed25519" and "any" are the only valid values. + * @type {string} + * @memberof PkiReadRoleResponse + */ + keyType?: string; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.3. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + locality?: Array; + /** + * The maximum allowed lease duration. If not set, defaults to the system maximum lease TTL. + * @type {number} + * @memberof PkiReadRoleResponse + */ + maxTtl?: number; + /** + * If set, certificates issued/signed against this role will not be stored in the storage backend. This can improve performance when issuing large numbers of certificates. However, certificates issued in this way cannot be enumerated or revoked, so this option is recommended only for certificates that are non-sensitive, or extremely short-lived. This option implies a value of "false" for "generate_lease". + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + noStore?: boolean; + /** + * If set, if a client attempts to issue or sign a certificate with attached cert_metadata to store, the issuance / signing instead fails. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + noStoreMetadata?: boolean; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ. + * @type {string} + * @memberof PkiReadRoleResponse + */ + notAfter?: string; + /** + * The duration in seconds before now which the certificate needs to be backdated by. + * @type {number} + * @memberof PkiReadRoleResponse + */ + notBeforeDuration?: number; + /** + * If set, O (Organization) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + organization?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + ou?: Array; + /** + * A comma-separated string or list of policy OIDs, or a JSON list of qualified policy information, which must include an oid, and may include a notice and/or cps url, using the form [{"oid"="1.3.6.1.4.1.7.8","notice"="I am a user Notice"}, {"oid"="1.3.6.1.4.1.44947.1.2.4 ","cps"="https://example.com"}]. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + policyIdentifiers?: Array; + /** + * If set, Postal Code will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + postalCode?: Array; + /** + * If set, Province will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + province?: Array; + /** + * If set to false, makes the 'common_name' field optional while generating a certificate. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + requireCn?: boolean; + /** + * Source for the certificate subject serial number. If "json-csr" (default), the value from the JSON serial_number field is used, falling back to the value in the CSR if empty. If "json", the value from the serial_number JSON field is used, ignoring the value in the CSR. + * @type {string} + * @memberof PkiReadRoleResponse + */ + serialNumberSource?: string; + /** + * If set, certificates are flagged for server auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + serverFlag?: boolean; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiReadRoleResponse + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiReadRoleResponse + */ + streetAddress?: Array; + /** + * The lease duration (validity period of the certificate) if no specific lease duration is requested. The lease duration controls the expiration of certificates issued by this backend. Defaults to the system default value or the value of max_ttl, whichever is shorter. + * @type {number} + * @memberof PkiReadRoleResponse + */ + ttl?: number; + /** + * If set, when used with a signing profile, the common name in the CSR will be used. This does *not* include any requested Subject Alternative Names; use use_csr_sans for that. Defaults to true. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + useCsrCommonName?: boolean; + /** + * If set, when used with a signing profile, the SANs in the CSR will be used. This does *not* include the Common Name (cn); use use_csr_common_name for that. Defaults to true. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + useCsrSans?: boolean; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiReadRoleResponse + */ + usePss?: boolean; +} + +/** + * Check if a given object implements the PkiReadRoleResponse interface. + */ +export function instanceOfPkiReadRoleResponse(value: object): value is PkiReadRoleResponse { + return true; +} + +export function PkiReadRoleResponseFromJSON(json: any): PkiReadRoleResponse { + return PkiReadRoleResponseFromJSONTyped(json, false); +} + +export function PkiReadRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadRoleResponse { + if (json == null) { + return json; + } + return { + allowAnyName: json['allow_any_name'] == null ? undefined : json['allow_any_name'], + allowBareDomains: json['allow_bare_domains'] == null ? undefined : json['allow_bare_domains'], + allowGlobDomains: json['allow_glob_domains'] == null ? undefined : json['allow_glob_domains'], + allowIpSans: json['allow_ip_sans'] == null ? undefined : json['allow_ip_sans'], + allowLocalhost: json['allow_localhost'] == null ? undefined : json['allow_localhost'], + allowSubdomains: json['allow_subdomains'] == null ? undefined : json['allow_subdomains'], + allowTokenDisplayname: + json['allow_token_displayname'] == null ? undefined : json['allow_token_displayname'], + allowWildcardCertificates: + json['allow_wildcard_certificates'] == null ? undefined : json['allow_wildcard_certificates'], + allowedDomains: json['allowed_domains'] == null ? undefined : json['allowed_domains'], + allowedDomainsTemplate: + json['allowed_domains_template'] == null ? undefined : json['allowed_domains_template'], + allowedOtherSans: json['allowed_other_sans'] == null ? undefined : json['allowed_other_sans'], + allowedSerialNumbers: json['allowed_serial_numbers'] == null ? undefined : json['allowed_serial_numbers'], + allowedUriSans: json['allowed_uri_sans'] == null ? undefined : json['allowed_uri_sans'], + allowedUriSansTemplate: + json['allowed_uri_sans_template'] == null ? undefined : json['allowed_uri_sans_template'], + allowedUserIds: json['allowed_user_ids'] == null ? undefined : json['allowed_user_ids'], + basicConstraintsValidForNonCa: + json['basic_constraints_valid_for_non_ca'] == null + ? undefined + : json['basic_constraints_valid_for_non_ca'], + clientFlag: json['client_flag'] == null ? undefined : json['client_flag'], + cnValidations: json['cn_validations'] == null ? undefined : json['cn_validations'], + codeSigningFlag: json['code_signing_flag'] == null ? undefined : json['code_signing_flag'], + country: json['country'] == null ? undefined : json['country'], + emailProtectionFlag: json['email_protection_flag'] == null ? undefined : json['email_protection_flag'], + enforceHostnames: json['enforce_hostnames'] == null ? undefined : json['enforce_hostnames'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + generateLease: json['generate_lease'] == null ? undefined : json['generate_lease'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + noStore: json['no_store'] == null ? undefined : json['no_store'], + noStoreMetadata: json['no_store_metadata'] == null ? undefined : json['no_store_metadata'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + ou: json['ou'] == null ? undefined : json['ou'], + policyIdentifiers: json['policy_identifiers'] == null ? undefined : json['policy_identifiers'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + province: json['province'] == null ? undefined : json['province'], + requireCn: json['require_cn'] == null ? undefined : json['require_cn'], + serialNumberSource: json['serial_number_source'] == null ? undefined : json['serial_number_source'], + serverFlag: json['server_flag'] == null ? undefined : json['server_flag'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + useCsrCommonName: json['use_csr_common_name'] == null ? undefined : json['use_csr_common_name'], + useCsrSans: json['use_csr_sans'] == null ? undefined : json['use_csr_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiReadRoleResponseToJSON(json: any): PkiReadRoleResponse { + return PkiReadRoleResponseToJSONTyped(json, false); +} + +export function PkiReadRoleResponseToJSONTyped( + value?: PkiReadRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_any_name: value['allowAnyName'], + allow_bare_domains: value['allowBareDomains'], + allow_glob_domains: value['allowGlobDomains'], + allow_ip_sans: value['allowIpSans'], + allow_localhost: value['allowLocalhost'], + allow_subdomains: value['allowSubdomains'], + allow_token_displayname: value['allowTokenDisplayname'], + allow_wildcard_certificates: value['allowWildcardCertificates'], + allowed_domains: value['allowedDomains'], + allowed_domains_template: value['allowedDomainsTemplate'], + allowed_other_sans: value['allowedOtherSans'], + allowed_serial_numbers: value['allowedSerialNumbers'], + allowed_uri_sans: value['allowedUriSans'], + allowed_uri_sans_template: value['allowedUriSansTemplate'], + allowed_user_ids: value['allowedUserIds'], + basic_constraints_valid_for_non_ca: value['basicConstraintsValidForNonCa'], + client_flag: value['clientFlag'], + cn_validations: value['cnValidations'], + code_signing_flag: value['codeSigningFlag'], + country: value['country'], + email_protection_flag: value['emailProtectionFlag'], + enforce_hostnames: value['enforceHostnames'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + generate_lease: value['generateLease'], + issuer_ref: value['issuerRef'], + key_bits: value['keyBits'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + max_ttl: value['maxTtl'], + no_store: value['noStore'], + no_store_metadata: value['noStoreMetadata'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + ou: value['ou'], + policy_identifiers: value['policyIdentifiers'], + postal_code: value['postalCode'], + province: value['province'], + require_cn: value['requireCn'], + serial_number_source: value['serialNumberSource'], + server_flag: value['serverFlag'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + use_csr_common_name: value['useCsrCommonName'], + use_csr_sans: value['useCsrSans'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiReadUrlsConfigurationResponse.ts b/ui/api-client/src/models/PkiReadUrlsConfigurationResponse.ts new file mode 100644 index 0000000000..abbc44d8da --- /dev/null +++ b/ui/api-client/src/models/PkiReadUrlsConfigurationResponse.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReadUrlsConfigurationResponse + */ +export interface PkiReadUrlsConfigurationResponse { + /** + * Comma-separated list of URLs to be used for the CRL distribution points attribute. See also RFC 5280 Section 4.2.1.13. + * @type {Array} + * @memberof PkiReadUrlsConfigurationResponse + */ + crlDistributionPoints?: Array; + /** + * Whether or not to enable templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}' and '{{cluster_path}}' are available, but the addresses are not checked for URI validity until issuance time. This requires /config/cluster's path to be set on all PR Secondary clusters. + * @type {boolean} + * @memberof PkiReadUrlsConfigurationResponse + */ + enableTemplating?: boolean; + /** + * Comma-separated list of URLs to be used for the issuing certificate attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiReadUrlsConfigurationResponse + */ + issuingCertificates?: Array; + /** + * Comma-separated list of URLs to be used for the OCSP servers attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiReadUrlsConfigurationResponse + */ + ocspServers?: Array; +} + +/** + * Check if a given object implements the PkiReadUrlsConfigurationResponse interface. + */ +export function instanceOfPkiReadUrlsConfigurationResponse( + value: object +): value is PkiReadUrlsConfigurationResponse { + return true; +} + +export function PkiReadUrlsConfigurationResponseFromJSON(json: any): PkiReadUrlsConfigurationResponse { + return PkiReadUrlsConfigurationResponseFromJSONTyped(json, false); +} + +export function PkiReadUrlsConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReadUrlsConfigurationResponse { + if (json == null) { + return json; + } + return { + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + enableTemplating: json['enable_templating'] == null ? undefined : json['enable_templating'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + }; +} + +export function PkiReadUrlsConfigurationResponseToJSON(json: any): PkiReadUrlsConfigurationResponse { + return PkiReadUrlsConfigurationResponseToJSONTyped(json, false); +} + +export function PkiReadUrlsConfigurationResponseToJSONTyped( + value?: PkiReadUrlsConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl_distribution_points: value['crlDistributionPoints'], + enable_templating: value['enableTemplating'], + issuing_certificates: value['issuingCertificates'], + ocsp_servers: value['ocspServers'], + }; +} diff --git a/ui/api-client/src/models/PkiReplaceRootRequest.ts b/ui/api-client/src/models/PkiReplaceRootRequest.ts new file mode 100644 index 0000000000..d4231fd114 --- /dev/null +++ b/ui/api-client/src/models/PkiReplaceRootRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReplaceRootRequest + */ +export interface PkiReplaceRootRequest { + /** + * Reference (name or identifier) to the default issuer. + * @type {string} + * @memberof PkiReplaceRootRequest + */ + _default?: string; +} + +/** + * Check if a given object implements the PkiReplaceRootRequest interface. + */ +export function instanceOfPkiReplaceRootRequest(value: object): value is PkiReplaceRootRequest { + return true; +} + +export function PkiReplaceRootRequestFromJSON(json: any): PkiReplaceRootRequest { + return PkiReplaceRootRequestFromJSONTyped(json, false); +} + +export function PkiReplaceRootRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReplaceRootRequest { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + }; +} + +export function PkiReplaceRootRequestToJSON(json: any): PkiReplaceRootRequest { + return PkiReplaceRootRequestToJSONTyped(json, false); +} + +export function PkiReplaceRootRequestToJSONTyped( + value?: PkiReplaceRootRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + }; +} diff --git a/ui/api-client/src/models/PkiReplaceRootResponse.ts b/ui/api-client/src/models/PkiReplaceRootResponse.ts new file mode 100644 index 0000000000..e5794c0a9c --- /dev/null +++ b/ui/api-client/src/models/PkiReplaceRootResponse.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiReplaceRootResponse + */ +export interface PkiReplaceRootResponse { + /** + * Reference (name or identifier) to the default issuer. + * @type {string} + * @memberof PkiReplaceRootResponse + */ + _default?: string; + /** + * Whether the default issuer should automatically follow the latest generated or imported issuer. Defaults to false. + * @type {boolean} + * @memberof PkiReplaceRootResponse + */ + defaultFollowsLatestIssuer?: boolean; +} + +/** + * Check if a given object implements the PkiReplaceRootResponse interface. + */ +export function instanceOfPkiReplaceRootResponse(value: object): value is PkiReplaceRootResponse { + return true; +} + +export function PkiReplaceRootResponseFromJSON(json: any): PkiReplaceRootResponse { + return PkiReplaceRootResponseFromJSONTyped(json, false); +} + +export function PkiReplaceRootResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiReplaceRootResponse { + if (json == null) { + return json; + } + return { + _default: json['default'] == null ? undefined : json['default'], + defaultFollowsLatestIssuer: + json['default_follows_latest_issuer'] == null ? undefined : json['default_follows_latest_issuer'], + }; +} + +export function PkiReplaceRootResponseToJSON(json: any): PkiReplaceRootResponse { + return PkiReplaceRootResponseToJSONTyped(json, false); +} + +export function PkiReplaceRootResponseToJSONTyped( + value?: PkiReplaceRootResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + default: value['_default'], + default_follows_latest_issuer: value['defaultFollowsLatestIssuer'], + }; +} diff --git a/ui/api-client/src/models/PkiRevokeIssuerResponse.ts b/ui/api-client/src/models/PkiRevokeIssuerResponse.ts new file mode 100644 index 0000000000..cbd3778ace --- /dev/null +++ b/ui/api-client/src/models/PkiRevokeIssuerResponse.ts @@ -0,0 +1,230 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRevokeIssuerResponse + */ +export interface PkiRevokeIssuerResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + certificate?: string; + /** + * CRL Distribution Points + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + crlDistributionPoints?: Array; + /** + * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiRevokeIssuerResponse + */ + disableCriticalExtensionChecks?: boolean; + /** + * Whether the issuer name check should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiRevokeIssuerResponse + */ + disableNameChecks?: boolean; + /** + * Whether name contraint checks shoul be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiRevokeIssuerResponse + */ + disableNameConstraintChecks?: boolean; + /** + * Whether max path length checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiRevokeIssuerResponse + */ + disablePathLengthChecks?: boolean; + /** + * Whether or not templating is enabled for AIA fields + * @type {boolean} + * @memberof PkiRevokeIssuerResponse + */ + enableAiaUrlTemplating?: boolean; + /** + * Issuer Id + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + issuerId?: string; + /** + * Issuer Name + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + issuerName?: string; + /** + * Issuing Certificates + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + issuingCertificates?: Array; + /** + * Key Id + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + keyId?: string; + /** + * Leaf Not After Behavior + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + leafNotAfterBehavior?: string; + /** + * Manual Chain + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + manualChain?: Array; + /** + * OCSP Servers + * @type {Array} + * @memberof PkiRevokeIssuerResponse + */ + ocspServers?: Array; + /** + * Revocation Signature Alogrithm + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + revocationSignatureAlgorithm?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiRevokeIssuerResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + revocationTimeRfc3339?: string; + /** + * Revoked + * @type {boolean} + * @memberof PkiRevokeIssuerResponse + */ + revoked?: boolean; + /** + * Usage + * @type {string} + * @memberof PkiRevokeIssuerResponse + */ + usage?: string; +} + +/** + * Check if a given object implements the PkiRevokeIssuerResponse interface. + */ +export function instanceOfPkiRevokeIssuerResponse(value: object): value is PkiRevokeIssuerResponse { + return true; +} + +export function PkiRevokeIssuerResponseFromJSON(json: any): PkiRevokeIssuerResponse { + return PkiRevokeIssuerResponseFromJSONTyped(json, false); +} + +export function PkiRevokeIssuerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRevokeIssuerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + disableCriticalExtensionChecks: + json['disable_critical_extension_checks'] == null + ? undefined + : json['disable_critical_extension_checks'], + disableNameChecks: json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], + disableNameConstraintChecks: + json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], + disablePathLengthChecks: + json['disable_path_length_checks'] == null ? undefined : json['disable_path_length_checks'], + enableAiaUrlTemplating: + json['enable_aia_url_templating'] == null ? undefined : json['enable_aia_url_templating'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + leafNotAfterBehavior: + json['leaf_not_after_behavior'] == null ? undefined : json['leaf_not_after_behavior'], + manualChain: json['manual_chain'] == null ? undefined : json['manual_chain'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + revocationSignatureAlgorithm: + json['revocation_signature_algorithm'] == null ? undefined : json['revocation_signature_algorithm'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + revoked: json['revoked'] == null ? undefined : json['revoked'], + usage: json['usage'] == null ? undefined : json['usage'], + }; +} + +export function PkiRevokeIssuerResponseToJSON(json: any): PkiRevokeIssuerResponse { + return PkiRevokeIssuerResponseToJSONTyped(json, false); +} + +export function PkiRevokeIssuerResponseToJSONTyped( + value?: PkiRevokeIssuerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + crl_distribution_points: value['crlDistributionPoints'], + disable_critical_extension_checks: value['disableCriticalExtensionChecks'], + disable_name_checks: value['disableNameChecks'], + disable_name_constraint_checks: value['disableNameConstraintChecks'], + disable_path_length_checks: value['disablePathLengthChecks'], + enable_aia_url_templating: value['enableAiaUrlTemplating'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + issuing_certificates: value['issuingCertificates'], + key_id: value['keyId'], + leaf_not_after_behavior: value['leafNotAfterBehavior'], + manual_chain: value['manualChain'], + ocsp_servers: value['ocspServers'], + revocation_signature_algorithm: value['revocationSignatureAlgorithm'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + revoked: value['revoked'], + usage: value['usage'], + }; +} diff --git a/ui/api-client/src/models/PkiRevokeRequest.ts b/ui/api-client/src/models/PkiRevokeRequest.ts new file mode 100644 index 0000000000..10da147334 --- /dev/null +++ b/ui/api-client/src/models/PkiRevokeRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRevokeRequest + */ +export interface PkiRevokeRequest { + /** + * Certificate to revoke in PEM format; must be signed by an issuer in this mount. + * @type {string} + * @memberof PkiRevokeRequest + */ + certificate?: string; + /** + * Certificate serial number, in colon- or hyphen-separated octal + * @type {string} + * @memberof PkiRevokeRequest + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiRevokeRequest interface. + */ +export function instanceOfPkiRevokeRequest(value: object): value is PkiRevokeRequest { + return true; +} + +export function PkiRevokeRequestFromJSON(json: any): PkiRevokeRequest { + return PkiRevokeRequestFromJSONTyped(json, false); +} + +export function PkiRevokeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PkiRevokeRequest { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiRevokeRequestToJSON(json: any): PkiRevokeRequest { + return PkiRevokeRequestToJSONTyped(json, false); +} + +export function PkiRevokeRequestToJSONTyped( + value?: PkiRevokeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiRevokeResponse.ts b/ui/api-client/src/models/PkiRevokeResponse.ts new file mode 100644 index 0000000000..7aace354ff --- /dev/null +++ b/ui/api-client/src/models/PkiRevokeResponse.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRevokeResponse + */ +export interface PkiRevokeResponse { + /** + * Revocation Time + * @type {number} + * @memberof PkiRevokeResponse + */ + revocationTime?: number; + /** + * Revocation Time + * @type {Date} + * @memberof PkiRevokeResponse + */ + revocationTimeRfc3339?: Date; + /** + * Revocation State + * @type {string} + * @memberof PkiRevokeResponse + */ + state?: string; +} + +/** + * Check if a given object implements the PkiRevokeResponse interface. + */ +export function instanceOfPkiRevokeResponse(value: object): value is PkiRevokeResponse { + return true; +} + +export function PkiRevokeResponseFromJSON(json: any): PkiRevokeResponse { + return PkiRevokeResponseFromJSONTyped(json, false); +} + +export function PkiRevokeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PkiRevokeResponse { + if (json == null) { + return json; + } + return { + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : new Date(json['revocation_time_rfc3339']), + state: json['state'] == null ? undefined : json['state'], + }; +} + +export function PkiRevokeResponseToJSON(json: any): PkiRevokeResponse { + return PkiRevokeResponseToJSONTyped(json, false); +} + +export function PkiRevokeResponseToJSONTyped( + value?: PkiRevokeResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + revocation_time: value['revocationTime'], + revocation_time_rfc3339: + value['revocationTimeRfc3339'] == null ? undefined : value['revocationTimeRfc3339'].toISOString(), + state: value['state'], + }; +} diff --git a/ui/api-client/src/models/PkiRevokeWithKeyRequest.ts b/ui/api-client/src/models/PkiRevokeWithKeyRequest.ts new file mode 100644 index 0000000000..c1e7bc4802 --- /dev/null +++ b/ui/api-client/src/models/PkiRevokeWithKeyRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRevokeWithKeyRequest + */ +export interface PkiRevokeWithKeyRequest { + /** + * Certificate to revoke in PEM format; must be signed by an issuer in this mount. + * @type {string} + * @memberof PkiRevokeWithKeyRequest + */ + certificate?: string; + /** + * Key to use to verify revocation permission; must be in PEM format. + * @type {string} + * @memberof PkiRevokeWithKeyRequest + */ + privateKey?: string; + /** + * Certificate serial number, in colon- or hyphen-separated octal + * @type {string} + * @memberof PkiRevokeWithKeyRequest + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiRevokeWithKeyRequest interface. + */ +export function instanceOfPkiRevokeWithKeyRequest(value: object): value is PkiRevokeWithKeyRequest { + return true; +} + +export function PkiRevokeWithKeyRequestFromJSON(json: any): PkiRevokeWithKeyRequest { + return PkiRevokeWithKeyRequestFromJSONTyped(json, false); +} + +export function PkiRevokeWithKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRevokeWithKeyRequest { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiRevokeWithKeyRequestToJSON(json: any): PkiRevokeWithKeyRequest { + return PkiRevokeWithKeyRequestToJSONTyped(json, false); +} + +export function PkiRevokeWithKeyRequestToJSONTyped( + value?: PkiRevokeWithKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + private_key: value['privateKey'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiRevokeWithKeyResponse.ts b/ui/api-client/src/models/PkiRevokeWithKeyResponse.ts new file mode 100644 index 0000000000..c8915845b8 --- /dev/null +++ b/ui/api-client/src/models/PkiRevokeWithKeyResponse.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRevokeWithKeyResponse + */ +export interface PkiRevokeWithKeyResponse { + /** + * Revocation Time + * @type {number} + * @memberof PkiRevokeWithKeyResponse + */ + revocationTime?: number; + /** + * Revocation Time + * @type {Date} + * @memberof PkiRevokeWithKeyResponse + */ + revocationTimeRfc3339?: Date; + /** + * Revocation State + * @type {string} + * @memberof PkiRevokeWithKeyResponse + */ + state?: string; +} + +/** + * Check if a given object implements the PkiRevokeWithKeyResponse interface. + */ +export function instanceOfPkiRevokeWithKeyResponse(value: object): value is PkiRevokeWithKeyResponse { + return true; +} + +export function PkiRevokeWithKeyResponseFromJSON(json: any): PkiRevokeWithKeyResponse { + return PkiRevokeWithKeyResponseFromJSONTyped(json, false); +} + +export function PkiRevokeWithKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRevokeWithKeyResponse { + if (json == null) { + return json; + } + return { + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : new Date(json['revocation_time_rfc3339']), + state: json['state'] == null ? undefined : json['state'], + }; +} + +export function PkiRevokeWithKeyResponseToJSON(json: any): PkiRevokeWithKeyResponse { + return PkiRevokeWithKeyResponseToJSONTyped(json, false); +} + +export function PkiRevokeWithKeyResponseToJSONTyped( + value?: PkiRevokeWithKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + revocation_time: value['revocationTime'], + revocation_time_rfc3339: + value['revocationTimeRfc3339'] == null ? undefined : value['revocationTimeRfc3339'].toISOString(), + state: value['state'], + }; +} diff --git a/ui/api-client/src/models/PkiRootSignIntermediateRequest.ts b/ui/api-client/src/models/PkiRootSignIntermediateRequest.ts new file mode 100644 index 0000000000..674ff67708 --- /dev/null +++ b/ui/api-client/src/models/PkiRootSignIntermediateRequest.ts @@ -0,0 +1,381 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRootSignIntermediateRequest + */ +export interface PkiRootSignIntermediateRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + country?: Array; + /** + * PEM-format CSR to be signed. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + csr?: string; + /** + * Do not truncate the NotAfter field, use the issuer's configured leaf_not_after_behavior + * @type {boolean} + * @memberof PkiRootSignIntermediateRequest + */ + enforceLeafNotAfterBehavior?: boolean; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiRootSignIntermediateRequest + */ + excludeCnFromSans?: boolean; + /** + * Domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + excludedDnsDomains?: Array; + /** + * Email addresses for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + excludedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + excludedIpRanges?: Array; + /** + * URI domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + excludedUriDomains?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + format?: PkiRootSignIntermediateRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + ipSans?: Array; + /** + * Provide a name to the generated or existing issuer, the name must be unique across all issuers and not be the reserved value 'default' + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + issuerName?: string; + /** + * Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + issuerRef?: string; + /** + * This list of key usages (not extended key usages) will be added to the existing set of key usages, CRL,CertSign, on the generated certificate. Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To use the issuer for CMPv2, DigitalSignature must be set. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + locality?: Array; + /** + * The maximum allowable path length + * @type {number} + * @memberof PkiRootSignIntermediateRequest + */ + maxPathLength?: number; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + ou?: Array; + /** + * Domains for which this certificate is allowed to sign or issue child certificates. If set, all DNS names (subject and alt) on child certs must be exact matches or subsets of the given domains (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + permittedDnsDomains?: Array; + /** + * Email addresses for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + permittedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + permittedIpRanges?: Array; + /** + * URI domains for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + permittedUriDomains?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + privateKeyFormat?: PkiRootSignIntermediateRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiRootSignIntermediateRequest + */ + signatureBits?: number; + /** + * Value for the Subject Key Identifier field (RFC 5280 Section 4.2.1.2). This value should ONLY be used when cross-signing to mimic the existing certificate's SKID value; this is necessary to allow certain TLS implementations (such as OpenSSL) which use SKID/AKID matches in chain building to restrict possible valid chains. Specified as a string in hex format. Default is empty, allowing Vault to automatically calculate the SKID according to method one in the above RFC section. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + skid?: string; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiRootSignIntermediateRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiRootSignIntermediateRequest + */ + uriSans?: Array; + /** + * If true, then: 1) Subject information, including names and alternate names, will be preserved from the CSR rather than using values provided in the other parameters to this path; 2) Any key usages requested in the CSR will be added to the basic set of key usages used for CA certs signed by this path; for instance, the non-repudiation flag; 3) Extensions requested in the CSR will be copied into the issued certificate. + * @type {boolean} + * @memberof PkiRootSignIntermediateRequest + */ + useCsrValues?: boolean; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiRootSignIntermediateRequest + */ + usePss?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiRootSignIntermediateRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiRootSignIntermediateRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiRootSignIntermediateRequest interface. + */ +export function instanceOfPkiRootSignIntermediateRequest( + value: object +): value is PkiRootSignIntermediateRequest { + return true; +} + +export function PkiRootSignIntermediateRequestFromJSON(json: any): PkiRootSignIntermediateRequest { + return PkiRootSignIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiRootSignIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRootSignIntermediateRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + csr: json['csr'] == null ? undefined : json['csr'], + enforceLeafNotAfterBehavior: + json['enforce_leaf_not_after_behavior'] == null ? undefined : json['enforce_leaf_not_after_behavior'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + excludedDnsDomains: json['excluded_dns_domains'] == null ? undefined : json['excluded_dns_domains'], + excludedEmailAddresses: + json['excluded_email_addresses'] == null ? undefined : json['excluded_email_addresses'], + excludedIpRanges: json['excluded_ip_ranges'] == null ? undefined : json['excluded_ip_ranges'], + excludedUriDomains: json['excluded_uri_domains'] == null ? undefined : json['excluded_uri_domains'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + maxPathLength: json['max_path_length'] == null ? undefined : json['max_path_length'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + permittedDnsDomains: json['permitted_dns_domains'] == null ? undefined : json['permitted_dns_domains'], + permittedEmailAddresses: + json['permitted_email_addresses'] == null ? undefined : json['permitted_email_addresses'], + permittedIpRanges: json['permitted_ip_ranges'] == null ? undefined : json['permitted_ip_ranges'], + permittedUriDomains: json['permitted_uri_domains'] == null ? undefined : json['permitted_uri_domains'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + skid: json['skid'] == null ? undefined : json['skid'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + useCsrValues: json['use_csr_values'] == null ? undefined : json['use_csr_values'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiRootSignIntermediateRequestToJSON(json: any): PkiRootSignIntermediateRequest { + return PkiRootSignIntermediateRequestToJSONTyped(json, false); +} + +export function PkiRootSignIntermediateRequestToJSONTyped( + value?: PkiRootSignIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + csr: value['csr'], + enforce_leaf_not_after_behavior: value['enforceLeafNotAfterBehavior'], + exclude_cn_from_sans: value['excludeCnFromSans'], + excluded_dns_domains: value['excludedDnsDomains'], + excluded_email_addresses: value['excludedEmailAddresses'], + excluded_ip_ranges: value['excludedIpRanges'], + excluded_uri_domains: value['excludedUriDomains'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_name: value['issuerName'], + issuer_ref: value['issuerRef'], + key_usage: value['keyUsage'], + locality: value['locality'], + max_path_length: value['maxPathLength'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + permitted_dns_domains: value['permittedDnsDomains'], + permitted_email_addresses: value['permittedEmailAddresses'], + permitted_ip_ranges: value['permittedIpRanges'], + permitted_uri_domains: value['permittedUriDomains'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + skid: value['skid'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_csr_values: value['useCsrValues'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiRootSignIntermediateResponse.ts b/ui/api-client/src/models/PkiRootSignIntermediateResponse.ts new file mode 100644 index 0000000000..f52cb48715 --- /dev/null +++ b/ui/api-client/src/models/PkiRootSignIntermediateResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRootSignIntermediateResponse + */ +export interface PkiRootSignIntermediateResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiRootSignIntermediateResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiRootSignIntermediateResponse + */ + certificate?: string; + /** + * Expiration Time + * @type {number} + * @memberof PkiRootSignIntermediateResponse + */ + expiration?: number; + /** + * Issuing CA + * @type {string} + * @memberof PkiRootSignIntermediateResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiRootSignIntermediateResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiRootSignIntermediateResponse interface. + */ +export function instanceOfPkiRootSignIntermediateResponse( + value: object +): value is PkiRootSignIntermediateResponse { + return true; +} + +export function PkiRootSignIntermediateResponseFromJSON(json: any): PkiRootSignIntermediateResponse { + return PkiRootSignIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiRootSignIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRootSignIntermediateResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiRootSignIntermediateResponseToJSON(json: any): PkiRootSignIntermediateResponse { + return PkiRootSignIntermediateResponseToJSONTyped(json, false); +} + +export function PkiRootSignIntermediateResponseToJSONTyped( + value?: PkiRootSignIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiRootSignSelfIssuedRequest.ts b/ui/api-client/src/models/PkiRootSignSelfIssuedRequest.ts new file mode 100644 index 0000000000..c91d0cdde7 --- /dev/null +++ b/ui/api-client/src/models/PkiRootSignSelfIssuedRequest.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRootSignSelfIssuedRequest + */ +export interface PkiRootSignSelfIssuedRequest { + /** + * PEM-format self-issued certificate to be signed. + * @type {string} + * @memberof PkiRootSignSelfIssuedRequest + */ + certificate?: string; + /** + * Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. + * @type {string} + * @memberof PkiRootSignSelfIssuedRequest + */ + issuerRef?: string; + /** + * If true, require the public key algorithm of the signer to match that of the self issued certificate. + * @type {boolean} + * @memberof PkiRootSignSelfIssuedRequest + */ + requireMatchingCertificateAlgorithms?: boolean; +} + +/** + * Check if a given object implements the PkiRootSignSelfIssuedRequest interface. + */ +export function instanceOfPkiRootSignSelfIssuedRequest(value: object): value is PkiRootSignSelfIssuedRequest { + return true; +} + +export function PkiRootSignSelfIssuedRequestFromJSON(json: any): PkiRootSignSelfIssuedRequest { + return PkiRootSignSelfIssuedRequestFromJSONTyped(json, false); +} + +export function PkiRootSignSelfIssuedRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRootSignSelfIssuedRequest { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + requireMatchingCertificateAlgorithms: + json['require_matching_certificate_algorithms'] == null + ? undefined + : json['require_matching_certificate_algorithms'], + }; +} + +export function PkiRootSignSelfIssuedRequestToJSON(json: any): PkiRootSignSelfIssuedRequest { + return PkiRootSignSelfIssuedRequestToJSONTyped(json, false); +} + +export function PkiRootSignSelfIssuedRequestToJSONTyped( + value?: PkiRootSignSelfIssuedRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + issuer_ref: value['issuerRef'], + require_matching_certificate_algorithms: value['requireMatchingCertificateAlgorithms'], + }; +} diff --git a/ui/api-client/src/models/PkiRootSignSelfIssuedResponse.ts b/ui/api-client/src/models/PkiRootSignSelfIssuedResponse.ts new file mode 100644 index 0000000000..dd1e696be2 --- /dev/null +++ b/ui/api-client/src/models/PkiRootSignSelfIssuedResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRootSignSelfIssuedResponse + */ +export interface PkiRootSignSelfIssuedResponse { + /** + * Certificate + * @type {string} + * @memberof PkiRootSignSelfIssuedResponse + */ + certificate?: string; + /** + * Issuing CA + * @type {string} + * @memberof PkiRootSignSelfIssuedResponse + */ + issuingCa?: string; +} + +/** + * Check if a given object implements the PkiRootSignSelfIssuedResponse interface. + */ +export function instanceOfPkiRootSignSelfIssuedResponse( + value: object +): value is PkiRootSignSelfIssuedResponse { + return true; +} + +export function PkiRootSignSelfIssuedResponseFromJSON(json: any): PkiRootSignSelfIssuedResponse { + return PkiRootSignSelfIssuedResponseFromJSONTyped(json, false); +} + +export function PkiRootSignSelfIssuedResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRootSignSelfIssuedResponse { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + }; +} + +export function PkiRootSignSelfIssuedResponseToJSON(json: any): PkiRootSignSelfIssuedResponse { + return PkiRootSignSelfIssuedResponseToJSONTyped(json, false); +} + +export function PkiRootSignSelfIssuedResponseToJSONTyped( + value?: PkiRootSignSelfIssuedResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + issuing_ca: value['issuingCa'], + }; +} diff --git a/ui/api-client/src/models/PkiRotateCrlResponse.ts b/ui/api-client/src/models/PkiRotateCrlResponse.ts new file mode 100644 index 0000000000..df4ff9cfc6 --- /dev/null +++ b/ui/api-client/src/models/PkiRotateCrlResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRotateCrlResponse + */ +export interface PkiRotateCrlResponse { + /** + * Whether rotation was successful + * @type {boolean} + * @memberof PkiRotateCrlResponse + */ + success?: boolean; +} + +/** + * Check if a given object implements the PkiRotateCrlResponse interface. + */ +export function instanceOfPkiRotateCrlResponse(value: object): value is PkiRotateCrlResponse { + return true; +} + +export function PkiRotateCrlResponseFromJSON(json: any): PkiRotateCrlResponse { + return PkiRotateCrlResponseFromJSONTyped(json, false); +} + +export function PkiRotateCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRotateCrlResponse { + if (json == null) { + return json; + } + return { + success: json['success'] == null ? undefined : json['success'], + }; +} + +export function PkiRotateCrlResponseToJSON(json: any): PkiRotateCrlResponse { + return PkiRotateCrlResponseToJSONTyped(json, false); +} + +export function PkiRotateCrlResponseToJSONTyped( + value?: PkiRotateCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + success: value['success'], + }; +} diff --git a/ui/api-client/src/models/PkiRotateDeltaCrlResponse.ts b/ui/api-client/src/models/PkiRotateDeltaCrlResponse.ts new file mode 100644 index 0000000000..55088cb3de --- /dev/null +++ b/ui/api-client/src/models/PkiRotateDeltaCrlResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRotateDeltaCrlResponse + */ +export interface PkiRotateDeltaCrlResponse { + /** + * Whether rotation was successful + * @type {boolean} + * @memberof PkiRotateDeltaCrlResponse + */ + success?: boolean; +} + +/** + * Check if a given object implements the PkiRotateDeltaCrlResponse interface. + */ +export function instanceOfPkiRotateDeltaCrlResponse(value: object): value is PkiRotateDeltaCrlResponse { + return true; +} + +export function PkiRotateDeltaCrlResponseFromJSON(json: any): PkiRotateDeltaCrlResponse { + return PkiRotateDeltaCrlResponseFromJSONTyped(json, false); +} + +export function PkiRotateDeltaCrlResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRotateDeltaCrlResponse { + if (json == null) { + return json; + } + return { + success: json['success'] == null ? undefined : json['success'], + }; +} + +export function PkiRotateDeltaCrlResponseToJSON(json: any): PkiRotateDeltaCrlResponse { + return PkiRotateDeltaCrlResponseToJSONTyped(json, false); +} + +export function PkiRotateDeltaCrlResponseToJSONTyped( + value?: PkiRotateDeltaCrlResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + success: value['success'], + }; +} diff --git a/ui/api-client/src/models/PkiRotateRootRequest.ts b/ui/api-client/src/models/PkiRotateRootRequest.ts new file mode 100644 index 0000000000..5b22a23332 --- /dev/null +++ b/ui/api-client/src/models/PkiRotateRootRequest.ts @@ -0,0 +1,395 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRotateRootRequest + */ +export interface PkiRotateRootRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. May contain both DNS names and email addresses. + * @type {string} + * @memberof PkiRotateRootRequest + */ + altNames?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If not specified when signing, the common name will be taken from the CSR; other names must still be specified in alt_names or ip_sans. + * @type {string} + * @memberof PkiRotateRootRequest + */ + commonName?: string; + /** + * If set, Country will be set to this value. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + country?: Array; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiRotateRootRequest + */ + excludeCnFromSans?: boolean; + /** + * Domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRotateRootRequest + */ + excludedDnsDomains?: Array; + /** + * Email addresses for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRotateRootRequest + */ + excludedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + excludedIpRanges?: Array; + /** + * URI domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRotateRootRequest + */ + excludedUriDomains?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiRotateRootRequest + */ + format?: PkiRotateRootRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiRotateRootRequest + */ + ipSans?: Array; + /** + * Provide a name to the generated or existing issuer, the name must be unique across all issuers and not be the reserved value 'default' + * @type {string} + * @memberof PkiRotateRootRequest + */ + issuerName?: string; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, 4096 or 8192; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiRotateRootRequest + */ + keyBits?: number; + /** + * Provide a name to the generated or existing key, the name must be unique across all keys and not be the reserved value 'default' + * @type {string} + * @memberof PkiRotateRootRequest + */ + keyName?: string; + /** + * Reference to a existing key; either "default" for the configured default key, an identifier or the name assigned to the key. + * @type {string} + * @memberof PkiRotateRootRequest + */ + keyRef?: string; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiRotateRootRequest + */ + keyType?: PkiRotateRootRequestKeyTypeEnum; + /** + * This list of key usages (not extended key usages) will be added to the existing set of key usages, CRL,CertSign, on the generated certificate. Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To use the issuer for CMPv2, DigitalSignature must be set. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + locality?: Array; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_name is required. Ignored for other types. + * @type {string} + * @memberof PkiRotateRootRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use when the exported type is kms. When kms type is the key type, this field or managed_key_id is required. Ignored for other types. + * @type {string} + * @memberof PkiRotateRootRequest + */ + managedKeyName?: string; + /** + * The maximum allowable path length + * @type {number} + * @memberof PkiRotateRootRequest + */ + maxPathLength?: number; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiRotateRootRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiRotateRootRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + organization?: Array; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + otherSans?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + ou?: Array; + /** + * Domains for which this certificate is allowed to sign or issue child certificates. If set, all DNS names (subject and alt) on child certs must be exact matches or subsets of the given domains (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRotateRootRequest + */ + permittedDnsDomains?: Array; + /** + * Email addresses for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRotateRootRequest + */ + permittedEmailAddresses?: Array; + /** + * IP ranges for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + permittedIpRanges?: Array; + /** + * URI domains for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). + * @type {Array} + * @memberof PkiRotateRootRequest + */ + permittedUriDomains?: Array; + /** + * If set, Postal Code will be set to this value. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + postalCode?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiRotateRootRequest + */ + privateKeyFormat?: PkiRotateRootRequestPrivateKeyFormatEnum; + /** + * If set, Province will be set to this value. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + province?: Array; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiRotateRootRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiRotateRootRequest + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + streetAddress?: Array; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the mount max TTL. Note: this only has an effect when generating a CA cert or signing a CA cert, not when generating a CSR for an intermediate CA. + * @type {string} + * @memberof PkiRotateRootRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiRotateRootRequest + */ + uriSans?: Array; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiRotateRootRequest + */ + usePss?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiRotateRootRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiRotateRootRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiRotateRootRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiRotateRootRequest interface. + */ +export function instanceOfPkiRotateRootRequest(value: object): value is PkiRotateRootRequest { + return true; +} + +export function PkiRotateRootRequestFromJSON(json: any): PkiRotateRootRequest { + return PkiRotateRootRequestFromJSONTyped(json, false); +} + +export function PkiRotateRootRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRotateRootRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + country: json['country'] == null ? undefined : json['country'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + excludedDnsDomains: json['excluded_dns_domains'] == null ? undefined : json['excluded_dns_domains'], + excludedEmailAddresses: + json['excluded_email_addresses'] == null ? undefined : json['excluded_email_addresses'], + excludedIpRanges: json['excluded_ip_ranges'] == null ? undefined : json['excluded_ip_ranges'], + excludedUriDomains: json['excluded_uri_domains'] == null ? undefined : json['excluded_uri_domains'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyRef: json['key_ref'] == null ? undefined : json['key_ref'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + maxPathLength: json['max_path_length'] == null ? undefined : json['max_path_length'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + ou: json['ou'] == null ? undefined : json['ou'], + permittedDnsDomains: json['permitted_dns_domains'] == null ? undefined : json['permitted_dns_domains'], + permittedEmailAddresses: + json['permitted_email_addresses'] == null ? undefined : json['permitted_email_addresses'], + permittedIpRanges: json['permitted_ip_ranges'] == null ? undefined : json['permitted_ip_ranges'], + permittedUriDomains: json['permitted_uri_domains'] == null ? undefined : json['permitted_uri_domains'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + province: json['province'] == null ? undefined : json['province'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiRotateRootRequestToJSON(json: any): PkiRotateRootRequest { + return PkiRotateRootRequestToJSONTyped(json, false); +} + +export function PkiRotateRootRequestToJSONTyped( + value?: PkiRotateRootRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + common_name: value['commonName'], + country: value['country'], + exclude_cn_from_sans: value['excludeCnFromSans'], + excluded_dns_domains: value['excludedDnsDomains'], + excluded_email_addresses: value['excludedEmailAddresses'], + excluded_ip_ranges: value['excludedIpRanges'], + excluded_uri_domains: value['excludedUriDomains'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_name: value['issuerName'], + key_bits: value['keyBits'], + key_name: value['keyName'], + key_ref: value['keyRef'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + max_path_length: value['maxPathLength'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + other_sans: value['otherSans'], + ou: value['ou'], + permitted_dns_domains: value['permittedDnsDomains'], + permitted_email_addresses: value['permittedEmailAddresses'], + permitted_ip_ranges: value['permittedIpRanges'], + permitted_uri_domains: value['permittedUriDomains'], + postal_code: value['postalCode'], + private_key_format: value['privateKeyFormat'], + province: value['province'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiRotateRootResponse.ts b/ui/api-client/src/models/PkiRotateRootResponse.ts new file mode 100644 index 0000000000..744be6d700 --- /dev/null +++ b/ui/api-client/src/models/PkiRotateRootResponse.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiRotateRootResponse + */ +export interface PkiRotateRootResponse { + /** + * The generated self-signed CA certificate. + * @type {string} + * @memberof PkiRotateRootResponse + */ + certificate?: string; + /** + * The expiration of the given issuer. + * @type {number} + * @memberof PkiRotateRootResponse + */ + expiration?: number; + /** + * The ID of the issuer + * @type {string} + * @memberof PkiRotateRootResponse + */ + issuerId?: string; + /** + * The name of the issuer. + * @type {string} + * @memberof PkiRotateRootResponse + */ + issuerName?: string; + /** + * The issuing certificate authority. + * @type {string} + * @memberof PkiRotateRootResponse + */ + issuingCa?: string; + /** + * The ID of the key. + * @type {string} + * @memberof PkiRotateRootResponse + */ + keyId?: string; + /** + * The key name if given. + * @type {string} + * @memberof PkiRotateRootResponse + */ + keyName?: string; + /** + * The private key if exported was specified. + * @type {string} + * @memberof PkiRotateRootResponse + */ + privateKey?: string; + /** + * The requested Subject's named serial number. + * @type {string} + * @memberof PkiRotateRootResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiRotateRootResponse interface. + */ +export function instanceOfPkiRotateRootResponse(value: object): value is PkiRotateRootResponse { + return true; +} + +export function PkiRotateRootResponseFromJSON(json: any): PkiRotateRootResponse { + return PkiRotateRootResponseFromJSONTyped(json, false); +} + +export function PkiRotateRootResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiRotateRootResponse { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiRotateRootResponseToJSON(json: any): PkiRotateRootResponse { + return PkiRotateRootResponseToJSONTyped(json, false); +} + +export function PkiRotateRootResponseToJSONTyped( + value?: PkiRotateRootResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + expiration: value['expiration'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + issuing_ca: value['issuingCa'], + key_id: value['keyId'], + key_name: value['keyName'], + private_key: value['privateKey'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiSetSignedIntermediateRequest.ts b/ui/api-client/src/models/PkiSetSignedIntermediateRequest.ts new file mode 100644 index 0000000000..b1f329b4f7 --- /dev/null +++ b/ui/api-client/src/models/PkiSetSignedIntermediateRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSetSignedIntermediateRequest + */ +export interface PkiSetSignedIntermediateRequest { + /** + * PEM-format certificate. This must be a CA certificate with a public key matching the previously-generated key from the generation endpoint. Additional parent CAs may be optionally appended to the bundle. + * @type {string} + * @memberof PkiSetSignedIntermediateRequest + */ + certificate?: string; +} + +/** + * Check if a given object implements the PkiSetSignedIntermediateRequest interface. + */ +export function instanceOfPkiSetSignedIntermediateRequest( + value: object +): value is PkiSetSignedIntermediateRequest { + return true; +} + +export function PkiSetSignedIntermediateRequestFromJSON(json: any): PkiSetSignedIntermediateRequest { + return PkiSetSignedIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiSetSignedIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSetSignedIntermediateRequest { + if (json == null) { + return json; + } + return { + certificate: json['certificate'] == null ? undefined : json['certificate'], + }; +} + +export function PkiSetSignedIntermediateRequestToJSON(json: any): PkiSetSignedIntermediateRequest { + return PkiSetSignedIntermediateRequestToJSONTyped(json, false); +} + +export function PkiSetSignedIntermediateRequestToJSONTyped( + value?: PkiSetSignedIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate: value['certificate'], + }; +} diff --git a/ui/api-client/src/models/PkiSetSignedIntermediateResponse.ts b/ui/api-client/src/models/PkiSetSignedIntermediateResponse.ts new file mode 100644 index 0000000000..14d4dd9fe1 --- /dev/null +++ b/ui/api-client/src/models/PkiSetSignedIntermediateResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSetSignedIntermediateResponse + */ +export interface PkiSetSignedIntermediateResponse { + /** + * Existing issuers specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiSetSignedIntermediateResponse + */ + existingIssuers?: Array; + /** + * Existing keys specified as part of the import bundle of this request + * @type {Array} + * @memberof PkiSetSignedIntermediateResponse + */ + existingKeys?: Array; + /** + * Net-new issuers imported as a part of this request + * @type {Array} + * @memberof PkiSetSignedIntermediateResponse + */ + importedIssuers?: Array; + /** + * Net-new keys imported as a part of this request + * @type {Array} + * @memberof PkiSetSignedIntermediateResponse + */ + importedKeys?: Array; + /** + * A mapping of issuer_id to key_id for all issuers included in this request + * @type {object} + * @memberof PkiSetSignedIntermediateResponse + */ + mapping?: object; +} + +/** + * Check if a given object implements the PkiSetSignedIntermediateResponse interface. + */ +export function instanceOfPkiSetSignedIntermediateResponse( + value: object +): value is PkiSetSignedIntermediateResponse { + return true; +} + +export function PkiSetSignedIntermediateResponseFromJSON(json: any): PkiSetSignedIntermediateResponse { + return PkiSetSignedIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiSetSignedIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSetSignedIntermediateResponse { + if (json == null) { + return json; + } + return { + existingIssuers: json['existing_issuers'] == null ? undefined : json['existing_issuers'], + existingKeys: json['existing_keys'] == null ? undefined : json['existing_keys'], + importedIssuers: json['imported_issuers'] == null ? undefined : json['imported_issuers'], + importedKeys: json['imported_keys'] == null ? undefined : json['imported_keys'], + mapping: json['mapping'] == null ? undefined : json['mapping'], + }; +} + +export function PkiSetSignedIntermediateResponseToJSON(json: any): PkiSetSignedIntermediateResponse { + return PkiSetSignedIntermediateResponseToJSONTyped(json, false); +} + +export function PkiSetSignedIntermediateResponseToJSONTyped( + value?: PkiSetSignedIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + existing_issuers: value['existingIssuers'], + existing_keys: value['existingKeys'], + imported_issuers: value['importedIssuers'], + imported_keys: value['importedKeys'], + mapping: value['mapping'], + }; +} diff --git a/ui/api-client/src/models/PkiSignVerbatimRequest.ts b/ui/api-client/src/models/PkiSignVerbatimRequest.ts new file mode 100644 index 0000000000..a20c0ae374 --- /dev/null +++ b/ui/api-client/src/models/PkiSignVerbatimRequest.ts @@ -0,0 +1,249 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSignVerbatimRequest + */ +export interface PkiSignVerbatimRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + commonName?: string; + /** + * PEM-format CSR to be signed. Values will be taken verbatim from the CSR, except for basic constraints. + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + csr?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiSignVerbatimRequest + */ + excludeCnFromSans?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiSignVerbatimRequest + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiSignVerbatimRequest + */ + extKeyUsageOids?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + format?: PkiSignVerbatimRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiSignVerbatimRequest + */ + ipSans?: Array; + /** + * Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + issuerRef?: string; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiSignVerbatimRequest + */ + keyUsage?: Array; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiSignVerbatimRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + privateKeyFormat?: PkiSignVerbatimRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiSignVerbatimRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiSignVerbatimRequest + */ + signatureBits?: number; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiSignVerbatimRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiSignVerbatimRequest + */ + uriSans?: Array; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiSignVerbatimRequest + */ + usePss?: boolean; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiSignVerbatimRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiSignVerbatimRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiSignVerbatimRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiSignVerbatimRequest interface. + */ +export function instanceOfPkiSignVerbatimRequest(value: object): value is PkiSignVerbatimRequest { + return true; +} + +export function PkiSignVerbatimRequestFromJSON(json: any): PkiSignVerbatimRequest { + return PkiSignVerbatimRequestFromJSONTyped(json, false); +} + +export function PkiSignVerbatimRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSignVerbatimRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + csr: json['csr'] == null ? undefined : json['csr'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiSignVerbatimRequestToJSON(json: any): PkiSignVerbatimRequest { + return PkiSignVerbatimRequestToJSONTyped(json, false); +} + +export function PkiSignVerbatimRequestToJSONTyped( + value?: PkiSignVerbatimRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + csr: value['csr'], + exclude_cn_from_sans: value['excludeCnFromSans'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_ref: value['issuerRef'], + key_usage: value['keyUsage'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_pss: value['usePss'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiSignVerbatimResponse.ts b/ui/api-client/src/models/PkiSignVerbatimResponse.ts new file mode 100644 index 0000000000..05eaaa150b --- /dev/null +++ b/ui/api-client/src/models/PkiSignVerbatimResponse.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSignVerbatimResponse + */ +export interface PkiSignVerbatimResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiSignVerbatimResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiSignVerbatimResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiSignVerbatimResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiSignVerbatimResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiSignVerbatimResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiSignVerbatimResponse interface. + */ +export function instanceOfPkiSignVerbatimResponse(value: object): value is PkiSignVerbatimResponse { + return true; +} + +export function PkiSignVerbatimResponseFromJSON(json: any): PkiSignVerbatimResponse { + return PkiSignVerbatimResponseFromJSONTyped(json, false); +} + +export function PkiSignVerbatimResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSignVerbatimResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiSignVerbatimResponseToJSON(json: any): PkiSignVerbatimResponse { + return PkiSignVerbatimResponseToJSONTyped(json, false); +} + +export function PkiSignVerbatimResponseToJSONTyped( + value?: PkiSignVerbatimResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiSignVerbatimWithRoleRequest.ts b/ui/api-client/src/models/PkiSignVerbatimWithRoleRequest.ts new file mode 100644 index 0000000000..1ed66227e2 --- /dev/null +++ b/ui/api-client/src/models/PkiSignVerbatimWithRoleRequest.ts @@ -0,0 +1,251 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSignVerbatimWithRoleRequest + */ +export interface PkiSignVerbatimWithRoleRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + commonName?: string; + /** + * PEM-format CSR to be signed. Values will be taken verbatim from the CSR, except for basic constraints. + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + csr?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiSignVerbatimWithRoleRequest + */ + excludeCnFromSans?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiSignVerbatimWithRoleRequest + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiSignVerbatimWithRoleRequest + */ + extKeyUsageOids?: Array; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + format?: PkiSignVerbatimWithRoleRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiSignVerbatimWithRoleRequest + */ + ipSans?: Array; + /** + * Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + issuerRef?: string; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. + * @type {Array} + * @memberof PkiSignVerbatimWithRoleRequest + */ + keyUsage?: Array; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiSignVerbatimWithRoleRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + privateKeyFormat?: PkiSignVerbatimWithRoleRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiSignVerbatimWithRoleRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + serialNumber?: string; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiSignVerbatimWithRoleRequest + */ + signatureBits?: number; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiSignVerbatimWithRoleRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiSignVerbatimWithRoleRequest + */ + uriSans?: Array; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiSignVerbatimWithRoleRequest + */ + usePss?: boolean; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiSignVerbatimWithRoleRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiSignVerbatimWithRoleRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiSignVerbatimWithRoleRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiSignVerbatimWithRoleRequest interface. + */ +export function instanceOfPkiSignVerbatimWithRoleRequest( + value: object +): value is PkiSignVerbatimWithRoleRequest { + return true; +} + +export function PkiSignVerbatimWithRoleRequestFromJSON(json: any): PkiSignVerbatimWithRoleRequest { + return PkiSignVerbatimWithRoleRequestFromJSONTyped(json, false); +} + +export function PkiSignVerbatimWithRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSignVerbatimWithRoleRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + csr: json['csr'] == null ? undefined : json['csr'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiSignVerbatimWithRoleRequestToJSON(json: any): PkiSignVerbatimWithRoleRequest { + return PkiSignVerbatimWithRoleRequestToJSONTyped(json, false); +} + +export function PkiSignVerbatimWithRoleRequestToJSONTyped( + value?: PkiSignVerbatimWithRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + csr: value['csr'], + exclude_cn_from_sans: value['excludeCnFromSans'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_ref: value['issuerRef'], + key_usage: value['keyUsage'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + signature_bits: value['signatureBits'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + use_pss: value['usePss'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiSignVerbatimWithRoleResponse.ts b/ui/api-client/src/models/PkiSignVerbatimWithRoleResponse.ts new file mode 100644 index 0000000000..0b2d81e876 --- /dev/null +++ b/ui/api-client/src/models/PkiSignVerbatimWithRoleResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSignVerbatimWithRoleResponse + */ +export interface PkiSignVerbatimWithRoleResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiSignVerbatimWithRoleResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiSignVerbatimWithRoleResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiSignVerbatimWithRoleResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiSignVerbatimWithRoleResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiSignVerbatimWithRoleResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiSignVerbatimWithRoleResponse interface. + */ +export function instanceOfPkiSignVerbatimWithRoleResponse( + value: object +): value is PkiSignVerbatimWithRoleResponse { + return true; +} + +export function PkiSignVerbatimWithRoleResponseFromJSON(json: any): PkiSignVerbatimWithRoleResponse { + return PkiSignVerbatimWithRoleResponseFromJSONTyped(json, false); +} + +export function PkiSignVerbatimWithRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSignVerbatimWithRoleResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiSignVerbatimWithRoleResponseToJSON(json: any): PkiSignVerbatimWithRoleResponse { + return PkiSignVerbatimWithRoleResponseToJSONTyped(json, false); +} + +export function PkiSignVerbatimWithRoleResponseToJSONTyped( + value?: PkiSignVerbatimWithRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiSignWithRoleRequest.ts b/ui/api-client/src/models/PkiSignWithRoleRequest.ts new file mode 100644 index 0000000000..6f33e3ae9c --- /dev/null +++ b/ui/api-client/src/models/PkiSignWithRoleRequest.ts @@ -0,0 +1,209 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSignWithRoleRequest + */ +export interface PkiSignWithRoleRequest { + /** + * The requested Subject Alternative Names, if any, in a comma-delimited list. If email protection is enabled for the role, this may contain email addresses. + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + altNames?: string; + /** + * User supplied metadata to store associated with this certificate's serial number, base64 encoded + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + certMetadata?: string; + /** + * The requested common name; if you want more than one, specify the alternative names in the alt_names map. If email protection is enabled in the role, this may be an email address. + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + commonName?: string; + /** + * PEM-format CSR to be signed. + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + csr?: string; + /** + * If true, the Common Name will not be included in DNS or Email Subject Alternate Names. Defaults to false (CN is included). + * @type {boolean} + * @memberof PkiSignWithRoleRequest + */ + excludeCnFromSans?: boolean; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + format?: PkiSignWithRoleRequestFormatEnum; + /** + * The requested IP SANs, if any, in a comma-delimited list + * @type {Array} + * @memberof PkiSignWithRoleRequest + */ + ipSans?: Array; + /** + * Reference to a existing issuer; either "default" for the configured default issuer, an identifier or the name assigned to the issuer. + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + issuerRef?: string; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + notAfter?: string; + /** + * Requested other SANs, in an array with the format ;UTF8: for each entry. + * @type {Array} + * @memberof PkiSignWithRoleRequest + */ + otherSans?: Array; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + privateKeyFormat?: PkiSignWithRoleRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiSignWithRoleRequest + */ + removeRootsFromChain?: boolean; + /** + * The Subject's requested serial number, if any. See RFC 4519 Section 2.31 'serialNumber' for a description of this field. If you want more than one, specify alternative names in the alt_names map using OID 2.5.4.5. This has no impact on the final certificate's Serial Number field. + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + serialNumber?: string; + /** + * The requested Time To Live for the certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be larger than the role max TTL. + * @type {string} + * @memberof PkiSignWithRoleRequest + */ + ttl?: string; + /** + * The requested URI SANs, if any, in a comma-delimited list. + * @type {Array} + * @memberof PkiSignWithRoleRequest + */ + uriSans?: Array; + /** + * The requested user_ids value to place in the subject, if any, in a comma-delimited list. Restricted by allowed_user_ids. Any values are added with OID 0.9.2342.19200300.100.1.1. + * @type {Array} + * @memberof PkiSignWithRoleRequest + */ + userIds?: Array; +} + +/** + * @export + * @enum {string} + */ +export enum PkiSignWithRoleRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiSignWithRoleRequestPrivateKeyFormatEnum { + EMPTY = '', + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiSignWithRoleRequest interface. + */ +export function instanceOfPkiSignWithRoleRequest(value: object): value is PkiSignWithRoleRequest { + return true; +} + +export function PkiSignWithRoleRequestFromJSON(json: any): PkiSignWithRoleRequest { + return PkiSignWithRoleRequestFromJSONTyped(json, false); +} + +export function PkiSignWithRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSignWithRoleRequest { + if (json == null) { + return json; + } + return { + altNames: json['alt_names'] == null ? undefined : json['alt_names'], + certMetadata: json['cert_metadata'] == null ? undefined : json['cert_metadata'], + commonName: json['common_name'] == null ? undefined : json['common_name'], + csr: json['csr'] == null ? undefined : json['csr'], + excludeCnFromSans: json['exclude_cn_from_sans'] == null ? undefined : json['exclude_cn_from_sans'], + format: json['format'] == null ? undefined : json['format'], + ipSans: json['ip_sans'] == null ? undefined : json['ip_sans'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + otherSans: json['other_sans'] == null ? undefined : json['other_sans'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + uriSans: json['uri_sans'] == null ? undefined : json['uri_sans'], + userIds: json['user_ids'] == null ? undefined : json['user_ids'], + }; +} + +export function PkiSignWithRoleRequestToJSON(json: any): PkiSignWithRoleRequest { + return PkiSignWithRoleRequestToJSONTyped(json, false); +} + +export function PkiSignWithRoleRequestToJSONTyped( + value?: PkiSignWithRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + alt_names: value['altNames'], + cert_metadata: value['certMetadata'], + common_name: value['commonName'], + csr: value['csr'], + exclude_cn_from_sans: value['excludeCnFromSans'], + format: value['format'], + ip_sans: value['ipSans'], + issuer_ref: value['issuerRef'], + not_after: value['notAfter'], + other_sans: value['otherSans'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + serial_number: value['serialNumber'], + ttl: value['ttl'], + uri_sans: value['uriSans'], + user_ids: value['userIds'], + }; +} diff --git a/ui/api-client/src/models/PkiSignWithRoleResponse.ts b/ui/api-client/src/models/PkiSignWithRoleResponse.ts new file mode 100644 index 0000000000..420d909508 --- /dev/null +++ b/ui/api-client/src/models/PkiSignWithRoleResponse.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiSignWithRoleResponse + */ +export interface PkiSignWithRoleResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiSignWithRoleResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiSignWithRoleResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiSignWithRoleResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiSignWithRoleResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiSignWithRoleResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiSignWithRoleResponse interface. + */ +export function instanceOfPkiSignWithRoleResponse(value: object): value is PkiSignWithRoleResponse { + return true; +} + +export function PkiSignWithRoleResponseFromJSON(json: any): PkiSignWithRoleResponse { + return PkiSignWithRoleResponseFromJSONTyped(json, false); +} + +export function PkiSignWithRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiSignWithRoleResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiSignWithRoleResponseToJSON(json: any): PkiSignWithRoleResponse { + return PkiSignWithRoleResponseToJSONTyped(json, false); +} + +export function PkiSignWithRoleResponseToJSONTyped( + value?: PkiSignWithRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiTidyCancelResponse.ts b/ui/api-client/src/models/PkiTidyCancelResponse.ts new file mode 100644 index 0000000000..843cb649cd --- /dev/null +++ b/ui/api-client/src/models/PkiTidyCancelResponse.ts @@ -0,0 +1,361 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiTidyCancelResponse + */ +export interface PkiTidyCancelResponse { + /** + * The number of revoked acme accounts removed + * @type {number} + * @memberof PkiTidyCancelResponse + */ + acmeAccountDeletedCount?: number; + /** + * The number of unused acme accounts revoked + * @type {number} + * @memberof PkiTidyCancelResponse + */ + acmeAccountRevokedCount?: number; + /** + * Safety buffer after creation after which accounts lacking orders are revoked + * @type {number} + * @memberof PkiTidyCancelResponse + */ + acmeAccountSafetyBuffer?: number; + /** + * The number of expired, unused acme orders removed + * @type {number} + * @memberof PkiTidyCancelResponse + */ + acmeOrdersDeletedCount?: number; + /** + * The number of metadata entries removed + * @type {number} + * @memberof PkiTidyCancelResponse + */ + certMetadataDeletedCount?: number; + /** + * The number of certificate storage entries deleted + * @type {number} + * @memberof PkiTidyCancelResponse + */ + certStoreDeletedCount?: number; + /** + * The number of CMPv2 nonces removed + * @type {number} + * @memberof PkiTidyCancelResponse + */ + cmpv2NonceDeletedCount?: number; + /** + * + * @type {number} + * @memberof PkiTidyCancelResponse + */ + crossRevokedCertDeletedCount?: number; + /** + * The number of revoked certificate entries deleted + * @type {number} + * @memberof PkiTidyCancelResponse + */ + currentCertStoreCount?: number; + /** + * The number of revoked certificate entries deleted + * @type {number} + * @memberof PkiTidyCancelResponse + */ + currentRevokedCertCount?: number; + /** + * The error message + * @type {string} + * @memberof PkiTidyCancelResponse + */ + error?: string; + /** + * + * @type {string} + * @memberof PkiTidyCancelResponse + */ + internalBackendUuid?: string; + /** + * Issuer safety buffer + * @type {number} + * @memberof PkiTidyCancelResponse + */ + issuerSafetyBuffer?: number; + /** + * Time the last auto-tidy operation finished + * @type {string} + * @memberof PkiTidyCancelResponse + */ + lastAutoTidyFinished?: string; + /** + * Message of the operation + * @type {string} + * @memberof PkiTidyCancelResponse + */ + message?: string; + /** + * + * @type {number} + * @memberof PkiTidyCancelResponse + */ + missingIssuerCertCount?: number; + /** + * Duration to pause between tidying certificates + * @type {string} + * @memberof PkiTidyCancelResponse + */ + pauseDuration?: string; + /** + * + * @type {number} + * @memberof PkiTidyCancelResponse + */ + revocationQueueDeletedCount?: number; + /** + * Revocation queue safety buffer + * @type {number} + * @memberof PkiTidyCancelResponse + */ + revocationQueueSafetyBuffer?: number; + /** + * The number of revoked certificate entries deleted + * @type {number} + * @memberof PkiTidyCancelResponse + */ + revokedCertDeletedCount?: number; + /** + * Safety buffer time duration + * @type {number} + * @memberof PkiTidyCancelResponse + */ + safetyBuffer?: number; + /** + * One of Inactive, Running, Finished, or Error + * @type {string} + * @memberof PkiTidyCancelResponse + */ + state?: string; + /** + * Tidy Unused Acme Accounts, and Orders + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyAcme?: boolean; + /** + * Tidy cert metadata + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyCertMetadata?: boolean; + /** + * Tidy certificate store + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyCertStore?: boolean; + /** + * Tidy CMPv2 nonce store + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyCmpv2NonceStore?: boolean; + /** + * Tidy the cross-cluster revoked certificate store + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyCrossClusterRevokedCerts?: boolean; + /** + * Tidy expired issuers + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyExpiredIssuers?: boolean; + /** + * + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyMoveLegacyCaBundle?: boolean; + /** + * + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyRevocationQueue?: boolean; + /** + * Tidy revoked certificate issuer associations + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyRevokedCertIssuerAssociations?: boolean; + /** + * Tidy revoked certificates + * @type {boolean} + * @memberof PkiTidyCancelResponse + */ + tidyRevokedCerts?: boolean; + /** + * Time the operation finished + * @type {string} + * @memberof PkiTidyCancelResponse + */ + timeFinished?: string; + /** + * Time the operation started + * @type {string} + * @memberof PkiTidyCancelResponse + */ + timeStarted?: string; + /** + * Total number of acme accounts iterated over + * @type {number} + * @memberof PkiTidyCancelResponse + */ + totalAcmeAccountCount?: number; +} + +/** + * Check if a given object implements the PkiTidyCancelResponse interface. + */ +export function instanceOfPkiTidyCancelResponse(value: object): value is PkiTidyCancelResponse { + return true; +} + +export function PkiTidyCancelResponseFromJSON(json: any): PkiTidyCancelResponse { + return PkiTidyCancelResponseFromJSONTyped(json, false); +} + +export function PkiTidyCancelResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiTidyCancelResponse { + if (json == null) { + return json; + } + return { + acmeAccountDeletedCount: + json['acme_account_deleted_count'] == null ? undefined : json['acme_account_deleted_count'], + acmeAccountRevokedCount: + json['acme_account_revoked_count'] == null ? undefined : json['acme_account_revoked_count'], + acmeAccountSafetyBuffer: + json['acme_account_safety_buffer'] == null ? undefined : json['acme_account_safety_buffer'], + acmeOrdersDeletedCount: + json['acme_orders_deleted_count'] == null ? undefined : json['acme_orders_deleted_count'], + certMetadataDeletedCount: + json['cert_metadata_deleted_count'] == null ? undefined : json['cert_metadata_deleted_count'], + certStoreDeletedCount: + json['cert_store_deleted_count'] == null ? undefined : json['cert_store_deleted_count'], + cmpv2NonceDeletedCount: + json['cmpv2_nonce_deleted_count'] == null ? undefined : json['cmpv2_nonce_deleted_count'], + crossRevokedCertDeletedCount: + json['cross_revoked_cert_deleted_count'] == null ? undefined : json['cross_revoked_cert_deleted_count'], + currentCertStoreCount: + json['current_cert_store_count'] == null ? undefined : json['current_cert_store_count'], + currentRevokedCertCount: + json['current_revoked_cert_count'] == null ? undefined : json['current_revoked_cert_count'], + error: json['error'] == null ? undefined : json['error'], + internalBackendUuid: json['internal_backend_uuid'] == null ? undefined : json['internal_backend_uuid'], + issuerSafetyBuffer: json['issuer_safety_buffer'] == null ? undefined : json['issuer_safety_buffer'], + lastAutoTidyFinished: + json['last_auto_tidy_finished'] == null ? undefined : json['last_auto_tidy_finished'], + message: json['message'] == null ? undefined : json['message'], + missingIssuerCertCount: + json['missing_issuer_cert_count'] == null ? undefined : json['missing_issuer_cert_count'], + pauseDuration: json['pause_duration'] == null ? undefined : json['pause_duration'], + revocationQueueDeletedCount: + json['revocation_queue_deleted_count'] == null ? undefined : json['revocation_queue_deleted_count'], + revocationQueueSafetyBuffer: + json['revocation_queue_safety_buffer'] == null ? undefined : json['revocation_queue_safety_buffer'], + revokedCertDeletedCount: + json['revoked_cert_deleted_count'] == null ? undefined : json['revoked_cert_deleted_count'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + state: json['state'] == null ? undefined : json['state'], + tidyAcme: json['tidy_acme'] == null ? undefined : json['tidy_acme'], + tidyCertMetadata: json['tidy_cert_metadata'] == null ? undefined : json['tidy_cert_metadata'], + tidyCertStore: json['tidy_cert_store'] == null ? undefined : json['tidy_cert_store'], + tidyCmpv2NonceStore: json['tidy_cmpv2_nonce_store'] == null ? undefined : json['tidy_cmpv2_nonce_store'], + tidyCrossClusterRevokedCerts: + json['tidy_cross_cluster_revoked_certs'] == null ? undefined : json['tidy_cross_cluster_revoked_certs'], + tidyExpiredIssuers: json['tidy_expired_issuers'] == null ? undefined : json['tidy_expired_issuers'], + tidyMoveLegacyCaBundle: + json['tidy_move_legacy_ca_bundle'] == null ? undefined : json['tidy_move_legacy_ca_bundle'], + tidyRevocationQueue: json['tidy_revocation_queue'] == null ? undefined : json['tidy_revocation_queue'], + tidyRevokedCertIssuerAssociations: + json['tidy_revoked_cert_issuer_associations'] == null + ? undefined + : json['tidy_revoked_cert_issuer_associations'], + tidyRevokedCerts: json['tidy_revoked_certs'] == null ? undefined : json['tidy_revoked_certs'], + timeFinished: json['time_finished'] == null ? undefined : json['time_finished'], + timeStarted: json['time_started'] == null ? undefined : json['time_started'], + totalAcmeAccountCount: + json['total_acme_account_count'] == null ? undefined : json['total_acme_account_count'], + }; +} + +export function PkiTidyCancelResponseToJSON(json: any): PkiTidyCancelResponse { + return PkiTidyCancelResponseToJSONTyped(json, false); +} + +export function PkiTidyCancelResponseToJSONTyped( + value?: PkiTidyCancelResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_account_deleted_count: value['acmeAccountDeletedCount'], + acme_account_revoked_count: value['acmeAccountRevokedCount'], + acme_account_safety_buffer: value['acmeAccountSafetyBuffer'], + acme_orders_deleted_count: value['acmeOrdersDeletedCount'], + cert_metadata_deleted_count: value['certMetadataDeletedCount'], + cert_store_deleted_count: value['certStoreDeletedCount'], + cmpv2_nonce_deleted_count: value['cmpv2NonceDeletedCount'], + cross_revoked_cert_deleted_count: value['crossRevokedCertDeletedCount'], + current_cert_store_count: value['currentCertStoreCount'], + current_revoked_cert_count: value['currentRevokedCertCount'], + error: value['error'], + internal_backend_uuid: value['internalBackendUuid'], + issuer_safety_buffer: value['issuerSafetyBuffer'], + last_auto_tidy_finished: value['lastAutoTidyFinished'], + message: value['message'], + missing_issuer_cert_count: value['missingIssuerCertCount'], + pause_duration: value['pauseDuration'], + revocation_queue_deleted_count: value['revocationQueueDeletedCount'], + revocation_queue_safety_buffer: value['revocationQueueSafetyBuffer'], + revoked_cert_deleted_count: value['revokedCertDeletedCount'], + safety_buffer: value['safetyBuffer'], + state: value['state'], + tidy_acme: value['tidyAcme'], + tidy_cert_metadata: value['tidyCertMetadata'], + tidy_cert_store: value['tidyCertStore'], + tidy_cmpv2_nonce_store: value['tidyCmpv2NonceStore'], + tidy_cross_cluster_revoked_certs: value['tidyCrossClusterRevokedCerts'], + tidy_expired_issuers: value['tidyExpiredIssuers'], + tidy_move_legacy_ca_bundle: value['tidyMoveLegacyCaBundle'], + tidy_revocation_queue: value['tidyRevocationQueue'], + tidy_revoked_cert_issuer_associations: value['tidyRevokedCertIssuerAssociations'], + tidy_revoked_certs: value['tidyRevokedCerts'], + time_finished: value['timeFinished'], + time_started: value['timeStarted'], + total_acme_account_count: value['totalAcmeAccountCount'], + }; +} diff --git a/ui/api-client/src/models/PkiTidyRequest.ts b/ui/api-client/src/models/PkiTidyRequest.ts new file mode 100644 index 0000000000..5fd3b258b4 --- /dev/null +++ b/ui/api-client/src/models/PkiTidyRequest.ts @@ -0,0 +1,192 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiTidyRequest + */ +export interface PkiTidyRequest { + /** + * The amount of time that must pass after creation that an account with no orders is marked revoked, and the amount of time after being marked revoked or deactivated. + * @type {string} + * @memberof PkiTidyRequest + */ + acmeAccountSafetyBuffer?: string; + /** + * The amount of extra time that must have passed beyond issuer's expiration before it is removed from the backend storage. Defaults to 8760 hours (1 year). + * @type {string} + * @memberof PkiTidyRequest + */ + issuerSafetyBuffer?: string; + /** + * The amount of time to wait between processing certificates. This allows operators to change the execution profile of tidy to take consume less resources by slowing down how long it takes to run. Note that the entire list of certificates will be stored in memory during the entire tidy operation, but resources to read/process/update existing entries will be spread out over a greater period of time. By default this is zero seconds. + * @type {string} + * @memberof PkiTidyRequest + */ + pauseDuration?: string; + /** + * The amount of time that must pass from the cross-cluster revocation request being initiated to when it will be slated for removal. Setting this too low may remove valid revocation requests before the owning cluster has a chance to process them, especially if the cluster is offline. + * @type {string} + * @memberof PkiTidyRequest + */ + revocationQueueSafetyBuffer?: string; + /** + * The amount of extra time that must have passed beyond certificate expiration before it is removed from the backend storage and/or revocation list. Defaults to 72 hours. + * @type {string} + * @memberof PkiTidyRequest + */ + safetyBuffer?: string; + /** + * Set to true to enable tidying ACME accounts, orders and authorizations. ACME orders are tidied (deleted) safety_buffer after the certificate associated with them expires, or after the order and relevant authorizations have expired if no certificate was produced. Authorizations are tidied with the corresponding order. When a valid ACME Account is at least acme_account_safety_buffer old, and has no remaining orders associated with it, the account is marked as revoked. After another acme_account_safety_buffer has passed from the revocation or deactivation date, a revoked or deactivated ACME account is deleted. + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyAcme?: boolean; + /** + * Set to true to enable tidying up certificate metadata + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyCertMetadata?: boolean; + /** + * Set to true to enable tidying up the certificate store + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyCertStore?: boolean; + /** + * Set to true to enable tidying up the CMPv2 nonce store + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyCmpv2NonceStore?: boolean; + /** + * Set to true to enable tidying up the cross-cluster revoked certificate store. Only runs on the active primary node. + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyCrossClusterRevokedCerts?: boolean; + /** + * Set to true to automatically remove expired issuers past the issuer_safety_buffer. No keys will be removed as part of this operation. + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyExpiredIssuers?: boolean; + /** + * Set to true to move the legacy ca_bundle from /config/ca_bundle to /config/ca_bundle.bak. This prevents downgrades to pre-Vault 1.11 versions (as older PKI engines do not know about the new multi-issuer storage layout), but improves the performance on seal wrapped PKI mounts. This will only occur if at least issuer_safety_buffer time has occurred after the initial storage migration. This backup is saved in case of an issue in future migrations. Operators may consider removing it via sys/raw if they desire. The backup will be removed via a DELETE /root call, but note that this removes ALL issuers within the mount (and is thus not desirable in most operational scenarios). + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyMoveLegacyCaBundle?: boolean; + /** + * Deprecated; synonym for 'tidy_revoked_certs + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyRevocationList?: boolean; + /** + * Set to true to remove stale revocation queue entries that haven't been confirmed by any active cluster. Only runs on the active primary node + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyRevocationQueue?: boolean; + /** + * Set to true to validate issuer associations on revocation entries. This helps increase the performance of CRL building and OCSP responses. + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyRevokedCertIssuerAssociations?: boolean; + /** + * Set to true to expire all revoked and expired certificates, removing them both from the CRL and from storage. The CRL will be rotated if this causes any values to be removed. + * @type {boolean} + * @memberof PkiTidyRequest + */ + tidyRevokedCerts?: boolean; +} + +/** + * Check if a given object implements the PkiTidyRequest interface. + */ +export function instanceOfPkiTidyRequest(value: object): value is PkiTidyRequest { + return true; +} + +export function PkiTidyRequestFromJSON(json: any): PkiTidyRequest { + return PkiTidyRequestFromJSONTyped(json, false); +} + +export function PkiTidyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PkiTidyRequest { + if (json == null) { + return json; + } + return { + acmeAccountSafetyBuffer: + json['acme_account_safety_buffer'] == null ? undefined : json['acme_account_safety_buffer'], + issuerSafetyBuffer: json['issuer_safety_buffer'] == null ? undefined : json['issuer_safety_buffer'], + pauseDuration: json['pause_duration'] == null ? undefined : json['pause_duration'], + revocationQueueSafetyBuffer: + json['revocation_queue_safety_buffer'] == null ? undefined : json['revocation_queue_safety_buffer'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + tidyAcme: json['tidy_acme'] == null ? undefined : json['tidy_acme'], + tidyCertMetadata: json['tidy_cert_metadata'] == null ? undefined : json['tidy_cert_metadata'], + tidyCertStore: json['tidy_cert_store'] == null ? undefined : json['tidy_cert_store'], + tidyCmpv2NonceStore: json['tidy_cmpv2_nonce_store'] == null ? undefined : json['tidy_cmpv2_nonce_store'], + tidyCrossClusterRevokedCerts: + json['tidy_cross_cluster_revoked_certs'] == null ? undefined : json['tidy_cross_cluster_revoked_certs'], + tidyExpiredIssuers: json['tidy_expired_issuers'] == null ? undefined : json['tidy_expired_issuers'], + tidyMoveLegacyCaBundle: + json['tidy_move_legacy_ca_bundle'] == null ? undefined : json['tidy_move_legacy_ca_bundle'], + tidyRevocationList: json['tidy_revocation_list'] == null ? undefined : json['tidy_revocation_list'], + tidyRevocationQueue: json['tidy_revocation_queue'] == null ? undefined : json['tidy_revocation_queue'], + tidyRevokedCertIssuerAssociations: + json['tidy_revoked_cert_issuer_associations'] == null + ? undefined + : json['tidy_revoked_cert_issuer_associations'], + tidyRevokedCerts: json['tidy_revoked_certs'] == null ? undefined : json['tidy_revoked_certs'], + }; +} + +export function PkiTidyRequestToJSON(json: any): PkiTidyRequest { + return PkiTidyRequestToJSONTyped(json, false); +} + +export function PkiTidyRequestToJSONTyped( + value?: PkiTidyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_account_safety_buffer: value['acmeAccountSafetyBuffer'], + issuer_safety_buffer: value['issuerSafetyBuffer'], + pause_duration: value['pauseDuration'], + revocation_queue_safety_buffer: value['revocationQueueSafetyBuffer'], + safety_buffer: value['safetyBuffer'], + tidy_acme: value['tidyAcme'], + tidy_cert_metadata: value['tidyCertMetadata'], + tidy_cert_store: value['tidyCertStore'], + tidy_cmpv2_nonce_store: value['tidyCmpv2NonceStore'], + tidy_cross_cluster_revoked_certs: value['tidyCrossClusterRevokedCerts'], + tidy_expired_issuers: value['tidyExpiredIssuers'], + tidy_move_legacy_ca_bundle: value['tidyMoveLegacyCaBundle'], + tidy_revocation_list: value['tidyRevocationList'], + tidy_revocation_queue: value['tidyRevocationQueue'], + tidy_revoked_cert_issuer_associations: value['tidyRevokedCertIssuerAssociations'], + tidy_revoked_certs: value['tidyRevokedCerts'], + }; +} diff --git a/ui/api-client/src/models/PkiTidyStatusResponse.ts b/ui/api-client/src/models/PkiTidyStatusResponse.ts new file mode 100644 index 0000000000..6143642b42 --- /dev/null +++ b/ui/api-client/src/models/PkiTidyStatusResponse.ts @@ -0,0 +1,361 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiTidyStatusResponse + */ +export interface PkiTidyStatusResponse { + /** + * The number of revoked acme accounts removed + * @type {number} + * @memberof PkiTidyStatusResponse + */ + acmeAccountDeletedCount?: number; + /** + * The number of unused acme accounts revoked + * @type {number} + * @memberof PkiTidyStatusResponse + */ + acmeAccountRevokedCount?: number; + /** + * Safety buffer after creation after which accounts lacking orders are revoked + * @type {number} + * @memberof PkiTidyStatusResponse + */ + acmeAccountSafetyBuffer?: number; + /** + * The number of expired, unused acme orders removed + * @type {number} + * @memberof PkiTidyStatusResponse + */ + acmeOrdersDeletedCount?: number; + /** + * The number of metadata entries removed + * @type {number} + * @memberof PkiTidyStatusResponse + */ + certMetadataDeletedCount?: number; + /** + * The number of certificate storage entries deleted + * @type {number} + * @memberof PkiTidyStatusResponse + */ + certStoreDeletedCount?: number; + /** + * The number of CMPv2 nonces removed + * @type {number} + * @memberof PkiTidyStatusResponse + */ + cmpv2NonceDeletedCount?: number; + /** + * + * @type {number} + * @memberof PkiTidyStatusResponse + */ + crossRevokedCertDeletedCount?: number; + /** + * The number of revoked certificate entries deleted + * @type {number} + * @memberof PkiTidyStatusResponse + */ + currentCertStoreCount?: number; + /** + * The number of revoked certificate entries deleted + * @type {number} + * @memberof PkiTidyStatusResponse + */ + currentRevokedCertCount?: number; + /** + * The error message + * @type {string} + * @memberof PkiTidyStatusResponse + */ + error?: string; + /** + * + * @type {string} + * @memberof PkiTidyStatusResponse + */ + internalBackendUuid?: string; + /** + * Issuer safety buffer + * @type {number} + * @memberof PkiTidyStatusResponse + */ + issuerSafetyBuffer?: number; + /** + * Time the last auto-tidy operation finished + * @type {string} + * @memberof PkiTidyStatusResponse + */ + lastAutoTidyFinished?: string; + /** + * Message of the operation + * @type {string} + * @memberof PkiTidyStatusResponse + */ + message?: string; + /** + * + * @type {number} + * @memberof PkiTidyStatusResponse + */ + missingIssuerCertCount?: number; + /** + * Duration to pause between tidying certificates + * @type {string} + * @memberof PkiTidyStatusResponse + */ + pauseDuration?: string; + /** + * + * @type {number} + * @memberof PkiTidyStatusResponse + */ + revocationQueueDeletedCount?: number; + /** + * Revocation queue safety buffer + * @type {number} + * @memberof PkiTidyStatusResponse + */ + revocationQueueSafetyBuffer?: number; + /** + * The number of revoked certificate entries deleted + * @type {number} + * @memberof PkiTidyStatusResponse + */ + revokedCertDeletedCount?: number; + /** + * Safety buffer time duration + * @type {number} + * @memberof PkiTidyStatusResponse + */ + safetyBuffer?: number; + /** + * One of Inactive, Running, Finished, or Error + * @type {string} + * @memberof PkiTidyStatusResponse + */ + state?: string; + /** + * Tidy Unused Acme Accounts, and Orders + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyAcme?: boolean; + /** + * Tidy cert metadata + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyCertMetadata?: boolean; + /** + * Tidy certificate store + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyCertStore?: boolean; + /** + * Tidy CMPv2 nonce store + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyCmpv2NonceStore?: boolean; + /** + * Tidy the cross-cluster revoked certificate store + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyCrossClusterRevokedCerts?: boolean; + /** + * Tidy expired issuers + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyExpiredIssuers?: boolean; + /** + * + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyMoveLegacyCaBundle?: boolean; + /** + * + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyRevocationQueue?: boolean; + /** + * Tidy revoked certificate issuer associations + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyRevokedCertIssuerAssociations?: boolean; + /** + * Tidy revoked certificates + * @type {boolean} + * @memberof PkiTidyStatusResponse + */ + tidyRevokedCerts?: boolean; + /** + * Time the operation finished + * @type {string} + * @memberof PkiTidyStatusResponse + */ + timeFinished?: string; + /** + * Time the operation started + * @type {string} + * @memberof PkiTidyStatusResponse + */ + timeStarted?: string; + /** + * Total number of acme accounts iterated over + * @type {number} + * @memberof PkiTidyStatusResponse + */ + totalAcmeAccountCount?: number; +} + +/** + * Check if a given object implements the PkiTidyStatusResponse interface. + */ +export function instanceOfPkiTidyStatusResponse(value: object): value is PkiTidyStatusResponse { + return true; +} + +export function PkiTidyStatusResponseFromJSON(json: any): PkiTidyStatusResponse { + return PkiTidyStatusResponseFromJSONTyped(json, false); +} + +export function PkiTidyStatusResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiTidyStatusResponse { + if (json == null) { + return json; + } + return { + acmeAccountDeletedCount: + json['acme_account_deleted_count'] == null ? undefined : json['acme_account_deleted_count'], + acmeAccountRevokedCount: + json['acme_account_revoked_count'] == null ? undefined : json['acme_account_revoked_count'], + acmeAccountSafetyBuffer: + json['acme_account_safety_buffer'] == null ? undefined : json['acme_account_safety_buffer'], + acmeOrdersDeletedCount: + json['acme_orders_deleted_count'] == null ? undefined : json['acme_orders_deleted_count'], + certMetadataDeletedCount: + json['cert_metadata_deleted_count'] == null ? undefined : json['cert_metadata_deleted_count'], + certStoreDeletedCount: + json['cert_store_deleted_count'] == null ? undefined : json['cert_store_deleted_count'], + cmpv2NonceDeletedCount: + json['cmpv2_nonce_deleted_count'] == null ? undefined : json['cmpv2_nonce_deleted_count'], + crossRevokedCertDeletedCount: + json['cross_revoked_cert_deleted_count'] == null ? undefined : json['cross_revoked_cert_deleted_count'], + currentCertStoreCount: + json['current_cert_store_count'] == null ? undefined : json['current_cert_store_count'], + currentRevokedCertCount: + json['current_revoked_cert_count'] == null ? undefined : json['current_revoked_cert_count'], + error: json['error'] == null ? undefined : json['error'], + internalBackendUuid: json['internal_backend_uuid'] == null ? undefined : json['internal_backend_uuid'], + issuerSafetyBuffer: json['issuer_safety_buffer'] == null ? undefined : json['issuer_safety_buffer'], + lastAutoTidyFinished: + json['last_auto_tidy_finished'] == null ? undefined : json['last_auto_tidy_finished'], + message: json['message'] == null ? undefined : json['message'], + missingIssuerCertCount: + json['missing_issuer_cert_count'] == null ? undefined : json['missing_issuer_cert_count'], + pauseDuration: json['pause_duration'] == null ? undefined : json['pause_duration'], + revocationQueueDeletedCount: + json['revocation_queue_deleted_count'] == null ? undefined : json['revocation_queue_deleted_count'], + revocationQueueSafetyBuffer: + json['revocation_queue_safety_buffer'] == null ? undefined : json['revocation_queue_safety_buffer'], + revokedCertDeletedCount: + json['revoked_cert_deleted_count'] == null ? undefined : json['revoked_cert_deleted_count'], + safetyBuffer: json['safety_buffer'] == null ? undefined : json['safety_buffer'], + state: json['state'] == null ? undefined : json['state'], + tidyAcme: json['tidy_acme'] == null ? undefined : json['tidy_acme'], + tidyCertMetadata: json['tidy_cert_metadata'] == null ? undefined : json['tidy_cert_metadata'], + tidyCertStore: json['tidy_cert_store'] == null ? undefined : json['tidy_cert_store'], + tidyCmpv2NonceStore: json['tidy_cmpv2_nonce_store'] == null ? undefined : json['tidy_cmpv2_nonce_store'], + tidyCrossClusterRevokedCerts: + json['tidy_cross_cluster_revoked_certs'] == null ? undefined : json['tidy_cross_cluster_revoked_certs'], + tidyExpiredIssuers: json['tidy_expired_issuers'] == null ? undefined : json['tidy_expired_issuers'], + tidyMoveLegacyCaBundle: + json['tidy_move_legacy_ca_bundle'] == null ? undefined : json['tidy_move_legacy_ca_bundle'], + tidyRevocationQueue: json['tidy_revocation_queue'] == null ? undefined : json['tidy_revocation_queue'], + tidyRevokedCertIssuerAssociations: + json['tidy_revoked_cert_issuer_associations'] == null + ? undefined + : json['tidy_revoked_cert_issuer_associations'], + tidyRevokedCerts: json['tidy_revoked_certs'] == null ? undefined : json['tidy_revoked_certs'], + timeFinished: json['time_finished'] == null ? undefined : json['time_finished'], + timeStarted: json['time_started'] == null ? undefined : json['time_started'], + totalAcmeAccountCount: + json['total_acme_account_count'] == null ? undefined : json['total_acme_account_count'], + }; +} + +export function PkiTidyStatusResponseToJSON(json: any): PkiTidyStatusResponse { + return PkiTidyStatusResponseToJSONTyped(json, false); +} + +export function PkiTidyStatusResponseToJSONTyped( + value?: PkiTidyStatusResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + acme_account_deleted_count: value['acmeAccountDeletedCount'], + acme_account_revoked_count: value['acmeAccountRevokedCount'], + acme_account_safety_buffer: value['acmeAccountSafetyBuffer'], + acme_orders_deleted_count: value['acmeOrdersDeletedCount'], + cert_metadata_deleted_count: value['certMetadataDeletedCount'], + cert_store_deleted_count: value['certStoreDeletedCount'], + cmpv2_nonce_deleted_count: value['cmpv2NonceDeletedCount'], + cross_revoked_cert_deleted_count: value['crossRevokedCertDeletedCount'], + current_cert_store_count: value['currentCertStoreCount'], + current_revoked_cert_count: value['currentRevokedCertCount'], + error: value['error'], + internal_backend_uuid: value['internalBackendUuid'], + issuer_safety_buffer: value['issuerSafetyBuffer'], + last_auto_tidy_finished: value['lastAutoTidyFinished'], + message: value['message'], + missing_issuer_cert_count: value['missingIssuerCertCount'], + pause_duration: value['pauseDuration'], + revocation_queue_deleted_count: value['revocationQueueDeletedCount'], + revocation_queue_safety_buffer: value['revocationQueueSafetyBuffer'], + revoked_cert_deleted_count: value['revokedCertDeletedCount'], + safety_buffer: value['safetyBuffer'], + state: value['state'], + tidy_acme: value['tidyAcme'], + tidy_cert_metadata: value['tidyCertMetadata'], + tidy_cert_store: value['tidyCertStore'], + tidy_cmpv2_nonce_store: value['tidyCmpv2NonceStore'], + tidy_cross_cluster_revoked_certs: value['tidyCrossClusterRevokedCerts'], + tidy_expired_issuers: value['tidyExpiredIssuers'], + tidy_move_legacy_ca_bundle: value['tidyMoveLegacyCaBundle'], + tidy_revocation_queue: value['tidyRevocationQueue'], + tidy_revoked_cert_issuer_associations: value['tidyRevokedCertIssuerAssociations'], + tidy_revoked_certs: value['tidyRevokedCerts'], + time_finished: value['timeFinished'], + time_started: value['timeStarted'], + total_acme_account_count: value['totalAcmeAccountCount'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..4d96b34f49 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeAccountKidRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeAccountKidRequest + */ +export interface PkiWriteAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteAcmeAccountKidRequest( + value: object +): value is PkiWriteAcmeAccountKidRequest { + return true; +} + +export function PkiWriteAcmeAccountKidRequestFromJSON(json: any): PkiWriteAcmeAccountKidRequest { + return PkiWriteAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeAccountKidRequestToJSON(json: any): PkiWriteAcmeAccountKidRequest { + return PkiWriteAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..0b2e3f35f4 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteAcmeAuthorizationAuthIdRequest { + return PkiWriteAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteAcmeAuthorizationAuthIdRequest { + return PkiWriteAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..f060ba948d --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeKeyIdRequest.ts b/ui/api-client/src/models/PkiWriteAcmeKeyIdRequest.ts new file mode 100644 index 0000000000..12df5c00a9 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeKeyIdRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeKeyIdRequest + */ +export interface PkiWriteAcmeKeyIdRequest { + /** + * The status of the account. + * @type {string} + * @memberof PkiWriteAcmeKeyIdRequest + */ + status: PkiWriteAcmeKeyIdRequestStatusEnum; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteAcmeKeyIdRequestStatusEnum { + VALID = 'valid', + REVOKED = 'revoked', +} + +/** + * Check if a given object implements the PkiWriteAcmeKeyIdRequest interface. + */ +export function instanceOfPkiWriteAcmeKeyIdRequest(value: object): value is PkiWriteAcmeKeyIdRequest { + if (!('status' in value) || value['status'] === undefined) return false; + return true; +} + +export function PkiWriteAcmeKeyIdRequestFromJSON(json: any): PkiWriteAcmeKeyIdRequest { + return PkiWriteAcmeKeyIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeKeyIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeKeyIdRequest { + if (json == null) { + return json; + } + return { + status: json['status'], + }; +} + +export function PkiWriteAcmeKeyIdRequestToJSON(json: any): PkiWriteAcmeKeyIdRequest { + return PkiWriteAcmeKeyIdRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeKeyIdRequestToJSONTyped( + value?: PkiWriteAcmeKeyIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + status: value['status'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..cf2305d4e5 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeNewAccountRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeNewAccountRequest + */ +export interface PkiWriteAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteAcmeNewAccountRequest( + value: object +): value is PkiWriteAcmeNewAccountRequest { + return true; +} + +export function PkiWriteAcmeNewAccountRequestFromJSON(json: any): PkiWriteAcmeNewAccountRequest { + return PkiWriteAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeNewAccountRequestToJSON(json: any): PkiWriteAcmeNewAccountRequest { + return PkiWriteAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..2d31b01e65 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeNewOrderRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeNewOrderRequest + */ +export interface PkiWriteAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteAcmeNewOrderRequest(value: object): value is PkiWriteAcmeNewOrderRequest { + return true; +} + +export function PkiWriteAcmeNewOrderRequestFromJSON(json: any): PkiWriteAcmeNewOrderRequest { + return PkiWriteAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeNewOrderRequestToJSON(json: any): PkiWriteAcmeNewOrderRequest { + return PkiWriteAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..6ea4a24c45 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteAcmeOrderOrderIdCertRequestFromJSON(json: any): PkiWriteAcmeOrderOrderIdCertRequest { + return PkiWriteAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeOrderOrderIdCertRequestToJSON(json: any): PkiWriteAcmeOrderOrderIdCertRequest { + return PkiWriteAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..a2d1f0a2d9 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteAcmeOrderOrderIdFinalizeRequest { + return PkiWriteAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteAcmeOrderOrderIdFinalizeRequest { + return PkiWriteAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..bd13f4c602 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeOrderOrderIdRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeOrderOrderIdRequest + */ +export interface PkiWriteAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteAcmeOrderOrderIdRequestFromJSON(json: any): PkiWriteAcmeOrderOrderIdRequest { + return PkiWriteAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeOrderOrderIdRequestToJSON(json: any): PkiWriteAcmeOrderOrderIdRequest { + return PkiWriteAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteAcmeOrdersRequest.ts new file mode 100644 index 0000000000..a8f23cb5e2 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeOrdersRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeOrdersRequest + */ +export interface PkiWriteAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteAcmeOrdersRequest(value: object): value is PkiWriteAcmeOrdersRequest { + return true; +} + +export function PkiWriteAcmeOrdersRequestFromJSON(json: any): PkiWriteAcmeOrdersRequest { + return PkiWriteAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeOrdersRequestToJSON(json: any): PkiWriteAcmeOrdersRequest { + return PkiWriteAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeOrdersRequestToJSONTyped( + value?: PkiWriteAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..86416527fc --- /dev/null +++ b/ui/api-client/src/models/PkiWriteAcmeRevokeCertRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteAcmeRevokeCertRequest + */ +export interface PkiWriteAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteAcmeRevokeCertRequest( + value: object +): value is PkiWriteAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteAcmeRevokeCertRequestFromJSON(json: any): PkiWriteAcmeRevokeCertRequest { + return PkiWriteAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteAcmeRevokeCertRequestToJSON(json: any): PkiWriteAcmeRevokeCertRequest { + return PkiWriteAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..4272763ea0 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeAccountKidRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeAccountKidRequest + */ +export interface PkiWriteExternalPolicyAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeAccountKidRequest( + value: object +): value is PkiWriteExternalPolicyAcmeAccountKidRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeAccountKidRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeAccountKidRequest { + return PkiWriteExternalPolicyAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeAccountKidRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeAccountKidRequest { + return PkiWriteExternalPolicyAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..868f3a50fb --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..77445b69b2 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..1f80c29ab7 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeNewAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeNewAccountRequest + */ +export interface PkiWriteExternalPolicyAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeNewAccountRequest( + value: object +): value is PkiWriteExternalPolicyAcmeNewAccountRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeNewAccountRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeNewAccountRequest { + return PkiWriteExternalPolicyAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeNewAccountRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeNewAccountRequest { + return PkiWriteExternalPolicyAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..cc3055445a --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeNewOrderRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeNewOrderRequest + */ +export interface PkiWriteExternalPolicyAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeNewOrderRequest( + value: object +): value is PkiWriteExternalPolicyAcmeNewOrderRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeNewOrderRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeNewOrderRequest { + return PkiWriteExternalPolicyAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeNewOrderRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeNewOrderRequest { + return PkiWriteExternalPolicyAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..f9b13f779e --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..baa5e0c88d --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..3a05cf1013 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrderOrderIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeOrderOrderIdRequest + */ +export interface PkiWriteExternalPolicyAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteExternalPolicyAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeOrderOrderIdRequest { + return PkiWriteExternalPolicyAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeOrderOrderIdRequest { + return PkiWriteExternalPolicyAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrdersRequest.ts new file mode 100644 index 0000000000..9ed1c6bf53 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeOrdersRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeOrdersRequest + */ +export interface PkiWriteExternalPolicyAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeOrdersRequest( + value: object +): value is PkiWriteExternalPolicyAcmeOrdersRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeOrdersRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeOrdersRequest { + return PkiWriteExternalPolicyAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeOrdersRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeOrdersRequest { + return PkiWriteExternalPolicyAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeOrdersRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..1b80608a13 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyAcmeRevokeCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyAcmeRevokeCertRequest + */ +export interface PkiWriteExternalPolicyAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyAcmeRevokeCertRequest( + value: object +): value is PkiWriteExternalPolicyAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteExternalPolicyAcmeRevokeCertRequestFromJSON( + json: any +): PkiWriteExternalPolicyAcmeRevokeCertRequest { + return PkiWriteExternalPolicyAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyAcmeRevokeCertRequestToJSON( + json: any +): PkiWriteExternalPolicyAcmeRevokeCertRequest { + return PkiWriteExternalPolicyAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteExternalPolicyAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyIssuePolicyRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyIssuePolicyRequest.ts new file mode 100644 index 0000000000..cdc7790092 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyIssuePolicyRequest.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyIssuePolicyRequest + */ +export interface PkiWriteExternalPolicyIssuePolicyRequest { + [key: string]: any | any; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyRequest + */ + format?: PkiWriteExternalPolicyIssuePolicyRequestFormatEnum; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiWriteExternalPolicyIssuePolicyRequest + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyRequest + */ + keyType?: PkiWriteExternalPolicyIssuePolicyRequestKeyTypeEnum; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyRequest + */ + privateKeyFormat?: PkiWriteExternalPolicyIssuePolicyRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteExternalPolicyIssuePolicyRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicyIssuePolicyRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicyIssuePolicyRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicyIssuePolicyRequestPrivateKeyFormatEnum { + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyIssuePolicyRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyIssuePolicyRequest( + value: object +): value is PkiWriteExternalPolicyIssuePolicyRequest { + return true; +} + +export function PkiWriteExternalPolicyIssuePolicyRequestFromJSON( + json: any +): PkiWriteExternalPolicyIssuePolicyRequest { + return PkiWriteExternalPolicyIssuePolicyRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssuePolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyIssuePolicyRequest { + if (json == null) { + return json; + } + return { + ...json, + format: json['format'] == null ? undefined : json['format'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteExternalPolicyIssuePolicyRequestToJSON( + json: any +): PkiWriteExternalPolicyIssuePolicyRequest { + return PkiWriteExternalPolicyIssuePolicyRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssuePolicyRequestToJSONTyped( + value?: PkiWriteExternalPolicyIssuePolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + format: value['format'], + key_bits: value['keyBits'], + key_type: value['keyType'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyIssuePolicyResponse.ts b/ui/api-client/src/models/PkiWriteExternalPolicyIssuePolicyResponse.ts new file mode 100644 index 0000000000..11d3ef2fa5 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyIssuePolicyResponse.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyIssuePolicyResponse + */ +export interface PkiWriteExternalPolicyIssuePolicyResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteExternalPolicyIssuePolicyResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteExternalPolicyIssuePolicyResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyResponse + */ + issuingCa?: string; + /** + * Private key + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyResponse + */ + privateKey?: string; + /** + * Private key type + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyResponse + */ + privateKeyType?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteExternalPolicyIssuePolicyResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyIssuePolicyResponse interface. + */ +export function instanceOfPkiWriteExternalPolicyIssuePolicyResponse( + value: object +): value is PkiWriteExternalPolicyIssuePolicyResponse { + return true; +} + +export function PkiWriteExternalPolicyIssuePolicyResponseFromJSON( + json: any +): PkiWriteExternalPolicyIssuePolicyResponse { + return PkiWriteExternalPolicyIssuePolicyResponseFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssuePolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyIssuePolicyResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteExternalPolicyIssuePolicyResponseToJSON( + json: any +): PkiWriteExternalPolicyIssuePolicyResponse { + return PkiWriteExternalPolicyIssuePolicyResponseToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssuePolicyResponseToJSONTyped( + value?: PkiWriteExternalPolicyIssuePolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyIssueRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyIssueRequest.ts new file mode 100644 index 0000000000..beaa452092 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyIssueRequest.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyIssueRequest + */ +export interface PkiWriteExternalPolicyIssueRequest { + [key: string]: any | any; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteExternalPolicyIssueRequest + */ + format?: PkiWriteExternalPolicyIssueRequestFormatEnum; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiWriteExternalPolicyIssueRequest + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiWriteExternalPolicyIssueRequest + */ + keyType?: PkiWriteExternalPolicyIssueRequestKeyTypeEnum; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiWriteExternalPolicyIssueRequest + */ + privateKeyFormat?: PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteExternalPolicyIssueRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicyIssueRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicyIssueRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicyIssueRequestPrivateKeyFormatEnum { + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyIssueRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyIssueRequest( + value: object +): value is PkiWriteExternalPolicyIssueRequest { + return true; +} + +export function PkiWriteExternalPolicyIssueRequestFromJSON(json: any): PkiWriteExternalPolicyIssueRequest { + return PkiWriteExternalPolicyIssueRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssueRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyIssueRequest { + if (json == null) { + return json; + } + return { + ...json, + format: json['format'] == null ? undefined : json['format'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteExternalPolicyIssueRequestToJSON(json: any): PkiWriteExternalPolicyIssueRequest { + return PkiWriteExternalPolicyIssueRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssueRequestToJSONTyped( + value?: PkiWriteExternalPolicyIssueRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + format: value['format'], + key_bits: value['keyBits'], + key_type: value['keyType'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyIssueResponse.ts b/ui/api-client/src/models/PkiWriteExternalPolicyIssueResponse.ts new file mode 100644 index 0000000000..7c1a7ed57e --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyIssueResponse.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyIssueResponse + */ +export interface PkiWriteExternalPolicyIssueResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteExternalPolicyIssueResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteExternalPolicyIssueResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteExternalPolicyIssueResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteExternalPolicyIssueResponse + */ + issuingCa?: string; + /** + * Private key + * @type {string} + * @memberof PkiWriteExternalPolicyIssueResponse + */ + privateKey?: string; + /** + * Private key type + * @type {string} + * @memberof PkiWriteExternalPolicyIssueResponse + */ + privateKeyType?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteExternalPolicyIssueResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyIssueResponse interface. + */ +export function instanceOfPkiWriteExternalPolicyIssueResponse( + value: object +): value is PkiWriteExternalPolicyIssueResponse { + return true; +} + +export function PkiWriteExternalPolicyIssueResponseFromJSON(json: any): PkiWriteExternalPolicyIssueResponse { + return PkiWriteExternalPolicyIssueResponseFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssueResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyIssueResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteExternalPolicyIssueResponseToJSON(json: any): PkiWriteExternalPolicyIssueResponse { + return PkiWriteExternalPolicyIssueResponseToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyIssueResponseToJSONTyped( + value?: PkiWriteExternalPolicyIssueResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..ee49dd023f --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeAccountKidRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeAccountKidRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeAccountKidRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeAccountKidRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeAccountKidRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeAccountKidRequest { + return PkiWriteExternalPolicyPolicyAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeAccountKidRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeAccountKidRequest { + return PkiWriteExternalPolicyPolicyAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..e3ea479141 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..f694ba766c --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..77b141cd2e --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeNewAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeNewAccountRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeNewAccountRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeNewAccountRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeNewAccountRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeNewAccountRequest { + return PkiWriteExternalPolicyPolicyAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeNewAccountRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeNewAccountRequest { + return PkiWriteExternalPolicyPolicyAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..4211874a11 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeNewOrderRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeNewOrderRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeNewOrderRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeNewOrderRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeNewOrderRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeNewOrderRequest { + return PkiWriteExternalPolicyPolicyAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeNewOrderRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeNewOrderRequest { + return PkiWriteExternalPolicyPolicyAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..37d490b67b --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..487a2d4d53 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..cdf7f164f5 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest { + return PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest { + return PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrdersRequest.ts new file mode 100644 index 0000000000..41e486216e --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeOrdersRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeOrdersRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeOrdersRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeOrdersRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrdersRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrdersRequest { + return PkiWriteExternalPolicyPolicyAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeOrdersRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeOrdersRequest { + return PkiWriteExternalPolicyPolicyAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeOrdersRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..6aa97f06c3 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest + */ +export interface PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteExternalPolicyPolicyAcmeRevokeCertRequest( + value: object +): value is PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestFromJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest { + return PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestToJSON( + json: any +): PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest { + return PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicyPolicyAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediatePolicyRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediatePolicyRequest.ts new file mode 100644 index 0000000000..4e099d39eb --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediatePolicyRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignIntermediatePolicyRequest + */ +export interface PkiWriteExternalPolicySignIntermediatePolicyRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediatePolicyRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediatePolicyRequest + */ + format?: PkiWriteExternalPolicySignIntermediatePolicyRequestFormatEnum; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicySignIntermediatePolicyRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignIntermediatePolicyRequest interface. + */ +export function instanceOfPkiWriteExternalPolicySignIntermediatePolicyRequest( + value: object +): value is PkiWriteExternalPolicySignIntermediatePolicyRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteExternalPolicySignIntermediatePolicyRequestFromJSON( + json: any +): PkiWriteExternalPolicySignIntermediatePolicyRequest { + return PkiWriteExternalPolicySignIntermediatePolicyRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediatePolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignIntermediatePolicyRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function PkiWriteExternalPolicySignIntermediatePolicyRequestToJSON( + json: any +): PkiWriteExternalPolicySignIntermediatePolicyRequest { + return PkiWriteExternalPolicySignIntermediatePolicyRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediatePolicyRequestToJSONTyped( + value?: PkiWriteExternalPolicySignIntermediatePolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediatePolicyResponse.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediatePolicyResponse.ts new file mode 100644 index 0000000000..cfe181e815 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediatePolicyResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignIntermediatePolicyResponse + */ +export interface PkiWriteExternalPolicySignIntermediatePolicyResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteExternalPolicySignIntermediatePolicyResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediatePolicyResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteExternalPolicySignIntermediatePolicyResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediatePolicyResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediatePolicyResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignIntermediatePolicyResponse interface. + */ +export function instanceOfPkiWriteExternalPolicySignIntermediatePolicyResponse( + value: object +): value is PkiWriteExternalPolicySignIntermediatePolicyResponse { + return true; +} + +export function PkiWriteExternalPolicySignIntermediatePolicyResponseFromJSON( + json: any +): PkiWriteExternalPolicySignIntermediatePolicyResponse { + return PkiWriteExternalPolicySignIntermediatePolicyResponseFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediatePolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignIntermediatePolicyResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteExternalPolicySignIntermediatePolicyResponseToJSON( + json: any +): PkiWriteExternalPolicySignIntermediatePolicyResponse { + return PkiWriteExternalPolicySignIntermediatePolicyResponseToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediatePolicyResponseToJSONTyped( + value?: PkiWriteExternalPolicySignIntermediatePolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediateRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediateRequest.ts new file mode 100644 index 0000000000..cfca301ada --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediateRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignIntermediateRequest + */ +export interface PkiWriteExternalPolicySignIntermediateRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediateRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediateRequest + */ + format?: PkiWriteExternalPolicySignIntermediateRequestFormatEnum; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicySignIntermediateRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignIntermediateRequest interface. + */ +export function instanceOfPkiWriteExternalPolicySignIntermediateRequest( + value: object +): value is PkiWriteExternalPolicySignIntermediateRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteExternalPolicySignIntermediateRequestFromJSON( + json: any +): PkiWriteExternalPolicySignIntermediateRequest { + return PkiWriteExternalPolicySignIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignIntermediateRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function PkiWriteExternalPolicySignIntermediateRequestToJSON( + json: any +): PkiWriteExternalPolicySignIntermediateRequest { + return PkiWriteExternalPolicySignIntermediateRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediateRequestToJSONTyped( + value?: PkiWriteExternalPolicySignIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediateResponse.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediateResponse.ts new file mode 100644 index 0000000000..f559566e8d --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignIntermediateResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignIntermediateResponse + */ +export interface PkiWriteExternalPolicySignIntermediateResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteExternalPolicySignIntermediateResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediateResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteExternalPolicySignIntermediateResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediateResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteExternalPolicySignIntermediateResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignIntermediateResponse interface. + */ +export function instanceOfPkiWriteExternalPolicySignIntermediateResponse( + value: object +): value is PkiWriteExternalPolicySignIntermediateResponse { + return true; +} + +export function PkiWriteExternalPolicySignIntermediateResponseFromJSON( + json: any +): PkiWriteExternalPolicySignIntermediateResponse { + return PkiWriteExternalPolicySignIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignIntermediateResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteExternalPolicySignIntermediateResponseToJSON( + json: any +): PkiWriteExternalPolicySignIntermediateResponse { + return PkiWriteExternalPolicySignIntermediateResponseToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignIntermediateResponseToJSONTyped( + value?: PkiWriteExternalPolicySignIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignPolicyRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignPolicyRequest.ts new file mode 100644 index 0000000000..4868b5e092 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignPolicyRequest.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignPolicyRequest + */ +export interface PkiWriteExternalPolicySignPolicyRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteExternalPolicySignPolicyRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteExternalPolicySignPolicyRequest + */ + format?: PkiWriteExternalPolicySignPolicyRequestFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteExternalPolicySignPolicyRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicySignPolicyRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignPolicyRequest interface. + */ +export function instanceOfPkiWriteExternalPolicySignPolicyRequest( + value: object +): value is PkiWriteExternalPolicySignPolicyRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteExternalPolicySignPolicyRequestFromJSON( + json: any +): PkiWriteExternalPolicySignPolicyRequest { + return PkiWriteExternalPolicySignPolicyRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignPolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignPolicyRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteExternalPolicySignPolicyRequestToJSON( + json: any +): PkiWriteExternalPolicySignPolicyRequest { + return PkiWriteExternalPolicySignPolicyRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignPolicyRequestToJSONTyped( + value?: PkiWriteExternalPolicySignPolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignPolicyResponse.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignPolicyResponse.ts new file mode 100644 index 0000000000..50d234eb7b --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignPolicyResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignPolicyResponse + */ +export interface PkiWriteExternalPolicySignPolicyResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteExternalPolicySignPolicyResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteExternalPolicySignPolicyResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteExternalPolicySignPolicyResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteExternalPolicySignPolicyResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteExternalPolicySignPolicyResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignPolicyResponse interface. + */ +export function instanceOfPkiWriteExternalPolicySignPolicyResponse( + value: object +): value is PkiWriteExternalPolicySignPolicyResponse { + return true; +} + +export function PkiWriteExternalPolicySignPolicyResponseFromJSON( + json: any +): PkiWriteExternalPolicySignPolicyResponse { + return PkiWriteExternalPolicySignPolicyResponseFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignPolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignPolicyResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteExternalPolicySignPolicyResponseToJSON( + json: any +): PkiWriteExternalPolicySignPolicyResponse { + return PkiWriteExternalPolicySignPolicyResponseToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignPolicyResponseToJSONTyped( + value?: PkiWriteExternalPolicySignPolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignRequest.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignRequest.ts new file mode 100644 index 0000000000..9e7aa3f9a0 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignRequest.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignRequest + */ +export interface PkiWriteExternalPolicySignRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteExternalPolicySignRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteExternalPolicySignRequest + */ + format?: PkiWriteExternalPolicySignRequestFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteExternalPolicySignRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteExternalPolicySignRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignRequest interface. + */ +export function instanceOfPkiWriteExternalPolicySignRequest( + value: object +): value is PkiWriteExternalPolicySignRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteExternalPolicySignRequestFromJSON(json: any): PkiWriteExternalPolicySignRequest { + return PkiWriteExternalPolicySignRequestFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteExternalPolicySignRequestToJSON(json: any): PkiWriteExternalPolicySignRequest { + return PkiWriteExternalPolicySignRequestToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignRequestToJSONTyped( + value?: PkiWriteExternalPolicySignRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteExternalPolicySignResponse.ts b/ui/api-client/src/models/PkiWriteExternalPolicySignResponse.ts new file mode 100644 index 0000000000..a525158087 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteExternalPolicySignResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteExternalPolicySignResponse + */ +export interface PkiWriteExternalPolicySignResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteExternalPolicySignResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteExternalPolicySignResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteExternalPolicySignResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteExternalPolicySignResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteExternalPolicySignResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteExternalPolicySignResponse interface. + */ +export function instanceOfPkiWriteExternalPolicySignResponse( + value: object +): value is PkiWriteExternalPolicySignResponse { + return true; +} + +export function PkiWriteExternalPolicySignResponseFromJSON(json: any): PkiWriteExternalPolicySignResponse { + return PkiWriteExternalPolicySignResponseFromJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteExternalPolicySignResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteExternalPolicySignResponseToJSON(json: any): PkiWriteExternalPolicySignResponse { + return PkiWriteExternalPolicySignResponseToJSONTyped(json, false); +} + +export function PkiWriteExternalPolicySignResponseToJSONTyped( + value?: PkiWriteExternalPolicySignResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..1b393190c8 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeAccountKidRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeAccountKidRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeAccountKidRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeAccountKidRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeAccountKidRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeAccountKidRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..3f354ef5f5 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..c63c72af63 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..efc9924537 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeNewAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeNewAccountRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeNewAccountRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeNewAccountRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeNewAccountRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeNewAccountRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..f1aafa8c74 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeNewOrderRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeNewOrderRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeNewOrderRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeNewOrderRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeNewOrderRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeNewOrderRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..fc611e2325 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..4cf3d8e0dc --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..11ed610680 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrdersRequest.ts new file mode 100644 index 0000000000..c1ef918b8d --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeOrdersRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeOrdersRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeOrdersRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeOrdersRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeOrdersRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeOrdersRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeOrdersRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..f672ea65ee --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefAcmeRevokeCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefAcmeRevokeCertRequest + */ +export interface PkiWriteIssuerIssuerRefAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefAcmeRevokeCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefAcmeRevokeCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefAcmeRevokeCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..5c916d1277 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..30c3607b83 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..b1570bde4a --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json, + false + ); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..aadfdd5365 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..cc802a2a38 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..17f31cfadc --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..20e1b19f7b --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..517b24d8c2 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest.ts new file mode 100644 index 0000000000..ab631084ba --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..31f877f7cc --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest.ts new file mode 100644 index 0000000000..cdaf098fac --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest { + [key: string]: any | any; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest + */ + format?: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestFormatEnum; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest + */ + keyType?: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestKeyTypeEnum; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest + */ + privateKeyFormat?: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestPrivateKeyFormatEnum { + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest { + return PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest { + if (json == null) { + return json; + } + return { + ...json, + format: json['format'] == null ? undefined : json['format'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest { + return PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + format: value['format'], + key_bits: value['keyBits'], + key_type: value['keyType'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse.ts new file mode 100644 index 0000000000..0444f084a2 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ + issuingCa?: string; + /** + * Private key + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ + privateKey?: string; + /** + * Private key type + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ + privateKeyType?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse { + return PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse { + return PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponseToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueRequest.ts new file mode 100644 index 0000000000..d3a1eacdab --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueRequest.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyIssueRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyIssueRequest { + [key: string]: any | any; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueRequest + */ + format?: PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueRequest + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec" and "ed25519" are the only valid values. + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueRequest + */ + keyType?: PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum; + /** + * Format for the returned private key. Generally the default will be controlled by the "format" parameter as either base64-encoded DER or PEM-encoded DER. However, this can be set to "pkcs8" to have the returned private key contain base64-encoded pkcs8 or PEM-encoded pkcs8 instead. Defaults to "der". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueRequest + */ + privateKeyFormat?: PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicyIssueRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', +} +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicyIssueRequestPrivateKeyFormatEnum { + DER = 'der', + PEM = 'pem', + PKCS8 = 'pkcs8', +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyIssueRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyIssueRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyIssueRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssueRequest { + return PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyIssueRequest { + if (json == null) { + return json; + } + return { + ...json, + format: json['format'] == null ? undefined : json['format'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKeyFormat: json['private_key_format'] == null ? undefined : json['private_key_format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssueRequest { + return PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyIssueRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + format: value['format'], + key_bits: value['keyBits'], + key_type: value['keyType'], + private_key_format: value['privateKeyFormat'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueResponse.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueResponse.ts new file mode 100644 index 0000000000..0229fabeff --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyIssueResponse.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyIssueResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ + issuingCa?: string; + /** + * Private key + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ + privateKey?: string; + /** + * Private key type + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ + privateKeyType?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyIssueResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyIssueResponse interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyIssueResponse( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyIssueResponse { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueResponseFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssueResponse { + return PkiWriteIssuerIssuerRefExternalPolicyIssueResponseFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyIssueResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + privateKeyType: json['private_key_type'] == null ? undefined : json['private_key_type'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueResponseToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyIssueResponse { + return PkiWriteIssuerIssuerRefExternalPolicyIssueResponseToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyIssueResponseToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyIssueResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + private_key: value['privateKey'], + private_key_type: value['privateKeyType'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..81b21eee01 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..79813a2980 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..a7f7f411a1 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json, + false + ); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + json, + false + ); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..401a53aee8 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..429f8aac7b --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..53c2e7faf6 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..6577418bc0 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..bc86b30fb2 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest.ts new file mode 100644 index 0000000000..5630164a76 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..dfc2ae579a --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest.ts new file mode 100644 index 0000000000..43510257dd --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest + */ + format?: PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestFormatEnum; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse.ts new file mode 100644 index 0000000000..551fa7e227 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponseToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest.ts new file mode 100644 index 0000000000..aa16f4876c --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest.ts @@ -0,0 +1,96 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest + */ + format?: PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestFormatEnum; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse.ts new file mode 100644 index 0000000000..ef66f0f3ca --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponseToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest.ts new file mode 100644 index 0000000000..c244fb4a7e --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest + */ + format?: PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse.ts new file mode 100644 index 0000000000..1d56b1de75 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponseToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignRequest.ts new file mode 100644 index 0000000000..1502e14846 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignRequest.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignRequest + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignRequest { + [key: string]: any | any; + /** + * PEM-format CSR is expected but the contents of this field will not be validated + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignRequest + */ + csr: string; + /** + * Format for returned data. Can be "pem", "der", or "pem_bundle". If "pem_bundle", any private key and issuing cert will be appended to the certificate pem. If "der", the value will be base64 encoded. Defaults to "pem". + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignRequest + */ + format?: PkiWriteIssuerIssuerRefExternalPolicySignRequestFormatEnum; + /** + * Whether or not to remove self-signed CA certificates in the output of the ca_chain field. + * @type {boolean} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignRequest + */ + removeRootsFromChain?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteIssuerIssuerRefExternalPolicySignRequestFormatEnum { + PEM = 'pem', + DER = 'der', + PEM_BUNDLE = 'pem_bundle', +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignRequest( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignRequest { + if (!('csr' in value) || value['csr'] === undefined) return false; + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignRequest { + if (json == null) { + return json; + } + return { + ...json, + csr: json['csr'], + format: json['format'] == null ? undefined : json['format'], + removeRootsFromChain: + json['remove_roots_from_chain'] == null ? undefined : json['remove_roots_from_chain'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignRequest { + return PkiWriteIssuerIssuerRefExternalPolicySignRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ...value, + csr: value['csr'], + format: value['format'], + remove_roots_from_chain: value['removeRootsFromChain'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignResponse.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignResponse.ts new file mode 100644 index 0000000000..389a4891dc --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefExternalPolicySignResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefExternalPolicySignResponse + */ +export interface PkiWriteIssuerIssuerRefExternalPolicySignResponse { + /** + * Certificate Chain + * @type {Array} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignResponse + */ + certificate?: string; + /** + * Time of expiration + * @type {number} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignResponse + */ + expiration?: number; + /** + * Issuing Certificate Authority + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignResponse + */ + issuingCa?: string; + /** + * Serial Number + * @type {string} + * @memberof PkiWriteIssuerIssuerRefExternalPolicySignResponse + */ + serialNumber?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefExternalPolicySignResponse interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefExternalPolicySignResponse( + value: object +): value is PkiWriteIssuerIssuerRefExternalPolicySignResponse { + return true; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignResponseFromJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignResponseFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefExternalPolicySignResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + expiration: json['expiration'] == null ? undefined : json['expiration'], + issuingCa: json['issuing_ca'] == null ? undefined : json['issuing_ca'], + serialNumber: json['serial_number'] == null ? undefined : json['serial_number'], + }; +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignResponseToJSON( + json: any +): PkiWriteIssuerIssuerRefExternalPolicySignResponse { + return PkiWriteIssuerIssuerRefExternalPolicySignResponseToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefExternalPolicySignResponseToJSONTyped( + value?: PkiWriteIssuerIssuerRefExternalPolicySignResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + expiration: value['expiration'], + issuing_ca: value['issuingCa'], + serial_number: value['serialNumber'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..c3d854a5cf --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..e4177e084d --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..16852116a0 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..c942dbd594 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..1bdd861bc8 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..686c9a9d05 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..3fc326342b --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..0cce436dd7 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest.ts new file mode 100644 index 0000000000..1a91c22a3c --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..8d0c3a88ea --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest + */ +export interface PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest( + value: object +): value is PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestFromJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestToJSON( + json: any +): PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest { + return PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerRequest.ts b/ui/api-client/src/models/PkiWriteIssuerRequest.ts new file mode 100644 index 0000000000..2ca07b3eb5 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerRequest.ts @@ -0,0 +1,173 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerRequest + */ +export interface PkiWriteIssuerRequest { + /** + * Comma-separated list of URLs to be used for the CRL distribution points attribute. See also RFC 5280 Section 4.2.1.13. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + crlDistributionPoints?: Array; + /** + * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerRequest + */ + disableCriticalExtensionChecks?: boolean; + /** + * Whether the issuer name check should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerRequest + */ + disableNameChecks?: boolean; + /** + * Whether name contraint checks shoul be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerRequest + */ + disableNameConstraintChecks?: boolean; + /** + * Whether max path length checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerRequest + */ + disablePathLengthChecks?: boolean; + /** + * Whether or not to enabling templating of the above AIA fields. When templating is enabled the special values '{{issuer_id}}', '{{cluster_path}}', '{{cluster_aia_path}}' are available, but the addresses are not checked for URL validity until issuance time. Using '{{cluster_path}}' requires /config/cluster's 'path' member to be set on all PR Secondary clusters and using '{{cluster_aia_path}}' requires /config/cluster's 'aia_path' member to be set on all PR secondary clusters. + * @type {boolean} + * @memberof PkiWriteIssuerRequest + */ + enableAiaUrlTemplating?: boolean; + /** + * Provide a name to the generated or existing issuer, the name must be unique across all issuers and not be the reserved value 'default' + * @type {string} + * @memberof PkiWriteIssuerRequest + */ + issuerName?: string; + /** + * Comma-separated list of URLs to be used for the issuing certificate attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + issuingCertificates?: Array; + /** + * Behavior of leaf's NotAfter fields: "err" to error if the computed NotAfter date exceeds that of this issuer; "truncate" to silently truncate to that of this issuer; or "permit" to allow this issuance to succeed (with NotAfter exceeding that of an issuer). Note that not all values will results in certificates that can be validated through the entire validity period. It is suggested to use "truncate" for intermediate CAs and "permit" only for root CAs. + * @type {string} + * @memberof PkiWriteIssuerRequest + */ + leafNotAfterBehavior?: string; + /** + * Chain of issuer references to use to build this issuer's computed CAChain field, when non-empty. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + manualChain?: Array; + /** + * Comma-separated list of URLs to be used for the OCSP servers attribute. See also RFC 5280 Section 4.2.2.1. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + ocspServers?: Array; + /** + * Which x509.SignatureAlgorithm name to use for signing CRLs. This parameter allows differentiation between PKCS#1v1.5 and PSS keys and choice of signature hash algorithm. The default (empty string) value is for Go to select the signature algorithm. This can fail if the underlying key does not support the requested signature algorithm, which may not be known at modification time (such as with PKCS#11 managed RSA keys). + * @type {string} + * @memberof PkiWriteIssuerRequest + */ + revocationSignatureAlgorithm?: string; + /** + * Comma-separated list (or string slice) of usages for this issuer; valid values are "read-only", "issuing-certificates", "crl-signing", and "ocsp-signing". Multiple values may be specified. Read-only is implicit and always set. + * @type {Array} + * @memberof PkiWriteIssuerRequest + */ + usage?: Array; +} + +/** + * Check if a given object implements the PkiWriteIssuerRequest interface. + */ +export function instanceOfPkiWriteIssuerRequest(value: object): value is PkiWriteIssuerRequest { + return true; +} + +export function PkiWriteIssuerRequestFromJSON(json: any): PkiWriteIssuerRequest { + return PkiWriteIssuerRequestFromJSONTyped(json, false); +} + +export function PkiWriteIssuerRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerRequest { + if (json == null) { + return json; + } + return { + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + disableCriticalExtensionChecks: + json['disable_critical_extension_checks'] == null + ? undefined + : json['disable_critical_extension_checks'], + disableNameChecks: json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], + disableNameConstraintChecks: + json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], + disablePathLengthChecks: + json['disable_path_length_checks'] == null ? undefined : json['disable_path_length_checks'], + enableAiaUrlTemplating: + json['enable_aia_url_templating'] == null ? undefined : json['enable_aia_url_templating'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + leafNotAfterBehavior: + json['leaf_not_after_behavior'] == null ? undefined : json['leaf_not_after_behavior'], + manualChain: json['manual_chain'] == null ? undefined : json['manual_chain'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + revocationSignatureAlgorithm: + json['revocation_signature_algorithm'] == null ? undefined : json['revocation_signature_algorithm'], + usage: json['usage'] == null ? undefined : json['usage'], + }; +} + +export function PkiWriteIssuerRequestToJSON(json: any): PkiWriteIssuerRequest { + return PkiWriteIssuerRequestToJSONTyped(json, false); +} + +export function PkiWriteIssuerRequestToJSONTyped( + value?: PkiWriteIssuerRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + crl_distribution_points: value['crlDistributionPoints'], + disable_critical_extension_checks: value['disableCriticalExtensionChecks'], + disable_name_checks: value['disableNameChecks'], + disable_name_constraint_checks: value['disableNameConstraintChecks'], + disable_path_length_checks: value['disablePathLengthChecks'], + enable_aia_url_templating: value['enableAiaUrlTemplating'], + issuer_name: value['issuerName'], + issuing_certificates: value['issuingCertificates'], + leaf_not_after_behavior: value['leafNotAfterBehavior'], + manual_chain: value['manualChain'], + ocsp_servers: value['ocspServers'], + revocation_signature_algorithm: value['revocationSignatureAlgorithm'], + usage: value['usage'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteIssuerResponse.ts b/ui/api-client/src/models/PkiWriteIssuerResponse.ts new file mode 100644 index 0000000000..ce2d160c38 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteIssuerResponse.ts @@ -0,0 +1,230 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteIssuerResponse + */ +export interface PkiWriteIssuerResponse { + /** + * CA Chain + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + caChain?: Array; + /** + * Certificate + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + certificate?: string; + /** + * CRL Distribution Points + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + crlDistributionPoints?: Array; + /** + * Whether critical extension checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerResponse + */ + disableCriticalExtensionChecks?: boolean; + /** + * Whether the issuer name check should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerResponse + */ + disableNameChecks?: boolean; + /** + * Whether name contraint checks shoul be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerResponse + */ + disableNameConstraintChecks?: boolean; + /** + * Whether max path length checks should be performed when issuing certificates. (Enterprise only) + * @type {boolean} + * @memberof PkiWriteIssuerResponse + */ + disablePathLengthChecks?: boolean; + /** + * Whether or not templating is enabled for AIA fields + * @type {boolean} + * @memberof PkiWriteIssuerResponse + */ + enableAiaUrlTemplating?: boolean; + /** + * Issuer Id + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + issuerId?: string; + /** + * Issuer Name + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + issuerName?: string; + /** + * Issuing Certificates + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + issuingCertificates?: Array; + /** + * Key Id + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + keyId?: string; + /** + * Leaf Not After Behavior + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + leafNotAfterBehavior?: string; + /** + * Manual Chain + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + manualChain?: Array; + /** + * OCSP Servers + * @type {Array} + * @memberof PkiWriteIssuerResponse + */ + ocspServers?: Array; + /** + * Revocation Signature Alogrithm + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + revocationSignatureAlgorithm?: string; + /** + * Revocation time + * @type {number} + * @memberof PkiWriteIssuerResponse + */ + revocationTime?: number; + /** + * Revocation time RFC 3339 formatted + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + revocationTimeRfc3339?: string; + /** + * Revoked + * @type {boolean} + * @memberof PkiWriteIssuerResponse + */ + revoked?: boolean; + /** + * Usage + * @type {string} + * @memberof PkiWriteIssuerResponse + */ + usage?: string; +} + +/** + * Check if a given object implements the PkiWriteIssuerResponse interface. + */ +export function instanceOfPkiWriteIssuerResponse(value: object): value is PkiWriteIssuerResponse { + return true; +} + +export function PkiWriteIssuerResponseFromJSON(json: any): PkiWriteIssuerResponse { + return PkiWriteIssuerResponseFromJSONTyped(json, false); +} + +export function PkiWriteIssuerResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteIssuerResponse { + if (json == null) { + return json; + } + return { + caChain: json['ca_chain'] == null ? undefined : json['ca_chain'], + certificate: json['certificate'] == null ? undefined : json['certificate'], + crlDistributionPoints: + json['crl_distribution_points'] == null ? undefined : json['crl_distribution_points'], + disableCriticalExtensionChecks: + json['disable_critical_extension_checks'] == null + ? undefined + : json['disable_critical_extension_checks'], + disableNameChecks: json['disable_name_checks'] == null ? undefined : json['disable_name_checks'], + disableNameConstraintChecks: + json['disable_name_constraint_checks'] == null ? undefined : json['disable_name_constraint_checks'], + disablePathLengthChecks: + json['disable_path_length_checks'] == null ? undefined : json['disable_path_length_checks'], + enableAiaUrlTemplating: + json['enable_aia_url_templating'] == null ? undefined : json['enable_aia_url_templating'], + issuerId: json['issuer_id'] == null ? undefined : json['issuer_id'], + issuerName: json['issuer_name'] == null ? undefined : json['issuer_name'], + issuingCertificates: json['issuing_certificates'] == null ? undefined : json['issuing_certificates'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + leafNotAfterBehavior: + json['leaf_not_after_behavior'] == null ? undefined : json['leaf_not_after_behavior'], + manualChain: json['manual_chain'] == null ? undefined : json['manual_chain'], + ocspServers: json['ocsp_servers'] == null ? undefined : json['ocsp_servers'], + revocationSignatureAlgorithm: + json['revocation_signature_algorithm'] == null ? undefined : json['revocation_signature_algorithm'], + revocationTime: json['revocation_time'] == null ? undefined : json['revocation_time'], + revocationTimeRfc3339: + json['revocation_time_rfc3339'] == null ? undefined : json['revocation_time_rfc3339'], + revoked: json['revoked'] == null ? undefined : json['revoked'], + usage: json['usage'] == null ? undefined : json['usage'], + }; +} + +export function PkiWriteIssuerResponseToJSON(json: any): PkiWriteIssuerResponse { + return PkiWriteIssuerResponseToJSONTyped(json, false); +} + +export function PkiWriteIssuerResponseToJSONTyped( + value?: PkiWriteIssuerResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_chain: value['caChain'], + certificate: value['certificate'], + crl_distribution_points: value['crlDistributionPoints'], + disable_critical_extension_checks: value['disableCriticalExtensionChecks'], + disable_name_checks: value['disableNameChecks'], + disable_name_constraint_checks: value['disableNameConstraintChecks'], + disable_path_length_checks: value['disablePathLengthChecks'], + enable_aia_url_templating: value['enableAiaUrlTemplating'], + issuer_id: value['issuerId'], + issuer_name: value['issuerName'], + issuing_certificates: value['issuingCertificates'], + key_id: value['keyId'], + leaf_not_after_behavior: value['leafNotAfterBehavior'], + manual_chain: value['manualChain'], + ocsp_servers: value['ocspServers'], + revocation_signature_algorithm: value['revocationSignatureAlgorithm'], + revocation_time: value['revocationTime'], + revocation_time_rfc3339: value['revocationTimeRfc3339'], + revoked: value['revoked'], + usage: value['usage'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteKeyRequest.ts b/ui/api-client/src/models/PkiWriteKeyRequest.ts new file mode 100644 index 0000000000..e1dedff33d --- /dev/null +++ b/ui/api-client/src/models/PkiWriteKeyRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteKeyRequest + */ +export interface PkiWriteKeyRequest { + /** + * Human-readable name for this key. + * @type {string} + * @memberof PkiWriteKeyRequest + */ + keyName?: string; +} + +/** + * Check if a given object implements the PkiWriteKeyRequest interface. + */ +export function instanceOfPkiWriteKeyRequest(value: object): value is PkiWriteKeyRequest { + return true; +} + +export function PkiWriteKeyRequestFromJSON(json: any): PkiWriteKeyRequest { + return PkiWriteKeyRequestFromJSONTyped(json, false); +} + +export function PkiWriteKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PkiWriteKeyRequest { + if (json == null) { + return json; + } + return { + keyName: json['key_name'] == null ? undefined : json['key_name'], + }; +} + +export function PkiWriteKeyRequestToJSON(json: any): PkiWriteKeyRequest { + return PkiWriteKeyRequestToJSONTyped(json, false); +} + +export function PkiWriteKeyRequestToJSONTyped( + value?: PkiWriteKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_name: value['keyName'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteKeyResponse.ts b/ui/api-client/src/models/PkiWriteKeyResponse.ts new file mode 100644 index 0000000000..206caffe13 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteKeyResponse.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteKeyResponse + */ +export interface PkiWriteKeyResponse { + /** + * Key Id + * @type {string} + * @memberof PkiWriteKeyResponse + */ + keyId?: string; + /** + * Key Name + * @type {string} + * @memberof PkiWriteKeyResponse + */ + keyName?: string; + /** + * Key Type + * @type {string} + * @memberof PkiWriteKeyResponse + */ + keyType?: string; +} + +/** + * Check if a given object implements the PkiWriteKeyResponse interface. + */ +export function instanceOfPkiWriteKeyResponse(value: object): value is PkiWriteKeyResponse { + return true; +} + +export function PkiWriteKeyResponseFromJSON(json: any): PkiWriteKeyResponse { + return PkiWriteKeyResponseFromJSONTyped(json, false); +} + +export function PkiWriteKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteKeyResponse { + if (json == null) { + return json; + } + return { + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + }; +} + +export function PkiWriteKeyResponseToJSON(json: any): PkiWriteKeyResponse { + return PkiWriteKeyResponseToJSONTyped(json, false); +} + +export function PkiWriteKeyResponseToJSONTyped( + value?: PkiWriteKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_id: value['keyId'], + key_name: value['keyName'], + key_type: value['keyType'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRoleRequest.ts b/ui/api-client/src/models/PkiWriteRoleRequest.ts new file mode 100644 index 0000000000..b2291db1c1 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRoleRequest.ts @@ -0,0 +1,469 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRoleRequest + */ +export interface PkiWriteRoleRequest { + /** + * If set, clients can request certificates for any domain, regardless of allowed_domains restrictions. See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowAnyName?: boolean; + /** + * If set, clients can request certificates for the base domains themselves, e.g. "example.com" of domains listed in allowed_domains. This is a separate option as in some cases this can be considered a security threat. See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowBareDomains?: boolean; + /** + * If set, domains specified in allowed_domains can include shell-style glob patterns, e.g. "ftp*.example.com". See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowGlobDomains?: boolean; + /** + * If set, IP Subject Alternative Names are allowed. Any valid IP is accepted and No authorization checking is performed. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowIpSans?: boolean; + /** + * Whether to allow "localhost" and "localdomain" as a valid common name in a request, independent of allowed_domains value. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowLocalhost?: boolean; + /** + * If set, clients can request certificates for subdomains of domains listed in allowed_domains, including wildcard subdomains. See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowSubdomains?: boolean; + /** + * If set, allows certificates with wildcards in the common name to be issued, conforming to RFC 6125's Section 6.4.3; e.g., "*.example.net" or "b*z.example.net". See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowWildcardCertificates?: boolean; + /** + * Specifies the domains this role is allowed to issue certificates for. This is used with the allow_bare_domains, allow_subdomains, and allow_glob_domains to determine matches for the common name, DNS-typed SAN entries, and Email-typed SAN entries of certificates. See the documentation for more information. This parameter accepts a comma-separated string or list of domains. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + allowedDomains?: Array; + /** + * If set, Allowed domains can be specified using identity template policies. Non-templated domains are also permitted. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowedDomainsTemplate?: boolean; + /** + * If set, an array of allowed other names to put in SANs. These values support globbing and must be in the format ;:. Currently only "utf8" is a valid type. All values, including globbing values, must use this syntax, with the exception being a single "*" which allows any OID and any value (but type must still be utf8). + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + allowedOtherSans?: Array; + /** + * If set, an array of allowed serial numbers to put in Subject. These values support globbing. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + allowedSerialNumbers?: Array; + /** + * If set, an array of allowed URIs for URI Subject Alternative Names. Any valid URI is accepted, these values support globbing. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + allowedUriSans?: Array; + /** + * If set, Allowed URI SANs can be specified using identity template policies. Non-templated URI SANs are also permitted. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + allowedUriSansTemplate?: boolean; + /** + * If set, an array of allowed user-ids to put in user system login name specified here: https://www.rfc-editor.org/rfc/rfc1274#section-9.3.1 + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + allowedUserIds?: Array; + /** + * Backend Type + * @type {string} + * @memberof PkiWriteRoleRequest + */ + backend?: string; + /** + * Mark Basic Constraints valid when issuing non-CA certificates. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + basicConstraintsValidForNonCa?: boolean; + /** + * If set, certificates are flagged for client auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + clientFlag?: boolean; + /** + * List of allowed validations to run against the Common Name field. Values can include 'email' to validate the CN is a email address, 'hostname' to validate the CN is a valid hostname (potentially including wildcards). When multiple validations are specified, these take OR semantics (either email OR hostname are allowed). The special value 'disabled' allows disabling all CN name validations, allowing for arbitrary non-Hostname, non-Email address CNs. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + cnValidations?: Array; + /** + * If set, certificates are flagged for code signing use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + codeSigningFlag?: boolean; + /** + * If set, Country will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + country?: Array; + /** + * If set, certificates are flagged for email protection use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + emailProtectionFlag?: boolean; + /** + * If set, only valid host names are allowed for CN and DNS SANs, and the host part of email addresses. Defaults to true. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + enforceHostnames?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.12. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + extKeyUsageOids?: Array; + /** + * If set, certificates issued/signed against this role will have Vault leases attached to them. Defaults to "false". Certificates can be added to the CRL by "vault revoke " when certificates are associated with leases. It can also be done using the "pki/revoke" endpoint. However, when lease generation is disabled, invoking "pki/revoke" would be the only way to add the certificates to the CRL. When large number of certificates are generated with long lifetimes, it is recommended that lease generation be disabled, as large amount of leases adversely affect the startup time of Vault. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + generateLease?: boolean; + /** + * Reference to the issuer used to sign requests serviced by this role. + * @type {string} + * @memberof PkiWriteRoleRequest + */ + issuerRef?: string; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiWriteRoleRequest + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec", "ed25519" and "any" are the only valid values. + * @type {string} + * @memberof PkiWriteRoleRequest + */ + keyType?: PkiWriteRoleRequestKeyTypeEnum; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.3. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + locality?: Array; + /** + * The maximum allowed lease duration. If not set, defaults to the system maximum lease TTL. + * @type {string} + * @memberof PkiWriteRoleRequest + */ + maxTtl?: string; + /** + * If set, certificates issued/signed against this role will not be stored in the storage backend. This can improve performance when issuing large numbers of certificates. However, certificates issued in this way cannot be enumerated or revoked, so this option is recommended only for certificates that are non-sensitive, or extremely short-lived. This option implies a value of "false" for "generate_lease". + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + noStore?: boolean; + /** + * If set, if a client attempts to issue or sign a certificate with attached cert_metadata to store, the issuance / signing instead fails. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + noStoreMetadata?: boolean; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ. + * @type {string} + * @memberof PkiWriteRoleRequest + */ + notAfter?: string; + /** + * The duration before now which the certificate needs to be backdated by. + * @type {string} + * @memberof PkiWriteRoleRequest + */ + notBeforeDuration?: string; + /** + * If set, O (Organization) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + organization?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + ou?: Array; + /** + * A comma-separated string or list of policy OIDs, or a JSON list of qualified policy information, which must include an oid, and may include a notice and/or cps url, using the form [{"oid"="1.3.6.1.4.1.7.8","notice"="I am a user Notice"}, {"oid"="1.3.6.1.4.1.44947.1.2.4 ","cps"="https://example.com"}]. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + policyIdentifiers?: Array; + /** + * If set, Postal Code will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + postalCode?: Array; + /** + * If set, Province will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + province?: Array; + /** + * If set to false, makes the 'common_name' field optional while generating a certificate. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + requireCn?: boolean; + /** + * Source for the certificate subject serial number. If "json-csr" (default), the value from the JSON serial_number field is used, falling back to the value in the CSR if empty. If "json", the value from the serial_number JSON field is used, ignoring the value in the CSR. + * @type {string} + * @memberof PkiWriteRoleRequest + */ + serialNumberSource?: string; + /** + * If set, certificates are flagged for server auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + serverFlag?: boolean; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiWriteRoleRequest + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleRequest + */ + streetAddress?: Array; + /** + * The lease duration (validity period of the certificate) if no specific lease duration is requested. The lease duration controls the expiration of certificates issued by this backend. Defaults to the system default value or the value of max_ttl, whichever is shorter. + * @type {string} + * @memberof PkiWriteRoleRequest + */ + ttl?: string; + /** + * If set, when used with a signing profile, the common name in the CSR will be used. This does *not* include any requested Subject Alternative Names; use use_csr_sans for that. Defaults to true. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + useCsrCommonName?: boolean; + /** + * If set, when used with a signing profile, the SANs in the CSR will be used. This does *not* include the Common Name (cn); use use_csr_common_name for that. Defaults to true. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + useCsrSans?: boolean; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiWriteRoleRequest + */ + usePss?: boolean; +} + +/** + * @export + * @enum {string} + */ +export enum PkiWriteRoleRequestKeyTypeEnum { + RSA = 'rsa', + EC = 'ec', + ED25519 = 'ed25519', + ANY = 'any', +} + +/** + * Check if a given object implements the PkiWriteRoleRequest interface. + */ +export function instanceOfPkiWriteRoleRequest(value: object): value is PkiWriteRoleRequest { + return true; +} + +export function PkiWriteRoleRequestFromJSON(json: any): PkiWriteRoleRequest { + return PkiWriteRoleRequestFromJSONTyped(json, false); +} + +export function PkiWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRoleRequest { + if (json == null) { + return json; + } + return { + allowAnyName: json['allow_any_name'] == null ? undefined : json['allow_any_name'], + allowBareDomains: json['allow_bare_domains'] == null ? undefined : json['allow_bare_domains'], + allowGlobDomains: json['allow_glob_domains'] == null ? undefined : json['allow_glob_domains'], + allowIpSans: json['allow_ip_sans'] == null ? undefined : json['allow_ip_sans'], + allowLocalhost: json['allow_localhost'] == null ? undefined : json['allow_localhost'], + allowSubdomains: json['allow_subdomains'] == null ? undefined : json['allow_subdomains'], + allowWildcardCertificates: + json['allow_wildcard_certificates'] == null ? undefined : json['allow_wildcard_certificates'], + allowedDomains: json['allowed_domains'] == null ? undefined : json['allowed_domains'], + allowedDomainsTemplate: + json['allowed_domains_template'] == null ? undefined : json['allowed_domains_template'], + allowedOtherSans: json['allowed_other_sans'] == null ? undefined : json['allowed_other_sans'], + allowedSerialNumbers: json['allowed_serial_numbers'] == null ? undefined : json['allowed_serial_numbers'], + allowedUriSans: json['allowed_uri_sans'] == null ? undefined : json['allowed_uri_sans'], + allowedUriSansTemplate: + json['allowed_uri_sans_template'] == null ? undefined : json['allowed_uri_sans_template'], + allowedUserIds: json['allowed_user_ids'] == null ? undefined : json['allowed_user_ids'], + backend: json['backend'] == null ? undefined : json['backend'], + basicConstraintsValidForNonCa: + json['basic_constraints_valid_for_non_ca'] == null + ? undefined + : json['basic_constraints_valid_for_non_ca'], + clientFlag: json['client_flag'] == null ? undefined : json['client_flag'], + cnValidations: json['cn_validations'] == null ? undefined : json['cn_validations'], + codeSigningFlag: json['code_signing_flag'] == null ? undefined : json['code_signing_flag'], + country: json['country'] == null ? undefined : json['country'], + emailProtectionFlag: json['email_protection_flag'] == null ? undefined : json['email_protection_flag'], + enforceHostnames: json['enforce_hostnames'] == null ? undefined : json['enforce_hostnames'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + generateLease: json['generate_lease'] == null ? undefined : json['generate_lease'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + noStore: json['no_store'] == null ? undefined : json['no_store'], + noStoreMetadata: json['no_store_metadata'] == null ? undefined : json['no_store_metadata'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + ou: json['ou'] == null ? undefined : json['ou'], + policyIdentifiers: json['policy_identifiers'] == null ? undefined : json['policy_identifiers'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + province: json['province'] == null ? undefined : json['province'], + requireCn: json['require_cn'] == null ? undefined : json['require_cn'], + serialNumberSource: json['serial_number_source'] == null ? undefined : json['serial_number_source'], + serverFlag: json['server_flag'] == null ? undefined : json['server_flag'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + useCsrCommonName: json['use_csr_common_name'] == null ? undefined : json['use_csr_common_name'], + useCsrSans: json['use_csr_sans'] == null ? undefined : json['use_csr_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiWriteRoleRequestToJSON(json: any): PkiWriteRoleRequest { + return PkiWriteRoleRequestToJSONTyped(json, false); +} + +export function PkiWriteRoleRequestToJSONTyped( + value?: PkiWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_any_name: value['allowAnyName'], + allow_bare_domains: value['allowBareDomains'], + allow_glob_domains: value['allowGlobDomains'], + allow_ip_sans: value['allowIpSans'], + allow_localhost: value['allowLocalhost'], + allow_subdomains: value['allowSubdomains'], + allow_wildcard_certificates: value['allowWildcardCertificates'], + allowed_domains: value['allowedDomains'], + allowed_domains_template: value['allowedDomainsTemplate'], + allowed_other_sans: value['allowedOtherSans'], + allowed_serial_numbers: value['allowedSerialNumbers'], + allowed_uri_sans: value['allowedUriSans'], + allowed_uri_sans_template: value['allowedUriSansTemplate'], + allowed_user_ids: value['allowedUserIds'], + backend: value['backend'], + basic_constraints_valid_for_non_ca: value['basicConstraintsValidForNonCa'], + client_flag: value['clientFlag'], + cn_validations: value['cnValidations'], + code_signing_flag: value['codeSigningFlag'], + country: value['country'], + email_protection_flag: value['emailProtectionFlag'], + enforce_hostnames: value['enforceHostnames'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + generate_lease: value['generateLease'], + issuer_ref: value['issuerRef'], + key_bits: value['keyBits'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + max_ttl: value['maxTtl'], + no_store: value['noStore'], + no_store_metadata: value['noStoreMetadata'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + ou: value['ou'], + policy_identifiers: value['policyIdentifiers'], + postal_code: value['postalCode'], + province: value['province'], + require_cn: value['requireCn'], + serial_number_source: value['serialNumberSource'], + server_flag: value['serverFlag'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + use_csr_common_name: value['useCsrCommonName'], + use_csr_sans: value['useCsrSans'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRoleResponse.ts b/ui/api-client/src/models/PkiWriteRoleResponse.ts new file mode 100644 index 0000000000..72e85c9d7e --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRoleResponse.ts @@ -0,0 +1,459 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRoleResponse + */ +export interface PkiWriteRoleResponse { + /** + * If set, clients can request certificates for any domain, regardless of allowed_domains restrictions. See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowAnyName?: boolean; + /** + * If set, clients can request certificates for the base domains themselves, e.g. "example.com" of domains listed in allowed_domains. This is a separate option as in some cases this can be considered a security threat. See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowBareDomains?: boolean; + /** + * If set, domains specified in allowed_domains can include shell-style glob patterns, e.g. "ftp*.example.com". See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowGlobDomains?: boolean; + /** + * If set, IP Subject Alternative Names are allowed. Any valid IP is accepted and No authorization checking is performed. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowIpSans?: boolean; + /** + * Whether to allow "localhost" and "localdomain" as a valid common name in a request, independent of allowed_domains value. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowLocalhost?: boolean; + /** + * If set, clients can request certificates for subdomains of domains listed in allowed_domains, including wildcard subdomains. See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowSubdomains?: boolean; + /** + * Whether to allow "localhost" and "localdomain" as a valid common name in a request, independent of allowed_domains value. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowTokenDisplayname?: boolean; + /** + * If set, allows certificates with wildcards in the common name to be issued, conforming to RFC 6125's Section 6.4.3; e.g., "*.example.net" or "b*z.example.net". See the documentation for more information. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowWildcardCertificates?: boolean; + /** + * Specifies the domains this role is allowed to issue certificates for. This is used with the allow_bare_domains, allow_subdomains, and allow_glob_domains to determine matches for the common name, DNS-typed SAN entries, and Email-typed SAN entries of certificates. See the documentation for more information. This parameter accepts a comma-separated string or list of domains. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + allowedDomains?: Array; + /** + * If set, Allowed domains can be specified using identity template policies. Non-templated domains are also permitted. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowedDomainsTemplate?: boolean; + /** + * If set, an array of allowed other names to put in SANs. These values support globbing and must be in the format ;:. Currently only "utf8" is a valid type. All values, including globbing values, must use this syntax, with the exception being a single "*" which allows any OID and any value (but type must still be utf8). + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + allowedOtherSans?: Array; + /** + * If set, an array of allowed serial numbers to put in Subject. These values support globbing. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + allowedSerialNumbers?: Array; + /** + * If set, an array of allowed URIs for URI Subject Alternative Names. Any valid URI is accepted, these values support globbing. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + allowedUriSans?: Array; + /** + * If set, Allowed URI SANs can be specified using identity template policies. Non-templated URI SANs are also permitted. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + allowedUriSansTemplate?: boolean; + /** + * If set, an array of allowed user-ids to put in user system login name specified here: https://www.rfc-editor.org/rfc/rfc1274#section-9.3.1 + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + allowedUserIds?: Array; + /** + * Mark Basic Constraints valid when issuing non-CA certificates. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + basicConstraintsValidForNonCa?: boolean; + /** + * If set, certificates are flagged for client auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + clientFlag?: boolean; + /** + * List of allowed validations to run against the Common Name field. Values can include 'email' to validate the CN is a email address, 'hostname' to validate the CN is a valid hostname (potentially including wildcards). When multiple validations are specified, these take OR semantics (either email OR hostname are allowed). The special value 'disabled' allows disabling all CN name validations, allowing for arbitrary non-Hostname, non-Email address CNs. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + cnValidations?: Array; + /** + * If set, certificates are flagged for code signing use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + codeSigningFlag?: boolean; + /** + * If set, Country will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + country?: Array; + /** + * If set, certificates are flagged for email protection use. Defaults to false. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + emailProtectionFlag?: boolean; + /** + * If set, only valid host names are allowed for CN and DNS SANs, and the host part of email addresses. Defaults to true. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + enforceHostnames?: boolean; + /** + * A comma-separated string or list of extended key usages. Valid values can be found at https://golang.org/pkg/crypto/x509/#ExtKeyUsage -- simply drop the "ExtKeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.12. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + extKeyUsage?: Array; + /** + * A comma-separated string or list of extended key usage oids. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + extKeyUsageOids?: Array; + /** + * If set, certificates issued/signed against this role will have Vault leases attached to them. Defaults to "false". Certificates can be added to the CRL by "vault revoke " when certificates are associated with leases. It can also be done using the "pki/revoke" endpoint. However, when lease generation is disabled, invoking "pki/revoke" would be the only way to add the certificates to the CRL. When large number of certificates are generated with long lifetimes, it is recommended that lease generation be disabled, as large amount of leases adversely affect the startup time of Vault. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + generateLease?: boolean; + /** + * Reference to the issuer used to sign requests serviced by this role. + * @type {string} + * @memberof PkiWriteRoleResponse + */ + issuerRef?: string; + /** + * The number of bits to use. Allowed values are 0 (universal default); with rsa key_type: 2048 (default), 3072, or 4096; with ec key_type: 224, 256 (default), 384, or 521; ignored with ed25519. + * @type {number} + * @memberof PkiWriteRoleResponse + */ + keyBits?: number; + /** + * The type of key to use; defaults to RSA. "rsa" "ec", "ed25519" and "any" are the only valid values. + * @type {string} + * @memberof PkiWriteRoleResponse + */ + keyType?: string; + /** + * A comma-separated string or list of key usages (not extended key usages). Valid values can be found at https://golang.org/pkg/crypto/x509/#KeyUsage -- simply drop the "KeyUsage" part of the name. To remove all key usages from being set, set this value to an empty list. See also RFC 5280 Section 4.2.1.3. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + keyUsage?: Array; + /** + * If set, Locality will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + locality?: Array; + /** + * The maximum allowed lease duration. If not set, defaults to the system maximum lease TTL. + * @type {number} + * @memberof PkiWriteRoleResponse + */ + maxTtl?: number; + /** + * If set, certificates issued/signed against this role will not be stored in the storage backend. This can improve performance when issuing large numbers of certificates. However, certificates issued in this way cannot be enumerated or revoked, so this option is recommended only for certificates that are non-sensitive, or extremely short-lived. This option implies a value of "false" for "generate_lease". + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + noStore?: boolean; + /** + * If set, if a client attempts to issue or sign a certificate with attached cert_metadata to store, the issuance / signing instead fails. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + noStoreMetadata?: boolean; + /** + * Set the not after field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ. + * @type {string} + * @memberof PkiWriteRoleResponse + */ + notAfter?: string; + /** + * The duration in seconds before now which the certificate needs to be backdated by. + * @type {number} + * @memberof PkiWriteRoleResponse + */ + notBeforeDuration?: number; + /** + * If set, O (Organization) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + organization?: Array; + /** + * If set, OU (OrganizationalUnit) will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + ou?: Array; + /** + * A comma-separated string or list of policy OIDs, or a JSON list of qualified policy information, which must include an oid, and may include a notice and/or cps url, using the form [{"oid"="1.3.6.1.4.1.7.8","notice"="I am a user Notice"}, {"oid"="1.3.6.1.4.1.44947.1.2.4 ","cps"="https://example.com"}]. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + policyIdentifiers?: Array; + /** + * If set, Postal Code will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + postalCode?: Array; + /** + * If set, Province will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + province?: Array; + /** + * If set to false, makes the 'common_name' field optional while generating a certificate. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + requireCn?: boolean; + /** + * Source for the certificate subject serial number. If "json-csr" (default), the value from the JSON serial_number field is used, falling back to the value in the CSR if empty. If "json", the value from the serial_number JSON field is used, ignoring the value in the CSR. + * @type {string} + * @memberof PkiWriteRoleResponse + */ + serialNumberSource?: string; + /** + * If set, certificates are flagged for server auth use. Defaults to true. See also RFC 5280 Section 4.2.1.12. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + serverFlag?: boolean; + /** + * The number of bits to use in the signature algorithm; accepts 256 for SHA-2-256, 384 for SHA-2-384, and 512 for SHA-2-512. Defaults to 0 to automatically detect based on key length (SHA-2-256 for RSA keys, and matching the curve size for NIST P-Curves). + * @type {number} + * @memberof PkiWriteRoleResponse + */ + signatureBits?: number; + /** + * If set, Street Address will be set to this value in certificates issued by this role. + * @type {Array} + * @memberof PkiWriteRoleResponse + */ + streetAddress?: Array; + /** + * The lease duration (validity period of the certificate) if no specific lease duration is requested. The lease duration controls the expiration of certificates issued by this backend. Defaults to the system default value or the value of max_ttl, whichever is shorter. + * @type {number} + * @memberof PkiWriteRoleResponse + */ + ttl?: number; + /** + * If set, when used with a signing profile, the common name in the CSR will be used. This does *not* include any requested Subject Alternative Names; use use_csr_sans for that. Defaults to true. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + useCsrCommonName?: boolean; + /** + * If set, when used with a signing profile, the SANs in the CSR will be used. This does *not* include the Common Name (cn); use use_csr_common_name for that. Defaults to true. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + useCsrSans?: boolean; + /** + * Whether or not to use PSS signatures when using a RSA key-type issuer. Defaults to false. + * @type {boolean} + * @memberof PkiWriteRoleResponse + */ + usePss?: boolean; +} + +/** + * Check if a given object implements the PkiWriteRoleResponse interface. + */ +export function instanceOfPkiWriteRoleResponse(value: object): value is PkiWriteRoleResponse { + return true; +} + +export function PkiWriteRoleResponseFromJSON(json: any): PkiWriteRoleResponse { + return PkiWriteRoleResponseFromJSONTyped(json, false); +} + +export function PkiWriteRoleResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRoleResponse { + if (json == null) { + return json; + } + return { + allowAnyName: json['allow_any_name'] == null ? undefined : json['allow_any_name'], + allowBareDomains: json['allow_bare_domains'] == null ? undefined : json['allow_bare_domains'], + allowGlobDomains: json['allow_glob_domains'] == null ? undefined : json['allow_glob_domains'], + allowIpSans: json['allow_ip_sans'] == null ? undefined : json['allow_ip_sans'], + allowLocalhost: json['allow_localhost'] == null ? undefined : json['allow_localhost'], + allowSubdomains: json['allow_subdomains'] == null ? undefined : json['allow_subdomains'], + allowTokenDisplayname: + json['allow_token_displayname'] == null ? undefined : json['allow_token_displayname'], + allowWildcardCertificates: + json['allow_wildcard_certificates'] == null ? undefined : json['allow_wildcard_certificates'], + allowedDomains: json['allowed_domains'] == null ? undefined : json['allowed_domains'], + allowedDomainsTemplate: + json['allowed_domains_template'] == null ? undefined : json['allowed_domains_template'], + allowedOtherSans: json['allowed_other_sans'] == null ? undefined : json['allowed_other_sans'], + allowedSerialNumbers: json['allowed_serial_numbers'] == null ? undefined : json['allowed_serial_numbers'], + allowedUriSans: json['allowed_uri_sans'] == null ? undefined : json['allowed_uri_sans'], + allowedUriSansTemplate: + json['allowed_uri_sans_template'] == null ? undefined : json['allowed_uri_sans_template'], + allowedUserIds: json['allowed_user_ids'] == null ? undefined : json['allowed_user_ids'], + basicConstraintsValidForNonCa: + json['basic_constraints_valid_for_non_ca'] == null + ? undefined + : json['basic_constraints_valid_for_non_ca'], + clientFlag: json['client_flag'] == null ? undefined : json['client_flag'], + cnValidations: json['cn_validations'] == null ? undefined : json['cn_validations'], + codeSigningFlag: json['code_signing_flag'] == null ? undefined : json['code_signing_flag'], + country: json['country'] == null ? undefined : json['country'], + emailProtectionFlag: json['email_protection_flag'] == null ? undefined : json['email_protection_flag'], + enforceHostnames: json['enforce_hostnames'] == null ? undefined : json['enforce_hostnames'], + extKeyUsage: json['ext_key_usage'] == null ? undefined : json['ext_key_usage'], + extKeyUsageOids: json['ext_key_usage_oids'] == null ? undefined : json['ext_key_usage_oids'], + generateLease: json['generate_lease'] == null ? undefined : json['generate_lease'], + issuerRef: json['issuer_ref'] == null ? undefined : json['issuer_ref'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + keyUsage: json['key_usage'] == null ? undefined : json['key_usage'], + locality: json['locality'] == null ? undefined : json['locality'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + noStore: json['no_store'] == null ? undefined : json['no_store'], + noStoreMetadata: json['no_store_metadata'] == null ? undefined : json['no_store_metadata'], + notAfter: json['not_after'] == null ? undefined : json['not_after'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + organization: json['organization'] == null ? undefined : json['organization'], + ou: json['ou'] == null ? undefined : json['ou'], + policyIdentifiers: json['policy_identifiers'] == null ? undefined : json['policy_identifiers'], + postalCode: json['postal_code'] == null ? undefined : json['postal_code'], + province: json['province'] == null ? undefined : json['province'], + requireCn: json['require_cn'] == null ? undefined : json['require_cn'], + serialNumberSource: json['serial_number_source'] == null ? undefined : json['serial_number_source'], + serverFlag: json['server_flag'] == null ? undefined : json['server_flag'], + signatureBits: json['signature_bits'] == null ? undefined : json['signature_bits'], + streetAddress: json['street_address'] == null ? undefined : json['street_address'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + useCsrCommonName: json['use_csr_common_name'] == null ? undefined : json['use_csr_common_name'], + useCsrSans: json['use_csr_sans'] == null ? undefined : json['use_csr_sans'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function PkiWriteRoleResponseToJSON(json: any): PkiWriteRoleResponse { + return PkiWriteRoleResponseToJSONTyped(json, false); +} + +export function PkiWriteRoleResponseToJSONTyped( + value?: PkiWriteRoleResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_any_name: value['allowAnyName'], + allow_bare_domains: value['allowBareDomains'], + allow_glob_domains: value['allowGlobDomains'], + allow_ip_sans: value['allowIpSans'], + allow_localhost: value['allowLocalhost'], + allow_subdomains: value['allowSubdomains'], + allow_token_displayname: value['allowTokenDisplayname'], + allow_wildcard_certificates: value['allowWildcardCertificates'], + allowed_domains: value['allowedDomains'], + allowed_domains_template: value['allowedDomainsTemplate'], + allowed_other_sans: value['allowedOtherSans'], + allowed_serial_numbers: value['allowedSerialNumbers'], + allowed_uri_sans: value['allowedUriSans'], + allowed_uri_sans_template: value['allowedUriSansTemplate'], + allowed_user_ids: value['allowedUserIds'], + basic_constraints_valid_for_non_ca: value['basicConstraintsValidForNonCa'], + client_flag: value['clientFlag'], + cn_validations: value['cnValidations'], + code_signing_flag: value['codeSigningFlag'], + country: value['country'], + email_protection_flag: value['emailProtectionFlag'], + enforce_hostnames: value['enforceHostnames'], + ext_key_usage: value['extKeyUsage'], + ext_key_usage_oids: value['extKeyUsageOids'], + generate_lease: value['generateLease'], + issuer_ref: value['issuerRef'], + key_bits: value['keyBits'], + key_type: value['keyType'], + key_usage: value['keyUsage'], + locality: value['locality'], + max_ttl: value['maxTtl'], + no_store: value['noStore'], + no_store_metadata: value['noStoreMetadata'], + not_after: value['notAfter'], + not_before_duration: value['notBeforeDuration'], + organization: value['organization'], + ou: value['ou'], + policy_identifiers: value['policyIdentifiers'], + postal_code: value['postalCode'], + province: value['province'], + require_cn: value['requireCn'], + serial_number_source: value['serialNumberSource'], + server_flag: value['serverFlag'], + signature_bits: value['signatureBits'], + street_address: value['streetAddress'], + ttl: value['ttl'], + use_csr_common_name: value['useCsrCommonName'], + use_csr_sans: value['useCsrSans'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeAccountKidRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeAccountKidRequest.ts new file mode 100644 index 0000000000..d10cdfe046 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeAccountKidRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeAccountKidRequest + */ +export interface PkiWriteRolesRoleAcmeAccountKidRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeAccountKidRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeAccountKidRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeAccountKidRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeAccountKidRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeAccountKidRequest( + value: object +): value is PkiWriteRolesRoleAcmeAccountKidRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeAccountKidRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeAccountKidRequest { + return PkiWriteRolesRoleAcmeAccountKidRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeAccountKidRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeAccountKidRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeAccountKidRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeAccountKidRequest { + return PkiWriteRolesRoleAcmeAccountKidRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeAccountKidRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeAccountKidRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest.ts new file mode 100644 index 0000000000..1a1db7d694 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest + */ +export interface PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeAuthorizationAuthIdRequest( + value: object +): value is PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest { + return PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest { + return PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeAuthorizationAuthIdRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts new file mode 100644 index 0000000000..3cc3f52c2e --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ +export interface PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest( + value: object +): value is PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest { + return PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeNewAccountRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeNewAccountRequest.ts new file mode 100644 index 0000000000..bb94038dac --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeNewAccountRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeNewAccountRequest + */ +export interface PkiWriteRolesRoleAcmeNewAccountRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeNewAccountRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeNewAccountRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeNewAccountRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeNewAccountRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeNewAccountRequest( + value: object +): value is PkiWriteRolesRoleAcmeNewAccountRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeNewAccountRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeNewAccountRequest { + return PkiWriteRolesRoleAcmeNewAccountRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeNewAccountRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeNewAccountRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeNewAccountRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeNewAccountRequest { + return PkiWriteRolesRoleAcmeNewAccountRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeNewAccountRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeNewAccountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeNewOrderRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeNewOrderRequest.ts new file mode 100644 index 0000000000..8ff57037ce --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeNewOrderRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeNewOrderRequest + */ +export interface PkiWriteRolesRoleAcmeNewOrderRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeNewOrderRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeNewOrderRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeNewOrderRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeNewOrderRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeNewOrderRequest( + value: object +): value is PkiWriteRolesRoleAcmeNewOrderRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeNewOrderRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeNewOrderRequest { + return PkiWriteRolesRoleAcmeNewOrderRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeNewOrderRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeNewOrderRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeNewOrderRequestToJSON(json: any): PkiWriteRolesRoleAcmeNewOrderRequest { + return PkiWriteRolesRoleAcmeNewOrderRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeNewOrderRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeNewOrderRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdCertRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdCertRequest.ts new file mode 100644 index 0000000000..8117613ab8 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeOrderOrderIdCertRequest + */ +export interface PkiWriteRolesRoleAcmeOrderOrderIdCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeOrderOrderIdCertRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeOrderOrderIdCertRequest( + value: object +): value is PkiWriteRolesRoleAcmeOrderOrderIdCertRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdCertRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeOrderOrderIdCertRequest { + return PkiWriteRolesRoleAcmeOrderOrderIdCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeOrderOrderIdCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdCertRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeOrderOrderIdCertRequest { + return PkiWriteRolesRoleAcmeOrderOrderIdCertRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdCertRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeOrderOrderIdCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest.ts new file mode 100644 index 0000000000..2b6e91d5c5 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest + */ +export interface PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest( + value: object +): value is PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest { + return PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest { + return PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdRequest.ts new file mode 100644 index 0000000000..6469508771 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrderOrderIdRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeOrderOrderIdRequest + */ +export interface PkiWriteRolesRoleAcmeOrderOrderIdRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrderOrderIdRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeOrderOrderIdRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeOrderOrderIdRequest( + value: object +): value is PkiWriteRolesRoleAcmeOrderOrderIdRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeOrderOrderIdRequest { + return PkiWriteRolesRoleAcmeOrderOrderIdRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeOrderOrderIdRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeOrderOrderIdRequest { + return PkiWriteRolesRoleAcmeOrderOrderIdRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrderOrderIdRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeOrderOrderIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrdersRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrdersRequest.ts new file mode 100644 index 0000000000..d40d5c6645 --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeOrdersRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeOrdersRequest + */ +export interface PkiWriteRolesRoleAcmeOrdersRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrdersRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrdersRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeOrdersRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeOrdersRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeOrdersRequest( + value: object +): value is PkiWriteRolesRoleAcmeOrdersRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeOrdersRequestFromJSON(json: any): PkiWriteRolesRoleAcmeOrdersRequest { + return PkiWriteRolesRoleAcmeOrdersRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrdersRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeOrdersRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeOrdersRequestToJSON(json: any): PkiWriteRolesRoleAcmeOrdersRequest { + return PkiWriteRolesRoleAcmeOrdersRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeOrdersRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeOrdersRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PkiWriteRolesRoleAcmeRevokeCertRequest.ts b/ui/api-client/src/models/PkiWriteRolesRoleAcmeRevokeCertRequest.ts new file mode 100644 index 0000000000..0e7794d48a --- /dev/null +++ b/ui/api-client/src/models/PkiWriteRolesRoleAcmeRevokeCertRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PkiWriteRolesRoleAcmeRevokeCertRequest + */ +export interface PkiWriteRolesRoleAcmeRevokeCertRequest { + /** + * ACME request 'payload' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeRevokeCertRequest + */ + payload?: string; + /** + * ACME request 'protected' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeRevokeCertRequest + */ + _protected?: string; + /** + * ACME request 'signature' value + * @type {string} + * @memberof PkiWriteRolesRoleAcmeRevokeCertRequest + */ + signature?: string; +} + +/** + * Check if a given object implements the PkiWriteRolesRoleAcmeRevokeCertRequest interface. + */ +export function instanceOfPkiWriteRolesRoleAcmeRevokeCertRequest( + value: object +): value is PkiWriteRolesRoleAcmeRevokeCertRequest { + return true; +} + +export function PkiWriteRolesRoleAcmeRevokeCertRequestFromJSON( + json: any +): PkiWriteRolesRoleAcmeRevokeCertRequest { + return PkiWriteRolesRoleAcmeRevokeCertRequestFromJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeRevokeCertRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PkiWriteRolesRoleAcmeRevokeCertRequest { + if (json == null) { + return json; + } + return { + payload: json['payload'] == null ? undefined : json['payload'], + _protected: json['protected'] == null ? undefined : json['protected'], + signature: json['signature'] == null ? undefined : json['signature'], + }; +} + +export function PkiWriteRolesRoleAcmeRevokeCertRequestToJSON( + json: any +): PkiWriteRolesRoleAcmeRevokeCertRequest { + return PkiWriteRolesRoleAcmeRevokeCertRequestToJSONTyped(json, false); +} + +export function PkiWriteRolesRoleAcmeRevokeCertRequestToJSONTyped( + value?: PkiWriteRolesRoleAcmeRevokeCertRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + payload: value['payload'], + protected: value['_protected'], + signature: value['signature'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogListPluginsResponse.ts b/ui/api-client/src/models/PluginsCatalogListPluginsResponse.ts new file mode 100644 index 0000000000..50da8751f1 --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogListPluginsResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogListPluginsResponse + */ +export interface PluginsCatalogListPluginsResponse { + /** + * + * @type {object} + * @memberof PluginsCatalogListPluginsResponse + */ + detailed?: object; +} + +/** + * Check if a given object implements the PluginsCatalogListPluginsResponse interface. + */ +export function instanceOfPluginsCatalogListPluginsResponse( + value: object +): value is PluginsCatalogListPluginsResponse { + return true; +} + +export function PluginsCatalogListPluginsResponseFromJSON(json: any): PluginsCatalogListPluginsResponse { + return PluginsCatalogListPluginsResponseFromJSONTyped(json, false); +} + +export function PluginsCatalogListPluginsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogListPluginsResponse { + if (json == null) { + return json; + } + return { + detailed: json['detailed'] == null ? undefined : json['detailed'], + }; +} + +export function PluginsCatalogListPluginsResponseToJSON(json: any): PluginsCatalogListPluginsResponse { + return PluginsCatalogListPluginsResponseToJSONTyped(json, false); +} + +export function PluginsCatalogListPluginsResponseToJSONTyped( + value?: PluginsCatalogListPluginsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + detailed: value['detailed'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogListPluginsWithTypeResponse.ts b/ui/api-client/src/models/PluginsCatalogListPluginsWithTypeResponse.ts new file mode 100644 index 0000000000..2fce1f13a7 --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogListPluginsWithTypeResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogListPluginsWithTypeResponse + */ +export interface PluginsCatalogListPluginsWithTypeResponse { + /** + * List of plugin names in the catalog + * @type {Array} + * @memberof PluginsCatalogListPluginsWithTypeResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the PluginsCatalogListPluginsWithTypeResponse interface. + */ +export function instanceOfPluginsCatalogListPluginsWithTypeResponse( + value: object +): value is PluginsCatalogListPluginsWithTypeResponse { + return true; +} + +export function PluginsCatalogListPluginsWithTypeResponseFromJSON( + json: any +): PluginsCatalogListPluginsWithTypeResponse { + return PluginsCatalogListPluginsWithTypeResponseFromJSONTyped(json, false); +} + +export function PluginsCatalogListPluginsWithTypeResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogListPluginsWithTypeResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function PluginsCatalogListPluginsWithTypeResponseToJSON( + json: any +): PluginsCatalogListPluginsWithTypeResponse { + return PluginsCatalogListPluginsWithTypeResponseToJSONTyped(json, false); +} + +export function PluginsCatalogListPluginsWithTypeResponseToJSONTyped( + value?: PluginsCatalogListPluginsWithTypeResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogPinsCreatePinnedVersionRequest.ts b/ui/api-client/src/models/PluginsCatalogPinsCreatePinnedVersionRequest.ts new file mode 100644 index 0000000000..e9f64b4d8d --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogPinsCreatePinnedVersionRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogPinsCreatePinnedVersionRequest + */ +export interface PluginsCatalogPinsCreatePinnedVersionRequest { + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof PluginsCatalogPinsCreatePinnedVersionRequest + */ + version?: string; +} + +/** + * Check if a given object implements the PluginsCatalogPinsCreatePinnedVersionRequest interface. + */ +export function instanceOfPluginsCatalogPinsCreatePinnedVersionRequest( + value: object +): value is PluginsCatalogPinsCreatePinnedVersionRequest { + return true; +} + +export function PluginsCatalogPinsCreatePinnedVersionRequestFromJSON( + json: any +): PluginsCatalogPinsCreatePinnedVersionRequest { + return PluginsCatalogPinsCreatePinnedVersionRequestFromJSONTyped(json, false); +} + +export function PluginsCatalogPinsCreatePinnedVersionRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogPinsCreatePinnedVersionRequest { + if (json == null) { + return json; + } + return { + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function PluginsCatalogPinsCreatePinnedVersionRequestToJSON( + json: any +): PluginsCatalogPinsCreatePinnedVersionRequest { + return PluginsCatalogPinsCreatePinnedVersionRequestToJSONTyped(json, false); +} + +export function PluginsCatalogPinsCreatePinnedVersionRequestToJSONTyped( + value?: PluginsCatalogPinsCreatePinnedVersionRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogPinsListPinnedVersionsResponse.ts b/ui/api-client/src/models/PluginsCatalogPinsListPinnedVersionsResponse.ts new file mode 100644 index 0000000000..b7c70433bd --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogPinsListPinnedVersionsResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogPinsListPinnedVersionsResponse + */ +export interface PluginsCatalogPinsListPinnedVersionsResponse { + /** + * + * @type {object} + * @memberof PluginsCatalogPinsListPinnedVersionsResponse + */ + pinnedVersions?: object; +} + +/** + * Check if a given object implements the PluginsCatalogPinsListPinnedVersionsResponse interface. + */ +export function instanceOfPluginsCatalogPinsListPinnedVersionsResponse( + value: object +): value is PluginsCatalogPinsListPinnedVersionsResponse { + return true; +} + +export function PluginsCatalogPinsListPinnedVersionsResponseFromJSON( + json: any +): PluginsCatalogPinsListPinnedVersionsResponse { + return PluginsCatalogPinsListPinnedVersionsResponseFromJSONTyped(json, false); +} + +export function PluginsCatalogPinsListPinnedVersionsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogPinsListPinnedVersionsResponse { + if (json == null) { + return json; + } + return { + pinnedVersions: json['pinned_versions'] == null ? undefined : json['pinned_versions'], + }; +} + +export function PluginsCatalogPinsListPinnedVersionsResponseToJSON( + json: any +): PluginsCatalogPinsListPinnedVersionsResponse { + return PluginsCatalogPinsListPinnedVersionsResponseToJSONTyped(json, false); +} + +export function PluginsCatalogPinsListPinnedVersionsResponseToJSONTyped( + value?: PluginsCatalogPinsListPinnedVersionsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + pinned_versions: value['pinnedVersions'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogPinsReadPinnedVersionResponse.ts b/ui/api-client/src/models/PluginsCatalogPinsReadPinnedVersionResponse.ts new file mode 100644 index 0000000000..d160ae8f8b --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogPinsReadPinnedVersionResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogPinsReadPinnedVersionResponse + */ +export interface PluginsCatalogPinsReadPinnedVersionResponse { + /** + * The name of the plugin + * @type {string} + * @memberof PluginsCatalogPinsReadPinnedVersionResponse + */ + name?: string; + /** + * The type of the plugin, may be auth, secret, or database + * @type {string} + * @memberof PluginsCatalogPinsReadPinnedVersionResponse + */ + type?: string; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof PluginsCatalogPinsReadPinnedVersionResponse + */ + version?: string; +} + +/** + * Check if a given object implements the PluginsCatalogPinsReadPinnedVersionResponse interface. + */ +export function instanceOfPluginsCatalogPinsReadPinnedVersionResponse( + value: object +): value is PluginsCatalogPinsReadPinnedVersionResponse { + return true; +} + +export function PluginsCatalogPinsReadPinnedVersionResponseFromJSON( + json: any +): PluginsCatalogPinsReadPinnedVersionResponse { + return PluginsCatalogPinsReadPinnedVersionResponseFromJSONTyped(json, false); +} + +export function PluginsCatalogPinsReadPinnedVersionResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogPinsReadPinnedVersionResponse { + if (json == null) { + return json; + } + return { + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function PluginsCatalogPinsReadPinnedVersionResponseToJSON( + json: any +): PluginsCatalogPinsReadPinnedVersionResponse { + return PluginsCatalogPinsReadPinnedVersionResponseToJSONTyped(json, false); +} + +export function PluginsCatalogPinsReadPinnedVersionResponseToJSONTyped( + value?: PluginsCatalogPinsReadPinnedVersionResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + name: value['name'], + type: value['type'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogReadPluginConfigurationResponse.ts b/ui/api-client/src/models/PluginsCatalogReadPluginConfigurationResponse.ts new file mode 100644 index 0000000000..235fe9f9e6 --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogReadPluginConfigurationResponse.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogReadPluginConfigurationResponse + */ +export interface PluginsCatalogReadPluginConfigurationResponse { + /** + * The args passed to plugin command. + * @type {Array} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + args?: Array; + /** + * + * @type {boolean} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + builtin?: boolean; + /** + * The command used to start the plugin. The executable defined in this command must exist in vault's plugin directory. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + command?: string; + /** + * + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + deprecationStatus?: string; + /** + * The name of the plugin + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + name?: string; + /** + * + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + ociImage?: string; + /** + * The Vault plugin runtime to use when running the plugin. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + runtime?: string; + /** + * The SHA256 sum of the executable or container to be run. This should be HEX encoded. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + sha256?: string; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationResponse + */ + version?: string; +} + +/** + * Check if a given object implements the PluginsCatalogReadPluginConfigurationResponse interface. + */ +export function instanceOfPluginsCatalogReadPluginConfigurationResponse( + value: object +): value is PluginsCatalogReadPluginConfigurationResponse { + return true; +} + +export function PluginsCatalogReadPluginConfigurationResponseFromJSON( + json: any +): PluginsCatalogReadPluginConfigurationResponse { + return PluginsCatalogReadPluginConfigurationResponseFromJSONTyped(json, false); +} + +export function PluginsCatalogReadPluginConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogReadPluginConfigurationResponse { + if (json == null) { + return json; + } + return { + args: json['args'] == null ? undefined : json['args'], + builtin: json['builtin'] == null ? undefined : json['builtin'], + command: json['command'] == null ? undefined : json['command'], + deprecationStatus: json['deprecation_status'] == null ? undefined : json['deprecation_status'], + name: json['name'] == null ? undefined : json['name'], + ociImage: json['oci_image'] == null ? undefined : json['oci_image'], + runtime: json['runtime'] == null ? undefined : json['runtime'], + sha256: json['sha256'] == null ? undefined : json['sha256'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function PluginsCatalogReadPluginConfigurationResponseToJSON( + json: any +): PluginsCatalogReadPluginConfigurationResponse { + return PluginsCatalogReadPluginConfigurationResponseToJSONTyped(json, false); +} + +export function PluginsCatalogReadPluginConfigurationResponseToJSONTyped( + value?: PluginsCatalogReadPluginConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + args: value['args'], + builtin: value['builtin'], + command: value['command'], + deprecation_status: value['deprecationStatus'], + name: value['name'], + oci_image: value['ociImage'], + runtime: value['runtime'], + sha256: value['sha256'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogReadPluginConfigurationWithTypeResponse.ts b/ui/api-client/src/models/PluginsCatalogReadPluginConfigurationWithTypeResponse.ts new file mode 100644 index 0000000000..2438c59c78 --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogReadPluginConfigurationWithTypeResponse.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogReadPluginConfigurationWithTypeResponse + */ +export interface PluginsCatalogReadPluginConfigurationWithTypeResponse { + /** + * The args passed to plugin command. + * @type {Array} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + args?: Array; + /** + * + * @type {boolean} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + builtin?: boolean; + /** + * The command used to start the plugin. The executable defined in this command must exist in vault's plugin directory. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + command?: string; + /** + * + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + deprecationStatus?: string; + /** + * The name of the plugin + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + name?: string; + /** + * + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + ociImage?: string; + /** + * The Vault plugin runtime to use when running the plugin. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + runtime?: string; + /** + * The SHA256 sum of the executable or container to be run. This should be HEX encoded. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + sha256?: string; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof PluginsCatalogReadPluginConfigurationWithTypeResponse + */ + version?: string; +} + +/** + * Check if a given object implements the PluginsCatalogReadPluginConfigurationWithTypeResponse interface. + */ +export function instanceOfPluginsCatalogReadPluginConfigurationWithTypeResponse( + value: object +): value is PluginsCatalogReadPluginConfigurationWithTypeResponse { + return true; +} + +export function PluginsCatalogReadPluginConfigurationWithTypeResponseFromJSON( + json: any +): PluginsCatalogReadPluginConfigurationWithTypeResponse { + return PluginsCatalogReadPluginConfigurationWithTypeResponseFromJSONTyped(json, false); +} + +export function PluginsCatalogReadPluginConfigurationWithTypeResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogReadPluginConfigurationWithTypeResponse { + if (json == null) { + return json; + } + return { + args: json['args'] == null ? undefined : json['args'], + builtin: json['builtin'] == null ? undefined : json['builtin'], + command: json['command'] == null ? undefined : json['command'], + deprecationStatus: json['deprecation_status'] == null ? undefined : json['deprecation_status'], + name: json['name'] == null ? undefined : json['name'], + ociImage: json['oci_image'] == null ? undefined : json['oci_image'], + runtime: json['runtime'] == null ? undefined : json['runtime'], + sha256: json['sha256'] == null ? undefined : json['sha256'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function PluginsCatalogReadPluginConfigurationWithTypeResponseToJSON( + json: any +): PluginsCatalogReadPluginConfigurationWithTypeResponse { + return PluginsCatalogReadPluginConfigurationWithTypeResponseToJSONTyped(json, false); +} + +export function PluginsCatalogReadPluginConfigurationWithTypeResponseToJSONTyped( + value?: PluginsCatalogReadPluginConfigurationWithTypeResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + args: value['args'], + builtin: value['builtin'], + command: value['command'], + deprecation_status: value['deprecationStatus'], + name: value['name'], + oci_image: value['ociImage'], + runtime: value['runtime'], + sha256: value['sha256'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogRegisterPluginRequest.ts b/ui/api-client/src/models/PluginsCatalogRegisterPluginRequest.ts new file mode 100644 index 0000000000..b455186e92 --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogRegisterPluginRequest.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogRegisterPluginRequest + */ +export interface PluginsCatalogRegisterPluginRequest { + /** + * The args passed to plugin command. + * @type {Array} + * @memberof PluginsCatalogRegisterPluginRequest + */ + args?: Array; + /** + * The command used to start the plugin. The executable defined in this command must exist in vault's plugin directory. + * @type {string} + * @memberof PluginsCatalogRegisterPluginRequest + */ + command?: string; + /** + * The environment variables passed to plugin command. Each entry is of the form "key=value". + * @type {Array} + * @memberof PluginsCatalogRegisterPluginRequest + */ + env?: Array; + /** + * + * @type {string} + * @memberof PluginsCatalogRegisterPluginRequest + */ + ociImage?: string; + /** + * The Vault plugin runtime to use when running the plugin. + * @type {string} + * @memberof PluginsCatalogRegisterPluginRequest + */ + runtime?: string; + /** + * The SHA256 sum of the executable or container to be run. This should be HEX encoded. + * @type {string} + * @memberof PluginsCatalogRegisterPluginRequest + */ + sha256?: string; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof PluginsCatalogRegisterPluginRequest + */ + version?: string; +} + +/** + * Check if a given object implements the PluginsCatalogRegisterPluginRequest interface. + */ +export function instanceOfPluginsCatalogRegisterPluginRequest( + value: object +): value is PluginsCatalogRegisterPluginRequest { + return true; +} + +export function PluginsCatalogRegisterPluginRequestFromJSON(json: any): PluginsCatalogRegisterPluginRequest { + return PluginsCatalogRegisterPluginRequestFromJSONTyped(json, false); +} + +export function PluginsCatalogRegisterPluginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogRegisterPluginRequest { + if (json == null) { + return json; + } + return { + args: json['args'] == null ? undefined : json['args'], + command: json['command'] == null ? undefined : json['command'], + env: json['env'] == null ? undefined : json['env'], + ociImage: json['oci_image'] == null ? undefined : json['oci_image'], + runtime: json['runtime'] == null ? undefined : json['runtime'], + sha256: json['sha256'] == null ? undefined : json['sha256'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function PluginsCatalogRegisterPluginRequestToJSON(json: any): PluginsCatalogRegisterPluginRequest { + return PluginsCatalogRegisterPluginRequestToJSONTyped(json, false); +} + +export function PluginsCatalogRegisterPluginRequestToJSONTyped( + value?: PluginsCatalogRegisterPluginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + args: value['args'], + command: value['command'], + env: value['env'], + oci_image: value['ociImage'], + runtime: value['runtime'], + sha256: value['sha256'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/PluginsCatalogRegisterPluginWithTypeRequest.ts b/ui/api-client/src/models/PluginsCatalogRegisterPluginWithTypeRequest.ts new file mode 100644 index 0000000000..d7e3ed3173 --- /dev/null +++ b/ui/api-client/src/models/PluginsCatalogRegisterPluginWithTypeRequest.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsCatalogRegisterPluginWithTypeRequest + */ +export interface PluginsCatalogRegisterPluginWithTypeRequest { + /** + * The args passed to plugin command. + * @type {Array} + * @memberof PluginsCatalogRegisterPluginWithTypeRequest + */ + args?: Array; + /** + * The command used to start the plugin. The executable defined in this command must exist in vault's plugin directory. + * @type {string} + * @memberof PluginsCatalogRegisterPluginWithTypeRequest + */ + command?: string; + /** + * The environment variables passed to plugin command. Each entry is of the form "key=value". + * @type {Array} + * @memberof PluginsCatalogRegisterPluginWithTypeRequest + */ + env?: Array; + /** + * + * @type {string} + * @memberof PluginsCatalogRegisterPluginWithTypeRequest + */ + ociImage?: string; + /** + * The Vault plugin runtime to use when running the plugin. + * @type {string} + * @memberof PluginsCatalogRegisterPluginWithTypeRequest + */ + runtime?: string; + /** + * The SHA256 sum of the executable or container to be run. This should be HEX encoded. + * @type {string} + * @memberof PluginsCatalogRegisterPluginWithTypeRequest + */ + sha256?: string; + /** + * The semantic version of the plugin to use, or image tag if oci_image is provided. + * @type {string} + * @memberof PluginsCatalogRegisterPluginWithTypeRequest + */ + version?: string; +} + +/** + * Check if a given object implements the PluginsCatalogRegisterPluginWithTypeRequest interface. + */ +export function instanceOfPluginsCatalogRegisterPluginWithTypeRequest( + value: object +): value is PluginsCatalogRegisterPluginWithTypeRequest { + return true; +} + +export function PluginsCatalogRegisterPluginWithTypeRequestFromJSON( + json: any +): PluginsCatalogRegisterPluginWithTypeRequest { + return PluginsCatalogRegisterPluginWithTypeRequestFromJSONTyped(json, false); +} + +export function PluginsCatalogRegisterPluginWithTypeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsCatalogRegisterPluginWithTypeRequest { + if (json == null) { + return json; + } + return { + args: json['args'] == null ? undefined : json['args'], + command: json['command'] == null ? undefined : json['command'], + env: json['env'] == null ? undefined : json['env'], + ociImage: json['oci_image'] == null ? undefined : json['oci_image'], + runtime: json['runtime'] == null ? undefined : json['runtime'], + sha256: json['sha256'] == null ? undefined : json['sha256'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function PluginsCatalogRegisterPluginWithTypeRequestToJSON( + json: any +): PluginsCatalogRegisterPluginWithTypeRequest { + return PluginsCatalogRegisterPluginWithTypeRequestToJSONTyped(json, false); +} + +export function PluginsCatalogRegisterPluginWithTypeRequestToJSONTyped( + value?: PluginsCatalogRegisterPluginWithTypeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + args: value['args'], + command: value['command'], + env: value['env'], + oci_image: value['ociImage'], + runtime: value['runtime'], + sha256: value['sha256'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/PluginsReloadBackendsRequest.ts b/ui/api-client/src/models/PluginsReloadBackendsRequest.ts new file mode 100644 index 0000000000..c521762df3 --- /dev/null +++ b/ui/api-client/src/models/PluginsReloadBackendsRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsReloadBackendsRequest + */ +export interface PluginsReloadBackendsRequest { + /** + * The mount paths of the plugin backends to reload. + * @type {Array} + * @memberof PluginsReloadBackendsRequest + */ + mounts?: Array; + /** + * The name of the plugin to reload, as registered in the plugin catalog. + * @type {string} + * @memberof PluginsReloadBackendsRequest + */ + plugin?: string; + /** + * The scope for the reload operation. May be empty or "global". + * @type {string} + * @memberof PluginsReloadBackendsRequest + */ + scope?: string; +} + +/** + * Check if a given object implements the PluginsReloadBackendsRequest interface. + */ +export function instanceOfPluginsReloadBackendsRequest(value: object): value is PluginsReloadBackendsRequest { + return true; +} + +export function PluginsReloadBackendsRequestFromJSON(json: any): PluginsReloadBackendsRequest { + return PluginsReloadBackendsRequestFromJSONTyped(json, false); +} + +export function PluginsReloadBackendsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsReloadBackendsRequest { + if (json == null) { + return json; + } + return { + mounts: json['mounts'] == null ? undefined : json['mounts'], + plugin: json['plugin'] == null ? undefined : json['plugin'], + scope: json['scope'] == null ? undefined : json['scope'], + }; +} + +export function PluginsReloadBackendsRequestToJSON(json: any): PluginsReloadBackendsRequest { + return PluginsReloadBackendsRequestToJSONTyped(json, false); +} + +export function PluginsReloadBackendsRequestToJSONTyped( + value?: PluginsReloadBackendsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mounts: value['mounts'], + plugin: value['plugin'], + scope: value['scope'], + }; +} diff --git a/ui/api-client/src/models/PluginsReloadBackendsResponse.ts b/ui/api-client/src/models/PluginsReloadBackendsResponse.ts new file mode 100644 index 0000000000..9850a29fa5 --- /dev/null +++ b/ui/api-client/src/models/PluginsReloadBackendsResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsReloadBackendsResponse + */ +export interface PluginsReloadBackendsResponse { + /** + * + * @type {string} + * @memberof PluginsReloadBackendsResponse + */ + reloadId?: string; +} + +/** + * Check if a given object implements the PluginsReloadBackendsResponse interface. + */ +export function instanceOfPluginsReloadBackendsResponse( + value: object +): value is PluginsReloadBackendsResponse { + return true; +} + +export function PluginsReloadBackendsResponseFromJSON(json: any): PluginsReloadBackendsResponse { + return PluginsReloadBackendsResponseFromJSONTyped(json, false); +} + +export function PluginsReloadBackendsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsReloadBackendsResponse { + if (json == null) { + return json; + } + return { + reloadId: json['reload_id'] == null ? undefined : json['reload_id'], + }; +} + +export function PluginsReloadBackendsResponseToJSON(json: any): PluginsReloadBackendsResponse { + return PluginsReloadBackendsResponseToJSONTyped(json, false); +} + +export function PluginsReloadBackendsResponseToJSONTyped( + value?: PluginsReloadBackendsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + reload_id: value['reloadId'], + }; +} diff --git a/ui/api-client/src/models/PluginsRuntimesCatalogListPluginsRuntimesResponse.ts b/ui/api-client/src/models/PluginsRuntimesCatalogListPluginsRuntimesResponse.ts new file mode 100644 index 0000000000..568b2862c3 --- /dev/null +++ b/ui/api-client/src/models/PluginsRuntimesCatalogListPluginsRuntimesResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsRuntimesCatalogListPluginsRuntimesResponse + */ +export interface PluginsRuntimesCatalogListPluginsRuntimesResponse { + /** + * List of all plugin runtimes in the catalog + * @type {Array} + * @memberof PluginsRuntimesCatalogListPluginsRuntimesResponse + */ + runtimes?: Array; +} + +/** + * Check if a given object implements the PluginsRuntimesCatalogListPluginsRuntimesResponse interface. + */ +export function instanceOfPluginsRuntimesCatalogListPluginsRuntimesResponse( + value: object +): value is PluginsRuntimesCatalogListPluginsRuntimesResponse { + return true; +} + +export function PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSON( + json: any +): PluginsRuntimesCatalogListPluginsRuntimesResponse { + return PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSONTyped(json, false); +} + +export function PluginsRuntimesCatalogListPluginsRuntimesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsRuntimesCatalogListPluginsRuntimesResponse { + if (json == null) { + return json; + } + return { + runtimes: json['runtimes'] == null ? undefined : json['runtimes'], + }; +} + +export function PluginsRuntimesCatalogListPluginsRuntimesResponseToJSON( + json: any +): PluginsRuntimesCatalogListPluginsRuntimesResponse { + return PluginsRuntimesCatalogListPluginsRuntimesResponseToJSONTyped(json, false); +} + +export function PluginsRuntimesCatalogListPluginsRuntimesResponseToJSONTyped( + value?: PluginsRuntimesCatalogListPluginsRuntimesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + runtimes: value['runtimes'], + }; +} diff --git a/ui/api-client/src/models/PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse.ts b/ui/api-client/src/models/PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse.ts new file mode 100644 index 0000000000..d48e179fb5 --- /dev/null +++ b/ui/api-client/src/models/PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ +export interface PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse { + /** + * Parent cgroup to set for each container. This can be used to control the total resource usage for a group of plugins. + * @type {string} + * @memberof PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ + cgroupParent?: string; + /** + * CPU limit to set per container in nanos. Defaults to no limit. + * @type {number} + * @memberof PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ + cpuNanos?: number; + /** + * Memory limit to set per container in bytes. Defaults to no limit. + * @type {number} + * @memberof PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ + memoryBytes?: number; + /** + * The name of the plugin runtime + * @type {string} + * @memberof PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ + name?: string; + /** + * The OCI-compatible runtime (default "runsc") + * @type {string} + * @memberof PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ + ociRuntime?: string; + /** + * Whether the container runtime is run as a non-privileged (non-root) user. + * @type {boolean} + * @memberof PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ + rootless?: boolean; + /** + * The type of the plugin runtime + * @type {string} + * @memberof PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse + */ + type?: string; +} + +/** + * Check if a given object implements the PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse interface. + */ +export function instanceOfPluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse( + value: object +): value is PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse { + return true; +} + +export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSON( + json: any +): PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse { + return PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSONTyped(json, false); +} + +export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse { + if (json == null) { + return json; + } + return { + cgroupParent: json['cgroup_parent'] == null ? undefined : json['cgroup_parent'], + cpuNanos: json['cpu_nanos'] == null ? undefined : json['cpu_nanos'], + memoryBytes: json['memory_bytes'] == null ? undefined : json['memory_bytes'], + name: json['name'] == null ? undefined : json['name'], + ociRuntime: json['oci_runtime'] == null ? undefined : json['oci_runtime'], + rootless: json['rootless'] == null ? undefined : json['rootless'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseToJSON( + json: any +): PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse { + return PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseToJSONTyped(json, false); +} + +export function PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponseToJSONTyped( + value?: PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cgroup_parent: value['cgroupParent'], + cpu_nanos: value['cpuNanos'], + memory_bytes: value['memoryBytes'], + name: value['name'], + oci_runtime: value['ociRuntime'], + rootless: value['rootless'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/PluginsRuntimesCatalogRegisterPluginRuntimeRequest.ts b/ui/api-client/src/models/PluginsRuntimesCatalogRegisterPluginRuntimeRequest.ts new file mode 100644 index 0000000000..28ebed0fea --- /dev/null +++ b/ui/api-client/src/models/PluginsRuntimesCatalogRegisterPluginRuntimeRequest.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PluginsRuntimesCatalogRegisterPluginRuntimeRequest + */ +export interface PluginsRuntimesCatalogRegisterPluginRuntimeRequest { + /** + * Parent cgroup to set for each container. This can be used to control the total resource usage for a group of plugins. + * @type {string} + * @memberof PluginsRuntimesCatalogRegisterPluginRuntimeRequest + */ + cgroupParent?: string; + /** + * CPU limit to set per container in nanos. Defaults to no limit. + * @type {number} + * @memberof PluginsRuntimesCatalogRegisterPluginRuntimeRequest + */ + cpuNanos?: number; + /** + * Memory limit to set per container in bytes. Defaults to no limit. + * @type {number} + * @memberof PluginsRuntimesCatalogRegisterPluginRuntimeRequest + */ + memoryBytes?: number; + /** + * The OCI-compatible runtime (default "runsc") + * @type {string} + * @memberof PluginsRuntimesCatalogRegisterPluginRuntimeRequest + */ + ociRuntime?: string; + /** + * Whether the container runtime is run as a non-privileged (non-root) user. + * @type {boolean} + * @memberof PluginsRuntimesCatalogRegisterPluginRuntimeRequest + */ + rootless?: boolean; +} + +/** + * Check if a given object implements the PluginsRuntimesCatalogRegisterPluginRuntimeRequest interface. + */ +export function instanceOfPluginsRuntimesCatalogRegisterPluginRuntimeRequest( + value: object +): value is PluginsRuntimesCatalogRegisterPluginRuntimeRequest { + return true; +} + +export function PluginsRuntimesCatalogRegisterPluginRuntimeRequestFromJSON( + json: any +): PluginsRuntimesCatalogRegisterPluginRuntimeRequest { + return PluginsRuntimesCatalogRegisterPluginRuntimeRequestFromJSONTyped(json, false); +} + +export function PluginsRuntimesCatalogRegisterPluginRuntimeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PluginsRuntimesCatalogRegisterPluginRuntimeRequest { + if (json == null) { + return json; + } + return { + cgroupParent: json['cgroup_parent'] == null ? undefined : json['cgroup_parent'], + cpuNanos: json['cpu_nanos'] == null ? undefined : json['cpu_nanos'], + memoryBytes: json['memory_bytes'] == null ? undefined : json['memory_bytes'], + ociRuntime: json['oci_runtime'] == null ? undefined : json['oci_runtime'], + rootless: json['rootless'] == null ? undefined : json['rootless'], + }; +} + +export function PluginsRuntimesCatalogRegisterPluginRuntimeRequestToJSON( + json: any +): PluginsRuntimesCatalogRegisterPluginRuntimeRequest { + return PluginsRuntimesCatalogRegisterPluginRuntimeRequestToJSONTyped(json, false); +} + +export function PluginsRuntimesCatalogRegisterPluginRuntimeRequestToJSONTyped( + value?: PluginsRuntimesCatalogRegisterPluginRuntimeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cgroup_parent: value['cgroupParent'], + cpu_nanos: value['cpuNanos'], + memory_bytes: value['memoryBytes'], + oci_runtime: value['ociRuntime'], + rootless: value['rootless'], + }; +} diff --git a/ui/api-client/src/models/PoliciesGeneratePasswordFromPasswordPolicyResponse.ts b/ui/api-client/src/models/PoliciesGeneratePasswordFromPasswordPolicyResponse.ts new file mode 100644 index 0000000000..5fee6901db --- /dev/null +++ b/ui/api-client/src/models/PoliciesGeneratePasswordFromPasswordPolicyResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesGeneratePasswordFromPasswordPolicyResponse + */ +export interface PoliciesGeneratePasswordFromPasswordPolicyResponse { + /** + * + * @type {string} + * @memberof PoliciesGeneratePasswordFromPasswordPolicyResponse + */ + password?: string; +} + +/** + * Check if a given object implements the PoliciesGeneratePasswordFromPasswordPolicyResponse interface. + */ +export function instanceOfPoliciesGeneratePasswordFromPasswordPolicyResponse( + value: object +): value is PoliciesGeneratePasswordFromPasswordPolicyResponse { + return true; +} + +export function PoliciesGeneratePasswordFromPasswordPolicyResponseFromJSON( + json: any +): PoliciesGeneratePasswordFromPasswordPolicyResponse { + return PoliciesGeneratePasswordFromPasswordPolicyResponseFromJSONTyped(json, false); +} + +export function PoliciesGeneratePasswordFromPasswordPolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesGeneratePasswordFromPasswordPolicyResponse { + if (json == null) { + return json; + } + return { + password: json['password'] == null ? undefined : json['password'], + }; +} + +export function PoliciesGeneratePasswordFromPasswordPolicyResponseToJSON( + json: any +): PoliciesGeneratePasswordFromPasswordPolicyResponse { + return PoliciesGeneratePasswordFromPasswordPolicyResponseToJSONTyped(json, false); +} + +export function PoliciesGeneratePasswordFromPasswordPolicyResponseToJSONTyped( + value?: PoliciesGeneratePasswordFromPasswordPolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + password: value['password'], + }; +} diff --git a/ui/api-client/src/models/PoliciesListAclPolicies2Response.ts b/ui/api-client/src/models/PoliciesListAclPolicies2Response.ts new file mode 100644 index 0000000000..6a3768ec9a --- /dev/null +++ b/ui/api-client/src/models/PoliciesListAclPolicies2Response.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesListAclPolicies2Response + */ +export interface PoliciesListAclPolicies2Response { + /** + * + * @type {Array} + * @memberof PoliciesListAclPolicies2Response + */ + keys?: Array; + /** + * + * @type {Array} + * @memberof PoliciesListAclPolicies2Response + */ + policies?: Array; +} + +/** + * Check if a given object implements the PoliciesListAclPolicies2Response interface. + */ +export function instanceOfPoliciesListAclPolicies2Response( + value: object +): value is PoliciesListAclPolicies2Response { + return true; +} + +export function PoliciesListAclPolicies2ResponseFromJSON(json: any): PoliciesListAclPolicies2Response { + return PoliciesListAclPolicies2ResponseFromJSONTyped(json, false); +} + +export function PoliciesListAclPolicies2ResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesListAclPolicies2Response { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function PoliciesListAclPolicies2ResponseToJSON(json: any): PoliciesListAclPolicies2Response { + return PoliciesListAclPolicies2ResponseToJSONTyped(json, false); +} + +export function PoliciesListAclPolicies2ResponseToJSONTyped( + value?: PoliciesListAclPolicies2Response | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/PoliciesListAclPolicies3Response.ts b/ui/api-client/src/models/PoliciesListAclPolicies3Response.ts new file mode 100644 index 0000000000..0b585048ae --- /dev/null +++ b/ui/api-client/src/models/PoliciesListAclPolicies3Response.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesListAclPolicies3Response + */ +export interface PoliciesListAclPolicies3Response { + /** + * + * @type {Array} + * @memberof PoliciesListAclPolicies3Response + */ + keys?: Array; + /** + * + * @type {Array} + * @memberof PoliciesListAclPolicies3Response + */ + policies?: Array; +} + +/** + * Check if a given object implements the PoliciesListAclPolicies3Response interface. + */ +export function instanceOfPoliciesListAclPolicies3Response( + value: object +): value is PoliciesListAclPolicies3Response { + return true; +} + +export function PoliciesListAclPolicies3ResponseFromJSON(json: any): PoliciesListAclPolicies3Response { + return PoliciesListAclPolicies3ResponseFromJSONTyped(json, false); +} + +export function PoliciesListAclPolicies3ResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesListAclPolicies3Response { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function PoliciesListAclPolicies3ResponseToJSON(json: any): PoliciesListAclPolicies3Response { + return PoliciesListAclPolicies3ResponseToJSONTyped(json, false); +} + +export function PoliciesListAclPolicies3ResponseToJSONTyped( + value?: PoliciesListAclPolicies3Response | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/PoliciesListAclPoliciesResponse.ts b/ui/api-client/src/models/PoliciesListAclPoliciesResponse.ts new file mode 100644 index 0000000000..6adf9bdf56 --- /dev/null +++ b/ui/api-client/src/models/PoliciesListAclPoliciesResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesListAclPoliciesResponse + */ +export interface PoliciesListAclPoliciesResponse { + /** + * + * @type {Array} + * @memberof PoliciesListAclPoliciesResponse + */ + keys?: Array; + /** + * + * @type {Array} + * @memberof PoliciesListAclPoliciesResponse + */ + policies?: Array; +} + +/** + * Check if a given object implements the PoliciesListAclPoliciesResponse interface. + */ +export function instanceOfPoliciesListAclPoliciesResponse( + value: object +): value is PoliciesListAclPoliciesResponse { + return true; +} + +export function PoliciesListAclPoliciesResponseFromJSON(json: any): PoliciesListAclPoliciesResponse { + return PoliciesListAclPoliciesResponseFromJSONTyped(json, false); +} + +export function PoliciesListAclPoliciesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesListAclPoliciesResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function PoliciesListAclPoliciesResponseToJSON(json: any): PoliciesListAclPoliciesResponse { + return PoliciesListAclPoliciesResponseToJSONTyped(json, false); +} + +export function PoliciesListAclPoliciesResponseToJSONTyped( + value?: PoliciesListAclPoliciesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/PoliciesReadAclPolicy2Response.ts b/ui/api-client/src/models/PoliciesReadAclPolicy2Response.ts new file mode 100644 index 0000000000..514cfcd6f0 --- /dev/null +++ b/ui/api-client/src/models/PoliciesReadAclPolicy2Response.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesReadAclPolicy2Response + */ +export interface PoliciesReadAclPolicy2Response { + /** + * + * @type {string} + * @memberof PoliciesReadAclPolicy2Response + */ + name?: string; + /** + * + * @type {string} + * @memberof PoliciesReadAclPolicy2Response + */ + policy?: string; + /** + * + * @type {string} + * @memberof PoliciesReadAclPolicy2Response + */ + rules?: string; +} + +/** + * Check if a given object implements the PoliciesReadAclPolicy2Response interface. + */ +export function instanceOfPoliciesReadAclPolicy2Response( + value: object +): value is PoliciesReadAclPolicy2Response { + return true; +} + +export function PoliciesReadAclPolicy2ResponseFromJSON(json: any): PoliciesReadAclPolicy2Response { + return PoliciesReadAclPolicy2ResponseFromJSONTyped(json, false); +} + +export function PoliciesReadAclPolicy2ResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesReadAclPolicy2Response { + if (json == null) { + return json; + } + return { + name: json['name'] == null ? undefined : json['name'], + policy: json['policy'] == null ? undefined : json['policy'], + rules: json['rules'] == null ? undefined : json['rules'], + }; +} + +export function PoliciesReadAclPolicy2ResponseToJSON(json: any): PoliciesReadAclPolicy2Response { + return PoliciesReadAclPolicy2ResponseToJSONTyped(json, false); +} + +export function PoliciesReadAclPolicy2ResponseToJSONTyped( + value?: PoliciesReadAclPolicy2Response | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + name: value['name'], + policy: value['policy'], + rules: value['rules'], + }; +} diff --git a/ui/api-client/src/models/PoliciesReadAclPolicyResponse.ts b/ui/api-client/src/models/PoliciesReadAclPolicyResponse.ts new file mode 100644 index 0000000000..faf6f0ae42 --- /dev/null +++ b/ui/api-client/src/models/PoliciesReadAclPolicyResponse.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesReadAclPolicyResponse + */ +export interface PoliciesReadAclPolicyResponse { + /** + * + * @type {string} + * @memberof PoliciesReadAclPolicyResponse + */ + name?: string; + /** + * + * @type {string} + * @memberof PoliciesReadAclPolicyResponse + */ + policy?: string; + /** + * + * @type {string} + * @memberof PoliciesReadAclPolicyResponse + */ + rules?: string; +} + +/** + * Check if a given object implements the PoliciesReadAclPolicyResponse interface. + */ +export function instanceOfPoliciesReadAclPolicyResponse( + value: object +): value is PoliciesReadAclPolicyResponse { + return true; +} + +export function PoliciesReadAclPolicyResponseFromJSON(json: any): PoliciesReadAclPolicyResponse { + return PoliciesReadAclPolicyResponseFromJSONTyped(json, false); +} + +export function PoliciesReadAclPolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesReadAclPolicyResponse { + if (json == null) { + return json; + } + return { + name: json['name'] == null ? undefined : json['name'], + policy: json['policy'] == null ? undefined : json['policy'], + rules: json['rules'] == null ? undefined : json['rules'], + }; +} + +export function PoliciesReadAclPolicyResponseToJSON(json: any): PoliciesReadAclPolicyResponse { + return PoliciesReadAclPolicyResponseToJSONTyped(json, false); +} + +export function PoliciesReadAclPolicyResponseToJSONTyped( + value?: PoliciesReadAclPolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + name: value['name'], + policy: value['policy'], + rules: value['rules'], + }; +} diff --git a/ui/api-client/src/models/PoliciesReadPasswordPolicyResponse.ts b/ui/api-client/src/models/PoliciesReadPasswordPolicyResponse.ts new file mode 100644 index 0000000000..dc3aacdfbc --- /dev/null +++ b/ui/api-client/src/models/PoliciesReadPasswordPolicyResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesReadPasswordPolicyResponse + */ +export interface PoliciesReadPasswordPolicyResponse { + /** + * + * @type {string} + * @memberof PoliciesReadPasswordPolicyResponse + */ + policy?: string; +} + +/** + * Check if a given object implements the PoliciesReadPasswordPolicyResponse interface. + */ +export function instanceOfPoliciesReadPasswordPolicyResponse( + value: object +): value is PoliciesReadPasswordPolicyResponse { + return true; +} + +export function PoliciesReadPasswordPolicyResponseFromJSON(json: any): PoliciesReadPasswordPolicyResponse { + return PoliciesReadPasswordPolicyResponseFromJSONTyped(json, false); +} + +export function PoliciesReadPasswordPolicyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesReadPasswordPolicyResponse { + if (json == null) { + return json; + } + return { + policy: json['policy'] == null ? undefined : json['policy'], + }; +} + +export function PoliciesReadPasswordPolicyResponseToJSON(json: any): PoliciesReadPasswordPolicyResponse { + return PoliciesReadPasswordPolicyResponseToJSONTyped(json, false); +} + +export function PoliciesReadPasswordPolicyResponseToJSONTyped( + value?: PoliciesReadPasswordPolicyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policy: value['policy'], + }; +} diff --git a/ui/api-client/src/models/PoliciesWriteAclPolicy2Request.ts b/ui/api-client/src/models/PoliciesWriteAclPolicy2Request.ts new file mode 100644 index 0000000000..88b65a05a5 --- /dev/null +++ b/ui/api-client/src/models/PoliciesWriteAclPolicy2Request.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesWriteAclPolicy2Request + */ +export interface PoliciesWriteAclPolicy2Request { + /** + * The rules of the policy. + * @type {string} + * @memberof PoliciesWriteAclPolicy2Request + */ + policy?: string; + /** + * The rules of the policy. + * @type {string} + * @memberof PoliciesWriteAclPolicy2Request + * @deprecated + */ + rules?: string; +} + +/** + * Check if a given object implements the PoliciesWriteAclPolicy2Request interface. + */ +export function instanceOfPoliciesWriteAclPolicy2Request( + value: object +): value is PoliciesWriteAclPolicy2Request { + return true; +} + +export function PoliciesWriteAclPolicy2RequestFromJSON(json: any): PoliciesWriteAclPolicy2Request { + return PoliciesWriteAclPolicy2RequestFromJSONTyped(json, false); +} + +export function PoliciesWriteAclPolicy2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesWriteAclPolicy2Request { + if (json == null) { + return json; + } + return { + policy: json['policy'] == null ? undefined : json['policy'], + rules: json['rules'] == null ? undefined : json['rules'], + }; +} + +export function PoliciesWriteAclPolicy2RequestToJSON(json: any): PoliciesWriteAclPolicy2Request { + return PoliciesWriteAclPolicy2RequestToJSONTyped(json, false); +} + +export function PoliciesWriteAclPolicy2RequestToJSONTyped( + value?: PoliciesWriteAclPolicy2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policy: value['policy'], + rules: value['rules'], + }; +} diff --git a/ui/api-client/src/models/PoliciesWriteAclPolicyRequest.ts b/ui/api-client/src/models/PoliciesWriteAclPolicyRequest.ts new file mode 100644 index 0000000000..b7998f87bb --- /dev/null +++ b/ui/api-client/src/models/PoliciesWriteAclPolicyRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesWriteAclPolicyRequest + */ +export interface PoliciesWriteAclPolicyRequest { + /** + * The rules of the policy. + * @type {string} + * @memberof PoliciesWriteAclPolicyRequest + */ + policy?: string; +} + +/** + * Check if a given object implements the PoliciesWriteAclPolicyRequest interface. + */ +export function instanceOfPoliciesWriteAclPolicyRequest( + value: object +): value is PoliciesWriteAclPolicyRequest { + return true; +} + +export function PoliciesWriteAclPolicyRequestFromJSON(json: any): PoliciesWriteAclPolicyRequest { + return PoliciesWriteAclPolicyRequestFromJSONTyped(json, false); +} + +export function PoliciesWriteAclPolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesWriteAclPolicyRequest { + if (json == null) { + return json; + } + return { + policy: json['policy'] == null ? undefined : json['policy'], + }; +} + +export function PoliciesWriteAclPolicyRequestToJSON(json: any): PoliciesWriteAclPolicyRequest { + return PoliciesWriteAclPolicyRequestToJSONTyped(json, false); +} + +export function PoliciesWriteAclPolicyRequestToJSONTyped( + value?: PoliciesWriteAclPolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policy: value['policy'], + }; +} diff --git a/ui/api-client/src/models/PoliciesWritePasswordPolicyRequest.ts b/ui/api-client/src/models/PoliciesWritePasswordPolicyRequest.ts new file mode 100644 index 0000000000..41052876ea --- /dev/null +++ b/ui/api-client/src/models/PoliciesWritePasswordPolicyRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PoliciesWritePasswordPolicyRequest + */ +export interface PoliciesWritePasswordPolicyRequest { + /** + * The password policy + * @type {string} + * @memberof PoliciesWritePasswordPolicyRequest + */ + policy?: string; +} + +/** + * Check if a given object implements the PoliciesWritePasswordPolicyRequest interface. + */ +export function instanceOfPoliciesWritePasswordPolicyRequest( + value: object +): value is PoliciesWritePasswordPolicyRequest { + return true; +} + +export function PoliciesWritePasswordPolicyRequestFromJSON(json: any): PoliciesWritePasswordPolicyRequest { + return PoliciesWritePasswordPolicyRequestFromJSONTyped(json, false); +} + +export function PoliciesWritePasswordPolicyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): PoliciesWritePasswordPolicyRequest { + if (json == null) { + return json; + } + return { + policy: json['policy'] == null ? undefined : json['policy'], + }; +} + +export function PoliciesWritePasswordPolicyRequestToJSON(json: any): PoliciesWritePasswordPolicyRequest { + return PoliciesWritePasswordPolicyRequestToJSONTyped(json, false); +} + +export function PoliciesWritePasswordPolicyRequestToJSONTyped( + value?: PoliciesWritePasswordPolicyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policy: value['policy'], + }; +} diff --git a/ui/api-client/src/models/QueryTokenAccessorCapabilitiesRequest.ts b/ui/api-client/src/models/QueryTokenAccessorCapabilitiesRequest.ts new file mode 100644 index 0000000000..8cb8297f0a --- /dev/null +++ b/ui/api-client/src/models/QueryTokenAccessorCapabilitiesRequest.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface QueryTokenAccessorCapabilitiesRequest + */ +export interface QueryTokenAccessorCapabilitiesRequest { + /** + * Accessor of the token for which capabilities are being queried. + * @type {string} + * @memberof QueryTokenAccessorCapabilitiesRequest + */ + accessor?: string; + /** + * Use 'paths' instead. + * @type {Array} + * @memberof QueryTokenAccessorCapabilitiesRequest + * @deprecated + */ + path?: Array; + /** + * Paths on which capabilities are being queried. + * @type {Array} + * @memberof QueryTokenAccessorCapabilitiesRequest + */ + paths?: Array; +} + +/** + * Check if a given object implements the QueryTokenAccessorCapabilitiesRequest interface. + */ +export function instanceOfQueryTokenAccessorCapabilitiesRequest( + value: object +): value is QueryTokenAccessorCapabilitiesRequest { + return true; +} + +export function QueryTokenAccessorCapabilitiesRequestFromJSON( + json: any +): QueryTokenAccessorCapabilitiesRequest { + return QueryTokenAccessorCapabilitiesRequestFromJSONTyped(json, false); +} + +export function QueryTokenAccessorCapabilitiesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): QueryTokenAccessorCapabilitiesRequest { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + path: json['path'] == null ? undefined : json['path'], + paths: json['paths'] == null ? undefined : json['paths'], + }; +} + +export function QueryTokenAccessorCapabilitiesRequestToJSON( + json: any +): QueryTokenAccessorCapabilitiesRequest { + return QueryTokenAccessorCapabilitiesRequestToJSONTyped(json, false); +} + +export function QueryTokenAccessorCapabilitiesRequestToJSONTyped( + value?: QueryTokenAccessorCapabilitiesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + path: value['path'], + paths: value['paths'], + }; +} diff --git a/ui/api-client/src/models/QueryTokenCapabilitiesRequest.ts b/ui/api-client/src/models/QueryTokenCapabilitiesRequest.ts new file mode 100644 index 0000000000..e2a0fd9a8e --- /dev/null +++ b/ui/api-client/src/models/QueryTokenCapabilitiesRequest.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface QueryTokenCapabilitiesRequest + */ +export interface QueryTokenCapabilitiesRequest { + /** + * Use 'paths' instead. + * @type {Array} + * @memberof QueryTokenCapabilitiesRequest + * @deprecated + */ + path?: Array; + /** + * Paths on which capabilities are being queried. + * @type {Array} + * @memberof QueryTokenCapabilitiesRequest + */ + paths?: Array; + /** + * Token for which capabilities are being queried. + * @type {string} + * @memberof QueryTokenCapabilitiesRequest + */ + token?: string; +} + +/** + * Check if a given object implements the QueryTokenCapabilitiesRequest interface. + */ +export function instanceOfQueryTokenCapabilitiesRequest( + value: object +): value is QueryTokenCapabilitiesRequest { + return true; +} + +export function QueryTokenCapabilitiesRequestFromJSON(json: any): QueryTokenCapabilitiesRequest { + return QueryTokenCapabilitiesRequestFromJSONTyped(json, false); +} + +export function QueryTokenCapabilitiesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): QueryTokenCapabilitiesRequest { + if (json == null) { + return json; + } + return { + path: json['path'] == null ? undefined : json['path'], + paths: json['paths'] == null ? undefined : json['paths'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function QueryTokenCapabilitiesRequestToJSON(json: any): QueryTokenCapabilitiesRequest { + return QueryTokenCapabilitiesRequestToJSONTyped(json, false); +} + +export function QueryTokenCapabilitiesRequestToJSONTyped( + value?: QueryTokenCapabilitiesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + path: value['path'], + paths: value['paths'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/QueryTokenSelfCapabilitiesRequest.ts b/ui/api-client/src/models/QueryTokenSelfCapabilitiesRequest.ts new file mode 100644 index 0000000000..1faa7e64e6 --- /dev/null +++ b/ui/api-client/src/models/QueryTokenSelfCapabilitiesRequest.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface QueryTokenSelfCapabilitiesRequest + */ +export interface QueryTokenSelfCapabilitiesRequest { + /** + * Use 'paths' instead. + * @type {Array} + * @memberof QueryTokenSelfCapabilitiesRequest + * @deprecated + */ + path?: Array; + /** + * Paths on which capabilities are being queried. + * @type {Array} + * @memberof QueryTokenSelfCapabilitiesRequest + */ + paths?: Array; + /** + * Token for which capabilities are being queried. + * @type {string} + * @memberof QueryTokenSelfCapabilitiesRequest + */ + token?: string; +} + +/** + * Check if a given object implements the QueryTokenSelfCapabilitiesRequest interface. + */ +export function instanceOfQueryTokenSelfCapabilitiesRequest( + value: object +): value is QueryTokenSelfCapabilitiesRequest { + return true; +} + +export function QueryTokenSelfCapabilitiesRequestFromJSON(json: any): QueryTokenSelfCapabilitiesRequest { + return QueryTokenSelfCapabilitiesRequestFromJSONTyped(json, false); +} + +export function QueryTokenSelfCapabilitiesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): QueryTokenSelfCapabilitiesRequest { + if (json == null) { + return json; + } + return { + path: json['path'] == null ? undefined : json['path'], + paths: json['paths'] == null ? undefined : json['paths'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function QueryTokenSelfCapabilitiesRequestToJSON(json: any): QueryTokenSelfCapabilitiesRequest { + return QueryTokenSelfCapabilitiesRequestToJSONTyped(json, false); +} + +export function QueryTokenSelfCapabilitiesRequestToJSONTyped( + value?: QueryTokenSelfCapabilitiesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + path: value['path'], + paths: value['paths'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/RabbitMqConfigureConnectionRequest.ts b/ui/api-client/src/models/RabbitMqConfigureConnectionRequest.ts new file mode 100644 index 0000000000..b92e5de45b --- /dev/null +++ b/ui/api-client/src/models/RabbitMqConfigureConnectionRequest.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RabbitMqConfigureConnectionRequest + */ +export interface RabbitMqConfigureConnectionRequest { + /** + * RabbitMQ Management URI + * @type {string} + * @memberof RabbitMqConfigureConnectionRequest + */ + connectionUri?: string; + /** + * Password of the provided RabbitMQ management user + * @type {string} + * @memberof RabbitMqConfigureConnectionRequest + */ + password?: string; + /** + * Name of the password policy to use to generate passwords for dynamic credentials. + * @type {string} + * @memberof RabbitMqConfigureConnectionRequest + */ + passwordPolicy?: string; + /** + * Username of a RabbitMQ management administrator + * @type {string} + * @memberof RabbitMqConfigureConnectionRequest + */ + username?: string; + /** + * Template describing how dynamic usernames are generated. + * @type {string} + * @memberof RabbitMqConfigureConnectionRequest + */ + usernameTemplate?: string; + /** + * If set, connection_uri is verified by actually connecting to the RabbitMQ management API + * @type {boolean} + * @memberof RabbitMqConfigureConnectionRequest + */ + verifyConnection?: boolean; +} + +/** + * Check if a given object implements the RabbitMqConfigureConnectionRequest interface. + */ +export function instanceOfRabbitMqConfigureConnectionRequest( + value: object +): value is RabbitMqConfigureConnectionRequest { + return true; +} + +export function RabbitMqConfigureConnectionRequestFromJSON(json: any): RabbitMqConfigureConnectionRequest { + return RabbitMqConfigureConnectionRequestFromJSONTyped(json, false); +} + +export function RabbitMqConfigureConnectionRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RabbitMqConfigureConnectionRequest { + if (json == null) { + return json; + } + return { + connectionUri: json['connection_uri'] == null ? undefined : json['connection_uri'], + password: json['password'] == null ? undefined : json['password'], + passwordPolicy: json['password_policy'] == null ? undefined : json['password_policy'], + username: json['username'] == null ? undefined : json['username'], + usernameTemplate: json['username_template'] == null ? undefined : json['username_template'], + verifyConnection: json['verify_connection'] == null ? undefined : json['verify_connection'], + }; +} + +export function RabbitMqConfigureConnectionRequestToJSON(json: any): RabbitMqConfigureConnectionRequest { + return RabbitMqConfigureConnectionRequestToJSONTyped(json, false); +} + +export function RabbitMqConfigureConnectionRequestToJSONTyped( + value?: RabbitMqConfigureConnectionRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_uri: value['connectionUri'], + password: value['password'], + password_policy: value['passwordPolicy'], + username: value['username'], + username_template: value['usernameTemplate'], + verify_connection: value['verifyConnection'], + }; +} diff --git a/ui/api-client/src/models/RabbitMqConfigureLeaseRequest.ts b/ui/api-client/src/models/RabbitMqConfigureLeaseRequest.ts new file mode 100644 index 0000000000..46d0ac9310 --- /dev/null +++ b/ui/api-client/src/models/RabbitMqConfigureLeaseRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RabbitMqConfigureLeaseRequest + */ +export interface RabbitMqConfigureLeaseRequest { + /** + * Duration after which the issued credentials should not be allowed to be renewed + * @type {string} + * @memberof RabbitMqConfigureLeaseRequest + */ + maxTtl?: string; + /** + * Duration before which the issued credentials needs renewal + * @type {string} + * @memberof RabbitMqConfigureLeaseRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the RabbitMqConfigureLeaseRequest interface. + */ +export function instanceOfRabbitMqConfigureLeaseRequest( + value: object +): value is RabbitMqConfigureLeaseRequest { + return true; +} + +export function RabbitMqConfigureLeaseRequestFromJSON(json: any): RabbitMqConfigureLeaseRequest { + return RabbitMqConfigureLeaseRequestFromJSONTyped(json, false); +} + +export function RabbitMqConfigureLeaseRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RabbitMqConfigureLeaseRequest { + if (json == null) { + return json; + } + return { + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function RabbitMqConfigureLeaseRequestToJSON(json: any): RabbitMqConfigureLeaseRequest { + return RabbitMqConfigureLeaseRequestToJSONTyped(json, false); +} + +export function RabbitMqConfigureLeaseRequestToJSONTyped( + value?: RabbitMqConfigureLeaseRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + max_ttl: value['maxTtl'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/RabbitMqWriteRoleRequest.ts b/ui/api-client/src/models/RabbitMqWriteRoleRequest.ts new file mode 100644 index 0000000000..501d72a59d --- /dev/null +++ b/ui/api-client/src/models/RabbitMqWriteRoleRequest.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RabbitMqWriteRoleRequest + */ +export interface RabbitMqWriteRoleRequest { + /** + * Comma-separated list of tags for this role. + * @type {string} + * @memberof RabbitMqWriteRoleRequest + */ + tags?: string; + /** + * A nested map of virtual hosts and exchanges to topic permissions. + * @type {string} + * @memberof RabbitMqWriteRoleRequest + */ + vhostTopics?: string; + /** + * A map of virtual hosts to permissions. + * @type {string} + * @memberof RabbitMqWriteRoleRequest + */ + vhosts?: string; +} + +/** + * Check if a given object implements the RabbitMqWriteRoleRequest interface. + */ +export function instanceOfRabbitMqWriteRoleRequest(value: object): value is RabbitMqWriteRoleRequest { + return true; +} + +export function RabbitMqWriteRoleRequestFromJSON(json: any): RabbitMqWriteRoleRequest { + return RabbitMqWriteRoleRequestFromJSONTyped(json, false); +} + +export function RabbitMqWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RabbitMqWriteRoleRequest { + if (json == null) { + return json; + } + return { + tags: json['tags'] == null ? undefined : json['tags'], + vhostTopics: json['vhost_topics'] == null ? undefined : json['vhost_topics'], + vhosts: json['vhosts'] == null ? undefined : json['vhosts'], + }; +} + +export function RabbitMqWriteRoleRequestToJSON(json: any): RabbitMqWriteRoleRequest { + return RabbitMqWriteRoleRequestToJSONTyped(json, false); +} + +export function RabbitMqWriteRoleRequestToJSONTyped( + value?: RabbitMqWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + tags: value['tags'], + vhost_topics: value['vhostTopics'], + vhosts: value['vhosts'], + }; +} diff --git a/ui/api-client/src/models/RadiusConfigureRequest.ts b/ui/api-client/src/models/RadiusConfigureRequest.ts new file mode 100644 index 0000000000..a7c1d4b9c2 --- /dev/null +++ b/ui/api-client/src/models/RadiusConfigureRequest.ts @@ -0,0 +1,198 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RadiusConfigureRequest + */ +export interface RadiusConfigureRequest { + /** + * Number of seconds before connect times out (default: 10) + * @type {string} + * @memberof RadiusConfigureRequest + */ + dialTimeout?: string; + /** + * RADIUS server host + * @type {string} + * @memberof RadiusConfigureRequest + */ + host?: string; + /** + * RADIUS NAS Identifier field (optional) + * @type {string} + * @memberof RadiusConfigureRequest + */ + nasIdentifier?: string; + /** + * RADIUS NAS port field (default: 10) + * @type {number} + * @memberof RadiusConfigureRequest + */ + nasPort?: number; + /** + * RADIUS server port (default: 1812) + * @type {number} + * @memberof RadiusConfigureRequest + */ + port?: number; + /** + * Number of seconds before response times out (default: 10) + * @type {string} + * @memberof RadiusConfigureRequest + */ + readTimeout?: string; + /** + * Secret shared with the RADIUS server + * @type {string} + * @memberof RadiusConfigureRequest + */ + secret?: string; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof RadiusConfigureRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof RadiusConfigureRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof RadiusConfigureRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof RadiusConfigureRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof RadiusConfigureRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof RadiusConfigureRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies. This will apply to all tokens generated by this auth method, in addition to any configured for specific users. + * @type {Array} + * @memberof RadiusConfigureRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof RadiusConfigureRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof RadiusConfigureRequest + */ + tokenType?: string; + /** + * Comma-separated list of policies to grant upon successful RADIUS authentication of an unregistered user (default: empty) + * @type {string} + * @memberof RadiusConfigureRequest + */ + unregisteredUserPolicies?: string; +} + +/** + * Check if a given object implements the RadiusConfigureRequest interface. + */ +export function instanceOfRadiusConfigureRequest(value: object): value is RadiusConfigureRequest { + return true; +} + +export function RadiusConfigureRequestFromJSON(json: any): RadiusConfigureRequest { + return RadiusConfigureRequestFromJSONTyped(json, false); +} + +export function RadiusConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RadiusConfigureRequest { + if (json == null) { + return json; + } + return { + dialTimeout: json['dial_timeout'] == null ? undefined : json['dial_timeout'], + host: json['host'] == null ? undefined : json['host'], + nasIdentifier: json['nas_identifier'] == null ? undefined : json['nas_identifier'], + nasPort: json['nas_port'] == null ? undefined : json['nas_port'], + port: json['port'] == null ? undefined : json['port'], + readTimeout: json['read_timeout'] == null ? undefined : json['read_timeout'], + secret: json['secret'] == null ? undefined : json['secret'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + unregisteredUserPolicies: + json['unregistered_user_policies'] == null ? undefined : json['unregistered_user_policies'], + }; +} + +export function RadiusConfigureRequestToJSON(json: any): RadiusConfigureRequest { + return RadiusConfigureRequestToJSONTyped(json, false); +} + +export function RadiusConfigureRequestToJSONTyped( + value?: RadiusConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dial_timeout: value['dialTimeout'], + host: value['host'], + nas_identifier: value['nasIdentifier'], + nas_port: value['nasPort'], + port: value['port'], + read_timeout: value['readTimeout'], + secret: value['secret'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + unregistered_user_policies: value['unregisteredUserPolicies'], + }; +} diff --git a/ui/api-client/src/models/RadiusLoginRequest.ts b/ui/api-client/src/models/RadiusLoginRequest.ts new file mode 100644 index 0000000000..64482f25b9 --- /dev/null +++ b/ui/api-client/src/models/RadiusLoginRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RadiusLoginRequest + */ +export interface RadiusLoginRequest { + /** + * Password for this user. + * @type {string} + * @memberof RadiusLoginRequest + */ + password?: string; + /** + * Username to be used for login. (POST request body) + * @type {string} + * @memberof RadiusLoginRequest + */ + username?: string; +} + +/** + * Check if a given object implements the RadiusLoginRequest interface. + */ +export function instanceOfRadiusLoginRequest(value: object): value is RadiusLoginRequest { + return true; +} + +export function RadiusLoginRequestFromJSON(json: any): RadiusLoginRequest { + return RadiusLoginRequestFromJSONTyped(json, false); +} + +export function RadiusLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusLoginRequest { + if (json == null) { + return json; + } + return { + password: json['password'] == null ? undefined : json['password'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function RadiusLoginRequestToJSON(json: any): RadiusLoginRequest { + return RadiusLoginRequestToJSONTyped(json, false); +} + +export function RadiusLoginRequestToJSONTyped( + value?: RadiusLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + password: value['password'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/RadiusLoginWithUsernameRequest.ts b/ui/api-client/src/models/RadiusLoginWithUsernameRequest.ts new file mode 100644 index 0000000000..373c445c18 --- /dev/null +++ b/ui/api-client/src/models/RadiusLoginWithUsernameRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RadiusLoginWithUsernameRequest + */ +export interface RadiusLoginWithUsernameRequest { + /** + * Password for this user. + * @type {string} + * @memberof RadiusLoginWithUsernameRequest + */ + password?: string; + /** + * Username to be used for login. (POST request body) + * @type {string} + * @memberof RadiusLoginWithUsernameRequest + */ + username?: string; +} + +/** + * Check if a given object implements the RadiusLoginWithUsernameRequest interface. + */ +export function instanceOfRadiusLoginWithUsernameRequest( + value: object +): value is RadiusLoginWithUsernameRequest { + return true; +} + +export function RadiusLoginWithUsernameRequestFromJSON(json: any): RadiusLoginWithUsernameRequest { + return RadiusLoginWithUsernameRequestFromJSONTyped(json, false); +} + +export function RadiusLoginWithUsernameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RadiusLoginWithUsernameRequest { + if (json == null) { + return json; + } + return { + password: json['password'] == null ? undefined : json['password'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function RadiusLoginWithUsernameRequestToJSON(json: any): RadiusLoginWithUsernameRequest { + return RadiusLoginWithUsernameRequestToJSONTyped(json, false); +} + +export function RadiusLoginWithUsernameRequestToJSONTyped( + value?: RadiusLoginWithUsernameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + password: value['password'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/RadiusWriteUserRequest.ts b/ui/api-client/src/models/RadiusWriteUserRequest.ts new file mode 100644 index 0000000000..afed511869 --- /dev/null +++ b/ui/api-client/src/models/RadiusWriteUserRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RadiusWriteUserRequest + */ +export interface RadiusWriteUserRequest { + /** + * Comma-separated list of policies associated to the user. + * @type {Array} + * @memberof RadiusWriteUserRequest + */ + policies?: Array; +} + +/** + * Check if a given object implements the RadiusWriteUserRequest interface. + */ +export function instanceOfRadiusWriteUserRequest(value: object): value is RadiusWriteUserRequest { + return true; +} + +export function RadiusWriteUserRequestFromJSON(json: any): RadiusWriteUserRequest { + return RadiusWriteUserRequestFromJSONTyped(json, false); +} + +export function RadiusWriteUserRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RadiusWriteUserRequest { + if (json == null) { + return json; + } + return { + policies: json['policies'] == null ? undefined : json['policies'], + }; +} + +export function RadiusWriteUserRequestToJSON(json: any): RadiusWriteUserRequest { + return RadiusWriteUserRequestToJSONTyped(json, false); +} + +export function RadiusWriteUserRequestToJSONTyped( + value?: RadiusWriteUserRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policies: value['policies'], + }; +} diff --git a/ui/api-client/src/models/RateLimitQuotasConfigureRequest.ts b/ui/api-client/src/models/RateLimitQuotasConfigureRequest.ts new file mode 100644 index 0000000000..2d82ef2a71 --- /dev/null +++ b/ui/api-client/src/models/RateLimitQuotasConfigureRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RateLimitQuotasConfigureRequest + */ +export interface RateLimitQuotasConfigureRequest { + /** + * Specifies the list of exempt global paths from all rate limit quotas. If empty no global paths will be exempt. + * @type {Array} + * @memberof RateLimitQuotasConfigureRequest + */ + absoluteRateLimitExemptPaths?: Array; + /** + * If set, starts audit logging of requests that get rejected due to rate limit quota rule violations. + * @type {boolean} + * @memberof RateLimitQuotasConfigureRequest + */ + enableRateLimitAuditLogging?: boolean; + /** + * If set, additional rate limit quota HTTP headers will be added to responses. + * @type {boolean} + * @memberof RateLimitQuotasConfigureRequest + */ + enableRateLimitResponseHeaders?: boolean; + /** + * Specifies the list of exempt paths from all rate limit quotas. If empty no paths will be exempt. + * @type {Array} + * @memberof RateLimitQuotasConfigureRequest + */ + rateLimitExemptPaths?: Array; +} + +/** + * Check if a given object implements the RateLimitQuotasConfigureRequest interface. + */ +export function instanceOfRateLimitQuotasConfigureRequest( + value: object +): value is RateLimitQuotasConfigureRequest { + return true; +} + +export function RateLimitQuotasConfigureRequestFromJSON(json: any): RateLimitQuotasConfigureRequest { + return RateLimitQuotasConfigureRequestFromJSONTyped(json, false); +} + +export function RateLimitQuotasConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RateLimitQuotasConfigureRequest { + if (json == null) { + return json; + } + return { + absoluteRateLimitExemptPaths: + json['absolute_rate_limit_exempt_paths'] == null ? undefined : json['absolute_rate_limit_exempt_paths'], + enableRateLimitAuditLogging: + json['enable_rate_limit_audit_logging'] == null ? undefined : json['enable_rate_limit_audit_logging'], + enableRateLimitResponseHeaders: + json['enable_rate_limit_response_headers'] == null + ? undefined + : json['enable_rate_limit_response_headers'], + rateLimitExemptPaths: + json['rate_limit_exempt_paths'] == null ? undefined : json['rate_limit_exempt_paths'], + }; +} + +export function RateLimitQuotasConfigureRequestToJSON(json: any): RateLimitQuotasConfigureRequest { + return RateLimitQuotasConfigureRequestToJSONTyped(json, false); +} + +export function RateLimitQuotasConfigureRequestToJSONTyped( + value?: RateLimitQuotasConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + absolute_rate_limit_exempt_paths: value['absoluteRateLimitExemptPaths'], + enable_rate_limit_audit_logging: value['enableRateLimitAuditLogging'], + enable_rate_limit_response_headers: value['enableRateLimitResponseHeaders'], + rate_limit_exempt_paths: value['rateLimitExemptPaths'], + }; +} diff --git a/ui/api-client/src/models/RateLimitQuotasReadConfigurationResponse.ts b/ui/api-client/src/models/RateLimitQuotasReadConfigurationResponse.ts new file mode 100644 index 0000000000..d31dff2333 --- /dev/null +++ b/ui/api-client/src/models/RateLimitQuotasReadConfigurationResponse.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RateLimitQuotasReadConfigurationResponse + */ +export interface RateLimitQuotasReadConfigurationResponse { + /** + * + * @type {Array} + * @memberof RateLimitQuotasReadConfigurationResponse + */ + absoluteRateLimitExemptPaths?: Array; + /** + * + * @type {boolean} + * @memberof RateLimitQuotasReadConfigurationResponse + */ + enableRateLimitAuditLogging?: boolean; + /** + * + * @type {boolean} + * @memberof RateLimitQuotasReadConfigurationResponse + */ + enableRateLimitResponseHeaders?: boolean; + /** + * + * @type {Array} + * @memberof RateLimitQuotasReadConfigurationResponse + */ + rateLimitExemptPaths?: Array; +} + +/** + * Check if a given object implements the RateLimitQuotasReadConfigurationResponse interface. + */ +export function instanceOfRateLimitQuotasReadConfigurationResponse( + value: object +): value is RateLimitQuotasReadConfigurationResponse { + return true; +} + +export function RateLimitQuotasReadConfigurationResponseFromJSON( + json: any +): RateLimitQuotasReadConfigurationResponse { + return RateLimitQuotasReadConfigurationResponseFromJSONTyped(json, false); +} + +export function RateLimitQuotasReadConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RateLimitQuotasReadConfigurationResponse { + if (json == null) { + return json; + } + return { + absoluteRateLimitExemptPaths: + json['absolute_rate_limit_exempt_paths'] == null ? undefined : json['absolute_rate_limit_exempt_paths'], + enableRateLimitAuditLogging: + json['enable_rate_limit_audit_logging'] == null ? undefined : json['enable_rate_limit_audit_logging'], + enableRateLimitResponseHeaders: + json['enable_rate_limit_response_headers'] == null + ? undefined + : json['enable_rate_limit_response_headers'], + rateLimitExemptPaths: + json['rate_limit_exempt_paths'] == null ? undefined : json['rate_limit_exempt_paths'], + }; +} + +export function RateLimitQuotasReadConfigurationResponseToJSON( + json: any +): RateLimitQuotasReadConfigurationResponse { + return RateLimitQuotasReadConfigurationResponseToJSONTyped(json, false); +} + +export function RateLimitQuotasReadConfigurationResponseToJSONTyped( + value?: RateLimitQuotasReadConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + absolute_rate_limit_exempt_paths: value['absoluteRateLimitExemptPaths'], + enable_rate_limit_audit_logging: value['enableRateLimitAuditLogging'], + enable_rate_limit_response_headers: value['enableRateLimitResponseHeaders'], + rate_limit_exempt_paths: value['rateLimitExemptPaths'], + }; +} diff --git a/ui/api-client/src/models/RateLimitQuotasReadResponse.ts b/ui/api-client/src/models/RateLimitQuotasReadResponse.ts new file mode 100644 index 0000000000..f60710b48c --- /dev/null +++ b/ui/api-client/src/models/RateLimitQuotasReadResponse.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RateLimitQuotasReadResponse + */ +export interface RateLimitQuotasReadResponse { + /** + * + * @type {number} + * @memberof RateLimitQuotasReadResponse + */ + blockInterval?: number; + /** + * + * @type {boolean} + * @memberof RateLimitQuotasReadResponse + */ + inheritable?: boolean; + /** + * + * @type {number} + * @memberof RateLimitQuotasReadResponse + */ + interval?: number; + /** + * + * @type {string} + * @memberof RateLimitQuotasReadResponse + */ + name?: string; + /** + * + * @type {string} + * @memberof RateLimitQuotasReadResponse + */ + path?: string; + /** + * + * @type {number} + * @memberof RateLimitQuotasReadResponse + */ + rate?: number; + /** + * + * @type {string} + * @memberof RateLimitQuotasReadResponse + */ + role?: string; + /** + * + * @type {string} + * @memberof RateLimitQuotasReadResponse + */ + type?: string; +} + +/** + * Check if a given object implements the RateLimitQuotasReadResponse interface. + */ +export function instanceOfRateLimitQuotasReadResponse(value: object): value is RateLimitQuotasReadResponse { + return true; +} + +export function RateLimitQuotasReadResponseFromJSON(json: any): RateLimitQuotasReadResponse { + return RateLimitQuotasReadResponseFromJSONTyped(json, false); +} + +export function RateLimitQuotasReadResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RateLimitQuotasReadResponse { + if (json == null) { + return json; + } + return { + blockInterval: json['block_interval'] == null ? undefined : json['block_interval'], + inheritable: json['inheritable'] == null ? undefined : json['inheritable'], + interval: json['interval'] == null ? undefined : json['interval'], + name: json['name'] == null ? undefined : json['name'], + path: json['path'] == null ? undefined : json['path'], + rate: json['rate'] == null ? undefined : json['rate'], + role: json['role'] == null ? undefined : json['role'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function RateLimitQuotasReadResponseToJSON(json: any): RateLimitQuotasReadResponse { + return RateLimitQuotasReadResponseToJSONTyped(json, false); +} + +export function RateLimitQuotasReadResponseToJSONTyped( + value?: RateLimitQuotasReadResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + block_interval: value['blockInterval'], + inheritable: value['inheritable'], + interval: value['interval'], + name: value['name'], + path: value['path'], + rate: value['rate'], + role: value['role'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/RateLimitQuotasWriteRequest.ts b/ui/api-client/src/models/RateLimitQuotasWriteRequest.ts new file mode 100644 index 0000000000..03e6ab7b2e --- /dev/null +++ b/ui/api-client/src/models/RateLimitQuotasWriteRequest.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RateLimitQuotasWriteRequest + */ +export interface RateLimitQuotasWriteRequest { + /** + * If set, when a client reaches a rate limit threshold, the client will be prohibited from any further requests until after the 'block_interval' has elapsed. + * @type {string} + * @memberof RateLimitQuotasWriteRequest + */ + blockInterval?: string; + /** + * Whether all child namespaces can inherit this namespace quota. + * @type {boolean} + * @memberof RateLimitQuotasWriteRequest + */ + inheritable?: boolean; + /** + * The duration to enforce rate limiting for (default '1s'). + * @type {string} + * @memberof RateLimitQuotasWriteRequest + */ + interval?: string; + /** + * Path of the mount or namespace to apply the quota. A blank path configures a global quota. For example namespace1/ adds a quota to a full namespace, namespace1/auth/userpass adds a quota to userpass in namespace1. + * @type {string} + * @memberof RateLimitQuotasWriteRequest + */ + path?: string; + /** + * The maximum number of requests in a given interval to be allowed by the quota rule. The 'rate' must be positive. + * @type {number} + * @memberof RateLimitQuotasWriteRequest + */ + rate?: number; + /** + * Login role to apply this quota to. Note that when set, path must be configured to a valid auth method with a concept of roles. + * @type {string} + * @memberof RateLimitQuotasWriteRequest + */ + role?: string; + /** + * Type of the quota rule. + * @type {string} + * @memberof RateLimitQuotasWriteRequest + */ + type?: string; +} + +/** + * Check if a given object implements the RateLimitQuotasWriteRequest interface. + */ +export function instanceOfRateLimitQuotasWriteRequest(value: object): value is RateLimitQuotasWriteRequest { + return true; +} + +export function RateLimitQuotasWriteRequestFromJSON(json: any): RateLimitQuotasWriteRequest { + return RateLimitQuotasWriteRequestFromJSONTyped(json, false); +} + +export function RateLimitQuotasWriteRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RateLimitQuotasWriteRequest { + if (json == null) { + return json; + } + return { + blockInterval: json['block_interval'] == null ? undefined : json['block_interval'], + inheritable: json['inheritable'] == null ? undefined : json['inheritable'], + interval: json['interval'] == null ? undefined : json['interval'], + path: json['path'] == null ? undefined : json['path'], + rate: json['rate'] == null ? undefined : json['rate'], + role: json['role'] == null ? undefined : json['role'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function RateLimitQuotasWriteRequestToJSON(json: any): RateLimitQuotasWriteRequest { + return RateLimitQuotasWriteRequestToJSONTyped(json, false); +} + +export function RateLimitQuotasWriteRequestToJSONTyped( + value?: RateLimitQuotasWriteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + block_interval: value['blockInterval'], + inheritable: value['inheritable'], + interval: value['interval'], + path: value['path'], + rate: value['rate'], + role: value['role'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/RawReadResponse.ts b/ui/api-client/src/models/RawReadResponse.ts new file mode 100644 index 0000000000..0a67848fed --- /dev/null +++ b/ui/api-client/src/models/RawReadResponse.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RawReadResponse + */ +export interface RawReadResponse { + /** + * + * @type {string} + * @memberof RawReadResponse + */ + value?: string; +} + +/** + * Check if a given object implements the RawReadResponse interface. + */ +export function instanceOfRawReadResponse(value: object): value is RawReadResponse { + return true; +} + +export function RawReadResponseFromJSON(json: any): RawReadResponse { + return RawReadResponseFromJSONTyped(json, false); +} + +export function RawReadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RawReadResponse { + if (json == null) { + return json; + } + return { + value: json['value'] == null ? undefined : json['value'], + }; +} + +export function RawReadResponseToJSON(json: any): RawReadResponse { + return RawReadResponseToJSONTyped(json, false); +} + +export function RawReadResponseToJSONTyped( + value?: RawReadResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + value: value['value'], + }; +} diff --git a/ui/api-client/src/models/RawWriteRequest.ts b/ui/api-client/src/models/RawWriteRequest.ts new file mode 100644 index 0000000000..a6330bf153 --- /dev/null +++ b/ui/api-client/src/models/RawWriteRequest.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RawWriteRequest + */ +export interface RawWriteRequest { + /** + * + * @type {boolean} + * @memberof RawWriteRequest + */ + compressed?: boolean; + /** + * + * @type {string} + * @memberof RawWriteRequest + */ + compressionType?: string; + /** + * + * @type {string} + * @memberof RawWriteRequest + */ + encoding?: string; + /** + * + * @type {string} + * @memberof RawWriteRequest + */ + value?: string; +} + +/** + * Check if a given object implements the RawWriteRequest interface. + */ +export function instanceOfRawWriteRequest(value: object): value is RawWriteRequest { + return true; +} + +export function RawWriteRequestFromJSON(json: any): RawWriteRequest { + return RawWriteRequestFromJSONTyped(json, false); +} + +export function RawWriteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RawWriteRequest { + if (json == null) { + return json; + } + return { + compressed: json['compressed'] == null ? undefined : json['compressed'], + compressionType: json['compression_type'] == null ? undefined : json['compression_type'], + encoding: json['encoding'] == null ? undefined : json['encoding'], + value: json['value'] == null ? undefined : json['value'], + }; +} + +export function RawWriteRequestToJSON(json: any): RawWriteRequest { + return RawWriteRequestToJSONTyped(json, false); +} + +export function RawWriteRequestToJSONTyped( + value?: RawWriteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + compressed: value['compressed'], + compression_type: value['compressionType'], + encoding: value['encoding'], + value: value['value'], + }; +} diff --git a/ui/api-client/src/models/ReadWrappingProperties2Response.ts b/ui/api-client/src/models/ReadWrappingProperties2Response.ts new file mode 100644 index 0000000000..ee4a496369 --- /dev/null +++ b/ui/api-client/src/models/ReadWrappingProperties2Response.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadWrappingProperties2Response + */ +export interface ReadWrappingProperties2Response { + /** + * + * @type {string} + * @memberof ReadWrappingProperties2Response + */ + creationPath?: string; + /** + * + * @type {Date} + * @memberof ReadWrappingProperties2Response + */ + creationTime?: Date; + /** + * + * @type {string} + * @memberof ReadWrappingProperties2Response + */ + creationTtl?: string; +} + +/** + * Check if a given object implements the ReadWrappingProperties2Response interface. + */ +export function instanceOfReadWrappingProperties2Response( + value: object +): value is ReadWrappingProperties2Response { + return true; +} + +export function ReadWrappingProperties2ResponseFromJSON(json: any): ReadWrappingProperties2Response { + return ReadWrappingProperties2ResponseFromJSONTyped(json, false); +} + +export function ReadWrappingProperties2ResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ReadWrappingProperties2Response { + if (json == null) { + return json; + } + return { + creationPath: json['creation_path'] == null ? undefined : json['creation_path'], + creationTime: json['creation_time'] == null ? undefined : new Date(json['creation_time']), + creationTtl: json['creation_ttl'] == null ? undefined : json['creation_ttl'], + }; +} + +export function ReadWrappingProperties2ResponseToJSON(json: any): ReadWrappingProperties2Response { + return ReadWrappingProperties2ResponseToJSONTyped(json, false); +} + +export function ReadWrappingProperties2ResponseToJSONTyped( + value?: ReadWrappingProperties2Response | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + creation_path: value['creationPath'], + creation_time: value['creationTime'] == null ? undefined : value['creationTime'].toISOString(), + creation_ttl: value['creationTtl'], + }; +} diff --git a/ui/api-client/src/models/ReadWrappingPropertiesRequest.ts b/ui/api-client/src/models/ReadWrappingPropertiesRequest.ts new file mode 100644 index 0000000000..95159f01d8 --- /dev/null +++ b/ui/api-client/src/models/ReadWrappingPropertiesRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadWrappingPropertiesRequest + */ +export interface ReadWrappingPropertiesRequest { + /** + * + * @type {string} + * @memberof ReadWrappingPropertiesRequest + */ + token?: string; +} + +/** + * Check if a given object implements the ReadWrappingPropertiesRequest interface. + */ +export function instanceOfReadWrappingPropertiesRequest( + value: object +): value is ReadWrappingPropertiesRequest { + return true; +} + +export function ReadWrappingPropertiesRequestFromJSON(json: any): ReadWrappingPropertiesRequest { + return ReadWrappingPropertiesRequestFromJSONTyped(json, false); +} + +export function ReadWrappingPropertiesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ReadWrappingPropertiesRequest { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function ReadWrappingPropertiesRequestToJSON(json: any): ReadWrappingPropertiesRequest { + return ReadWrappingPropertiesRequestToJSONTyped(json, false); +} + +export function ReadWrappingPropertiesRequestToJSONTyped( + value?: ReadWrappingPropertiesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/ReadWrappingPropertiesResponse.ts b/ui/api-client/src/models/ReadWrappingPropertiesResponse.ts new file mode 100644 index 0000000000..91650699a0 --- /dev/null +++ b/ui/api-client/src/models/ReadWrappingPropertiesResponse.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ReadWrappingPropertiesResponse + */ +export interface ReadWrappingPropertiesResponse { + /** + * + * @type {string} + * @memberof ReadWrappingPropertiesResponse + */ + creationPath?: string; + /** + * + * @type {Date} + * @memberof ReadWrappingPropertiesResponse + */ + creationTime?: Date; + /** + * + * @type {string} + * @memberof ReadWrappingPropertiesResponse + */ + creationTtl?: string; +} + +/** + * Check if a given object implements the ReadWrappingPropertiesResponse interface. + */ +export function instanceOfReadWrappingPropertiesResponse( + value: object +): value is ReadWrappingPropertiesResponse { + return true; +} + +export function ReadWrappingPropertiesResponseFromJSON(json: any): ReadWrappingPropertiesResponse { + return ReadWrappingPropertiesResponseFromJSONTyped(json, false); +} + +export function ReadWrappingPropertiesResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ReadWrappingPropertiesResponse { + if (json == null) { + return json; + } + return { + creationPath: json['creation_path'] == null ? undefined : json['creation_path'], + creationTime: json['creation_time'] == null ? undefined : new Date(json['creation_time']), + creationTtl: json['creation_ttl'] == null ? undefined : json['creation_ttl'], + }; +} + +export function ReadWrappingPropertiesResponseToJSON(json: any): ReadWrappingPropertiesResponse { + return ReadWrappingPropertiesResponseToJSONTyped(json, false); +} + +export function ReadWrappingPropertiesResponseToJSONTyped( + value?: ReadWrappingPropertiesResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + creation_path: value['creationPath'], + creation_time: value['creationTime'] == null ? undefined : value['creationTime'].toISOString(), + creation_ttl: value['creationTtl'], + }; +} diff --git a/ui/api-client/src/models/RekeyAttemptInitializeRequest.ts b/ui/api-client/src/models/RekeyAttemptInitializeRequest.ts new file mode 100644 index 0000000000..70b73230f3 --- /dev/null +++ b/ui/api-client/src/models/RekeyAttemptInitializeRequest.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyAttemptInitializeRequest + */ +export interface RekeyAttemptInitializeRequest { + /** + * Specifies if using PGP-encrypted keys, whether Vault should also store a plaintext backup of the PGP-encrypted keys. + * @type {boolean} + * @memberof RekeyAttemptInitializeRequest + */ + backup?: boolean; + /** + * Specifies an array of PGP public keys used to encrypt the output unseal keys. Ordering is preserved. The keys must be base64-encoded from their original binary representation. The size of this array must be the same as secret_shares. + * @type {Array} + * @memberof RekeyAttemptInitializeRequest + */ + pgpKeys?: Array; + /** + * Turns on verification functionality + * @type {boolean} + * @memberof RekeyAttemptInitializeRequest + */ + requireVerification?: boolean; + /** + * Specifies the number of shares to split the unseal key into. + * @type {number} + * @memberof RekeyAttemptInitializeRequest + */ + secretShares?: number; + /** + * Specifies the number of shares required to reconstruct the unseal key. This must be less than or equal secret_shares. If using Vault HSM with auto-unsealing, this value must be the same as secret_shares. + * @type {number} + * @memberof RekeyAttemptInitializeRequest + */ + secretThreshold?: number; +} + +/** + * Check if a given object implements the RekeyAttemptInitializeRequest interface. + */ +export function instanceOfRekeyAttemptInitializeRequest( + value: object +): value is RekeyAttemptInitializeRequest { + return true; +} + +export function RekeyAttemptInitializeRequestFromJSON(json: any): RekeyAttemptInitializeRequest { + return RekeyAttemptInitializeRequestFromJSONTyped(json, false); +} + +export function RekeyAttemptInitializeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyAttemptInitializeRequest { + if (json == null) { + return json; + } + return { + backup: json['backup'] == null ? undefined : json['backup'], + pgpKeys: json['pgp_keys'] == null ? undefined : json['pgp_keys'], + requireVerification: json['require_verification'] == null ? undefined : json['require_verification'], + secretShares: json['secret_shares'] == null ? undefined : json['secret_shares'], + secretThreshold: json['secret_threshold'] == null ? undefined : json['secret_threshold'], + }; +} + +export function RekeyAttemptInitializeRequestToJSON(json: any): RekeyAttemptInitializeRequest { + return RekeyAttemptInitializeRequestToJSONTyped(json, false); +} + +export function RekeyAttemptInitializeRequestToJSONTyped( + value?: RekeyAttemptInitializeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + backup: value['backup'], + pgp_keys: value['pgpKeys'], + require_verification: value['requireVerification'], + secret_shares: value['secretShares'], + secret_threshold: value['secretThreshold'], + }; +} diff --git a/ui/api-client/src/models/RekeyAttemptInitializeResponse.ts b/ui/api-client/src/models/RekeyAttemptInitializeResponse.ts new file mode 100644 index 0000000000..b357cbb369 --- /dev/null +++ b/ui/api-client/src/models/RekeyAttemptInitializeResponse.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyAttemptInitializeResponse + */ +export interface RekeyAttemptInitializeResponse { + /** + * + * @type {boolean} + * @memberof RekeyAttemptInitializeResponse + */ + backup?: boolean; + /** + * + * @type {number} + * @memberof RekeyAttemptInitializeResponse + */ + n?: number; + /** + * + * @type {string} + * @memberof RekeyAttemptInitializeResponse + */ + nonce?: string; + /** + * + * @type {Array} + * @memberof RekeyAttemptInitializeResponse + */ + pgpFingerprints?: Array; + /** + * + * @type {number} + * @memberof RekeyAttemptInitializeResponse + */ + progress?: number; + /** + * + * @type {number} + * @memberof RekeyAttemptInitializeResponse + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RekeyAttemptInitializeResponse + */ + started?: boolean; + /** + * + * @type {number} + * @memberof RekeyAttemptInitializeResponse + */ + t?: number; + /** + * + * @type {string} + * @memberof RekeyAttemptInitializeResponse + */ + verificationNonce?: string; + /** + * + * @type {boolean} + * @memberof RekeyAttemptInitializeResponse + */ + verificationRequired?: boolean; +} + +/** + * Check if a given object implements the RekeyAttemptInitializeResponse interface. + */ +export function instanceOfRekeyAttemptInitializeResponse( + value: object +): value is RekeyAttemptInitializeResponse { + return true; +} + +export function RekeyAttemptInitializeResponseFromJSON(json: any): RekeyAttemptInitializeResponse { + return RekeyAttemptInitializeResponseFromJSONTyped(json, false); +} + +export function RekeyAttemptInitializeResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyAttemptInitializeResponse { + if (json == null) { + return json; + } + return { + backup: json['backup'] == null ? undefined : json['backup'], + n: json['n'] == null ? undefined : json['n'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + pgpFingerprints: json['pgp_fingerprints'] == null ? undefined : json['pgp_fingerprints'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + t: json['t'] == null ? undefined : json['t'], + verificationNonce: json['verification_nonce'] == null ? undefined : json['verification_nonce'], + verificationRequired: json['verification_required'] == null ? undefined : json['verification_required'], + }; +} + +export function RekeyAttemptInitializeResponseToJSON(json: any): RekeyAttemptInitializeResponse { + return RekeyAttemptInitializeResponseToJSONTyped(json, false); +} + +export function RekeyAttemptInitializeResponseToJSONTyped( + value?: RekeyAttemptInitializeResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + backup: value['backup'], + n: value['n'], + nonce: value['nonce'], + pgp_fingerprints: value['pgpFingerprints'], + progress: value['progress'], + required: value['required'], + started: value['started'], + t: value['t'], + verification_nonce: value['verificationNonce'], + verification_required: value['verificationRequired'], + }; +} diff --git a/ui/api-client/src/models/RekeyAttemptReadProgressResponse.ts b/ui/api-client/src/models/RekeyAttemptReadProgressResponse.ts new file mode 100644 index 0000000000..ea487330f0 --- /dev/null +++ b/ui/api-client/src/models/RekeyAttemptReadProgressResponse.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyAttemptReadProgressResponse + */ +export interface RekeyAttemptReadProgressResponse { + /** + * + * @type {boolean} + * @memberof RekeyAttemptReadProgressResponse + */ + backup?: boolean; + /** + * + * @type {number} + * @memberof RekeyAttemptReadProgressResponse + */ + n?: number; + /** + * + * @type {string} + * @memberof RekeyAttemptReadProgressResponse + */ + nonce?: string; + /** + * + * @type {Array} + * @memberof RekeyAttemptReadProgressResponse + */ + pgpFingerprints?: Array; + /** + * + * @type {number} + * @memberof RekeyAttemptReadProgressResponse + */ + progress?: number; + /** + * + * @type {number} + * @memberof RekeyAttemptReadProgressResponse + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RekeyAttemptReadProgressResponse + */ + started?: boolean; + /** + * + * @type {number} + * @memberof RekeyAttemptReadProgressResponse + */ + t?: number; + /** + * + * @type {string} + * @memberof RekeyAttemptReadProgressResponse + */ + verificationNonce?: string; + /** + * + * @type {boolean} + * @memberof RekeyAttemptReadProgressResponse + */ + verificationRequired?: boolean; +} + +/** + * Check if a given object implements the RekeyAttemptReadProgressResponse interface. + */ +export function instanceOfRekeyAttemptReadProgressResponse( + value: object +): value is RekeyAttemptReadProgressResponse { + return true; +} + +export function RekeyAttemptReadProgressResponseFromJSON(json: any): RekeyAttemptReadProgressResponse { + return RekeyAttemptReadProgressResponseFromJSONTyped(json, false); +} + +export function RekeyAttemptReadProgressResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyAttemptReadProgressResponse { + if (json == null) { + return json; + } + return { + backup: json['backup'] == null ? undefined : json['backup'], + n: json['n'] == null ? undefined : json['n'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + pgpFingerprints: json['pgp_fingerprints'] == null ? undefined : json['pgp_fingerprints'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + t: json['t'] == null ? undefined : json['t'], + verificationNonce: json['verification_nonce'] == null ? undefined : json['verification_nonce'], + verificationRequired: json['verification_required'] == null ? undefined : json['verification_required'], + }; +} + +export function RekeyAttemptReadProgressResponseToJSON(json: any): RekeyAttemptReadProgressResponse { + return RekeyAttemptReadProgressResponseToJSONTyped(json, false); +} + +export function RekeyAttemptReadProgressResponseToJSONTyped( + value?: RekeyAttemptReadProgressResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + backup: value['backup'], + n: value['n'], + nonce: value['nonce'], + pgp_fingerprints: value['pgpFingerprints'], + progress: value['progress'], + required: value['required'], + started: value['started'], + t: value['t'], + verification_nonce: value['verificationNonce'], + verification_required: value['verificationRequired'], + }; +} diff --git a/ui/api-client/src/models/RekeyAttemptUpdateRequest.ts b/ui/api-client/src/models/RekeyAttemptUpdateRequest.ts new file mode 100644 index 0000000000..6d1e7cc1f5 --- /dev/null +++ b/ui/api-client/src/models/RekeyAttemptUpdateRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyAttemptUpdateRequest + */ +export interface RekeyAttemptUpdateRequest { + /** + * Specifies a single unseal key share. + * @type {string} + * @memberof RekeyAttemptUpdateRequest + */ + key?: string; + /** + * Specifies the nonce of the rekey attempt. + * @type {string} + * @memberof RekeyAttemptUpdateRequest + */ + nonce?: string; +} + +/** + * Check if a given object implements the RekeyAttemptUpdateRequest interface. + */ +export function instanceOfRekeyAttemptUpdateRequest(value: object): value is RekeyAttemptUpdateRequest { + return true; +} + +export function RekeyAttemptUpdateRequestFromJSON(json: any): RekeyAttemptUpdateRequest { + return RekeyAttemptUpdateRequestFromJSONTyped(json, false); +} + +export function RekeyAttemptUpdateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyAttemptUpdateRequest { + if (json == null) { + return json; + } + return { + key: json['key'] == null ? undefined : json['key'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + }; +} + +export function RekeyAttemptUpdateRequestToJSON(json: any): RekeyAttemptUpdateRequest { + return RekeyAttemptUpdateRequestToJSONTyped(json, false); +} + +export function RekeyAttemptUpdateRequestToJSONTyped( + value?: RekeyAttemptUpdateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key: value['key'], + nonce: value['nonce'], + }; +} diff --git a/ui/api-client/src/models/RekeyAttemptUpdateResponse.ts b/ui/api-client/src/models/RekeyAttemptUpdateResponse.ts new file mode 100644 index 0000000000..066e1e4fa4 --- /dev/null +++ b/ui/api-client/src/models/RekeyAttemptUpdateResponse.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyAttemptUpdateResponse + */ +export interface RekeyAttemptUpdateResponse { + /** + * + * @type {boolean} + * @memberof RekeyAttemptUpdateResponse + */ + backup?: boolean; + /** + * + * @type {boolean} + * @memberof RekeyAttemptUpdateResponse + */ + complete?: boolean; + /** + * + * @type {Array} + * @memberof RekeyAttemptUpdateResponse + */ + keys?: Array; + /** + * + * @type {Array} + * @memberof RekeyAttemptUpdateResponse + */ + keysBase64?: Array; + /** + * + * @type {number} + * @memberof RekeyAttemptUpdateResponse + */ + n?: number; + /** + * + * @type {string} + * @memberof RekeyAttemptUpdateResponse + */ + nonce?: string; + /** + * + * @type {Array} + * @memberof RekeyAttemptUpdateResponse + */ + pgpFingerprints?: Array; + /** + * + * @type {number} + * @memberof RekeyAttemptUpdateResponse + */ + progress?: number; + /** + * + * @type {number} + * @memberof RekeyAttemptUpdateResponse + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RekeyAttemptUpdateResponse + */ + started?: boolean; + /** + * + * @type {number} + * @memberof RekeyAttemptUpdateResponse + */ + t?: number; + /** + * + * @type {string} + * @memberof RekeyAttemptUpdateResponse + */ + verificationNonce?: string; + /** + * + * @type {boolean} + * @memberof RekeyAttemptUpdateResponse + */ + verificationRequired?: boolean; +} + +/** + * Check if a given object implements the RekeyAttemptUpdateResponse interface. + */ +export function instanceOfRekeyAttemptUpdateResponse(value: object): value is RekeyAttemptUpdateResponse { + return true; +} + +export function RekeyAttemptUpdateResponseFromJSON(json: any): RekeyAttemptUpdateResponse { + return RekeyAttemptUpdateResponseFromJSONTyped(json, false); +} + +export function RekeyAttemptUpdateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyAttemptUpdateResponse { + if (json == null) { + return json; + } + return { + backup: json['backup'] == null ? undefined : json['backup'], + complete: json['complete'] == null ? undefined : json['complete'], + keys: json['keys'] == null ? undefined : json['keys'], + keysBase64: json['keys_base64'] == null ? undefined : json['keys_base64'], + n: json['n'] == null ? undefined : json['n'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + pgpFingerprints: json['pgp_fingerprints'] == null ? undefined : json['pgp_fingerprints'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + t: json['t'] == null ? undefined : json['t'], + verificationNonce: json['verification_nonce'] == null ? undefined : json['verification_nonce'], + verificationRequired: json['verification_required'] == null ? undefined : json['verification_required'], + }; +} + +export function RekeyAttemptUpdateResponseToJSON(json: any): RekeyAttemptUpdateResponse { + return RekeyAttemptUpdateResponseToJSONTyped(json, false); +} + +export function RekeyAttemptUpdateResponseToJSONTyped( + value?: RekeyAttemptUpdateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + backup: value['backup'], + complete: value['complete'], + keys: value['keys'], + keys_base64: value['keysBase64'], + n: value['n'], + nonce: value['nonce'], + pgp_fingerprints: value['pgpFingerprints'], + progress: value['progress'], + required: value['required'], + started: value['started'], + t: value['t'], + verification_nonce: value['verificationNonce'], + verification_required: value['verificationRequired'], + }; +} diff --git a/ui/api-client/src/models/RekeyReadBackupKeyResponse.ts b/ui/api-client/src/models/RekeyReadBackupKeyResponse.ts new file mode 100644 index 0000000000..25184197b0 --- /dev/null +++ b/ui/api-client/src/models/RekeyReadBackupKeyResponse.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyReadBackupKeyResponse + */ +export interface RekeyReadBackupKeyResponse { + /** + * + * @type {object} + * @memberof RekeyReadBackupKeyResponse + */ + keys?: object; + /** + * + * @type {object} + * @memberof RekeyReadBackupKeyResponse + */ + keysBase64?: object; + /** + * + * @type {string} + * @memberof RekeyReadBackupKeyResponse + */ + nonce?: string; +} + +/** + * Check if a given object implements the RekeyReadBackupKeyResponse interface. + */ +export function instanceOfRekeyReadBackupKeyResponse(value: object): value is RekeyReadBackupKeyResponse { + return true; +} + +export function RekeyReadBackupKeyResponseFromJSON(json: any): RekeyReadBackupKeyResponse { + return RekeyReadBackupKeyResponseFromJSONTyped(json, false); +} + +export function RekeyReadBackupKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyReadBackupKeyResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + keysBase64: json['keys_base64'] == null ? undefined : json['keys_base64'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + }; +} + +export function RekeyReadBackupKeyResponseToJSON(json: any): RekeyReadBackupKeyResponse { + return RekeyReadBackupKeyResponseToJSONTyped(json, false); +} + +export function RekeyReadBackupKeyResponseToJSONTyped( + value?: RekeyReadBackupKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + keys_base64: value['keysBase64'], + nonce: value['nonce'], + }; +} diff --git a/ui/api-client/src/models/RekeyReadBackupRecoveryKeyResponse.ts b/ui/api-client/src/models/RekeyReadBackupRecoveryKeyResponse.ts new file mode 100644 index 0000000000..3bbdc13657 --- /dev/null +++ b/ui/api-client/src/models/RekeyReadBackupRecoveryKeyResponse.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyReadBackupRecoveryKeyResponse + */ +export interface RekeyReadBackupRecoveryKeyResponse { + /** + * + * @type {object} + * @memberof RekeyReadBackupRecoveryKeyResponse + */ + keys?: object; + /** + * + * @type {object} + * @memberof RekeyReadBackupRecoveryKeyResponse + */ + keysBase64?: object; + /** + * + * @type {string} + * @memberof RekeyReadBackupRecoveryKeyResponse + */ + nonce?: string; +} + +/** + * Check if a given object implements the RekeyReadBackupRecoveryKeyResponse interface. + */ +export function instanceOfRekeyReadBackupRecoveryKeyResponse( + value: object +): value is RekeyReadBackupRecoveryKeyResponse { + return true; +} + +export function RekeyReadBackupRecoveryKeyResponseFromJSON(json: any): RekeyReadBackupRecoveryKeyResponse { + return RekeyReadBackupRecoveryKeyResponseFromJSONTyped(json, false); +} + +export function RekeyReadBackupRecoveryKeyResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyReadBackupRecoveryKeyResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + keysBase64: json['keys_base64'] == null ? undefined : json['keys_base64'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + }; +} + +export function RekeyReadBackupRecoveryKeyResponseToJSON(json: any): RekeyReadBackupRecoveryKeyResponse { + return RekeyReadBackupRecoveryKeyResponseToJSONTyped(json, false); +} + +export function RekeyReadBackupRecoveryKeyResponseToJSONTyped( + value?: RekeyReadBackupRecoveryKeyResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + keys_base64: value['keysBase64'], + nonce: value['nonce'], + }; +} diff --git a/ui/api-client/src/models/RekeyVerificationCancelResponse.ts b/ui/api-client/src/models/RekeyVerificationCancelResponse.ts new file mode 100644 index 0000000000..1bb63f182f --- /dev/null +++ b/ui/api-client/src/models/RekeyVerificationCancelResponse.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyVerificationCancelResponse + */ +export interface RekeyVerificationCancelResponse { + /** + * + * @type {number} + * @memberof RekeyVerificationCancelResponse + */ + n?: number; + /** + * + * @type {string} + * @memberof RekeyVerificationCancelResponse + */ + nonce?: string; + /** + * + * @type {number} + * @memberof RekeyVerificationCancelResponse + */ + progress?: number; + /** + * + * @type {boolean} + * @memberof RekeyVerificationCancelResponse + */ + started?: boolean; + /** + * + * @type {number} + * @memberof RekeyVerificationCancelResponse + */ + t?: number; +} + +/** + * Check if a given object implements the RekeyVerificationCancelResponse interface. + */ +export function instanceOfRekeyVerificationCancelResponse( + value: object +): value is RekeyVerificationCancelResponse { + return true; +} + +export function RekeyVerificationCancelResponseFromJSON(json: any): RekeyVerificationCancelResponse { + return RekeyVerificationCancelResponseFromJSONTyped(json, false); +} + +export function RekeyVerificationCancelResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyVerificationCancelResponse { + if (json == null) { + return json; + } + return { + n: json['n'] == null ? undefined : json['n'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + progress: json['progress'] == null ? undefined : json['progress'], + started: json['started'] == null ? undefined : json['started'], + t: json['t'] == null ? undefined : json['t'], + }; +} + +export function RekeyVerificationCancelResponseToJSON(json: any): RekeyVerificationCancelResponse { + return RekeyVerificationCancelResponseToJSONTyped(json, false); +} + +export function RekeyVerificationCancelResponseToJSONTyped( + value?: RekeyVerificationCancelResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + n: value['n'], + nonce: value['nonce'], + progress: value['progress'], + started: value['started'], + t: value['t'], + }; +} diff --git a/ui/api-client/src/models/RekeyVerificationReadProgressResponse.ts b/ui/api-client/src/models/RekeyVerificationReadProgressResponse.ts new file mode 100644 index 0000000000..c3fa1215bf --- /dev/null +++ b/ui/api-client/src/models/RekeyVerificationReadProgressResponse.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyVerificationReadProgressResponse + */ +export interface RekeyVerificationReadProgressResponse { + /** + * + * @type {number} + * @memberof RekeyVerificationReadProgressResponse + */ + n?: number; + /** + * + * @type {string} + * @memberof RekeyVerificationReadProgressResponse + */ + nonce?: string; + /** + * + * @type {number} + * @memberof RekeyVerificationReadProgressResponse + */ + progress?: number; + /** + * + * @type {boolean} + * @memberof RekeyVerificationReadProgressResponse + */ + started?: boolean; + /** + * + * @type {number} + * @memberof RekeyVerificationReadProgressResponse + */ + t?: number; +} + +/** + * Check if a given object implements the RekeyVerificationReadProgressResponse interface. + */ +export function instanceOfRekeyVerificationReadProgressResponse( + value: object +): value is RekeyVerificationReadProgressResponse { + return true; +} + +export function RekeyVerificationReadProgressResponseFromJSON( + json: any +): RekeyVerificationReadProgressResponse { + return RekeyVerificationReadProgressResponseFromJSONTyped(json, false); +} + +export function RekeyVerificationReadProgressResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyVerificationReadProgressResponse { + if (json == null) { + return json; + } + return { + n: json['n'] == null ? undefined : json['n'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + progress: json['progress'] == null ? undefined : json['progress'], + started: json['started'] == null ? undefined : json['started'], + t: json['t'] == null ? undefined : json['t'], + }; +} + +export function RekeyVerificationReadProgressResponseToJSON( + json: any +): RekeyVerificationReadProgressResponse { + return RekeyVerificationReadProgressResponseToJSONTyped(json, false); +} + +export function RekeyVerificationReadProgressResponseToJSONTyped( + value?: RekeyVerificationReadProgressResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + n: value['n'], + nonce: value['nonce'], + progress: value['progress'], + started: value['started'], + t: value['t'], + }; +} diff --git a/ui/api-client/src/models/RekeyVerificationUpdateRequest.ts b/ui/api-client/src/models/RekeyVerificationUpdateRequest.ts new file mode 100644 index 0000000000..733156c5c4 --- /dev/null +++ b/ui/api-client/src/models/RekeyVerificationUpdateRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyVerificationUpdateRequest + */ +export interface RekeyVerificationUpdateRequest { + /** + * Specifies a single unseal share key from the new set of shares. + * @type {string} + * @memberof RekeyVerificationUpdateRequest + */ + key?: string; + /** + * Specifies the nonce of the rekey verification operation. + * @type {string} + * @memberof RekeyVerificationUpdateRequest + */ + nonce?: string; +} + +/** + * Check if a given object implements the RekeyVerificationUpdateRequest interface. + */ +export function instanceOfRekeyVerificationUpdateRequest( + value: object +): value is RekeyVerificationUpdateRequest { + return true; +} + +export function RekeyVerificationUpdateRequestFromJSON(json: any): RekeyVerificationUpdateRequest { + return RekeyVerificationUpdateRequestFromJSONTyped(json, false); +} + +export function RekeyVerificationUpdateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyVerificationUpdateRequest { + if (json == null) { + return json; + } + return { + key: json['key'] == null ? undefined : json['key'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + }; +} + +export function RekeyVerificationUpdateRequestToJSON(json: any): RekeyVerificationUpdateRequest { + return RekeyVerificationUpdateRequestToJSONTyped(json, false); +} + +export function RekeyVerificationUpdateRequestToJSONTyped( + value?: RekeyVerificationUpdateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key: value['key'], + nonce: value['nonce'], + }; +} diff --git a/ui/api-client/src/models/RekeyVerificationUpdateResponse.ts b/ui/api-client/src/models/RekeyVerificationUpdateResponse.ts new file mode 100644 index 0000000000..6e4b0ab958 --- /dev/null +++ b/ui/api-client/src/models/RekeyVerificationUpdateResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RekeyVerificationUpdateResponse + */ +export interface RekeyVerificationUpdateResponse { + /** + * + * @type {boolean} + * @memberof RekeyVerificationUpdateResponse + */ + complete?: boolean; + /** + * + * @type {string} + * @memberof RekeyVerificationUpdateResponse + */ + nonce?: string; +} + +/** + * Check if a given object implements the RekeyVerificationUpdateResponse interface. + */ +export function instanceOfRekeyVerificationUpdateResponse( + value: object +): value is RekeyVerificationUpdateResponse { + return true; +} + +export function RekeyVerificationUpdateResponseFromJSON(json: any): RekeyVerificationUpdateResponse { + return RekeyVerificationUpdateResponseFromJSONTyped(json, false); +} + +export function RekeyVerificationUpdateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RekeyVerificationUpdateResponse { + if (json == null) { + return json; + } + return { + complete: json['complete'] == null ? undefined : json['complete'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + }; +} + +export function RekeyVerificationUpdateResponseToJSON(json: any): RekeyVerificationUpdateResponse { + return RekeyVerificationUpdateResponseToJSONTyped(json, false); +} + +export function RekeyVerificationUpdateResponseToJSONTyped( + value?: RekeyVerificationUpdateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + complete: value['complete'], + nonce: value['nonce'], + }; +} diff --git a/ui/api-client/src/models/ReloadPluginsRequest.ts b/ui/api-client/src/models/ReloadPluginsRequest.ts new file mode 100644 index 0000000000..21c0185dfc --- /dev/null +++ b/ui/api-client/src/models/ReloadPluginsRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ReloadPluginsRequest + */ +export interface ReloadPluginsRequest { + /** + * The scope for the reload operation. May be empty or "global". + * @type {string} + * @memberof ReloadPluginsRequest + */ + scope?: string; +} + +/** + * Check if a given object implements the ReloadPluginsRequest interface. + */ +export function instanceOfReloadPluginsRequest(value: object): value is ReloadPluginsRequest { + return true; +} + +export function ReloadPluginsRequestFromJSON(json: any): ReloadPluginsRequest { + return ReloadPluginsRequestFromJSONTyped(json, false); +} + +export function ReloadPluginsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ReloadPluginsRequest { + if (json == null) { + return json; + } + return { + scope: json['scope'] == null ? undefined : json['scope'], + }; +} + +export function ReloadPluginsRequestToJSON(json: any): ReloadPluginsRequest { + return ReloadPluginsRequestToJSONTyped(json, false); +} + +export function ReloadPluginsRequestToJSONTyped( + value?: ReloadPluginsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + scope: value['scope'], + }; +} diff --git a/ui/api-client/src/models/ReloadPluginsResponse.ts b/ui/api-client/src/models/ReloadPluginsResponse.ts new file mode 100644 index 0000000000..69aa5c3440 --- /dev/null +++ b/ui/api-client/src/models/ReloadPluginsResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ReloadPluginsResponse + */ +export interface ReloadPluginsResponse { + /** + * + * @type {string} + * @memberof ReloadPluginsResponse + */ + reloadId?: string; +} + +/** + * Check if a given object implements the ReloadPluginsResponse interface. + */ +export function instanceOfReloadPluginsResponse(value: object): value is ReloadPluginsResponse { + return true; +} + +export function ReloadPluginsResponseFromJSON(json: any): ReloadPluginsResponse { + return ReloadPluginsResponseFromJSONTyped(json, false); +} + +export function ReloadPluginsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): ReloadPluginsResponse { + if (json == null) { + return json; + } + return { + reloadId: json['reload_id'] == null ? undefined : json['reload_id'], + }; +} + +export function ReloadPluginsResponseToJSON(json: any): ReloadPluginsResponse { + return ReloadPluginsResponseToJSONTyped(json, false); +} + +export function ReloadPluginsResponseToJSONTyped( + value?: ReloadPluginsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + reload_id: value['reloadId'], + }; +} diff --git a/ui/api-client/src/models/RemountRequest.ts b/ui/api-client/src/models/RemountRequest.ts new file mode 100644 index 0000000000..c015e4f8be --- /dev/null +++ b/ui/api-client/src/models/RemountRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RemountRequest + */ +export interface RemountRequest { + /** + * The previous mount point. + * @type {string} + * @memberof RemountRequest + */ + from?: string; + /** + * The new mount point. + * @type {string} + * @memberof RemountRequest + */ + to?: string; +} + +/** + * Check if a given object implements the RemountRequest interface. + */ +export function instanceOfRemountRequest(value: object): value is RemountRequest { + return true; +} + +export function RemountRequestFromJSON(json: any): RemountRequest { + return RemountRequestFromJSONTyped(json, false); +} + +export function RemountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemountRequest { + if (json == null) { + return json; + } + return { + from: json['from'] == null ? undefined : json['from'], + to: json['to'] == null ? undefined : json['to'], + }; +} + +export function RemountRequestToJSON(json: any): RemountRequest { + return RemountRequestToJSONTyped(json, false); +} + +export function RemountRequestToJSONTyped( + value?: RemountRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + from: value['from'], + to: value['to'], + }; +} diff --git a/ui/api-client/src/models/RemountResponse.ts b/ui/api-client/src/models/RemountResponse.ts new file mode 100644 index 0000000000..6f7adc8379 --- /dev/null +++ b/ui/api-client/src/models/RemountResponse.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RemountResponse + */ +export interface RemountResponse { + /** + * + * @type {string} + * @memberof RemountResponse + */ + migrationId?: string; +} + +/** + * Check if a given object implements the RemountResponse interface. + */ +export function instanceOfRemountResponse(value: object): value is RemountResponse { + return true; +} + +export function RemountResponseFromJSON(json: any): RemountResponse { + return RemountResponseFromJSONTyped(json, false); +} + +export function RemountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemountResponse { + if (json == null) { + return json; + } + return { + migrationId: json['migration_id'] == null ? undefined : json['migration_id'], + }; +} + +export function RemountResponseToJSON(json: any): RemountResponse { + return RemountResponseToJSONTyped(json, false); +} + +export function RemountResponseToJSONTyped( + value?: RemountResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + migration_id: value['migrationId'], + }; +} diff --git a/ui/api-client/src/models/RemountStatusResponse.ts b/ui/api-client/src/models/RemountStatusResponse.ts new file mode 100644 index 0000000000..b364a0f36b --- /dev/null +++ b/ui/api-client/src/models/RemountStatusResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RemountStatusResponse + */ +export interface RemountStatusResponse { + /** + * + * @type {string} + * @memberof RemountStatusResponse + */ + migrationId?: string; + /** + * + * @type {object} + * @memberof RemountStatusResponse + */ + migrationInfo?: object; +} + +/** + * Check if a given object implements the RemountStatusResponse interface. + */ +export function instanceOfRemountStatusResponse(value: object): value is RemountStatusResponse { + return true; +} + +export function RemountStatusResponseFromJSON(json: any): RemountStatusResponse { + return RemountStatusResponseFromJSONTyped(json, false); +} + +export function RemountStatusResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RemountStatusResponse { + if (json == null) { + return json; + } + return { + migrationId: json['migration_id'] == null ? undefined : json['migration_id'], + migrationInfo: json['migration_info'] == null ? undefined : json['migration_info'], + }; +} + +export function RemountStatusResponseToJSON(json: any): RemountStatusResponse { + return RemountStatusResponseToJSONTyped(json, false); +} + +export function RemountStatusResponseToJSONTyped( + value?: RemountStatusResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + migration_id: value['migrationId'], + migration_info: value['migrationInfo'], + }; +} diff --git a/ui/api-client/src/models/RewrapRequest.ts b/ui/api-client/src/models/RewrapRequest.ts new file mode 100644 index 0000000000..8e6092af85 --- /dev/null +++ b/ui/api-client/src/models/RewrapRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RewrapRequest + */ +export interface RewrapRequest { + /** + * + * @type {string} + * @memberof RewrapRequest + */ + token?: string; +} + +/** + * Check if a given object implements the RewrapRequest interface. + */ +export function instanceOfRewrapRequest(value: object): value is RewrapRequest { + return true; +} + +export function RewrapRequestFromJSON(json: any): RewrapRequest { + return RewrapRequestFromJSONTyped(json, false); +} + +export function RewrapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RewrapRequest { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function RewrapRequestToJSON(json: any): RewrapRequest { + return RewrapRequestToJSONTyped(json, false); +} + +export function RewrapRequestToJSONTyped( + value?: RewrapRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationInitialize2Request.ts b/ui/api-client/src/models/RootTokenGenerationInitialize2Request.ts new file mode 100644 index 0000000000..ae19e3756f --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationInitialize2Request.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationInitialize2Request + */ +export interface RootTokenGenerationInitialize2Request { + /** + * Specifies a base64-encoded PGP public key. + * @type {string} + * @memberof RootTokenGenerationInitialize2Request + */ + pgpKey?: string; +} + +/** + * Check if a given object implements the RootTokenGenerationInitialize2Request interface. + */ +export function instanceOfRootTokenGenerationInitialize2Request( + value: object +): value is RootTokenGenerationInitialize2Request { + return true; +} + +export function RootTokenGenerationInitialize2RequestFromJSON( + json: any +): RootTokenGenerationInitialize2Request { + return RootTokenGenerationInitialize2RequestFromJSONTyped(json, false); +} + +export function RootTokenGenerationInitialize2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationInitialize2Request { + if (json == null) { + return json; + } + return { + pgpKey: json['pgp_key'] == null ? undefined : json['pgp_key'], + }; +} + +export function RootTokenGenerationInitialize2RequestToJSON( + json: any +): RootTokenGenerationInitialize2Request { + return RootTokenGenerationInitialize2RequestToJSONTyped(json, false); +} + +export function RootTokenGenerationInitialize2RequestToJSONTyped( + value?: RootTokenGenerationInitialize2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + pgp_key: value['pgpKey'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationInitialize2Response.ts b/ui/api-client/src/models/RootTokenGenerationInitialize2Response.ts new file mode 100644 index 0000000000..c7d28adfe7 --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationInitialize2Response.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationInitialize2Response + */ +export interface RootTokenGenerationInitialize2Response { + /** + * + * @type {boolean} + * @memberof RootTokenGenerationInitialize2Response + */ + complete?: boolean; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitialize2Response + */ + encodedRootToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitialize2Response + */ + encodedToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitialize2Response + */ + nonce?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitialize2Response + */ + otp?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationInitialize2Response + */ + otpLength?: number; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitialize2Response + */ + pgpFingerprint?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationInitialize2Response + */ + progress?: number; + /** + * + * @type {number} + * @memberof RootTokenGenerationInitialize2Response + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RootTokenGenerationInitialize2Response + */ + started?: boolean; +} + +/** + * Check if a given object implements the RootTokenGenerationInitialize2Response interface. + */ +export function instanceOfRootTokenGenerationInitialize2Response( + value: object +): value is RootTokenGenerationInitialize2Response { + return true; +} + +export function RootTokenGenerationInitialize2ResponseFromJSON( + json: any +): RootTokenGenerationInitialize2Response { + return RootTokenGenerationInitialize2ResponseFromJSONTyped(json, false); +} + +export function RootTokenGenerationInitialize2ResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationInitialize2Response { + if (json == null) { + return json; + } + return { + complete: json['complete'] == null ? undefined : json['complete'], + encodedRootToken: json['encoded_root_token'] == null ? undefined : json['encoded_root_token'], + encodedToken: json['encoded_token'] == null ? undefined : json['encoded_token'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + otp: json['otp'] == null ? undefined : json['otp'], + otpLength: json['otp_length'] == null ? undefined : json['otp_length'], + pgpFingerprint: json['pgp_fingerprint'] == null ? undefined : json['pgp_fingerprint'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + }; +} + +export function RootTokenGenerationInitialize2ResponseToJSON( + json: any +): RootTokenGenerationInitialize2Response { + return RootTokenGenerationInitialize2ResponseToJSONTyped(json, false); +} + +export function RootTokenGenerationInitialize2ResponseToJSONTyped( + value?: RootTokenGenerationInitialize2Response | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + complete: value['complete'], + encoded_root_token: value['encodedRootToken'], + encoded_token: value['encodedToken'], + nonce: value['nonce'], + otp: value['otp'], + otp_length: value['otpLength'], + pgp_fingerprint: value['pgpFingerprint'], + progress: value['progress'], + required: value['required'], + started: value['started'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationInitializeRequest.ts b/ui/api-client/src/models/RootTokenGenerationInitializeRequest.ts new file mode 100644 index 0000000000..2cb4f64e2b --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationInitializeRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationInitializeRequest + */ +export interface RootTokenGenerationInitializeRequest { + /** + * Specifies a base64-encoded PGP public key. + * @type {string} + * @memberof RootTokenGenerationInitializeRequest + */ + pgpKey?: string; +} + +/** + * Check if a given object implements the RootTokenGenerationInitializeRequest interface. + */ +export function instanceOfRootTokenGenerationInitializeRequest( + value: object +): value is RootTokenGenerationInitializeRequest { + return true; +} + +export function RootTokenGenerationInitializeRequestFromJSON( + json: any +): RootTokenGenerationInitializeRequest { + return RootTokenGenerationInitializeRequestFromJSONTyped(json, false); +} + +export function RootTokenGenerationInitializeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationInitializeRequest { + if (json == null) { + return json; + } + return { + pgpKey: json['pgp_key'] == null ? undefined : json['pgp_key'], + }; +} + +export function RootTokenGenerationInitializeRequestToJSON(json: any): RootTokenGenerationInitializeRequest { + return RootTokenGenerationInitializeRequestToJSONTyped(json, false); +} + +export function RootTokenGenerationInitializeRequestToJSONTyped( + value?: RootTokenGenerationInitializeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + pgp_key: value['pgpKey'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationInitializeResponse.ts b/ui/api-client/src/models/RootTokenGenerationInitializeResponse.ts new file mode 100644 index 0000000000..57d5bdeaa0 --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationInitializeResponse.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationInitializeResponse + */ +export interface RootTokenGenerationInitializeResponse { + /** + * + * @type {boolean} + * @memberof RootTokenGenerationInitializeResponse + */ + complete?: boolean; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitializeResponse + */ + encodedRootToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitializeResponse + */ + encodedToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitializeResponse + */ + nonce?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitializeResponse + */ + otp?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationInitializeResponse + */ + otpLength?: number; + /** + * + * @type {string} + * @memberof RootTokenGenerationInitializeResponse + */ + pgpFingerprint?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationInitializeResponse + */ + progress?: number; + /** + * + * @type {number} + * @memberof RootTokenGenerationInitializeResponse + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RootTokenGenerationInitializeResponse + */ + started?: boolean; +} + +/** + * Check if a given object implements the RootTokenGenerationInitializeResponse interface. + */ +export function instanceOfRootTokenGenerationInitializeResponse( + value: object +): value is RootTokenGenerationInitializeResponse { + return true; +} + +export function RootTokenGenerationInitializeResponseFromJSON( + json: any +): RootTokenGenerationInitializeResponse { + return RootTokenGenerationInitializeResponseFromJSONTyped(json, false); +} + +export function RootTokenGenerationInitializeResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationInitializeResponse { + if (json == null) { + return json; + } + return { + complete: json['complete'] == null ? undefined : json['complete'], + encodedRootToken: json['encoded_root_token'] == null ? undefined : json['encoded_root_token'], + encodedToken: json['encoded_token'] == null ? undefined : json['encoded_token'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + otp: json['otp'] == null ? undefined : json['otp'], + otpLength: json['otp_length'] == null ? undefined : json['otp_length'], + pgpFingerprint: json['pgp_fingerprint'] == null ? undefined : json['pgp_fingerprint'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + }; +} + +export function RootTokenGenerationInitializeResponseToJSON( + json: any +): RootTokenGenerationInitializeResponse { + return RootTokenGenerationInitializeResponseToJSONTyped(json, false); +} + +export function RootTokenGenerationInitializeResponseToJSONTyped( + value?: RootTokenGenerationInitializeResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + complete: value['complete'], + encoded_root_token: value['encodedRootToken'], + encoded_token: value['encodedToken'], + nonce: value['nonce'], + otp: value['otp'], + otp_length: value['otpLength'], + pgp_fingerprint: value['pgpFingerprint'], + progress: value['progress'], + required: value['required'], + started: value['started'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationReadProgress2Response.ts b/ui/api-client/src/models/RootTokenGenerationReadProgress2Response.ts new file mode 100644 index 0000000000..5ab18e3127 --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationReadProgress2Response.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationReadProgress2Response + */ +export interface RootTokenGenerationReadProgress2Response { + /** + * + * @type {boolean} + * @memberof RootTokenGenerationReadProgress2Response + */ + complete?: boolean; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgress2Response + */ + encodedRootToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgress2Response + */ + encodedToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgress2Response + */ + nonce?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgress2Response + */ + otp?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationReadProgress2Response + */ + otpLength?: number; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgress2Response + */ + pgpFingerprint?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationReadProgress2Response + */ + progress?: number; + /** + * + * @type {number} + * @memberof RootTokenGenerationReadProgress2Response + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RootTokenGenerationReadProgress2Response + */ + started?: boolean; +} + +/** + * Check if a given object implements the RootTokenGenerationReadProgress2Response interface. + */ +export function instanceOfRootTokenGenerationReadProgress2Response( + value: object +): value is RootTokenGenerationReadProgress2Response { + return true; +} + +export function RootTokenGenerationReadProgress2ResponseFromJSON( + json: any +): RootTokenGenerationReadProgress2Response { + return RootTokenGenerationReadProgress2ResponseFromJSONTyped(json, false); +} + +export function RootTokenGenerationReadProgress2ResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationReadProgress2Response { + if (json == null) { + return json; + } + return { + complete: json['complete'] == null ? undefined : json['complete'], + encodedRootToken: json['encoded_root_token'] == null ? undefined : json['encoded_root_token'], + encodedToken: json['encoded_token'] == null ? undefined : json['encoded_token'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + otp: json['otp'] == null ? undefined : json['otp'], + otpLength: json['otp_length'] == null ? undefined : json['otp_length'], + pgpFingerprint: json['pgp_fingerprint'] == null ? undefined : json['pgp_fingerprint'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + }; +} + +export function RootTokenGenerationReadProgress2ResponseToJSON( + json: any +): RootTokenGenerationReadProgress2Response { + return RootTokenGenerationReadProgress2ResponseToJSONTyped(json, false); +} + +export function RootTokenGenerationReadProgress2ResponseToJSONTyped( + value?: RootTokenGenerationReadProgress2Response | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + complete: value['complete'], + encoded_root_token: value['encodedRootToken'], + encoded_token: value['encodedToken'], + nonce: value['nonce'], + otp: value['otp'], + otp_length: value['otpLength'], + pgp_fingerprint: value['pgpFingerprint'], + progress: value['progress'], + required: value['required'], + started: value['started'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationReadProgressResponse.ts b/ui/api-client/src/models/RootTokenGenerationReadProgressResponse.ts new file mode 100644 index 0000000000..1077d47c6c --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationReadProgressResponse.ts @@ -0,0 +1,146 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationReadProgressResponse + */ +export interface RootTokenGenerationReadProgressResponse { + /** + * + * @type {boolean} + * @memberof RootTokenGenerationReadProgressResponse + */ + complete?: boolean; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgressResponse + */ + encodedRootToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgressResponse + */ + encodedToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgressResponse + */ + nonce?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgressResponse + */ + otp?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationReadProgressResponse + */ + otpLength?: number; + /** + * + * @type {string} + * @memberof RootTokenGenerationReadProgressResponse + */ + pgpFingerprint?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationReadProgressResponse + */ + progress?: number; + /** + * + * @type {number} + * @memberof RootTokenGenerationReadProgressResponse + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RootTokenGenerationReadProgressResponse + */ + started?: boolean; +} + +/** + * Check if a given object implements the RootTokenGenerationReadProgressResponse interface. + */ +export function instanceOfRootTokenGenerationReadProgressResponse( + value: object +): value is RootTokenGenerationReadProgressResponse { + return true; +} + +export function RootTokenGenerationReadProgressResponseFromJSON( + json: any +): RootTokenGenerationReadProgressResponse { + return RootTokenGenerationReadProgressResponseFromJSONTyped(json, false); +} + +export function RootTokenGenerationReadProgressResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationReadProgressResponse { + if (json == null) { + return json; + } + return { + complete: json['complete'] == null ? undefined : json['complete'], + encodedRootToken: json['encoded_root_token'] == null ? undefined : json['encoded_root_token'], + encodedToken: json['encoded_token'] == null ? undefined : json['encoded_token'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + otp: json['otp'] == null ? undefined : json['otp'], + otpLength: json['otp_length'] == null ? undefined : json['otp_length'], + pgpFingerprint: json['pgp_fingerprint'] == null ? undefined : json['pgp_fingerprint'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + }; +} + +export function RootTokenGenerationReadProgressResponseToJSON( + json: any +): RootTokenGenerationReadProgressResponse { + return RootTokenGenerationReadProgressResponseToJSONTyped(json, false); +} + +export function RootTokenGenerationReadProgressResponseToJSONTyped( + value?: RootTokenGenerationReadProgressResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + complete: value['complete'], + encoded_root_token: value['encodedRootToken'], + encoded_token: value['encodedToken'], + nonce: value['nonce'], + otp: value['otp'], + otp_length: value['otpLength'], + pgp_fingerprint: value['pgpFingerprint'], + progress: value['progress'], + required: value['required'], + started: value['started'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationUpdateRequest.ts b/ui/api-client/src/models/RootTokenGenerationUpdateRequest.ts new file mode 100644 index 0000000000..094cbd0a55 --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationUpdateRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationUpdateRequest + */ +export interface RootTokenGenerationUpdateRequest { + /** + * Specifies a single unseal key share. + * @type {string} + * @memberof RootTokenGenerationUpdateRequest + */ + key?: string; + /** + * Specifies the nonce of the attempt. + * @type {string} + * @memberof RootTokenGenerationUpdateRequest + */ + nonce?: string; +} + +/** + * Check if a given object implements the RootTokenGenerationUpdateRequest interface. + */ +export function instanceOfRootTokenGenerationUpdateRequest( + value: object +): value is RootTokenGenerationUpdateRequest { + return true; +} + +export function RootTokenGenerationUpdateRequestFromJSON(json: any): RootTokenGenerationUpdateRequest { + return RootTokenGenerationUpdateRequestFromJSONTyped(json, false); +} + +export function RootTokenGenerationUpdateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationUpdateRequest { + if (json == null) { + return json; + } + return { + key: json['key'] == null ? undefined : json['key'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + }; +} + +export function RootTokenGenerationUpdateRequestToJSON(json: any): RootTokenGenerationUpdateRequest { + return RootTokenGenerationUpdateRequestToJSONTyped(json, false); +} + +export function RootTokenGenerationUpdateRequestToJSONTyped( + value?: RootTokenGenerationUpdateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key: value['key'], + nonce: value['nonce'], + }; +} diff --git a/ui/api-client/src/models/RootTokenGenerationUpdateResponse.ts b/ui/api-client/src/models/RootTokenGenerationUpdateResponse.ts new file mode 100644 index 0000000000..5683a0b16b --- /dev/null +++ b/ui/api-client/src/models/RootTokenGenerationUpdateResponse.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RootTokenGenerationUpdateResponse + */ +export interface RootTokenGenerationUpdateResponse { + /** + * + * @type {boolean} + * @memberof RootTokenGenerationUpdateResponse + */ + complete?: boolean; + /** + * + * @type {string} + * @memberof RootTokenGenerationUpdateResponse + */ + encodedRootToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationUpdateResponse + */ + encodedToken?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationUpdateResponse + */ + nonce?: string; + /** + * + * @type {string} + * @memberof RootTokenGenerationUpdateResponse + */ + otp?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationUpdateResponse + */ + otpLength?: number; + /** + * + * @type {string} + * @memberof RootTokenGenerationUpdateResponse + */ + pgpFingerprint?: string; + /** + * + * @type {number} + * @memberof RootTokenGenerationUpdateResponse + */ + progress?: number; + /** + * + * @type {number} + * @memberof RootTokenGenerationUpdateResponse + */ + required?: number; + /** + * + * @type {boolean} + * @memberof RootTokenGenerationUpdateResponse + */ + started?: boolean; +} + +/** + * Check if a given object implements the RootTokenGenerationUpdateResponse interface. + */ +export function instanceOfRootTokenGenerationUpdateResponse( + value: object +): value is RootTokenGenerationUpdateResponse { + return true; +} + +export function RootTokenGenerationUpdateResponseFromJSON(json: any): RootTokenGenerationUpdateResponse { + return RootTokenGenerationUpdateResponseFromJSONTyped(json, false); +} + +export function RootTokenGenerationUpdateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): RootTokenGenerationUpdateResponse { + if (json == null) { + return json; + } + return { + complete: json['complete'] == null ? undefined : json['complete'], + encodedRootToken: json['encoded_root_token'] == null ? undefined : json['encoded_root_token'], + encodedToken: json['encoded_token'] == null ? undefined : json['encoded_token'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + otp: json['otp'] == null ? undefined : json['otp'], + otpLength: json['otp_length'] == null ? undefined : json['otp_length'], + pgpFingerprint: json['pgp_fingerprint'] == null ? undefined : json['pgp_fingerprint'], + progress: json['progress'] == null ? undefined : json['progress'], + required: json['required'] == null ? undefined : json['required'], + started: json['started'] == null ? undefined : json['started'], + }; +} + +export function RootTokenGenerationUpdateResponseToJSON(json: any): RootTokenGenerationUpdateResponse { + return RootTokenGenerationUpdateResponseToJSONTyped(json, false); +} + +export function RootTokenGenerationUpdateResponseToJSONTyped( + value?: RootTokenGenerationUpdateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + complete: value['complete'], + encoded_root_token: value['encodedRootToken'], + encoded_token: value['encodedToken'], + nonce: value['nonce'], + otp: value['otp'], + otp_length: value['otpLength'], + pgp_fingerprint: value['pgpFingerprint'], + progress: value['progress'], + required: value['required'], + started: value['started'], + }; +} diff --git a/ui/api-client/src/models/SealStatusResponse.ts b/ui/api-client/src/models/SealStatusResponse.ts new file mode 100644 index 0000000000..c8699d94b2 --- /dev/null +++ b/ui/api-client/src/models/SealStatusResponse.ts @@ -0,0 +1,185 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SealStatusResponse + */ +export interface SealStatusResponse { + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + buildDate?: string; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + clusterId?: string; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + clusterName?: string; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + hcpLinkResourceID?: string; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + hcpLinkStatus?: string; + /** + * + * @type {boolean} + * @memberof SealStatusResponse + */ + initialized?: boolean; + /** + * + * @type {boolean} + * @memberof SealStatusResponse + */ + migration?: boolean; + /** + * + * @type {number} + * @memberof SealStatusResponse + */ + n?: number; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + nonce?: string; + /** + * + * @type {number} + * @memberof SealStatusResponse + */ + progress?: number; + /** + * + * @type {boolean} + * @memberof SealStatusResponse + */ + recoverySeal?: boolean; + /** + * + * @type {boolean} + * @memberof SealStatusResponse + */ + sealed?: boolean; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + storageType?: string; + /** + * + * @type {number} + * @memberof SealStatusResponse + */ + t?: number; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + type?: string; + /** + * + * @type {string} + * @memberof SealStatusResponse + */ + version?: string; +} + +/** + * Check if a given object implements the SealStatusResponse interface. + */ +export function instanceOfSealStatusResponse(value: object): value is SealStatusResponse { + return true; +} + +export function SealStatusResponseFromJSON(json: any): SealStatusResponse { + return SealStatusResponseFromJSONTyped(json, false); +} + +export function SealStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SealStatusResponse { + if (json == null) { + return json; + } + return { + buildDate: json['build_date'] == null ? undefined : json['build_date'], + clusterId: json['cluster_id'] == null ? undefined : json['cluster_id'], + clusterName: json['cluster_name'] == null ? undefined : json['cluster_name'], + hcpLinkResourceID: json['hcp_link_resource_ID'] == null ? undefined : json['hcp_link_resource_ID'], + hcpLinkStatus: json['hcp_link_status'] == null ? undefined : json['hcp_link_status'], + initialized: json['initialized'] == null ? undefined : json['initialized'], + migration: json['migration'] == null ? undefined : json['migration'], + n: json['n'] == null ? undefined : json['n'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + progress: json['progress'] == null ? undefined : json['progress'], + recoverySeal: json['recovery_seal'] == null ? undefined : json['recovery_seal'], + sealed: json['sealed'] == null ? undefined : json['sealed'], + storageType: json['storage_type'] == null ? undefined : json['storage_type'], + t: json['t'] == null ? undefined : json['t'], + type: json['type'] == null ? undefined : json['type'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function SealStatusResponseToJSON(json: any): SealStatusResponse { + return SealStatusResponseToJSONTyped(json, false); +} + +export function SealStatusResponseToJSONTyped( + value?: SealStatusResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + build_date: value['buildDate'], + cluster_id: value['clusterId'], + cluster_name: value['clusterName'], + hcp_link_resource_ID: value['hcpLinkResourceID'], + hcp_link_status: value['hcpLinkStatus'], + initialized: value['initialized'], + migration: value['migration'], + n: value['n'], + nonce: value['nonce'], + progress: value['progress'], + recovery_seal: value['recoverySeal'], + sealed: value['sealed'], + storage_type: value['storageType'], + t: value['t'], + type: value['type'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/SshConfigureCaRequest.ts b/ui/api-client/src/models/SshConfigureCaRequest.ts new file mode 100644 index 0000000000..1e0d2f9dce --- /dev/null +++ b/ui/api-client/src/models/SshConfigureCaRequest.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshConfigureCaRequest + */ +export interface SshConfigureCaRequest { + /** + * Generate SSH key pair internally rather than use the private_key and public_key fields. + * @type {boolean} + * @memberof SshConfigureCaRequest + */ + generateSigningKey?: boolean; + /** + * Specifies the desired key bits when generating variable-length keys (such as when key_type="ssh-rsa") or which NIST P-curve to use when key_type="ec" (256, 384, or 521). + * @type {number} + * @memberof SshConfigureCaRequest + */ + keyBits?: number; + /** + * Specifies the desired key type when generating; could be a OpenSSH key type identifier (ssh-rsa, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, or ssh-ed25519) or an algorithm (rsa, ec, ed25519). + * @type {string} + * @memberof SshConfigureCaRequest + */ + keyType?: string; + /** + * Private half of the SSH key that will be used to sign certificates. + * @type {string} + * @memberof SshConfigureCaRequest + */ + privateKey?: string; + /** + * Public half of the SSH key that will be used to sign certificates. + * @type {string} + * @memberof SshConfigureCaRequest + */ + publicKey?: string; +} + +/** + * Check if a given object implements the SshConfigureCaRequest interface. + */ +export function instanceOfSshConfigureCaRequest(value: object): value is SshConfigureCaRequest { + return true; +} + +export function SshConfigureCaRequestFromJSON(json: any): SshConfigureCaRequest { + return SshConfigureCaRequestFromJSONTyped(json, false); +} + +export function SshConfigureCaRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshConfigureCaRequest { + if (json == null) { + return json; + } + return { + generateSigningKey: json['generate_signing_key'] == null ? undefined : json['generate_signing_key'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + publicKey: json['public_key'] == null ? undefined : json['public_key'], + }; +} + +export function SshConfigureCaRequestToJSON(json: any): SshConfigureCaRequest { + return SshConfigureCaRequestToJSONTyped(json, false); +} + +export function SshConfigureCaRequestToJSONTyped( + value?: SshConfigureCaRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + generate_signing_key: value['generateSigningKey'], + key_bits: value['keyBits'], + key_type: value['keyType'], + private_key: value['privateKey'], + public_key: value['publicKey'], + }; +} diff --git a/ui/api-client/src/models/SshConfigureZeroAddressRequest.ts b/ui/api-client/src/models/SshConfigureZeroAddressRequest.ts new file mode 100644 index 0000000000..c1759f808f --- /dev/null +++ b/ui/api-client/src/models/SshConfigureZeroAddressRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshConfigureZeroAddressRequest + */ +export interface SshConfigureZeroAddressRequest { + /** + * [Required] Comma separated list of role names which allows credentials to be requested for any IP address. CIDR blocks previously registered under these roles will be ignored. + * @type {Array} + * @memberof SshConfigureZeroAddressRequest + */ + roles?: Array; +} + +/** + * Check if a given object implements the SshConfigureZeroAddressRequest interface. + */ +export function instanceOfSshConfigureZeroAddressRequest( + value: object +): value is SshConfigureZeroAddressRequest { + return true; +} + +export function SshConfigureZeroAddressRequestFromJSON(json: any): SshConfigureZeroAddressRequest { + return SshConfigureZeroAddressRequestFromJSONTyped(json, false); +} + +export function SshConfigureZeroAddressRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshConfigureZeroAddressRequest { + if (json == null) { + return json; + } + return { + roles: json['roles'] == null ? undefined : json['roles'], + }; +} + +export function SshConfigureZeroAddressRequestToJSON(json: any): SshConfigureZeroAddressRequest { + return SshConfigureZeroAddressRequestToJSONTyped(json, false); +} + +export function SshConfigureZeroAddressRequestToJSONTyped( + value?: SshConfigureZeroAddressRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + roles: value['roles'], + }; +} diff --git a/ui/api-client/src/models/SshGenerateCredentialsRequest.ts b/ui/api-client/src/models/SshGenerateCredentialsRequest.ts new file mode 100644 index 0000000000..97b7beba1b --- /dev/null +++ b/ui/api-client/src/models/SshGenerateCredentialsRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshGenerateCredentialsRequest + */ +export interface SshGenerateCredentialsRequest { + /** + * [Required] IP of the remote host + * @type {string} + * @memberof SshGenerateCredentialsRequest + */ + ip?: string; + /** + * [Optional] Username in remote host + * @type {string} + * @memberof SshGenerateCredentialsRequest + */ + username?: string; +} + +/** + * Check if a given object implements the SshGenerateCredentialsRequest interface. + */ +export function instanceOfSshGenerateCredentialsRequest( + value: object +): value is SshGenerateCredentialsRequest { + return true; +} + +export function SshGenerateCredentialsRequestFromJSON(json: any): SshGenerateCredentialsRequest { + return SshGenerateCredentialsRequestFromJSONTyped(json, false); +} + +export function SshGenerateCredentialsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshGenerateCredentialsRequest { + if (json == null) { + return json; + } + return { + ip: json['ip'] == null ? undefined : json['ip'], + username: json['username'] == null ? undefined : json['username'], + }; +} + +export function SshGenerateCredentialsRequestToJSON(json: any): SshGenerateCredentialsRequest { + return SshGenerateCredentialsRequestToJSONTyped(json, false); +} + +export function SshGenerateCredentialsRequestToJSONTyped( + value?: SshGenerateCredentialsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ip: value['ip'], + username: value['username'], + }; +} diff --git a/ui/api-client/src/models/SshIssueCertificateRequest.ts b/ui/api-client/src/models/SshIssueCertificateRequest.ts new file mode 100644 index 0000000000..812ef92fe8 --- /dev/null +++ b/ui/api-client/src/models/SshIssueCertificateRequest.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshIssueCertificateRequest + */ +export interface SshIssueCertificateRequest { + /** + * Type of certificate to be created; either "user" or "host". + * @type {string} + * @memberof SshIssueCertificateRequest + */ + certType?: string; + /** + * Critical options that the certificate should be signed for. + * @type {object} + * @memberof SshIssueCertificateRequest + */ + criticalOptions?: object; + /** + * Extensions that the certificate should be signed for. + * @type {object} + * @memberof SshIssueCertificateRequest + */ + extensions?: object; + /** + * Specifies the number of bits to use for the generated keys. + * @type {number} + * @memberof SshIssueCertificateRequest + */ + keyBits?: number; + /** + * Key id that the created certificate should have. If not specified, the display name of the token will be used. + * @type {string} + * @memberof SshIssueCertificateRequest + */ + keyId?: string; + /** + * Specifies the desired key type; must be `rsa`, `ed25519` or `ec` + * @type {string} + * @memberof SshIssueCertificateRequest + */ + keyType?: string; + /** + * The requested Time To Live for the SSH certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be later than the role max TTL. + * @type {string} + * @memberof SshIssueCertificateRequest + */ + ttl?: string; + /** + * Valid principals, either usernames or hostnames, that the certificate should be signed for. Must be non-empty unless allow_empty_principals=true (not recommended) or a value for DefaultUser has been set in the role + * @type {string} + * @memberof SshIssueCertificateRequest + */ + validPrincipals?: string; +} + +/** + * Check if a given object implements the SshIssueCertificateRequest interface. + */ +export function instanceOfSshIssueCertificateRequest(value: object): value is SshIssueCertificateRequest { + return true; +} + +export function SshIssueCertificateRequestFromJSON(json: any): SshIssueCertificateRequest { + return SshIssueCertificateRequestFromJSONTyped(json, false); +} + +export function SshIssueCertificateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshIssueCertificateRequest { + if (json == null) { + return json; + } + return { + certType: json['cert_type'] == null ? undefined : json['cert_type'], + criticalOptions: json['critical_options'] == null ? undefined : json['critical_options'], + extensions: json['extensions'] == null ? undefined : json['extensions'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + validPrincipals: json['valid_principals'] == null ? undefined : json['valid_principals'], + }; +} + +export function SshIssueCertificateRequestToJSON(json: any): SshIssueCertificateRequest { + return SshIssueCertificateRequestToJSONTyped(json, false); +} + +export function SshIssueCertificateRequestToJSONTyped( + value?: SshIssueCertificateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cert_type: value['certType'], + critical_options: value['criticalOptions'], + extensions: value['extensions'], + key_bits: value['keyBits'], + key_id: value['keyId'], + key_type: value['keyType'], + ttl: value['ttl'], + valid_principals: value['validPrincipals'], + }; +} diff --git a/ui/api-client/src/models/SshListRolesByIpRequest.ts b/ui/api-client/src/models/SshListRolesByIpRequest.ts new file mode 100644 index 0000000000..9de4aa1efd --- /dev/null +++ b/ui/api-client/src/models/SshListRolesByIpRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshListRolesByIpRequest + */ +export interface SshListRolesByIpRequest { + /** + * [Required] IP address of remote host + * @type {string} + * @memberof SshListRolesByIpRequest + */ + ip?: string; +} + +/** + * Check if a given object implements the SshListRolesByIpRequest interface. + */ +export function instanceOfSshListRolesByIpRequest(value: object): value is SshListRolesByIpRequest { + return true; +} + +export function SshListRolesByIpRequestFromJSON(json: any): SshListRolesByIpRequest { + return SshListRolesByIpRequestFromJSONTyped(json, false); +} + +export function SshListRolesByIpRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshListRolesByIpRequest { + if (json == null) { + return json; + } + return { + ip: json['ip'] == null ? undefined : json['ip'], + }; +} + +export function SshListRolesByIpRequestToJSON(json: any): SshListRolesByIpRequest { + return SshListRolesByIpRequestToJSONTyped(json, false); +} + +export function SshListRolesByIpRequestToJSONTyped( + value?: SshListRolesByIpRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ip: value['ip'], + }; +} diff --git a/ui/api-client/src/models/SshSignCertificateRequest.ts b/ui/api-client/src/models/SshSignCertificateRequest.ts new file mode 100644 index 0000000000..f728ba88f5 --- /dev/null +++ b/ui/api-client/src/models/SshSignCertificateRequest.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshSignCertificateRequest + */ +export interface SshSignCertificateRequest { + /** + * Type of certificate to be created; either "user" or "host". + * @type {string} + * @memberof SshSignCertificateRequest + */ + certType?: string; + /** + * Critical options that the certificate should be signed for. + * @type {object} + * @memberof SshSignCertificateRequest + */ + criticalOptions?: object; + /** + * Extensions that the certificate should be signed for. + * @type {object} + * @memberof SshSignCertificateRequest + */ + extensions?: object; + /** + * Key id that the created certificate should have. If not specified, the display name of the token will be used. + * @type {string} + * @memberof SshSignCertificateRequest + */ + keyId?: string; + /** + * SSH public key that should be signed. + * @type {string} + * @memberof SshSignCertificateRequest + */ + publicKey?: string; + /** + * The requested Time To Live for the SSH certificate; sets the expiration date. If not specified the role default, backend default, or system default TTL is used, in that order. Cannot be later than the role max TTL. + * @type {string} + * @memberof SshSignCertificateRequest + */ + ttl?: string; + /** + * Valid principals, either usernames or hostnames, that the certificate should be signed for. + * @type {string} + * @memberof SshSignCertificateRequest + */ + validPrincipals?: string; +} + +/** + * Check if a given object implements the SshSignCertificateRequest interface. + */ +export function instanceOfSshSignCertificateRequest(value: object): value is SshSignCertificateRequest { + return true; +} + +export function SshSignCertificateRequestFromJSON(json: any): SshSignCertificateRequest { + return SshSignCertificateRequestFromJSONTyped(json, false); +} + +export function SshSignCertificateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshSignCertificateRequest { + if (json == null) { + return json; + } + return { + certType: json['cert_type'] == null ? undefined : json['cert_type'], + criticalOptions: json['critical_options'] == null ? undefined : json['critical_options'], + extensions: json['extensions'] == null ? undefined : json['extensions'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + publicKey: json['public_key'] == null ? undefined : json['public_key'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + validPrincipals: json['valid_principals'] == null ? undefined : json['valid_principals'], + }; +} + +export function SshSignCertificateRequestToJSON(json: any): SshSignCertificateRequest { + return SshSignCertificateRequestToJSONTyped(json, false); +} + +export function SshSignCertificateRequestToJSONTyped( + value?: SshSignCertificateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + cert_type: value['certType'], + critical_options: value['criticalOptions'], + extensions: value['extensions'], + key_id: value['keyId'], + public_key: value['publicKey'], + ttl: value['ttl'], + valid_principals: value['validPrincipals'], + }; +} diff --git a/ui/api-client/src/models/SshVerifyOtpRequest.ts b/ui/api-client/src/models/SshVerifyOtpRequest.ts new file mode 100644 index 0000000000..4e247b75e7 --- /dev/null +++ b/ui/api-client/src/models/SshVerifyOtpRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshVerifyOtpRequest + */ +export interface SshVerifyOtpRequest { + /** + * [Required] One-Time-Key that needs to be validated + * @type {string} + * @memberof SshVerifyOtpRequest + */ + otp?: string; +} + +/** + * Check if a given object implements the SshVerifyOtpRequest interface. + */ +export function instanceOfSshVerifyOtpRequest(value: object): value is SshVerifyOtpRequest { + return true; +} + +export function SshVerifyOtpRequestFromJSON(json: any): SshVerifyOtpRequest { + return SshVerifyOtpRequestFromJSONTyped(json, false); +} + +export function SshVerifyOtpRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshVerifyOtpRequest { + if (json == null) { + return json; + } + return { + otp: json['otp'] == null ? undefined : json['otp'], + }; +} + +export function SshVerifyOtpRequestToJSON(json: any): SshVerifyOtpRequest { + return SshVerifyOtpRequestToJSONTyped(json, false); +} + +export function SshVerifyOtpRequestToJSONTyped( + value?: SshVerifyOtpRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + otp: value['otp'], + }; +} diff --git a/ui/api-client/src/models/SshWriteRoleRequest.ts b/ui/api-client/src/models/SshWriteRoleRequest.ts new file mode 100644 index 0000000000..c9cc380255 --- /dev/null +++ b/ui/api-client/src/models/SshWriteRoleRequest.ts @@ -0,0 +1,303 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SshWriteRoleRequest + */ +export interface SshWriteRoleRequest { + /** + * [Not applicable for OTP type] [Optional for CA type] When supplied, this value specifies a signing algorithm for the key. Possible values: ssh-rsa, rsa-sha2-256, rsa-sha2-512, default, or the empty string. + * @type {string} + * @memberof SshWriteRoleRequest + */ + algorithmSigner?: SshWriteRoleRequestAlgorithmSignerEnum; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, host certificates that are requested are allowed to use the base domains listed in "allowed_domains", e.g. "example.com". This is a separate option as in some cases this can be considered a security threat. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowBareDomains?: boolean; + /** + * Whether to allow issuing certificates with no valid principals (meaning any valid principal). Exists for backwards compatibility only, the default of false is highly recommended. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowEmptyPrincipals?: boolean; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, certificates are allowed to be signed for use as a 'host'. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowHostCertificates?: boolean; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, host certificates that are requested are allowed to use subdomains of those listed in "allowed_domains". + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowSubdomains?: boolean; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, certificates are allowed to be signed for use as a 'user'. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowUserCertificates?: boolean; + /** + * [Not applicable for OTP type] [Optional for CA type] If true, users can override the key ID for a signed certificate with the "key_id" field. When false, the key ID will always be the token display name. The key ID is logged by the SSH server and can be useful for auditing. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowUserKeyIds?: boolean; + /** + * [Not applicable for OTP type] [Optional for CA type] A comma-separated list of critical options that certificates can have when signed. To allow any critical options, set this to an empty string. + * @type {string} + * @memberof SshWriteRoleRequest + */ + allowedCriticalOptions?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] If this option is not specified, client can request for a signed certificate for any valid host. If only certain domains are allowed, then this list enforces it. + * @type {string} + * @memberof SshWriteRoleRequest + */ + allowedDomains?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, Allowed domains can be specified using identity template policies. Non-templated domains are also permitted. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowedDomainsTemplate?: boolean; + /** + * [Not applicable for OTP type] [Optional for CA type] A comma-separated list of extensions that certificates can have when signed. An empty list means that no extension overrides are allowed by an end-user; explicitly specify '*' to allow any extensions to be set. + * @type {string} + * @memberof SshWriteRoleRequest + */ + allowedExtensions?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, allows the enforcement of key types and minimum key sizes to be signed. + * @type {object} + * @memberof SshWriteRoleRequest + */ + allowedUserKeyLengths?: object; + /** + * [Optional for all types] [Works differently for CA type] If this option is not specified, or is '*', client can request a credential for any valid user at the remote host, including the admin user. If only certain usernames are to be allowed, then this list enforces it. If this field is set, then credentials can only be created for default_user and usernames present in this list. Setting this option will enable all the users with access to this role to fetch credentials for all other usernames in this list. Use with caution. N.B.: with the CA type, an empty list means that no users are allowed; explicitly specify '*' to allow any user. + * @type {string} + * @memberof SshWriteRoleRequest + */ + allowedUsers?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, Allowed users can be specified using identity template policies. Non-templated users are also permitted. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + allowedUsersTemplate?: boolean; + /** + * [Optional for OTP type] [Not applicable for CA type] Comma separated list of CIDR blocks for which the role is applicable for. CIDR blocks can belong to more than one role. + * @type {string} + * @memberof SshWriteRoleRequest + */ + cidrList?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] Critical options certificates should have if none are provided when signing. This field takes in key value pairs in JSON format. Note that these are not restricted by "allowed_critical_options". Defaults to none. + * @type {object} + * @memberof SshWriteRoleRequest + */ + defaultCriticalOptions?: object; + /** + * [Not applicable for OTP type] [Optional for CA type] Extensions certificates should have if none are provided when signing. This field takes in key value pairs in JSON format. Note that these are not restricted by "allowed_extensions". Defaults to none. + * @type {object} + * @memberof SshWriteRoleRequest + */ + defaultExtensions?: object; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, Default extension values can be specified using identity template policies. Non-templated extension values are also permitted. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + defaultExtensionsTemplate?: boolean; + /** + * [Required for OTP type] [Optional for CA type] Default username for which a credential will be generated. When the endpoint 'creds/' is used without a username, this value will be used as default username. + * @type {string} + * @memberof SshWriteRoleRequest + */ + defaultUser?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] If set, Default user can be specified using identity template policies. Non-templated users are also permitted. + * @type {boolean} + * @memberof SshWriteRoleRequest + */ + defaultUserTemplate?: boolean; + /** + * [Optional for OTP type] [Not applicable for CA type] Comma separated list of CIDR blocks. IP addresses belonging to these blocks are not accepted by the role. This is particularly useful when big CIDR blocks are being used by the role and certain parts of it needs to be kept out. + * @type {string} + * @memberof SshWriteRoleRequest + */ + excludeCidrList?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] When supplied, this value specifies a custom format for the key id of a signed certificate. The following variables are available for use: '{{token_display_name}}' - The display name of the token used to make the request. '{{role_name}}' - The name of the role signing the request. '{{public_key_hash}}' - A SHA256 checksum of the public key that is being signed. + * @type {string} + * @memberof SshWriteRoleRequest + */ + keyIdFormat?: string; + /** + * [Required for all types] Type of key used to login to hosts. It can be either 'otp' or 'ca'. 'otp' type requires agent to be installed in remote hosts. + * @type {string} + * @memberof SshWriteRoleRequest + */ + keyType?: SshWriteRoleRequestKeyTypeEnum; + /** + * [Not applicable for OTP type] [Optional for CA type] The maximum allowed lease duration + * @type {string} + * @memberof SshWriteRoleRequest + */ + maxTtl?: string; + /** + * [Not applicable for OTP type] [Optional for CA type] The duration that the SSH certificate should be backdated by at issuance. + * @type {string} + * @memberof SshWriteRoleRequest + */ + notBeforeDuration?: string; + /** + * [Optional for OTP type] [Not applicable for CA type] Port number for SSH connection. Default is '22'. Port number does not play any role in creation of OTP. For 'otp' type, this is just a way to inform client about the port number to use. Port number will be returned to client by Vault server along with OTP. + * @type {number} + * @memberof SshWriteRoleRequest + */ + port?: number; + /** + * [Not applicable for OTP type] [Optional for CA type] The lease duration if no specific lease duration is requested. The lease duration controls the expiration of certificates issued by this backend. Defaults to the value of max_ttl. + * @type {string} + * @memberof SshWriteRoleRequest + */ + ttl?: string; +} + +/** + * @export + * @enum {string} + */ +export enum SshWriteRoleRequestAlgorithmSignerEnum { + EMPTY = '', + DEFAULT = 'default', + SSH_RSA = 'ssh-rsa', + RSA_SHA2_256 = 'rsa-sha2-256', + RSA_SHA2_512 = 'rsa-sha2-512', +} +/** + * @export + * @enum {string} + */ +export enum SshWriteRoleRequestKeyTypeEnum { + OTP = 'otp', + CA = 'ca', +} + +/** + * Check if a given object implements the SshWriteRoleRequest interface. + */ +export function instanceOfSshWriteRoleRequest(value: object): value is SshWriteRoleRequest { + return true; +} + +export function SshWriteRoleRequestFromJSON(json: any): SshWriteRoleRequest { + return SshWriteRoleRequestFromJSONTyped(json, false); +} + +export function SshWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SshWriteRoleRequest { + if (json == null) { + return json; + } + return { + algorithmSigner: json['algorithm_signer'] == null ? undefined : json['algorithm_signer'], + allowBareDomains: json['allow_bare_domains'] == null ? undefined : json['allow_bare_domains'], + allowEmptyPrincipals: json['allow_empty_principals'] == null ? undefined : json['allow_empty_principals'], + allowHostCertificates: + json['allow_host_certificates'] == null ? undefined : json['allow_host_certificates'], + allowSubdomains: json['allow_subdomains'] == null ? undefined : json['allow_subdomains'], + allowUserCertificates: + json['allow_user_certificates'] == null ? undefined : json['allow_user_certificates'], + allowUserKeyIds: json['allow_user_key_ids'] == null ? undefined : json['allow_user_key_ids'], + allowedCriticalOptions: + json['allowed_critical_options'] == null ? undefined : json['allowed_critical_options'], + allowedDomains: json['allowed_domains'] == null ? undefined : json['allowed_domains'], + allowedDomainsTemplate: + json['allowed_domains_template'] == null ? undefined : json['allowed_domains_template'], + allowedExtensions: json['allowed_extensions'] == null ? undefined : json['allowed_extensions'], + allowedUserKeyLengths: + json['allowed_user_key_lengths'] == null ? undefined : json['allowed_user_key_lengths'], + allowedUsers: json['allowed_users'] == null ? undefined : json['allowed_users'], + allowedUsersTemplate: json['allowed_users_template'] == null ? undefined : json['allowed_users_template'], + cidrList: json['cidr_list'] == null ? undefined : json['cidr_list'], + defaultCriticalOptions: + json['default_critical_options'] == null ? undefined : json['default_critical_options'], + defaultExtensions: json['default_extensions'] == null ? undefined : json['default_extensions'], + defaultExtensionsTemplate: + json['default_extensions_template'] == null ? undefined : json['default_extensions_template'], + defaultUser: json['default_user'] == null ? undefined : json['default_user'], + defaultUserTemplate: json['default_user_template'] == null ? undefined : json['default_user_template'], + excludeCidrList: json['exclude_cidr_list'] == null ? undefined : json['exclude_cidr_list'], + keyIdFormat: json['key_id_format'] == null ? undefined : json['key_id_format'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + notBeforeDuration: json['not_before_duration'] == null ? undefined : json['not_before_duration'], + port: json['port'] == null ? undefined : json['port'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function SshWriteRoleRequestToJSON(json: any): SshWriteRoleRequest { + return SshWriteRoleRequestToJSONTyped(json, false); +} + +export function SshWriteRoleRequestToJSONTyped( + value?: SshWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm_signer: value['algorithmSigner'], + allow_bare_domains: value['allowBareDomains'], + allow_empty_principals: value['allowEmptyPrincipals'], + allow_host_certificates: value['allowHostCertificates'], + allow_subdomains: value['allowSubdomains'], + allow_user_certificates: value['allowUserCertificates'], + allow_user_key_ids: value['allowUserKeyIds'], + allowed_critical_options: value['allowedCriticalOptions'], + allowed_domains: value['allowedDomains'], + allowed_domains_template: value['allowedDomainsTemplate'], + allowed_extensions: value['allowedExtensions'], + allowed_user_key_lengths: value['allowedUserKeyLengths'], + allowed_users: value['allowedUsers'], + allowed_users_template: value['allowedUsersTemplate'], + cidr_list: value['cidrList'], + default_critical_options: value['defaultCriticalOptions'], + default_extensions: value['defaultExtensions'], + default_extensions_template: value['defaultExtensionsTemplate'], + default_user: value['defaultUser'], + default_user_template: value['defaultUserTemplate'], + exclude_cidr_list: value['excludeCidrList'], + key_id_format: value['keyIdFormat'], + key_type: value['keyType'], + max_ttl: value['maxTtl'], + not_before_duration: value['notBeforeDuration'], + port: value['port'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/StandardListResponse.ts b/ui/api-client/src/models/StandardListResponse.ts new file mode 100644 index 0000000000..2787c77275 --- /dev/null +++ b/ui/api-client/src/models/StandardListResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface StandardListResponse + */ +export interface StandardListResponse { + /** + * + * @type {Array} + * @memberof StandardListResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the StandardListResponse interface. + */ +export function instanceOfStandardListResponse(value: object): value is StandardListResponse { + return true; +} + +export function StandardListResponseFromJSON(json: any): StandardListResponse { + return StandardListResponseFromJSONTyped(json, false); +} + +export function StandardListResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): StandardListResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function StandardListResponseToJSON(json: any): StandardListResponse { + return StandardListResponseToJSONTyped(json, false); +} + +export function StandardListResponseToJSONTyped( + value?: StandardListResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/SubscriptionsCreateResponse.ts b/ui/api-client/src/models/SubscriptionsCreateResponse.ts new file mode 100644 index 0000000000..daa9b45922 --- /dev/null +++ b/ui/api-client/src/models/SubscriptionsCreateResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SubscriptionsCreateResponse + */ +export interface SubscriptionsCreateResponse { + /** + * + * @type {string} + * @memberof SubscriptionsCreateResponse + */ + id?: string; + /** + * + * @type {string} + * @memberof SubscriptionsCreateResponse + */ + plugin?: string; +} + +/** + * Check if a given object implements the SubscriptionsCreateResponse interface. + */ +export function instanceOfSubscriptionsCreateResponse(value: object): value is SubscriptionsCreateResponse { + return true; +} + +export function SubscriptionsCreateResponseFromJSON(json: any): SubscriptionsCreateResponse { + return SubscriptionsCreateResponseFromJSONTyped(json, false); +} + +export function SubscriptionsCreateResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SubscriptionsCreateResponse { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + plugin: json['plugin'] == null ? undefined : json['plugin'], + }; +} + +export function SubscriptionsCreateResponseToJSON(json: any): SubscriptionsCreateResponse { + return SubscriptionsCreateResponseToJSONTyped(json, false); +} + +export function SubscriptionsCreateResponseToJSONTyped( + value?: SubscriptionsCreateResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + plugin: value['plugin'], + }; +} diff --git a/ui/api-client/src/models/SubscriptionsListEventsSubscriptionsResponse.ts b/ui/api-client/src/models/SubscriptionsListEventsSubscriptionsResponse.ts new file mode 100644 index 0000000000..b71793896e --- /dev/null +++ b/ui/api-client/src/models/SubscriptionsListEventsSubscriptionsResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SubscriptionsListEventsSubscriptionsResponse + */ +export interface SubscriptionsListEventsSubscriptionsResponse { + /** + * + * @type {Array} + * @memberof SubscriptionsListEventsSubscriptionsResponse + */ + subscriptions?: Array; +} + +/** + * Check if a given object implements the SubscriptionsListEventsSubscriptionsResponse interface. + */ +export function instanceOfSubscriptionsListEventsSubscriptionsResponse( + value: object +): value is SubscriptionsListEventsSubscriptionsResponse { + return true; +} + +export function SubscriptionsListEventsSubscriptionsResponseFromJSON( + json: any +): SubscriptionsListEventsSubscriptionsResponse { + return SubscriptionsListEventsSubscriptionsResponseFromJSONTyped(json, false); +} + +export function SubscriptionsListEventsSubscriptionsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SubscriptionsListEventsSubscriptionsResponse { + if (json == null) { + return json; + } + return { + subscriptions: json['subscriptions'] == null ? undefined : json['subscriptions'], + }; +} + +export function SubscriptionsListEventsSubscriptionsResponseToJSON( + json: any +): SubscriptionsListEventsSubscriptionsResponse { + return SubscriptionsListEventsSubscriptionsResponseToJSONTyped(json, false); +} + +export function SubscriptionsListEventsSubscriptionsResponseToJSONTyped( + value?: SubscriptionsListEventsSubscriptionsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + subscriptions: value['subscriptions'], + }; +} diff --git a/ui/api-client/src/models/SubscriptionsReadEventsSubscriptionsResponse.ts b/ui/api-client/src/models/SubscriptionsReadEventsSubscriptionsResponse.ts new file mode 100644 index 0000000000..beec0c2437 --- /dev/null +++ b/ui/api-client/src/models/SubscriptionsReadEventsSubscriptionsResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SubscriptionsReadEventsSubscriptionsResponse + */ +export interface SubscriptionsReadEventsSubscriptionsResponse { + /** + * + * @type {Array} + * @memberof SubscriptionsReadEventsSubscriptionsResponse + */ + subscriptions?: Array; +} + +/** + * Check if a given object implements the SubscriptionsReadEventsSubscriptionsResponse interface. + */ +export function instanceOfSubscriptionsReadEventsSubscriptionsResponse( + value: object +): value is SubscriptionsReadEventsSubscriptionsResponse { + return true; +} + +export function SubscriptionsReadEventsSubscriptionsResponseFromJSON( + json: any +): SubscriptionsReadEventsSubscriptionsResponse { + return SubscriptionsReadEventsSubscriptionsResponseFromJSONTyped(json, false); +} + +export function SubscriptionsReadEventsSubscriptionsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SubscriptionsReadEventsSubscriptionsResponse { + if (json == null) { + return json; + } + return { + subscriptions: json['subscriptions'] == null ? undefined : json['subscriptions'], + }; +} + +export function SubscriptionsReadEventsSubscriptionsResponseToJSON( + json: any +): SubscriptionsReadEventsSubscriptionsResponse { + return SubscriptionsReadEventsSubscriptionsResponseToJSONTyped(json, false); +} + +export function SubscriptionsReadEventsSubscriptionsResponseToJSONTyped( + value?: SubscriptionsReadEventsSubscriptionsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + subscriptions: value['subscriptions'], + }; +} diff --git a/ui/api-client/src/models/SubscriptionsWriteEventsSubscriptionsRequest.ts b/ui/api-client/src/models/SubscriptionsWriteEventsSubscriptionsRequest.ts new file mode 100644 index 0000000000..a3d52592fa --- /dev/null +++ b/ui/api-client/src/models/SubscriptionsWriteEventsSubscriptionsRequest.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SubscriptionsWriteEventsSubscriptionsRequest + */ +export interface SubscriptionsWriteEventsSubscriptionsRequest { + /** + * + * @type {object} + * @memberof SubscriptionsWriteEventsSubscriptionsRequest + */ + config?: object; + /** + * + * @type {string} + * @memberof SubscriptionsWriteEventsSubscriptionsRequest + */ + eventType?: string; + /** + * + * @type {string} + * @memberof SubscriptionsWriteEventsSubscriptionsRequest + */ + filter?: string; + /** + * + * @type {boolean} + * @memberof SubscriptionsWriteEventsSubscriptionsRequest + */ + list?: boolean; + /** + * + * @type {string} + * @memberof SubscriptionsWriteEventsSubscriptionsRequest + */ + plugin?: string; +} + +/** + * Check if a given object implements the SubscriptionsWriteEventsSubscriptionsRequest interface. + */ +export function instanceOfSubscriptionsWriteEventsSubscriptionsRequest( + value: object +): value is SubscriptionsWriteEventsSubscriptionsRequest { + return true; +} + +export function SubscriptionsWriteEventsSubscriptionsRequestFromJSON( + json: any +): SubscriptionsWriteEventsSubscriptionsRequest { + return SubscriptionsWriteEventsSubscriptionsRequestFromJSONTyped(json, false); +} + +export function SubscriptionsWriteEventsSubscriptionsRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SubscriptionsWriteEventsSubscriptionsRequest { + if (json == null) { + return json; + } + return { + config: json['config'] == null ? undefined : json['config'], + eventType: json['event_type'] == null ? undefined : json['event_type'], + filter: json['filter'] == null ? undefined : json['filter'], + list: json['list'] == null ? undefined : json['list'], + plugin: json['plugin'] == null ? undefined : json['plugin'], + }; +} + +export function SubscriptionsWriteEventsSubscriptionsRequestToJSON( + json: any +): SubscriptionsWriteEventsSubscriptionsRequest { + return SubscriptionsWriteEventsSubscriptionsRequestToJSONTyped(json, false); +} + +export function SubscriptionsWriteEventsSubscriptionsRequestToJSONTyped( + value?: SubscriptionsWriteEventsSubscriptionsRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + config: value['config'], + event_type: value['eventType'], + filter: value['filter'], + list: value['list'], + plugin: value['plugin'], + }; +} diff --git a/ui/api-client/src/models/SubscriptionsWriteEventsSubscriptionsResponse.ts b/ui/api-client/src/models/SubscriptionsWriteEventsSubscriptionsResponse.ts new file mode 100644 index 0000000000..f0e01a9faa --- /dev/null +++ b/ui/api-client/src/models/SubscriptionsWriteEventsSubscriptionsResponse.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SubscriptionsWriteEventsSubscriptionsResponse + */ +export interface SubscriptionsWriteEventsSubscriptionsResponse { + /** + * + * @type {string} + * @memberof SubscriptionsWriteEventsSubscriptionsResponse + */ + id?: string; + /** + * + * @type {string} + * @memberof SubscriptionsWriteEventsSubscriptionsResponse + */ + plugin?: string; +} + +/** + * Check if a given object implements the SubscriptionsWriteEventsSubscriptionsResponse interface. + */ +export function instanceOfSubscriptionsWriteEventsSubscriptionsResponse( + value: object +): value is SubscriptionsWriteEventsSubscriptionsResponse { + return true; +} + +export function SubscriptionsWriteEventsSubscriptionsResponseFromJSON( + json: any +): SubscriptionsWriteEventsSubscriptionsResponse { + return SubscriptionsWriteEventsSubscriptionsResponseFromJSONTyped(json, false); +} + +export function SubscriptionsWriteEventsSubscriptionsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SubscriptionsWriteEventsSubscriptionsResponse { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + plugin: json['plugin'] == null ? undefined : json['plugin'], + }; +} + +export function SubscriptionsWriteEventsSubscriptionsResponseToJSON( + json: any +): SubscriptionsWriteEventsSubscriptionsResponse { + return SubscriptionsWriteEventsSubscriptionsResponseToJSONTyped(json, false); +} + +export function SubscriptionsWriteEventsSubscriptionsResponseToJSONTyped( + value?: SubscriptionsWriteEventsSubscriptionsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + plugin: value['plugin'], + }; +} diff --git a/ui/api-client/src/models/SystemDeleteSyncConfigResponse.ts b/ui/api-client/src/models/SystemDeleteSyncConfigResponse.ts new file mode 100644 index 0000000000..a79ce183ef --- /dev/null +++ b/ui/api-client/src/models/SystemDeleteSyncConfigResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemDeleteSyncConfigResponse + */ +export interface SystemDeleteSyncConfigResponse { + /** + * Disables the syncing process between Vault and external destinations. + * @type {boolean} + * @memberof SystemDeleteSyncConfigResponse + */ + disabled?: boolean; + /** + * Maximum number of pending sync operations allowed on the queue. + * @type {number} + * @memberof SystemDeleteSyncConfigResponse + */ + queueCapacity?: number; +} + +/** + * Check if a given object implements the SystemDeleteSyncConfigResponse interface. + */ +export function instanceOfSystemDeleteSyncConfigResponse( + value: object +): value is SystemDeleteSyncConfigResponse { + return true; +} + +export function SystemDeleteSyncConfigResponseFromJSON(json: any): SystemDeleteSyncConfigResponse { + return SystemDeleteSyncConfigResponseFromJSONTyped(json, false); +} + +export function SystemDeleteSyncConfigResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemDeleteSyncConfigResponse { + if (json == null) { + return json; + } + return { + disabled: json['disabled'] == null ? undefined : json['disabled'], + queueCapacity: json['queue_capacity'] == null ? undefined : json['queue_capacity'], + }; +} + +export function SystemDeleteSyncConfigResponseToJSON(json: any): SystemDeleteSyncConfigResponse { + return SystemDeleteSyncConfigResponseToJSONTyped(json, false); +} + +export function SystemDeleteSyncConfigResponseToJSONTyped( + value?: SystemDeleteSyncConfigResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disabled: value['disabled'], + queue_capacity: value['queueCapacity'], + }; +} diff --git a/ui/api-client/src/models/SystemDeleteSyncGithubAppsNameResponse.ts b/ui/api-client/src/models/SystemDeleteSyncGithubAppsNameResponse.ts new file mode 100644 index 0000000000..a6b7bdad0a --- /dev/null +++ b/ui/api-client/src/models/SystemDeleteSyncGithubAppsNameResponse.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemDeleteSyncGithubAppsNameResponse + */ +export interface SystemDeleteSyncGithubAppsNameResponse { + /** + * Application ID of the GitHub App. + * @type {number} + * @memberof SystemDeleteSyncGithubAppsNameResponse + */ + appId?: number; + /** + * The name of the GitHub app. Used to identify the application when configuring the GitHub destination + * @type {string} + * @memberof SystemDeleteSyncGithubAppsNameResponse + */ + name?: string; +} + +/** + * Check if a given object implements the SystemDeleteSyncGithubAppsNameResponse interface. + */ +export function instanceOfSystemDeleteSyncGithubAppsNameResponse( + value: object +): value is SystemDeleteSyncGithubAppsNameResponse { + return true; +} + +export function SystemDeleteSyncGithubAppsNameResponseFromJSON( + json: any +): SystemDeleteSyncGithubAppsNameResponse { + return SystemDeleteSyncGithubAppsNameResponseFromJSONTyped(json, false); +} + +export function SystemDeleteSyncGithubAppsNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemDeleteSyncGithubAppsNameResponse { + if (json == null) { + return json; + } + return { + appId: json['app_id'] == null ? undefined : json['app_id'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function SystemDeleteSyncGithubAppsNameResponseToJSON( + json: any +): SystemDeleteSyncGithubAppsNameResponse { + return SystemDeleteSyncGithubAppsNameResponseToJSONTyped(json, false); +} + +export function SystemDeleteSyncGithubAppsNameResponseToJSONTyped( + value?: SystemDeleteSyncGithubAppsNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + app_id: value['appId'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/SystemListSyncAssociationsResponse.ts b/ui/api-client/src/models/SystemListSyncAssociationsResponse.ts new file mode 100644 index 0000000000..d729f2b45d --- /dev/null +++ b/ui/api-client/src/models/SystemListSyncAssociationsResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemListSyncAssociationsResponse + */ +export interface SystemListSyncAssociationsResponse { + /** + * Map of associations listing all synced secret names regrouped by their mount. + * @type {object} + * @memberof SystemListSyncAssociationsResponse + */ + keyInfo?: object; + /** + * List of mounts with at least one association. + * @type {Array} + * @memberof SystemListSyncAssociationsResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the SystemListSyncAssociationsResponse interface. + */ +export function instanceOfSystemListSyncAssociationsResponse( + value: object +): value is SystemListSyncAssociationsResponse { + return true; +} + +export function SystemListSyncAssociationsResponseFromJSON(json: any): SystemListSyncAssociationsResponse { + return SystemListSyncAssociationsResponseFromJSONTyped(json, false); +} + +export function SystemListSyncAssociationsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemListSyncAssociationsResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function SystemListSyncAssociationsResponseToJSON(json: any): SystemListSyncAssociationsResponse { + return SystemListSyncAssociationsResponseToJSONTyped(json, false); +} + +export function SystemListSyncAssociationsResponseToJSONTyped( + value?: SystemListSyncAssociationsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/SystemListSyncDestinationsResponse.ts b/ui/api-client/src/models/SystemListSyncDestinationsResponse.ts new file mode 100644 index 0000000000..6766d0be9f --- /dev/null +++ b/ui/api-client/src/models/SystemListSyncDestinationsResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemListSyncDestinationsResponse + */ +export interface SystemListSyncDestinationsResponse { + /** + * Map of destinations listing all existing destination names regrouped per type. + * @type {object} + * @memberof SystemListSyncDestinationsResponse + */ + keyInfo?: object; + /** + * List of destination types with at least one destination. + * @type {Array} + * @memberof SystemListSyncDestinationsResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the SystemListSyncDestinationsResponse interface. + */ +export function instanceOfSystemListSyncDestinationsResponse( + value: object +): value is SystemListSyncDestinationsResponse { + return true; +} + +export function SystemListSyncDestinationsResponseFromJSON(json: any): SystemListSyncDestinationsResponse { + return SystemListSyncDestinationsResponseFromJSONTyped(json, false); +} + +export function SystemListSyncDestinationsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemListSyncDestinationsResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function SystemListSyncDestinationsResponseToJSON(json: any): SystemListSyncDestinationsResponse { + return SystemListSyncDestinationsResponseToJSONTyped(json, false); +} + +export function SystemListSyncDestinationsResponseToJSONTyped( + value?: SystemListSyncDestinationsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/SystemListSyncDestinationsTypeResponse.ts b/ui/api-client/src/models/SystemListSyncDestinationsTypeResponse.ts new file mode 100644 index 0000000000..8cfa999e47 --- /dev/null +++ b/ui/api-client/src/models/SystemListSyncDestinationsTypeResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemListSyncDestinationsTypeResponse + */ +export interface SystemListSyncDestinationsTypeResponse { + /** + * List of destination types with at least one destination. + * @type {Array} + * @memberof SystemListSyncDestinationsTypeResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the SystemListSyncDestinationsTypeResponse interface. + */ +export function instanceOfSystemListSyncDestinationsTypeResponse( + value: object +): value is SystemListSyncDestinationsTypeResponse { + return true; +} + +export function SystemListSyncDestinationsTypeResponseFromJSON( + json: any +): SystemListSyncDestinationsTypeResponse { + return SystemListSyncDestinationsTypeResponseFromJSONTyped(json, false); +} + +export function SystemListSyncDestinationsTypeResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemListSyncDestinationsTypeResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function SystemListSyncDestinationsTypeResponseToJSON( + json: any +): SystemListSyncDestinationsTypeResponse { + return SystemListSyncDestinationsTypeResponseToJSONTyped(json, false); +} + +export function SystemListSyncDestinationsTypeResponseToJSONTyped( + value?: SystemListSyncDestinationsTypeResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/SystemListSyncGithubAppsResponse.ts b/ui/api-client/src/models/SystemListSyncGithubAppsResponse.ts new file mode 100644 index 0000000000..26612715ed --- /dev/null +++ b/ui/api-client/src/models/SystemListSyncGithubAppsResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemListSyncGithubAppsResponse + */ +export interface SystemListSyncGithubAppsResponse { + /** + * List of configured GitHub apps. + * @type {Array} + * @memberof SystemListSyncGithubAppsResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the SystemListSyncGithubAppsResponse interface. + */ +export function instanceOfSystemListSyncGithubAppsResponse( + value: object +): value is SystemListSyncGithubAppsResponse { + return true; +} + +export function SystemListSyncGithubAppsResponseFromJSON(json: any): SystemListSyncGithubAppsResponse { + return SystemListSyncGithubAppsResponseFromJSONTyped(json, false); +} + +export function SystemListSyncGithubAppsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemListSyncGithubAppsResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function SystemListSyncGithubAppsResponseToJSON(json: any): SystemListSyncGithubAppsResponse { + return SystemListSyncGithubAppsResponseToJSONTyped(json, false); +} + +export function SystemListSyncGithubAppsResponseToJSONTyped( + value?: SystemListSyncGithubAppsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/SystemPatchSyncConfigResponse.ts b/ui/api-client/src/models/SystemPatchSyncConfigResponse.ts new file mode 100644 index 0000000000..2675688e45 --- /dev/null +++ b/ui/api-client/src/models/SystemPatchSyncConfigResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemPatchSyncConfigResponse + */ +export interface SystemPatchSyncConfigResponse { + /** + * Disables the syncing process between Vault and external destinations. + * @type {boolean} + * @memberof SystemPatchSyncConfigResponse + */ + disabled?: boolean; + /** + * Maximum number of pending sync operations allowed on the queue. + * @type {number} + * @memberof SystemPatchSyncConfigResponse + */ + queueCapacity?: number; +} + +/** + * Check if a given object implements the SystemPatchSyncConfigResponse interface. + */ +export function instanceOfSystemPatchSyncConfigResponse( + value: object +): value is SystemPatchSyncConfigResponse { + return true; +} + +export function SystemPatchSyncConfigResponseFromJSON(json: any): SystemPatchSyncConfigResponse { + return SystemPatchSyncConfigResponseFromJSONTyped(json, false); +} + +export function SystemPatchSyncConfigResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemPatchSyncConfigResponse { + if (json == null) { + return json; + } + return { + disabled: json['disabled'] == null ? undefined : json['disabled'], + queueCapacity: json['queue_capacity'] == null ? undefined : json['queue_capacity'], + }; +} + +export function SystemPatchSyncConfigResponseToJSON(json: any): SystemPatchSyncConfigResponse { + return SystemPatchSyncConfigResponseToJSONTyped(json, false); +} + +export function SystemPatchSyncConfigResponseToJSONTyped( + value?: SystemPatchSyncConfigResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disabled: value['disabled'], + queue_capacity: value['queueCapacity'], + }; +} diff --git a/ui/api-client/src/models/SystemPatchSyncDestinationsAwsSmNameResponse.ts b/ui/api-client/src/models/SystemPatchSyncDestinationsAwsSmNameResponse.ts new file mode 100644 index 0000000000..7785482adf --- /dev/null +++ b/ui/api-client/src/models/SystemPatchSyncDestinationsAwsSmNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemPatchSyncDestinationsAwsSmNameResponse + */ +export interface SystemPatchSyncDestinationsAwsSmNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemPatchSyncDestinationsAwsSmNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsAwsSmNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsAwsSmNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemPatchSyncDestinationsAwsSmNameResponse interface. + */ +export function instanceOfSystemPatchSyncDestinationsAwsSmNameResponse( + value: object +): value is SystemPatchSyncDestinationsAwsSmNameResponse { + return true; +} + +export function SystemPatchSyncDestinationsAwsSmNameResponseFromJSON( + json: any +): SystemPatchSyncDestinationsAwsSmNameResponse { + return SystemPatchSyncDestinationsAwsSmNameResponseFromJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsAwsSmNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemPatchSyncDestinationsAwsSmNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemPatchSyncDestinationsAwsSmNameResponseToJSON( + json: any +): SystemPatchSyncDestinationsAwsSmNameResponse { + return SystemPatchSyncDestinationsAwsSmNameResponseToJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsAwsSmNameResponseToJSONTyped( + value?: SystemPatchSyncDestinationsAwsSmNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemPatchSyncDestinationsAzureKvNameResponse.ts b/ui/api-client/src/models/SystemPatchSyncDestinationsAzureKvNameResponse.ts new file mode 100644 index 0000000000..9a24c6a374 --- /dev/null +++ b/ui/api-client/src/models/SystemPatchSyncDestinationsAzureKvNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemPatchSyncDestinationsAzureKvNameResponse + */ +export interface SystemPatchSyncDestinationsAzureKvNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemPatchSyncDestinationsAzureKvNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsAzureKvNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsAzureKvNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemPatchSyncDestinationsAzureKvNameResponse interface. + */ +export function instanceOfSystemPatchSyncDestinationsAzureKvNameResponse( + value: object +): value is SystemPatchSyncDestinationsAzureKvNameResponse { + return true; +} + +export function SystemPatchSyncDestinationsAzureKvNameResponseFromJSON( + json: any +): SystemPatchSyncDestinationsAzureKvNameResponse { + return SystemPatchSyncDestinationsAzureKvNameResponseFromJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsAzureKvNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemPatchSyncDestinationsAzureKvNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemPatchSyncDestinationsAzureKvNameResponseToJSON( + json: any +): SystemPatchSyncDestinationsAzureKvNameResponse { + return SystemPatchSyncDestinationsAzureKvNameResponseToJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsAzureKvNameResponseToJSONTyped( + value?: SystemPatchSyncDestinationsAzureKvNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemPatchSyncDestinationsGcpSmNameResponse.ts b/ui/api-client/src/models/SystemPatchSyncDestinationsGcpSmNameResponse.ts new file mode 100644 index 0000000000..1333c385b3 --- /dev/null +++ b/ui/api-client/src/models/SystemPatchSyncDestinationsGcpSmNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemPatchSyncDestinationsGcpSmNameResponse + */ +export interface SystemPatchSyncDestinationsGcpSmNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemPatchSyncDestinationsGcpSmNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsGcpSmNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsGcpSmNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemPatchSyncDestinationsGcpSmNameResponse interface. + */ +export function instanceOfSystemPatchSyncDestinationsGcpSmNameResponse( + value: object +): value is SystemPatchSyncDestinationsGcpSmNameResponse { + return true; +} + +export function SystemPatchSyncDestinationsGcpSmNameResponseFromJSON( + json: any +): SystemPatchSyncDestinationsGcpSmNameResponse { + return SystemPatchSyncDestinationsGcpSmNameResponseFromJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsGcpSmNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemPatchSyncDestinationsGcpSmNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemPatchSyncDestinationsGcpSmNameResponseToJSON( + json: any +): SystemPatchSyncDestinationsGcpSmNameResponse { + return SystemPatchSyncDestinationsGcpSmNameResponseToJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsGcpSmNameResponseToJSONTyped( + value?: SystemPatchSyncDestinationsGcpSmNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemPatchSyncDestinationsGhNameResponse.ts b/ui/api-client/src/models/SystemPatchSyncDestinationsGhNameResponse.ts new file mode 100644 index 0000000000..e1e6876063 --- /dev/null +++ b/ui/api-client/src/models/SystemPatchSyncDestinationsGhNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemPatchSyncDestinationsGhNameResponse + */ +export interface SystemPatchSyncDestinationsGhNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemPatchSyncDestinationsGhNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsGhNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsGhNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemPatchSyncDestinationsGhNameResponse interface. + */ +export function instanceOfSystemPatchSyncDestinationsGhNameResponse( + value: object +): value is SystemPatchSyncDestinationsGhNameResponse { + return true; +} + +export function SystemPatchSyncDestinationsGhNameResponseFromJSON( + json: any +): SystemPatchSyncDestinationsGhNameResponse { + return SystemPatchSyncDestinationsGhNameResponseFromJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsGhNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemPatchSyncDestinationsGhNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemPatchSyncDestinationsGhNameResponseToJSON( + json: any +): SystemPatchSyncDestinationsGhNameResponse { + return SystemPatchSyncDestinationsGhNameResponseToJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsGhNameResponseToJSONTyped( + value?: SystemPatchSyncDestinationsGhNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemPatchSyncDestinationsInMemNameResponse.ts b/ui/api-client/src/models/SystemPatchSyncDestinationsInMemNameResponse.ts new file mode 100644 index 0000000000..9fc58a5775 --- /dev/null +++ b/ui/api-client/src/models/SystemPatchSyncDestinationsInMemNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemPatchSyncDestinationsInMemNameResponse + */ +export interface SystemPatchSyncDestinationsInMemNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemPatchSyncDestinationsInMemNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsInMemNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsInMemNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemPatchSyncDestinationsInMemNameResponse interface. + */ +export function instanceOfSystemPatchSyncDestinationsInMemNameResponse( + value: object +): value is SystemPatchSyncDestinationsInMemNameResponse { + return true; +} + +export function SystemPatchSyncDestinationsInMemNameResponseFromJSON( + json: any +): SystemPatchSyncDestinationsInMemNameResponse { + return SystemPatchSyncDestinationsInMemNameResponseFromJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsInMemNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemPatchSyncDestinationsInMemNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemPatchSyncDestinationsInMemNameResponseToJSON( + json: any +): SystemPatchSyncDestinationsInMemNameResponse { + return SystemPatchSyncDestinationsInMemNameResponseToJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsInMemNameResponseToJSONTyped( + value?: SystemPatchSyncDestinationsInMemNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemPatchSyncDestinationsVercelProjectNameResponse.ts b/ui/api-client/src/models/SystemPatchSyncDestinationsVercelProjectNameResponse.ts new file mode 100644 index 0000000000..48ab95d01b --- /dev/null +++ b/ui/api-client/src/models/SystemPatchSyncDestinationsVercelProjectNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemPatchSyncDestinationsVercelProjectNameResponse + */ +export interface SystemPatchSyncDestinationsVercelProjectNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemPatchSyncDestinationsVercelProjectNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsVercelProjectNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemPatchSyncDestinationsVercelProjectNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemPatchSyncDestinationsVercelProjectNameResponse interface. + */ +export function instanceOfSystemPatchSyncDestinationsVercelProjectNameResponse( + value: object +): value is SystemPatchSyncDestinationsVercelProjectNameResponse { + return true; +} + +export function SystemPatchSyncDestinationsVercelProjectNameResponseFromJSON( + json: any +): SystemPatchSyncDestinationsVercelProjectNameResponse { + return SystemPatchSyncDestinationsVercelProjectNameResponseFromJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsVercelProjectNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemPatchSyncDestinationsVercelProjectNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemPatchSyncDestinationsVercelProjectNameResponseToJSON( + json: any +): SystemPatchSyncDestinationsVercelProjectNameResponse { + return SystemPatchSyncDestinationsVercelProjectNameResponseToJSONTyped(json, false); +} + +export function SystemPatchSyncDestinationsVercelProjectNameResponseToJSONTyped( + value?: SystemPatchSyncDestinationsVercelProjectNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadConfigGroupPolicyApplicationResponse.ts b/ui/api-client/src/models/SystemReadConfigGroupPolicyApplicationResponse.ts new file mode 100644 index 0000000000..15e362ef91 --- /dev/null +++ b/ui/api-client/src/models/SystemReadConfigGroupPolicyApplicationResponse.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadConfigGroupPolicyApplicationResponse + */ +export interface SystemReadConfigGroupPolicyApplicationResponse { + /** + * The current-set group_policy_application_mode. Will be either within_namespace_hierarchy or any. + * @type {string} + * @memberof SystemReadConfigGroupPolicyApplicationResponse + */ + groupPolicyApplicationMode?: string; +} + +/** + * Check if a given object implements the SystemReadConfigGroupPolicyApplicationResponse interface. + */ +export function instanceOfSystemReadConfigGroupPolicyApplicationResponse( + value: object +): value is SystemReadConfigGroupPolicyApplicationResponse { + return true; +} + +export function SystemReadConfigGroupPolicyApplicationResponseFromJSON( + json: any +): SystemReadConfigGroupPolicyApplicationResponse { + return SystemReadConfigGroupPolicyApplicationResponseFromJSONTyped(json, false); +} + +export function SystemReadConfigGroupPolicyApplicationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadConfigGroupPolicyApplicationResponse { + if (json == null) { + return json; + } + return { + groupPolicyApplicationMode: + json['group_policy_application_mode'] == null ? undefined : json['group_policy_application_mode'], + }; +} + +export function SystemReadConfigGroupPolicyApplicationResponseToJSON( + json: any +): SystemReadConfigGroupPolicyApplicationResponse { + return SystemReadConfigGroupPolicyApplicationResponseToJSONTyped(json, false); +} + +export function SystemReadConfigGroupPolicyApplicationResponseToJSONTyped( + value?: SystemReadConfigGroupPolicyApplicationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + group_policy_application_mode: value['groupPolicyApplicationMode'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncAssociationsDestinationsResponse.ts b/ui/api-client/src/models/SystemReadSyncAssociationsDestinationsResponse.ts new file mode 100644 index 0000000000..95249d127d --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncAssociationsDestinationsResponse.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncAssociationsDestinationsResponse + */ +export interface SystemReadSyncAssociationsDestinationsResponse { + /** + * Map of external destinations associated with a given Vault secret. + * @type {object} + * @memberof SystemReadSyncAssociationsDestinationsResponse + */ + associatedDestinations?: object; +} + +/** + * Check if a given object implements the SystemReadSyncAssociationsDestinationsResponse interface. + */ +export function instanceOfSystemReadSyncAssociationsDestinationsResponse( + value: object +): value is SystemReadSyncAssociationsDestinationsResponse { + return true; +} + +export function SystemReadSyncAssociationsDestinationsResponseFromJSON( + json: any +): SystemReadSyncAssociationsDestinationsResponse { + return SystemReadSyncAssociationsDestinationsResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncAssociationsDestinationsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncAssociationsDestinationsResponse { + if (json == null) { + return json; + } + return { + associatedDestinations: + json['associated_destinations'] == null ? undefined : json['associated_destinations'], + }; +} + +export function SystemReadSyncAssociationsDestinationsResponseToJSON( + json: any +): SystemReadSyncAssociationsDestinationsResponse { + return SystemReadSyncAssociationsDestinationsResponseToJSONTyped(json, false); +} + +export function SystemReadSyncAssociationsDestinationsResponseToJSONTyped( + value?: SystemReadSyncAssociationsDestinationsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + associated_destinations: value['associatedDestinations'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncAssociationsMountSecretNameResponse.ts b/ui/api-client/src/models/SystemReadSyncAssociationsMountSecretNameResponse.ts new file mode 100644 index 0000000000..f39a832068 --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncAssociationsMountSecretNameResponse.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncAssociationsMountSecretNameResponse + */ +export interface SystemReadSyncAssociationsMountSecretNameResponse { + /** + * Map of external destinations associated with a given Vault secret. + * @type {object} + * @memberof SystemReadSyncAssociationsMountSecretNameResponse + */ + associatedDestinations?: object; +} + +/** + * Check if a given object implements the SystemReadSyncAssociationsMountSecretNameResponse interface. + */ +export function instanceOfSystemReadSyncAssociationsMountSecretNameResponse( + value: object +): value is SystemReadSyncAssociationsMountSecretNameResponse { + return true; +} + +export function SystemReadSyncAssociationsMountSecretNameResponseFromJSON( + json: any +): SystemReadSyncAssociationsMountSecretNameResponse { + return SystemReadSyncAssociationsMountSecretNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncAssociationsMountSecretNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncAssociationsMountSecretNameResponse { + if (json == null) { + return json; + } + return { + associatedDestinations: + json['associated_destinations'] == null ? undefined : json['associated_destinations'], + }; +} + +export function SystemReadSyncAssociationsMountSecretNameResponseToJSON( + json: any +): SystemReadSyncAssociationsMountSecretNameResponse { + return SystemReadSyncAssociationsMountSecretNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncAssociationsMountSecretNameResponseToJSONTyped( + value?: SystemReadSyncAssociationsMountSecretNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + associated_destinations: value['associatedDestinations'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncConfigResponse.ts b/ui/api-client/src/models/SystemReadSyncConfigResponse.ts new file mode 100644 index 0000000000..62ca17946c --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncConfigResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncConfigResponse + */ +export interface SystemReadSyncConfigResponse { + /** + * Disables the syncing process between Vault and external destinations. + * @type {boolean} + * @memberof SystemReadSyncConfigResponse + */ + disabled?: boolean; + /** + * Maximum number of pending sync operations allowed on the queue. + * @type {number} + * @memberof SystemReadSyncConfigResponse + */ + queueCapacity?: number; +} + +/** + * Check if a given object implements the SystemReadSyncConfigResponse interface. + */ +export function instanceOfSystemReadSyncConfigResponse(value: object): value is SystemReadSyncConfigResponse { + return true; +} + +export function SystemReadSyncConfigResponseFromJSON(json: any): SystemReadSyncConfigResponse { + return SystemReadSyncConfigResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncConfigResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncConfigResponse { + if (json == null) { + return json; + } + return { + disabled: json['disabled'] == null ? undefined : json['disabled'], + queueCapacity: json['queue_capacity'] == null ? undefined : json['queue_capacity'], + }; +} + +export function SystemReadSyncConfigResponseToJSON(json: any): SystemReadSyncConfigResponse { + return SystemReadSyncConfigResponseToJSONTyped(json, false); +} + +export function SystemReadSyncConfigResponseToJSONTyped( + value?: SystemReadSyncConfigResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disabled: value['disabled'], + queue_capacity: value['queueCapacity'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncDestinationsAwsSmNameResponse.ts b/ui/api-client/src/models/SystemReadSyncDestinationsAwsSmNameResponse.ts new file mode 100644 index 0000000000..0abd240014 --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncDestinationsAwsSmNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncDestinationsAwsSmNameResponse + */ +export interface SystemReadSyncDestinationsAwsSmNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemReadSyncDestinationsAwsSmNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsAwsSmNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsAwsSmNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemReadSyncDestinationsAwsSmNameResponse interface. + */ +export function instanceOfSystemReadSyncDestinationsAwsSmNameResponse( + value: object +): value is SystemReadSyncDestinationsAwsSmNameResponse { + return true; +} + +export function SystemReadSyncDestinationsAwsSmNameResponseFromJSON( + json: any +): SystemReadSyncDestinationsAwsSmNameResponse { + return SystemReadSyncDestinationsAwsSmNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsAwsSmNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncDestinationsAwsSmNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemReadSyncDestinationsAwsSmNameResponseToJSON( + json: any +): SystemReadSyncDestinationsAwsSmNameResponse { + return SystemReadSyncDestinationsAwsSmNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsAwsSmNameResponseToJSONTyped( + value?: SystemReadSyncDestinationsAwsSmNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncDestinationsAzureKvNameResponse.ts b/ui/api-client/src/models/SystemReadSyncDestinationsAzureKvNameResponse.ts new file mode 100644 index 0000000000..2960c41c2e --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncDestinationsAzureKvNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncDestinationsAzureKvNameResponse + */ +export interface SystemReadSyncDestinationsAzureKvNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemReadSyncDestinationsAzureKvNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsAzureKvNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsAzureKvNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemReadSyncDestinationsAzureKvNameResponse interface. + */ +export function instanceOfSystemReadSyncDestinationsAzureKvNameResponse( + value: object +): value is SystemReadSyncDestinationsAzureKvNameResponse { + return true; +} + +export function SystemReadSyncDestinationsAzureKvNameResponseFromJSON( + json: any +): SystemReadSyncDestinationsAzureKvNameResponse { + return SystemReadSyncDestinationsAzureKvNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsAzureKvNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncDestinationsAzureKvNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemReadSyncDestinationsAzureKvNameResponseToJSON( + json: any +): SystemReadSyncDestinationsAzureKvNameResponse { + return SystemReadSyncDestinationsAzureKvNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsAzureKvNameResponseToJSONTyped( + value?: SystemReadSyncDestinationsAzureKvNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncDestinationsGcpSmNameResponse.ts b/ui/api-client/src/models/SystemReadSyncDestinationsGcpSmNameResponse.ts new file mode 100644 index 0000000000..a69c2c9f8a --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncDestinationsGcpSmNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncDestinationsGcpSmNameResponse + */ +export interface SystemReadSyncDestinationsGcpSmNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemReadSyncDestinationsGcpSmNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsGcpSmNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsGcpSmNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemReadSyncDestinationsGcpSmNameResponse interface. + */ +export function instanceOfSystemReadSyncDestinationsGcpSmNameResponse( + value: object +): value is SystemReadSyncDestinationsGcpSmNameResponse { + return true; +} + +export function SystemReadSyncDestinationsGcpSmNameResponseFromJSON( + json: any +): SystemReadSyncDestinationsGcpSmNameResponse { + return SystemReadSyncDestinationsGcpSmNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsGcpSmNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncDestinationsGcpSmNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemReadSyncDestinationsGcpSmNameResponseToJSON( + json: any +): SystemReadSyncDestinationsGcpSmNameResponse { + return SystemReadSyncDestinationsGcpSmNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsGcpSmNameResponseToJSONTyped( + value?: SystemReadSyncDestinationsGcpSmNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncDestinationsGhNameResponse.ts b/ui/api-client/src/models/SystemReadSyncDestinationsGhNameResponse.ts new file mode 100644 index 0000000000..cf20c5f1df --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncDestinationsGhNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncDestinationsGhNameResponse + */ +export interface SystemReadSyncDestinationsGhNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemReadSyncDestinationsGhNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsGhNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsGhNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemReadSyncDestinationsGhNameResponse interface. + */ +export function instanceOfSystemReadSyncDestinationsGhNameResponse( + value: object +): value is SystemReadSyncDestinationsGhNameResponse { + return true; +} + +export function SystemReadSyncDestinationsGhNameResponseFromJSON( + json: any +): SystemReadSyncDestinationsGhNameResponse { + return SystemReadSyncDestinationsGhNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsGhNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncDestinationsGhNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemReadSyncDestinationsGhNameResponseToJSON( + json: any +): SystemReadSyncDestinationsGhNameResponse { + return SystemReadSyncDestinationsGhNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsGhNameResponseToJSONTyped( + value?: SystemReadSyncDestinationsGhNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncDestinationsInMemNameResponse.ts b/ui/api-client/src/models/SystemReadSyncDestinationsInMemNameResponse.ts new file mode 100644 index 0000000000..24270eba82 --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncDestinationsInMemNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncDestinationsInMemNameResponse + */ +export interface SystemReadSyncDestinationsInMemNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemReadSyncDestinationsInMemNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsInMemNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsInMemNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemReadSyncDestinationsInMemNameResponse interface. + */ +export function instanceOfSystemReadSyncDestinationsInMemNameResponse( + value: object +): value is SystemReadSyncDestinationsInMemNameResponse { + return true; +} + +export function SystemReadSyncDestinationsInMemNameResponseFromJSON( + json: any +): SystemReadSyncDestinationsInMemNameResponse { + return SystemReadSyncDestinationsInMemNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsInMemNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncDestinationsInMemNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemReadSyncDestinationsInMemNameResponseToJSON( + json: any +): SystemReadSyncDestinationsInMemNameResponse { + return SystemReadSyncDestinationsInMemNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsInMemNameResponseToJSONTyped( + value?: SystemReadSyncDestinationsInMemNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncDestinationsTypeNameAssociationsResponse.ts b/ui/api-client/src/models/SystemReadSyncDestinationsTypeNameAssociationsResponse.ts new file mode 100644 index 0000000000..69db09c458 --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncDestinationsTypeNameAssociationsResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncDestinationsTypeNameAssociationsResponse + */ +export interface SystemReadSyncDestinationsTypeNameAssociationsResponse { + /** + * Map of Vault secrets associated with a given external destination. + * @type {object} + * @memberof SystemReadSyncDestinationsTypeNameAssociationsResponse + */ + associatedSecrets?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsTypeNameAssociationsResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsTypeNameAssociationsResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemReadSyncDestinationsTypeNameAssociationsResponse interface. + */ +export function instanceOfSystemReadSyncDestinationsTypeNameAssociationsResponse( + value: object +): value is SystemReadSyncDestinationsTypeNameAssociationsResponse { + return true; +} + +export function SystemReadSyncDestinationsTypeNameAssociationsResponseFromJSON( + json: any +): SystemReadSyncDestinationsTypeNameAssociationsResponse { + return SystemReadSyncDestinationsTypeNameAssociationsResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsTypeNameAssociationsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncDestinationsTypeNameAssociationsResponse { + if (json == null) { + return json; + } + return { + associatedSecrets: json['associated_secrets'] == null ? undefined : json['associated_secrets'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemReadSyncDestinationsTypeNameAssociationsResponseToJSON( + json: any +): SystemReadSyncDestinationsTypeNameAssociationsResponse { + return SystemReadSyncDestinationsTypeNameAssociationsResponseToJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsTypeNameAssociationsResponseToJSONTyped( + value?: SystemReadSyncDestinationsTypeNameAssociationsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + associated_secrets: value['associatedSecrets'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncDestinationsVercelProjectNameResponse.ts b/ui/api-client/src/models/SystemReadSyncDestinationsVercelProjectNameResponse.ts new file mode 100644 index 0000000000..5e9cc31d33 --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncDestinationsVercelProjectNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncDestinationsVercelProjectNameResponse + */ +export interface SystemReadSyncDestinationsVercelProjectNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemReadSyncDestinationsVercelProjectNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsVercelProjectNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemReadSyncDestinationsVercelProjectNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemReadSyncDestinationsVercelProjectNameResponse interface. + */ +export function instanceOfSystemReadSyncDestinationsVercelProjectNameResponse( + value: object +): value is SystemReadSyncDestinationsVercelProjectNameResponse { + return true; +} + +export function SystemReadSyncDestinationsVercelProjectNameResponseFromJSON( + json: any +): SystemReadSyncDestinationsVercelProjectNameResponse { + return SystemReadSyncDestinationsVercelProjectNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsVercelProjectNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncDestinationsVercelProjectNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemReadSyncDestinationsVercelProjectNameResponseToJSON( + json: any +): SystemReadSyncDestinationsVercelProjectNameResponse { + return SystemReadSyncDestinationsVercelProjectNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncDestinationsVercelProjectNameResponseToJSONTyped( + value?: SystemReadSyncDestinationsVercelProjectNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemReadSyncGithubAppsNameResponse.ts b/ui/api-client/src/models/SystemReadSyncGithubAppsNameResponse.ts new file mode 100644 index 0000000000..2fafc9726e --- /dev/null +++ b/ui/api-client/src/models/SystemReadSyncGithubAppsNameResponse.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemReadSyncGithubAppsNameResponse + */ +export interface SystemReadSyncGithubAppsNameResponse { + /** + * Application ID of the GitHub App. + * @type {number} + * @memberof SystemReadSyncGithubAppsNameResponse + */ + appId?: number; + /** + * The name of the GitHub app. Used to identify the application when configuring the GitHub destination + * @type {string} + * @memberof SystemReadSyncGithubAppsNameResponse + */ + name?: string; +} + +/** + * Check if a given object implements the SystemReadSyncGithubAppsNameResponse interface. + */ +export function instanceOfSystemReadSyncGithubAppsNameResponse( + value: object +): value is SystemReadSyncGithubAppsNameResponse { + return true; +} + +export function SystemReadSyncGithubAppsNameResponseFromJSON( + json: any +): SystemReadSyncGithubAppsNameResponse { + return SystemReadSyncGithubAppsNameResponseFromJSONTyped(json, false); +} + +export function SystemReadSyncGithubAppsNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemReadSyncGithubAppsNameResponse { + if (json == null) { + return json; + } + return { + appId: json['app_id'] == null ? undefined : json['app_id'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function SystemReadSyncGithubAppsNameResponseToJSON(json: any): SystemReadSyncGithubAppsNameResponse { + return SystemReadSyncGithubAppsNameResponseToJSONTyped(json, false); +} + +export function SystemReadSyncGithubAppsNameResponseToJSONTyped( + value?: SystemReadSyncGithubAppsNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + app_id: value['appId'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteConfigControlGroupRequest.ts b/ui/api-client/src/models/SystemWriteConfigControlGroupRequest.ts new file mode 100644 index 0000000000..0e5fcfb03a --- /dev/null +++ b/ui/api-client/src/models/SystemWriteConfigControlGroupRequest.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteConfigControlGroupRequest + */ +export interface SystemWriteConfigControlGroupRequest { + /** + * The max TTL for a control group token. + * @type {string} + * @memberof SystemWriteConfigControlGroupRequest + */ + maxTtl?: string; +} + +/** + * Check if a given object implements the SystemWriteConfigControlGroupRequest interface. + */ +export function instanceOfSystemWriteConfigControlGroupRequest( + value: object +): value is SystemWriteConfigControlGroupRequest { + return true; +} + +export function SystemWriteConfigControlGroupRequestFromJSON( + json: any +): SystemWriteConfigControlGroupRequest { + return SystemWriteConfigControlGroupRequestFromJSONTyped(json, false); +} + +export function SystemWriteConfigControlGroupRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteConfigControlGroupRequest { + if (json == null) { + return json; + } + return { + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + }; +} + +export function SystemWriteConfigControlGroupRequestToJSON(json: any): SystemWriteConfigControlGroupRequest { + return SystemWriteConfigControlGroupRequestToJSONTyped(json, false); +} + +export function SystemWriteConfigControlGroupRequestToJSONTyped( + value?: SystemWriteConfigControlGroupRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + max_ttl: value['maxTtl'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteConfigGroupPolicyApplicationRequest.ts b/ui/api-client/src/models/SystemWriteConfigGroupPolicyApplicationRequest.ts new file mode 100644 index 0000000000..721c55b541 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteConfigGroupPolicyApplicationRequest.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteConfigGroupPolicyApplicationRequest + */ +export interface SystemWriteConfigGroupPolicyApplicationRequest { + /** + * Configures how policies in groups should be applied, accepting 'within_namespace_hierarchy' (default) and 'any',which will allow policies to grant permissions in groups outside of those sharing a namespace hierarchy. + * @type {string} + * @memberof SystemWriteConfigGroupPolicyApplicationRequest + */ + groupPolicyApplicationMode?: string; +} + +/** + * Check if a given object implements the SystemWriteConfigGroupPolicyApplicationRequest interface. + */ +export function instanceOfSystemWriteConfigGroupPolicyApplicationRequest( + value: object +): value is SystemWriteConfigGroupPolicyApplicationRequest { + return true; +} + +export function SystemWriteConfigGroupPolicyApplicationRequestFromJSON( + json: any +): SystemWriteConfigGroupPolicyApplicationRequest { + return SystemWriteConfigGroupPolicyApplicationRequestFromJSONTyped(json, false); +} + +export function SystemWriteConfigGroupPolicyApplicationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteConfigGroupPolicyApplicationRequest { + if (json == null) { + return json; + } + return { + groupPolicyApplicationMode: + json['group_policy_application_mode'] == null ? undefined : json['group_policy_application_mode'], + }; +} + +export function SystemWriteConfigGroupPolicyApplicationRequestToJSON( + json: any +): SystemWriteConfigGroupPolicyApplicationRequest { + return SystemWriteConfigGroupPolicyApplicationRequestToJSONTyped(json, false); +} + +export function SystemWriteConfigGroupPolicyApplicationRequestToJSONTyped( + value?: SystemWriteConfigGroupPolicyApplicationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + group_policy_application_mode: value['groupPolicyApplicationMode'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteControlGroupAuthorizeRequest.ts b/ui/api-client/src/models/SystemWriteControlGroupAuthorizeRequest.ts new file mode 100644 index 0000000000..81376fbdf2 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteControlGroupAuthorizeRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteControlGroupAuthorizeRequest + */ +export interface SystemWriteControlGroupAuthorizeRequest { + /** + * The accessor of the request to authorize. + * @type {string} + * @memberof SystemWriteControlGroupAuthorizeRequest + */ + accessor?: string; +} + +/** + * Check if a given object implements the SystemWriteControlGroupAuthorizeRequest interface. + */ +export function instanceOfSystemWriteControlGroupAuthorizeRequest( + value: object +): value is SystemWriteControlGroupAuthorizeRequest { + return true; +} + +export function SystemWriteControlGroupAuthorizeRequestFromJSON( + json: any +): SystemWriteControlGroupAuthorizeRequest { + return SystemWriteControlGroupAuthorizeRequestFromJSONTyped(json, false); +} + +export function SystemWriteControlGroupAuthorizeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteControlGroupAuthorizeRequest { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + }; +} + +export function SystemWriteControlGroupAuthorizeRequestToJSON( + json: any +): SystemWriteControlGroupAuthorizeRequest { + return SystemWriteControlGroupAuthorizeRequestToJSONTyped(json, false); +} + +export function SystemWriteControlGroupAuthorizeRequestToJSONTyped( + value?: SystemWriteControlGroupAuthorizeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteControlGroupRequestRequest.ts b/ui/api-client/src/models/SystemWriteControlGroupRequestRequest.ts new file mode 100644 index 0000000000..0045ff3a96 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteControlGroupRequestRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteControlGroupRequestRequest + */ +export interface SystemWriteControlGroupRequestRequest { + /** + * The accessor of the request. + * @type {string} + * @memberof SystemWriteControlGroupRequestRequest + */ + accessor?: string; +} + +/** + * Check if a given object implements the SystemWriteControlGroupRequestRequest interface. + */ +export function instanceOfSystemWriteControlGroupRequestRequest( + value: object +): value is SystemWriteControlGroupRequestRequest { + return true; +} + +export function SystemWriteControlGroupRequestRequestFromJSON( + json: any +): SystemWriteControlGroupRequestRequest { + return SystemWriteControlGroupRequestRequestFromJSONTyped(json, false); +} + +export function SystemWriteControlGroupRequestRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteControlGroupRequestRequest { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + }; +} + +export function SystemWriteControlGroupRequestRequestToJSON( + json: any +): SystemWriteControlGroupRequestRequest { + return SystemWriteControlGroupRequestRequestToJSONTyped(json, false); +} + +export function SystemWriteControlGroupRequestRequestToJSONTyped( + value?: SystemWriteControlGroupRequestRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteInternalCountersActivityWriteRequest.ts b/ui/api-client/src/models/SystemWriteInternalCountersActivityWriteRequest.ts new file mode 100644 index 0000000000..3625d9b8dc --- /dev/null +++ b/ui/api-client/src/models/SystemWriteInternalCountersActivityWriteRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteInternalCountersActivityWriteRequest + */ +export interface SystemWriteInternalCountersActivityWriteRequest { + /** + * JSON input for generating mock data + * @type {string} + * @memberof SystemWriteInternalCountersActivityWriteRequest + */ + input?: string; +} + +/** + * Check if a given object implements the SystemWriteInternalCountersActivityWriteRequest interface. + */ +export function instanceOfSystemWriteInternalCountersActivityWriteRequest( + value: object +): value is SystemWriteInternalCountersActivityWriteRequest { + return true; +} + +export function SystemWriteInternalCountersActivityWriteRequestFromJSON( + json: any +): SystemWriteInternalCountersActivityWriteRequest { + return SystemWriteInternalCountersActivityWriteRequestFromJSONTyped(json, false); +} + +export function SystemWriteInternalCountersActivityWriteRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteInternalCountersActivityWriteRequest { + if (json == null) { + return json; + } + return { + input: json['input'] == null ? undefined : json['input'], + }; +} + +export function SystemWriteInternalCountersActivityWriteRequestToJSON( + json: any +): SystemWriteInternalCountersActivityWriteRequest { + return SystemWriteInternalCountersActivityWriteRequestToJSONTyped(json, false); +} + +export function SystemWriteInternalCountersActivityWriteRequestToJSONTyped( + value?: SystemWriteInternalCountersActivityWriteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + input: value['input'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteManagedKeysTypeNameRequest.ts b/ui/api-client/src/models/SystemWriteManagedKeysTypeNameRequest.ts new file mode 100644 index 0000000000..61255bd74b --- /dev/null +++ b/ui/api-client/src/models/SystemWriteManagedKeysTypeNameRequest.ts @@ -0,0 +1,354 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteManagedKeysTypeNameRequest + */ +export interface SystemWriteManagedKeysTypeNameRequest { + /** + * Access key for authenticating to AWS + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + accessKey?: string; + /** + * The signature algorithm to use with this key + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + algorithm?: string; + /** + * If true, allows users of the key to trigger key generation. If false and generation is needed, it will fail. + * @type {boolean} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + allowGenerateKey?: boolean; + /** + * If true, allows users of the key to provide key material which may replace keys that were previously present. allow_store_key being false overrides this behavior. + * @type {boolean} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + allowReplaceKey?: boolean; + /** + * If true, allows users of the key to provide key material where none was present. + * @type {boolean} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + allowStoreKey?: boolean; + /** + * If true, this key may be accessed by any mount without the mount's allowed_manage_keys field being set. + * @type {boolean} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + anyMount?: boolean; + /** + * The client ID for credentials to invoke the Azure APIs. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + clientId?: string; + /** + * The client secret for credentials to invoke the Azure APIs. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + clientSecret?: string; + /** + * The path for the GCP credential file + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + credentials?: string; + /** + * The name of the key in GCP Cloud KMS + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + cryptoKey?: string; + /** + * The key version of an existing key in GCP Cloud KMS + * @type {number} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + cryptoKeyVersion?: number; + /** + * For ECDSA keys, the desired elliptic curve if the key is to be generated, either P256, P384, or P521. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + curve?: string; + /** + * The AWS endpoint to use + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + endpoint?: string; + /** + * The Azure Cloud environment API endpoints to use. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + environment?: string; + /** + * If true, forces read/write sessions on the HSM, to work around some buggy HSMs. + * @type {boolean} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + forceRwSession?: boolean; + /** + * The desired key length in bits if the RSA key is to be generated, either 2048, 3072, or 4096. + * @type {number} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + keyBitsDashed?: number; + /** + * For RSA keys, the desired key length in bits if the key is to be generated, either 2048, 3072, or 4096. + * @type {number} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + keyBits?: number; + /** + * The id of a PKCS#11 key to use. As key ids are created by the HSM, it is an error if the key does not yet exist. This value or key_label must be specified. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + keyId?: string; + /** + * The label of a PKCS#11 key to use. If the key does not exist and generation is enabled, this is the label that will be given to the generated key. This value or key_id must be specified. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + keyLabel?: string; + /** + * The name of the Azure Key Vault Key. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + keyName?: string; + /** + * The name of the key ring in GCP Cloud KMS + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + keyRing?: string; + /** + * The type of the Azure Key Vault Key. Currently only `RSA-HSM` is supported. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + keyType?: string; + /** + * An identifier for the AWS KMS key. If the key already exists, this can be either the AWS-generated key ID or an alias. If the key is to be generated and the field is non-empty, the provided value will be used to create an alias for the key. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + kmsKey?: string; + /** + * The name of a managed key access library, as defined in the Vault server configuration. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + library?: string; + /** + * The maximum number of concurrent operations that may be submitted to the HSM at a time. + * @type {number} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + maxParallel?: number; + /** + * The mechanism for the given key, specified as a decimal or hexadecimal (prefixed by 0x) string. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + mechanism?: string; + /** + * The access PIN for the slot. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + pin?: string; + /** + * The name of the GCP project + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + project?: string; + /** + * The GCP region used for the key ring + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + region?: string; + /** + * The Azure Key Vault resource's DNS Suffix to connect to. Needs to be changed to connect to Azure's Managed HSM KeyVault instance type. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + resource?: string; + /** + * Secret key ID for authenticating to AWS + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + secretKey?: string; + /** + * The slot number to use, specified as a string (e.g. "0"). + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + slot?: string; + /** + * The tenant ID for the Azure Active Directory organization. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + tenantId?: string; + /** + * The slot token label to use. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + tokenLabel?: string; + /** + * A comma-delimited list of the allowed usages of this key. Valid values are encrypt, decrypt, sign, verify, wrap, unwrap, mac, and random. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + usages?: string; + /** + * The name of an existing Azure Key Vault instance. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameRequest + */ + vaultName?: string; +} + +/** + * Check if a given object implements the SystemWriteManagedKeysTypeNameRequest interface. + */ +export function instanceOfSystemWriteManagedKeysTypeNameRequest( + value: object +): value is SystemWriteManagedKeysTypeNameRequest { + return true; +} + +export function SystemWriteManagedKeysTypeNameRequestFromJSON( + json: any +): SystemWriteManagedKeysTypeNameRequest { + return SystemWriteManagedKeysTypeNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteManagedKeysTypeNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteManagedKeysTypeNameRequest { + if (json == null) { + return json; + } + return { + accessKey: json['access_key'] == null ? undefined : json['access_key'], + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + allowGenerateKey: json['allow_generate_key'] == null ? undefined : json['allow_generate_key'], + allowReplaceKey: json['allow_replace_key'] == null ? undefined : json['allow_replace_key'], + allowStoreKey: json['allow_store_key'] == null ? undefined : json['allow_store_key'], + anyMount: json['any_mount'] == null ? undefined : json['any_mount'], + clientId: json['client_id'] == null ? undefined : json['client_id'], + clientSecret: json['client_secret'] == null ? undefined : json['client_secret'], + credentials: json['credentials'] == null ? undefined : json['credentials'], + cryptoKey: json['crypto_key'] == null ? undefined : json['crypto_key'], + cryptoKeyVersion: json['crypto_key_version'] == null ? undefined : json['crypto_key_version'], + curve: json['curve'] == null ? undefined : json['curve'], + endpoint: json['endpoint'] == null ? undefined : json['endpoint'], + environment: json['environment'] == null ? undefined : json['environment'], + forceRwSession: json['force_rw_session'] == null ? undefined : json['force_rw_session'], + keyBitsDashed: json['key-bits'] == null ? undefined : json['key-bits'], + keyBits: json['key_bits'] == null ? undefined : json['key_bits'], + keyId: json['key_id'] == null ? undefined : json['key_id'], + keyLabel: json['key_label'] == null ? undefined : json['key_label'], + keyName: json['key_name'] == null ? undefined : json['key_name'], + keyRing: json['key_ring'] == null ? undefined : json['key_ring'], + keyType: json['key_type'] == null ? undefined : json['key_type'], + kmsKey: json['kms_key'] == null ? undefined : json['kms_key'], + library: json['library'] == null ? undefined : json['library'], + maxParallel: json['max_parallel'] == null ? undefined : json['max_parallel'], + mechanism: json['mechanism'] == null ? undefined : json['mechanism'], + pin: json['pin'] == null ? undefined : json['pin'], + project: json['project'] == null ? undefined : json['project'], + region: json['region'] == null ? undefined : json['region'], + resource: json['resource'] == null ? undefined : json['resource'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + slot: json['slot'] == null ? undefined : json['slot'], + tenantId: json['tenant_id'] == null ? undefined : json['tenant_id'], + tokenLabel: json['token_label'] == null ? undefined : json['token_label'], + usages: json['usages'] == null ? undefined : json['usages'], + vaultName: json['vault_name'] == null ? undefined : json['vault_name'], + }; +} + +export function SystemWriteManagedKeysTypeNameRequestToJSON( + json: any +): SystemWriteManagedKeysTypeNameRequest { + return SystemWriteManagedKeysTypeNameRequestToJSONTyped(json, false); +} + +export function SystemWriteManagedKeysTypeNameRequestToJSONTyped( + value?: SystemWriteManagedKeysTypeNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_key: value['accessKey'], + algorithm: value['algorithm'], + allow_generate_key: value['allowGenerateKey'], + allow_replace_key: value['allowReplaceKey'], + allow_store_key: value['allowStoreKey'], + any_mount: value['anyMount'], + client_id: value['clientId'], + client_secret: value['clientSecret'], + credentials: value['credentials'], + crypto_key: value['cryptoKey'], + crypto_key_version: value['cryptoKeyVersion'], + curve: value['curve'], + endpoint: value['endpoint'], + environment: value['environment'], + force_rw_session: value['forceRwSession'], + 'key-bits': value['keyBitsDashed'], + key_bits: value['keyBits'], + key_id: value['keyId'], + key_label: value['keyLabel'], + key_name: value['keyName'], + key_ring: value['keyRing'], + key_type: value['keyType'], + kms_key: value['kmsKey'], + library: value['library'], + max_parallel: value['maxParallel'], + mechanism: value['mechanism'], + pin: value['pin'], + project: value['project'], + region: value['region'], + resource: value['resource'], + secret_key: value['secretKey'], + slot: value['slot'], + tenant_id: value['tenantId'], + token_label: value['tokenLabel'], + usages: value['usages'], + vault_name: value['vaultName'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteManagedKeysTypeNameTestSignRequest.ts b/ui/api-client/src/models/SystemWriteManagedKeysTypeNameTestSignRequest.ts new file mode 100644 index 0000000000..6a207d3697 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteManagedKeysTypeNameTestSignRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteManagedKeysTypeNameTestSignRequest + */ +export interface SystemWriteManagedKeysTypeNameTestSignRequest { + /** + * The hashing algorithm to use when signing/verifying the random data. + * @type {string} + * @memberof SystemWriteManagedKeysTypeNameTestSignRequest + */ + hashAlgorithm?: string; + /** + * For RSA backed managed keys attempt to sign with PSS + * @type {boolean} + * @memberof SystemWriteManagedKeysTypeNameTestSignRequest + */ + usePss?: boolean; +} + +/** + * Check if a given object implements the SystemWriteManagedKeysTypeNameTestSignRequest interface. + */ +export function instanceOfSystemWriteManagedKeysTypeNameTestSignRequest( + value: object +): value is SystemWriteManagedKeysTypeNameTestSignRequest { + return true; +} + +export function SystemWriteManagedKeysTypeNameTestSignRequestFromJSON( + json: any +): SystemWriteManagedKeysTypeNameTestSignRequest { + return SystemWriteManagedKeysTypeNameTestSignRequestFromJSONTyped(json, false); +} + +export function SystemWriteManagedKeysTypeNameTestSignRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteManagedKeysTypeNameTestSignRequest { + if (json == null) { + return json; + } + return { + hashAlgorithm: json['hash_algorithm'] == null ? undefined : json['hash_algorithm'], + usePss: json['use_pss'] == null ? undefined : json['use_pss'], + }; +} + +export function SystemWriteManagedKeysTypeNameTestSignRequestToJSON( + json: any +): SystemWriteManagedKeysTypeNameTestSignRequest { + return SystemWriteManagedKeysTypeNameTestSignRequestToJSONTyped(json, false); +} + +export function SystemWriteManagedKeysTypeNameTestSignRequestToJSONTyped( + value?: SystemWriteManagedKeysTypeNameTestSignRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + hash_algorithm: value['hashAlgorithm'], + use_pss: value['usePss'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteMfaMethodDuoNameRequest.ts b/ui/api-client/src/models/SystemWriteMfaMethodDuoNameRequest.ts new file mode 100644 index 0000000000..3e39969a13 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteMfaMethodDuoNameRequest.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteMfaMethodDuoNameRequest + */ +export interface SystemWriteMfaMethodDuoNameRequest { + /** + * API host name for Duo. + * @type {string} + * @memberof SystemWriteMfaMethodDuoNameRequest + */ + apiHostname?: string; + /** + * Integration key for Duo. + * @type {string} + * @memberof SystemWriteMfaMethodDuoNameRequest + */ + integrationKey?: string; + /** + * The mount to tie this method to for use in automatic mappings. The mapping will use the Name field of Aliases associated with this mount as the username in the mapping. + * @type {string} + * @memberof SystemWriteMfaMethodDuoNameRequest + */ + mountAccessor?: string; + /** + * Push information for Duo. + * @type {string} + * @memberof SystemWriteMfaMethodDuoNameRequest + */ + pushInfo?: string; + /** + * Secret key for Duo. + * @type {string} + * @memberof SystemWriteMfaMethodDuoNameRequest + */ + secretKey?: string; + /** + * If true, the user is reminded to use the passcode upon MFA validation. This option does not enforce using the passcode. Defaults to false. + * @type {boolean} + * @memberof SystemWriteMfaMethodDuoNameRequest + */ + usePasscode?: boolean; + /** + * A format string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. + * @type {string} + * @memberof SystemWriteMfaMethodDuoNameRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the SystemWriteMfaMethodDuoNameRequest interface. + */ +export function instanceOfSystemWriteMfaMethodDuoNameRequest( + value: object +): value is SystemWriteMfaMethodDuoNameRequest { + return true; +} + +export function SystemWriteMfaMethodDuoNameRequestFromJSON(json: any): SystemWriteMfaMethodDuoNameRequest { + return SystemWriteMfaMethodDuoNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteMfaMethodDuoNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteMfaMethodDuoNameRequest { + if (json == null) { + return json; + } + return { + apiHostname: json['api_hostname'] == null ? undefined : json['api_hostname'], + integrationKey: json['integration_key'] == null ? undefined : json['integration_key'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + pushInfo: json['push_info'] == null ? undefined : json['push_info'], + secretKey: json['secret_key'] == null ? undefined : json['secret_key'], + usePasscode: json['use_passcode'] == null ? undefined : json['use_passcode'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function SystemWriteMfaMethodDuoNameRequestToJSON(json: any): SystemWriteMfaMethodDuoNameRequest { + return SystemWriteMfaMethodDuoNameRequestToJSONTyped(json, false); +} + +export function SystemWriteMfaMethodDuoNameRequestToJSONTyped( + value?: SystemWriteMfaMethodDuoNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + api_hostname: value['apiHostname'], + integration_key: value['integrationKey'], + mount_accessor: value['mountAccessor'], + push_info: value['pushInfo'], + secret_key: value['secretKey'], + use_passcode: value['usePasscode'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteMfaMethodOktaNameRequest.ts b/ui/api-client/src/models/SystemWriteMfaMethodOktaNameRequest.ts new file mode 100644 index 0000000000..da3a49869d --- /dev/null +++ b/ui/api-client/src/models/SystemWriteMfaMethodOktaNameRequest.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteMfaMethodOktaNameRequest + */ +export interface SystemWriteMfaMethodOktaNameRequest { + /** + * Okta API key. + * @type {string} + * @memberof SystemWriteMfaMethodOktaNameRequest + */ + apiToken?: string; + /** + * The base domain to use for the Okta API. When not specified in the configuration, "okta.com" is used. + * @type {string} + * @memberof SystemWriteMfaMethodOktaNameRequest + */ + baseUrl?: string; + /** + * The mount to tie this method to for use in automatic mappings. The mapping will use the Name field of Aliases associated with this mount as the username in the mapping. + * @type {string} + * @memberof SystemWriteMfaMethodOktaNameRequest + */ + mountAccessor?: string; + /** + * Name of the organization to be used in the Okta API. + * @type {string} + * @memberof SystemWriteMfaMethodOktaNameRequest + */ + orgName?: string; + /** + * If true, the username will only match the primary email for the account. Defaults to false. + * @type {boolean} + * @memberof SystemWriteMfaMethodOktaNameRequest + */ + primaryEmail?: boolean; + /** + * (DEPRECATED) Use base_url instead. + * @type {boolean} + * @memberof SystemWriteMfaMethodOktaNameRequest + */ + production?: boolean; + /** + * A format string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. + * @type {string} + * @memberof SystemWriteMfaMethodOktaNameRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the SystemWriteMfaMethodOktaNameRequest interface. + */ +export function instanceOfSystemWriteMfaMethodOktaNameRequest( + value: object +): value is SystemWriteMfaMethodOktaNameRequest { + return true; +} + +export function SystemWriteMfaMethodOktaNameRequestFromJSON(json: any): SystemWriteMfaMethodOktaNameRequest { + return SystemWriteMfaMethodOktaNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteMfaMethodOktaNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteMfaMethodOktaNameRequest { + if (json == null) { + return json; + } + return { + apiToken: json['api_token'] == null ? undefined : json['api_token'], + baseUrl: json['base_url'] == null ? undefined : json['base_url'], + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + orgName: json['org_name'] == null ? undefined : json['org_name'], + primaryEmail: json['primary_email'] == null ? undefined : json['primary_email'], + production: json['production'] == null ? undefined : json['production'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function SystemWriteMfaMethodOktaNameRequestToJSON(json: any): SystemWriteMfaMethodOktaNameRequest { + return SystemWriteMfaMethodOktaNameRequestToJSONTyped(json, false); +} + +export function SystemWriteMfaMethodOktaNameRequestToJSONTyped( + value?: SystemWriteMfaMethodOktaNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + api_token: value['apiToken'], + base_url: value['baseUrl'], + mount_accessor: value['mountAccessor'], + org_name: value['orgName'], + primary_email: value['primaryEmail'], + production: value['production'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteMfaMethodPingidNameRequest.ts b/ui/api-client/src/models/SystemWriteMfaMethodPingidNameRequest.ts new file mode 100644 index 0000000000..cea6ccbc5f --- /dev/null +++ b/ui/api-client/src/models/SystemWriteMfaMethodPingidNameRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteMfaMethodPingidNameRequest + */ +export interface SystemWriteMfaMethodPingidNameRequest { + /** + * The mount to tie this method to for use in automatic mappings. The mapping will use the Name field of Aliases associated with this mount as the username in the mapping. + * @type {string} + * @memberof SystemWriteMfaMethodPingidNameRequest + */ + mountAccessor?: string; + /** + * The settings file provided by Ping, Base64-encoded. This must be a settings file suitable for third-party clients, not the PingID SDK or PingFederate. + * @type {string} + * @memberof SystemWriteMfaMethodPingidNameRequest + */ + settingsFileBase64?: string; + /** + * A format string for mapping Identity names to MFA method names. Values to subtitute should be placed in {{}}. For example, "{{alias.name}}@example.com". Currently-supported mappings: alias.name: The name returned by the mount configured via the mount_accessor parameter If blank, the Alias's name field will be used as-is. + * @type {string} + * @memberof SystemWriteMfaMethodPingidNameRequest + */ + usernameFormat?: string; +} + +/** + * Check if a given object implements the SystemWriteMfaMethodPingidNameRequest interface. + */ +export function instanceOfSystemWriteMfaMethodPingidNameRequest( + value: object +): value is SystemWriteMfaMethodPingidNameRequest { + return true; +} + +export function SystemWriteMfaMethodPingidNameRequestFromJSON( + json: any +): SystemWriteMfaMethodPingidNameRequest { + return SystemWriteMfaMethodPingidNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteMfaMethodPingidNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteMfaMethodPingidNameRequest { + if (json == null) { + return json; + } + return { + mountAccessor: json['mount_accessor'] == null ? undefined : json['mount_accessor'], + settingsFileBase64: json['settings_file_base64'] == null ? undefined : json['settings_file_base64'], + usernameFormat: json['username_format'] == null ? undefined : json['username_format'], + }; +} + +export function SystemWriteMfaMethodPingidNameRequestToJSON( + json: any +): SystemWriteMfaMethodPingidNameRequest { + return SystemWriteMfaMethodPingidNameRequestToJSONTyped(json, false); +} + +export function SystemWriteMfaMethodPingidNameRequestToJSONTyped( + value?: SystemWriteMfaMethodPingidNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mount_accessor: value['mountAccessor'], + settings_file_base64: value['settingsFileBase64'], + username_format: value['usernameFormat'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteMfaMethodTotpNameAdminDestroyRequest.ts b/ui/api-client/src/models/SystemWriteMfaMethodTotpNameAdminDestroyRequest.ts new file mode 100644 index 0000000000..5d5db9a711 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteMfaMethodTotpNameAdminDestroyRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteMfaMethodTotpNameAdminDestroyRequest + */ +export interface SystemWriteMfaMethodTotpNameAdminDestroyRequest { + /** + * Identifier of the entity from which the MFA method secret needs to be removed. + * @type {string} + * @memberof SystemWriteMfaMethodTotpNameAdminDestroyRequest + */ + entityId?: string; +} + +/** + * Check if a given object implements the SystemWriteMfaMethodTotpNameAdminDestroyRequest interface. + */ +export function instanceOfSystemWriteMfaMethodTotpNameAdminDestroyRequest( + value: object +): value is SystemWriteMfaMethodTotpNameAdminDestroyRequest { + return true; +} + +export function SystemWriteMfaMethodTotpNameAdminDestroyRequestFromJSON( + json: any +): SystemWriteMfaMethodTotpNameAdminDestroyRequest { + return SystemWriteMfaMethodTotpNameAdminDestroyRequestFromJSONTyped(json, false); +} + +export function SystemWriteMfaMethodTotpNameAdminDestroyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteMfaMethodTotpNameAdminDestroyRequest { + if (json == null) { + return json; + } + return { + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + }; +} + +export function SystemWriteMfaMethodTotpNameAdminDestroyRequestToJSON( + json: any +): SystemWriteMfaMethodTotpNameAdminDestroyRequest { + return SystemWriteMfaMethodTotpNameAdminDestroyRequestToJSONTyped(json, false); +} + +export function SystemWriteMfaMethodTotpNameAdminDestroyRequestToJSONTyped( + value?: SystemWriteMfaMethodTotpNameAdminDestroyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_id: value['entityId'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteMfaMethodTotpNameAdminGenerateRequest.ts b/ui/api-client/src/models/SystemWriteMfaMethodTotpNameAdminGenerateRequest.ts new file mode 100644 index 0000000000..3ed60b0098 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteMfaMethodTotpNameAdminGenerateRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteMfaMethodTotpNameAdminGenerateRequest + */ +export interface SystemWriteMfaMethodTotpNameAdminGenerateRequest { + /** + * Entity ID on which the generated secret needs to get stored. + * @type {string} + * @memberof SystemWriteMfaMethodTotpNameAdminGenerateRequest + */ + entityId?: string; +} + +/** + * Check if a given object implements the SystemWriteMfaMethodTotpNameAdminGenerateRequest interface. + */ +export function instanceOfSystemWriteMfaMethodTotpNameAdminGenerateRequest( + value: object +): value is SystemWriteMfaMethodTotpNameAdminGenerateRequest { + return true; +} + +export function SystemWriteMfaMethodTotpNameAdminGenerateRequestFromJSON( + json: any +): SystemWriteMfaMethodTotpNameAdminGenerateRequest { + return SystemWriteMfaMethodTotpNameAdminGenerateRequestFromJSONTyped(json, false); +} + +export function SystemWriteMfaMethodTotpNameAdminGenerateRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteMfaMethodTotpNameAdminGenerateRequest { + if (json == null) { + return json; + } + return { + entityId: json['entity_id'] == null ? undefined : json['entity_id'], + }; +} + +export function SystemWriteMfaMethodTotpNameAdminGenerateRequestToJSON( + json: any +): SystemWriteMfaMethodTotpNameAdminGenerateRequest { + return SystemWriteMfaMethodTotpNameAdminGenerateRequestToJSONTyped(json, false); +} + +export function SystemWriteMfaMethodTotpNameAdminGenerateRequestToJSONTyped( + value?: SystemWriteMfaMethodTotpNameAdminGenerateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + entity_id: value['entityId'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteMfaMethodTotpNameRequest.ts b/ui/api-client/src/models/SystemWriteMfaMethodTotpNameRequest.ts new file mode 100644 index 0000000000..5c39798b54 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteMfaMethodTotpNameRequest.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteMfaMethodTotpNameRequest + */ +export interface SystemWriteMfaMethodTotpNameRequest { + /** + * The hashing algorithm used to generate the TOTP token. Options include SHA1, SHA256 and SHA512. + * @type {string} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + algorithm?: string; + /** + * The number of digits in the generated TOTP token. This value can either be 6 or 8. + * @type {number} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + digits?: number; + /** + * The name of the key's issuing organization. + * @type {string} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + issuer?: string; + /** + * Determines the size in bytes of the generated key. + * @type {number} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + keySize?: number; + /** + * Max number of allowed validation attempts. + * @type {number} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + maxValidationAttempts?: number; + /** + * The length of time used to generate a counter for the TOTP token calculation. + * @type {string} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + period?: string; + /** + * The pixel size of the generated square QR code. + * @type {number} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + qrSize?: number; + /** + * The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. + * @type {number} + * @memberof SystemWriteMfaMethodTotpNameRequest + */ + skew?: number; +} + +/** + * Check if a given object implements the SystemWriteMfaMethodTotpNameRequest interface. + */ +export function instanceOfSystemWriteMfaMethodTotpNameRequest( + value: object +): value is SystemWriteMfaMethodTotpNameRequest { + return true; +} + +export function SystemWriteMfaMethodTotpNameRequestFromJSON(json: any): SystemWriteMfaMethodTotpNameRequest { + return SystemWriteMfaMethodTotpNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteMfaMethodTotpNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteMfaMethodTotpNameRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + digits: json['digits'] == null ? undefined : json['digits'], + issuer: json['issuer'] == null ? undefined : json['issuer'], + keySize: json['key_size'] == null ? undefined : json['key_size'], + maxValidationAttempts: + json['max_validation_attempts'] == null ? undefined : json['max_validation_attempts'], + period: json['period'] == null ? undefined : json['period'], + qrSize: json['qr_size'] == null ? undefined : json['qr_size'], + skew: json['skew'] == null ? undefined : json['skew'], + }; +} + +export function SystemWriteMfaMethodTotpNameRequestToJSON(json: any): SystemWriteMfaMethodTotpNameRequest { + return SystemWriteMfaMethodTotpNameRequestToJSONTyped(json, false); +} + +export function SystemWriteMfaMethodTotpNameRequestToJSONTyped( + value?: SystemWriteMfaMethodTotpNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + digits: value['digits'], + issuer: value['issuer'], + key_size: value['keySize'], + max_validation_attempts: value['maxValidationAttempts'], + period: value['period'], + qr_size: value['qrSize'], + skew: value['skew'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteNamespacesApiLockUnlockPathRequest.ts b/ui/api-client/src/models/SystemWriteNamespacesApiLockUnlockPathRequest.ts new file mode 100644 index 0000000000..69e1a7ff65 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteNamespacesApiLockUnlockPathRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteNamespacesApiLockUnlockPathRequest + */ +export interface SystemWriteNamespacesApiLockUnlockPathRequest { + /** + * Key to unlock the namespace. + * @type {string} + * @memberof SystemWriteNamespacesApiLockUnlockPathRequest + */ + unlockKey?: string; +} + +/** + * Check if a given object implements the SystemWriteNamespacesApiLockUnlockPathRequest interface. + */ +export function instanceOfSystemWriteNamespacesApiLockUnlockPathRequest( + value: object +): value is SystemWriteNamespacesApiLockUnlockPathRequest { + return true; +} + +export function SystemWriteNamespacesApiLockUnlockPathRequestFromJSON( + json: any +): SystemWriteNamespacesApiLockUnlockPathRequest { + return SystemWriteNamespacesApiLockUnlockPathRequestFromJSONTyped(json, false); +} + +export function SystemWriteNamespacesApiLockUnlockPathRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteNamespacesApiLockUnlockPathRequest { + if (json == null) { + return json; + } + return { + unlockKey: json['unlock_key'] == null ? undefined : json['unlock_key'], + }; +} + +export function SystemWriteNamespacesApiLockUnlockPathRequestToJSON( + json: any +): SystemWriteNamespacesApiLockUnlockPathRequest { + return SystemWriteNamespacesApiLockUnlockPathRequestToJSONTyped(json, false); +} + +export function SystemWriteNamespacesApiLockUnlockPathRequestToJSONTyped( + value?: SystemWriteNamespacesApiLockUnlockPathRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + unlock_key: value['unlockKey'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteNamespacesApiLockUnlockRequest.ts b/ui/api-client/src/models/SystemWriteNamespacesApiLockUnlockRequest.ts new file mode 100644 index 0000000000..35df59af7c --- /dev/null +++ b/ui/api-client/src/models/SystemWriteNamespacesApiLockUnlockRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteNamespacesApiLockUnlockRequest + */ +export interface SystemWriteNamespacesApiLockUnlockRequest { + /** + * Key to unlock the namespace. + * @type {string} + * @memberof SystemWriteNamespacesApiLockUnlockRequest + */ + unlockKey?: string; +} + +/** + * Check if a given object implements the SystemWriteNamespacesApiLockUnlockRequest interface. + */ +export function instanceOfSystemWriteNamespacesApiLockUnlockRequest( + value: object +): value is SystemWriteNamespacesApiLockUnlockRequest { + return true; +} + +export function SystemWriteNamespacesApiLockUnlockRequestFromJSON( + json: any +): SystemWriteNamespacesApiLockUnlockRequest { + return SystemWriteNamespacesApiLockUnlockRequestFromJSONTyped(json, false); +} + +export function SystemWriteNamespacesApiLockUnlockRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteNamespacesApiLockUnlockRequest { + if (json == null) { + return json; + } + return { + unlockKey: json['unlock_key'] == null ? undefined : json['unlock_key'], + }; +} + +export function SystemWriteNamespacesApiLockUnlockRequestToJSON( + json: any +): SystemWriteNamespacesApiLockUnlockRequest { + return SystemWriteNamespacesApiLockUnlockRequestToJSONTyped(json, false); +} + +export function SystemWriteNamespacesApiLockUnlockRequestToJSONTyped( + value?: SystemWriteNamespacesApiLockUnlockRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + unlock_key: value['unlockKey'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteNamespacesPathRequest.ts b/ui/api-client/src/models/SystemWriteNamespacesPathRequest.ts new file mode 100644 index 0000000000..e7eeee17f8 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteNamespacesPathRequest.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteNamespacesPathRequest + */ +export interface SystemWriteNamespacesPathRequest { + /** + * User-provided key-value pairs that are used to describe arbitrary information about a namespace. + * @type {object} + * @memberof SystemWriteNamespacesPathRequest + */ + customMetadata?: object; +} + +/** + * Check if a given object implements the SystemWriteNamespacesPathRequest interface. + */ +export function instanceOfSystemWriteNamespacesPathRequest( + value: object +): value is SystemWriteNamespacesPathRequest { + return true; +} + +export function SystemWriteNamespacesPathRequestFromJSON(json: any): SystemWriteNamespacesPathRequest { + return SystemWriteNamespacesPathRequestFromJSONTyped(json, false); +} + +export function SystemWriteNamespacesPathRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteNamespacesPathRequest { + if (json == null) { + return json; + } + return { + customMetadata: json['custom_metadata'] == null ? undefined : json['custom_metadata'], + }; +} + +export function SystemWriteNamespacesPathRequestToJSON(json: any): SystemWriteNamespacesPathRequest { + return SystemWriteNamespacesPathRequestToJSONTyped(json, false); +} + +export function SystemWriteNamespacesPathRequestToJSONTyped( + value?: SystemWriteNamespacesPathRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + custom_metadata: value['customMetadata'], + }; +} diff --git a/ui/api-client/src/models/SystemWritePoliciesEgpNameRequest.ts b/ui/api-client/src/models/SystemWritePoliciesEgpNameRequest.ts new file mode 100644 index 0000000000..2b753c1196 --- /dev/null +++ b/ui/api-client/src/models/SystemWritePoliciesEgpNameRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWritePoliciesEgpNameRequest + */ +export interface SystemWritePoliciesEgpNameRequest { + /** + * The enforcement level to apply to the policy. + * @type {string} + * @memberof SystemWritePoliciesEgpNameRequest + */ + enforcementLevel?: string; + /** + * The paths on which the policy should be applied. + * @type {Array} + * @memberof SystemWritePoliciesEgpNameRequest + */ + paths?: Array; + /** + * The rules of the policy. + * @type {string} + * @memberof SystemWritePoliciesEgpNameRequest + */ + policy?: string; +} + +/** + * Check if a given object implements the SystemWritePoliciesEgpNameRequest interface. + */ +export function instanceOfSystemWritePoliciesEgpNameRequest( + value: object +): value is SystemWritePoliciesEgpNameRequest { + return true; +} + +export function SystemWritePoliciesEgpNameRequestFromJSON(json: any): SystemWritePoliciesEgpNameRequest { + return SystemWritePoliciesEgpNameRequestFromJSONTyped(json, false); +} + +export function SystemWritePoliciesEgpNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWritePoliciesEgpNameRequest { + if (json == null) { + return json; + } + return { + enforcementLevel: json['enforcement_level'] == null ? undefined : json['enforcement_level'], + paths: json['paths'] == null ? undefined : json['paths'], + policy: json['policy'] == null ? undefined : json['policy'], + }; +} + +export function SystemWritePoliciesEgpNameRequestToJSON(json: any): SystemWritePoliciesEgpNameRequest { + return SystemWritePoliciesEgpNameRequestToJSONTyped(json, false); +} + +export function SystemWritePoliciesEgpNameRequestToJSONTyped( + value?: SystemWritePoliciesEgpNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + enforcement_level: value['enforcementLevel'], + paths: value['paths'], + policy: value['policy'], + }; +} diff --git a/ui/api-client/src/models/SystemWritePoliciesRgpNameRequest.ts b/ui/api-client/src/models/SystemWritePoliciesRgpNameRequest.ts new file mode 100644 index 0000000000..5bb7dba9e6 --- /dev/null +++ b/ui/api-client/src/models/SystemWritePoliciesRgpNameRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWritePoliciesRgpNameRequest + */ +export interface SystemWritePoliciesRgpNameRequest { + /** + * The enforcement level to apply to the policy. + * @type {string} + * @memberof SystemWritePoliciesRgpNameRequest + */ + enforcementLevel?: string; + /** + * The rules of the policy. + * @type {string} + * @memberof SystemWritePoliciesRgpNameRequest + */ + policy?: string; +} + +/** + * Check if a given object implements the SystemWritePoliciesRgpNameRequest interface. + */ +export function instanceOfSystemWritePoliciesRgpNameRequest( + value: object +): value is SystemWritePoliciesRgpNameRequest { + return true; +} + +export function SystemWritePoliciesRgpNameRequestFromJSON(json: any): SystemWritePoliciesRgpNameRequest { + return SystemWritePoliciesRgpNameRequestFromJSONTyped(json, false); +} + +export function SystemWritePoliciesRgpNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWritePoliciesRgpNameRequest { + if (json == null) { + return json; + } + return { + enforcementLevel: json['enforcement_level'] == null ? undefined : json['enforcement_level'], + policy: json['policy'] == null ? undefined : json['policy'], + }; +} + +export function SystemWritePoliciesRgpNameRequestToJSON(json: any): SystemWritePoliciesRgpNameRequest { + return SystemWritePoliciesRgpNameRequestToJSONTyped(json, false); +} + +export function SystemWritePoliciesRgpNameRequestToJSONTyped( + value?: SystemWritePoliciesRgpNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + enforcement_level: value['enforcementLevel'], + policy: value['policy'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteQuotasLeaseCountNameRequest.ts b/ui/api-client/src/models/SystemWriteQuotasLeaseCountNameRequest.ts new file mode 100644 index 0000000000..e2b627d41b --- /dev/null +++ b/ui/api-client/src/models/SystemWriteQuotasLeaseCountNameRequest.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteQuotasLeaseCountNameRequest + */ +export interface SystemWriteQuotasLeaseCountNameRequest { + /** + * Whether all child namespaces can inherit this namespace quota. + * @type {boolean} + * @memberof SystemWriteQuotasLeaseCountNameRequest + */ + inheritable?: boolean; + /** + * Maximum number of leases allowed by the quota rule. + * @type {number} + * @memberof SystemWriteQuotasLeaseCountNameRequest + */ + maxLeases?: number; + /** + * Path including the applicable namespace prefix. + * @type {string} + * @memberof SystemWriteQuotasLeaseCountNameRequest + */ + path?: string; + /** + * Login role to apply this quota to. Note that when set, path must be configured to a valid auth method with a concept of roles. + * @type {string} + * @memberof SystemWriteQuotasLeaseCountNameRequest + */ + role?: string; + /** + * Type of the quota rule. + * @type {string} + * @memberof SystemWriteQuotasLeaseCountNameRequest + */ + type?: string; +} + +/** + * Check if a given object implements the SystemWriteQuotasLeaseCountNameRequest interface. + */ +export function instanceOfSystemWriteQuotasLeaseCountNameRequest( + value: object +): value is SystemWriteQuotasLeaseCountNameRequest { + return true; +} + +export function SystemWriteQuotasLeaseCountNameRequestFromJSON( + json: any +): SystemWriteQuotasLeaseCountNameRequest { + return SystemWriteQuotasLeaseCountNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteQuotasLeaseCountNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteQuotasLeaseCountNameRequest { + if (json == null) { + return json; + } + return { + inheritable: json['inheritable'] == null ? undefined : json['inheritable'], + maxLeases: json['max_leases'] == null ? undefined : json['max_leases'], + path: json['path'] == null ? undefined : json['path'], + role: json['role'] == null ? undefined : json['role'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemWriteQuotasLeaseCountNameRequestToJSON( + json: any +): SystemWriteQuotasLeaseCountNameRequest { + return SystemWriteQuotasLeaseCountNameRequestToJSONTyped(json, false); +} + +export function SystemWriteQuotasLeaseCountNameRequestToJSONTyped( + value?: SystemWriteQuotasLeaseCountNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + inheritable: value['inheritable'], + max_leases: value['maxLeases'], + path: value['path'], + role: value['role'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrPrimaryEnableRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrPrimaryEnableRequest.ts new file mode 100644 index 0000000000..fd73ad98e4 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrPrimaryEnableRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrPrimaryEnableRequest + */ +export interface SystemWriteReplicationDrPrimaryEnableRequest { + /** + * The address the secondary cluster should connect to. Defaults to the primary's cluster address. + * @type {string} + * @memberof SystemWriteReplicationDrPrimaryEnableRequest + */ + primaryClusterAddr?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrPrimaryEnableRequest interface. + */ +export function instanceOfSystemWriteReplicationDrPrimaryEnableRequest( + value: object +): value is SystemWriteReplicationDrPrimaryEnableRequest { + return true; +} + +export function SystemWriteReplicationDrPrimaryEnableRequestFromJSON( + json: any +): SystemWriteReplicationDrPrimaryEnableRequest { + return SystemWriteReplicationDrPrimaryEnableRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrPrimaryEnableRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrPrimaryEnableRequest { + if (json == null) { + return json; + } + return { + primaryClusterAddr: json['primary_cluster_addr'] == null ? undefined : json['primary_cluster_addr'], + }; +} + +export function SystemWriteReplicationDrPrimaryEnableRequestToJSON( + json: any +): SystemWriteReplicationDrPrimaryEnableRequest { + return SystemWriteReplicationDrPrimaryEnableRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrPrimaryEnableRequestToJSONTyped( + value?: SystemWriteReplicationDrPrimaryEnableRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + primary_cluster_addr: value['primaryClusterAddr'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrPrimaryRevokeSecondaryRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrPrimaryRevokeSecondaryRequest.ts new file mode 100644 index 0000000000..12e0c5e527 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrPrimaryRevokeSecondaryRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrPrimaryRevokeSecondaryRequest + */ +export interface SystemWriteReplicationDrPrimaryRevokeSecondaryRequest { + /** + * The secondary cluster ID to revoke + * @type {string} + * @memberof SystemWriteReplicationDrPrimaryRevokeSecondaryRequest + */ + id?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrPrimaryRevokeSecondaryRequest interface. + */ +export function instanceOfSystemWriteReplicationDrPrimaryRevokeSecondaryRequest( + value: object +): value is SystemWriteReplicationDrPrimaryRevokeSecondaryRequest { + return true; +} + +export function SystemWriteReplicationDrPrimaryRevokeSecondaryRequestFromJSON( + json: any +): SystemWriteReplicationDrPrimaryRevokeSecondaryRequest { + return SystemWriteReplicationDrPrimaryRevokeSecondaryRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrPrimaryRevokeSecondaryRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrPrimaryRevokeSecondaryRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + }; +} + +export function SystemWriteReplicationDrPrimaryRevokeSecondaryRequestToJSON( + json: any +): SystemWriteReplicationDrPrimaryRevokeSecondaryRequest { + return SystemWriteReplicationDrPrimaryRevokeSecondaryRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrPrimaryRevokeSecondaryRequestToJSONTyped( + value?: SystemWriteReplicationDrPrimaryRevokeSecondaryRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrPrimarySecondaryTokenRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrPrimarySecondaryTokenRequest.ts new file mode 100644 index 0000000000..8cd5547c12 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrPrimarySecondaryTokenRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrPrimarySecondaryTokenRequest + */ +export interface SystemWriteReplicationDrPrimarySecondaryTokenRequest { + /** + * An opaque identifier that can be used to identify and revoke a secondary cluster's access later. + * @type {string} + * @memberof SystemWriteReplicationDrPrimarySecondaryTokenRequest + */ + id?: string; + /** + * A base64-encoded public key generated by the secondary cluster. + * @type {string} + * @memberof SystemWriteReplicationDrPrimarySecondaryTokenRequest + */ + secondaryPublicKey?: string; + /** + * The TTL to use for the secondary activation token. Defaults to 30 minutes. + * @type {string} + * @memberof SystemWriteReplicationDrPrimarySecondaryTokenRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrPrimarySecondaryTokenRequest interface. + */ +export function instanceOfSystemWriteReplicationDrPrimarySecondaryTokenRequest( + value: object +): value is SystemWriteReplicationDrPrimarySecondaryTokenRequest { + return true; +} + +export function SystemWriteReplicationDrPrimarySecondaryTokenRequestFromJSON( + json: any +): SystemWriteReplicationDrPrimarySecondaryTokenRequest { + return SystemWriteReplicationDrPrimarySecondaryTokenRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrPrimarySecondaryTokenRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrPrimarySecondaryTokenRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + secondaryPublicKey: json['secondary_public_key'] == null ? undefined : json['secondary_public_key'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function SystemWriteReplicationDrPrimarySecondaryTokenRequestToJSON( + json: any +): SystemWriteReplicationDrPrimarySecondaryTokenRequest { + return SystemWriteReplicationDrPrimarySecondaryTokenRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrPrimarySecondaryTokenRequestToJSONTyped( + value?: SystemWriteReplicationDrPrimarySecondaryTokenRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + secondary_public_key: value['secondaryPublicKey'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryDisableRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryDisableRequest.ts new file mode 100644 index 0000000000..1f64fb1c07 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryDisableRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryDisableRequest + */ +export interface SystemWriteReplicationDrSecondaryDisableRequest { + /** + * DR operation token used to authorize this request. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryDisableRequest + */ + drOperationToken?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryDisableRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryDisableRequest( + value: object +): value is SystemWriteReplicationDrSecondaryDisableRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryDisableRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryDisableRequest { + return SystemWriteReplicationDrSecondaryDisableRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryDisableRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryDisableRequest { + if (json == null) { + return json; + } + return { + drOperationToken: json['dr_operation_token'] == null ? undefined : json['dr_operation_token'], + }; +} + +export function SystemWriteReplicationDrSecondaryDisableRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryDisableRequest { + return SystemWriteReplicationDrSecondaryDisableRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryDisableRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryDisableRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dr_operation_token: value['drOperationToken'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryEnableRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryEnableRequest.ts new file mode 100644 index 0000000000..4395806333 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryEnableRequest.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryEnableRequest + */ +export interface SystemWriteReplicationDrSecondaryEnableRequest { + /** + * A path to a file containing a PEM-encoded CA certificate to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryEnableRequest + */ + caFile?: string; + /** + * A path to a directory containing PEM-encoded CA certificates to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryEnableRequest + */ + caPath?: string; + /** + * The client certificate to use for authentication, in PEM format. Note: client authentication for this operation will always use TLS 1.2 or higher. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryEnableRequest + */ + clientCertPem?: string; + /** + * The client key to use for authentication, in PEM format. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryEnableRequest + */ + clientKeyPem?: string; + /** + * The API address of the primary. If not set, the value the primary supplies in the token will be used, which is the primary's redirect address. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryEnableRequest + */ + primaryApiAddr?: string; + /** + * The token given by the primary to activate secondary status for this cluster. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryEnableRequest + */ + token?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryEnableRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryEnableRequest( + value: object +): value is SystemWriteReplicationDrSecondaryEnableRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryEnableRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryEnableRequest { + return SystemWriteReplicationDrSecondaryEnableRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryEnableRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryEnableRequest { + if (json == null) { + return json; + } + return { + caFile: json['ca_file'] == null ? undefined : json['ca_file'], + caPath: json['ca_path'] == null ? undefined : json['ca_path'], + clientCertPem: json['client_cert_pem'] == null ? undefined : json['client_cert_pem'], + clientKeyPem: json['client_key_pem'] == null ? undefined : json['client_key_pem'], + primaryApiAddr: json['primary_api_addr'] == null ? undefined : json['primary_api_addr'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function SystemWriteReplicationDrSecondaryEnableRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryEnableRequest { + return SystemWriteReplicationDrSecondaryEnableRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryEnableRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryEnableRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_file: value['caFile'], + ca_path: value['caPath'], + client_cert_pem: value['clientCertPem'], + client_key_pem: value['clientKeyPem'], + primary_api_addr: value['primaryApiAddr'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryMerkleCheckRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryMerkleCheckRequest.ts new file mode 100644 index 0000000000..0ca59f88bf --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryMerkleCheckRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryMerkleCheckRequest + */ +export interface SystemWriteReplicationDrSecondaryMerkleCheckRequest { + /** + * DR operation token used to authorize this request. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryMerkleCheckRequest + */ + drOperationToken?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryMerkleCheckRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryMerkleCheckRequest( + value: object +): value is SystemWriteReplicationDrSecondaryMerkleCheckRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryMerkleCheckRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryMerkleCheckRequest { + return SystemWriteReplicationDrSecondaryMerkleCheckRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryMerkleCheckRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryMerkleCheckRequest { + if (json == null) { + return json; + } + return { + drOperationToken: json['dr_operation_token'] == null ? undefined : json['dr_operation_token'], + }; +} + +export function SystemWriteReplicationDrSecondaryMerkleCheckRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryMerkleCheckRequest { + return SystemWriteReplicationDrSecondaryMerkleCheckRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryMerkleCheckRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryMerkleCheckRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dr_operation_token: value['drOperationToken'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest.ts new file mode 100644 index 0000000000..585bd607e7 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest + */ +export interface SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest { + /** + * DR operation token used to authorize this request. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest + */ + drOperationToken?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryOperationTokenDeleteRequest( + value: object +): value is SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest { + return SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest { + if (json == null) { + return json; + } + return { + drOperationToken: json['dr_operation_token'] == null ? undefined : json['dr_operation_token'], + }; +} + +export function SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest { + return SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryOperationTokenDeleteRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dr_operation_token: value['drOperationToken'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryPromoteRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryPromoteRequest.ts new file mode 100644 index 0000000000..0512c7b9b5 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryPromoteRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryPromoteRequest + */ +export interface SystemWriteReplicationDrSecondaryPromoteRequest { + /** + * DR operation token used to authorize this request. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryPromoteRequest + */ + drOperationToken?: string; + /** + * Set to true if the cluster should be promoted despite replication being in an error state. This could mean some data was not replicated to the secondary + * @type {boolean} + * @memberof SystemWriteReplicationDrSecondaryPromoteRequest + */ + force?: boolean; + /** + * The address the secondary cluster should connect to. Defaults to the primary's cluster address. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryPromoteRequest + */ + primaryClusterAddr?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryPromoteRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryPromoteRequest( + value: object +): value is SystemWriteReplicationDrSecondaryPromoteRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryPromoteRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryPromoteRequest { + return SystemWriteReplicationDrSecondaryPromoteRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryPromoteRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryPromoteRequest { + if (json == null) { + return json; + } + return { + drOperationToken: json['dr_operation_token'] == null ? undefined : json['dr_operation_token'], + force: json['force'] == null ? undefined : json['force'], + primaryClusterAddr: json['primary_cluster_addr'] == null ? undefined : json['primary_cluster_addr'], + }; +} + +export function SystemWriteReplicationDrSecondaryPromoteRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryPromoteRequest { + return SystemWriteReplicationDrSecondaryPromoteRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryPromoteRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryPromoteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dr_operation_token: value['drOperationToken'], + force: value['force'], + primary_cluster_addr: value['primaryClusterAddr'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryRecoverRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryRecoverRequest.ts new file mode 100644 index 0000000000..de85f3b9ff --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryRecoverRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryRecoverRequest + */ +export interface SystemWriteReplicationDrSecondaryRecoverRequest { + /** + * DR operation token used to authorize this request. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryRecoverRequest + */ + drOperationToken?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryRecoverRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryRecoverRequest( + value: object +): value is SystemWriteReplicationDrSecondaryRecoverRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryRecoverRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryRecoverRequest { + return SystemWriteReplicationDrSecondaryRecoverRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryRecoverRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryRecoverRequest { + if (json == null) { + return json; + } + return { + drOperationToken: json['dr_operation_token'] == null ? undefined : json['dr_operation_token'], + }; +} + +export function SystemWriteReplicationDrSecondaryRecoverRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryRecoverRequest { + return SystemWriteReplicationDrSecondaryRecoverRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryRecoverRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryRecoverRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + dr_operation_token: value['drOperationToken'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryReindexRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryReindexRequest.ts new file mode 100644 index 0000000000..48738f6632 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryReindexRequest.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryReindexRequest + */ +export interface SystemWriteReplicationDrSecondaryReindexRequest { + /** + * Enables a slower re-indexing which will perform a key level check to diagnose issues. Defaults false. + * @type {boolean} + * @memberof SystemWriteReplicationDrSecondaryReindexRequest + */ + diff?: boolean; + /** + * DR operation token used to authorize this request. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryReindexRequest + */ + drOperationToken?: string; + /** + * Forces a complete re-indexing which only scans data available in the storage. Defaults false. + * @type {boolean} + * @memberof SystemWriteReplicationDrSecondaryReindexRequest + */ + force?: boolean; + /** + * Skips the tree flushing stage of the reindex process. This setting can be used to reduce the amount of time the tree is locked during a reindex process. If this node is killed before the full tree has been asynchronously flushed the reindex may not have applied fully and a new reindex may need to be done. Shutting down this node cleanly will cause the tree to be flushed prior to shutdown. Defaults false. + * @type {boolean} + * @memberof SystemWriteReplicationDrSecondaryReindexRequest + */ + skipFlush?: boolean; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryReindexRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryReindexRequest( + value: object +): value is SystemWriteReplicationDrSecondaryReindexRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryReindexRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryReindexRequest { + return SystemWriteReplicationDrSecondaryReindexRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryReindexRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryReindexRequest { + if (json == null) { + return json; + } + return { + diff: json['diff'] == null ? undefined : json['diff'], + drOperationToken: json['dr_operation_token'] == null ? undefined : json['dr_operation_token'], + force: json['force'] == null ? undefined : json['force'], + skipFlush: json['skip_flush'] == null ? undefined : json['skip_flush'], + }; +} + +export function SystemWriteReplicationDrSecondaryReindexRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryReindexRequest { + return SystemWriteReplicationDrSecondaryReindexRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryReindexRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryReindexRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + diff: value['diff'], + dr_operation_token: value['drOperationToken'], + force: value['force'], + skip_flush: value['skipFlush'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationDrSecondaryUpdatePrimaryRequest.ts b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryUpdatePrimaryRequest.ts new file mode 100644 index 0000000000..e56070f364 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationDrSecondaryUpdatePrimaryRequest.ts @@ -0,0 +1,130 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ +export interface SystemWriteReplicationDrSecondaryUpdatePrimaryRequest { + /** + * A path to a file containing a PEM-encoded CA certificate to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + caFile?: string; + /** + * A path to a directory containing PEM-encoded CA certificates to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + caPath?: string; + /** + * The client certificate to use for authentication, in PEM format. Note: client authentication for this operation will always use TLS 1.2 or higher. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + clientCertPem?: string; + /** + * The client key to use for authentication, in PEM format. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + clientKeyPem?: string; + /** + * DR operation token used to authorize this request. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + drOperationToken?: string; + /** + * The API address of the primary. If not set, the value the primary supplies in the token will be used, which is the primary's redirect address. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + primaryApiAddr?: string; + /** + * The token given by the primary to activate secondary status for this cluster. + * @type {string} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + token?: string; + /** + * A comma separated list of host:port strings to serve as new addresses for the primary cluster + * @type {Array} + * @memberof SystemWriteReplicationDrSecondaryUpdatePrimaryRequest + */ + updatePrimaryAddrs?: Array; +} + +/** + * Check if a given object implements the SystemWriteReplicationDrSecondaryUpdatePrimaryRequest interface. + */ +export function instanceOfSystemWriteReplicationDrSecondaryUpdatePrimaryRequest( + value: object +): value is SystemWriteReplicationDrSecondaryUpdatePrimaryRequest { + return true; +} + +export function SystemWriteReplicationDrSecondaryUpdatePrimaryRequestFromJSON( + json: any +): SystemWriteReplicationDrSecondaryUpdatePrimaryRequest { + return SystemWriteReplicationDrSecondaryUpdatePrimaryRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryUpdatePrimaryRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationDrSecondaryUpdatePrimaryRequest { + if (json == null) { + return json; + } + return { + caFile: json['ca_file'] == null ? undefined : json['ca_file'], + caPath: json['ca_path'] == null ? undefined : json['ca_path'], + clientCertPem: json['client_cert_pem'] == null ? undefined : json['client_cert_pem'], + clientKeyPem: json['client_key_pem'] == null ? undefined : json['client_key_pem'], + drOperationToken: json['dr_operation_token'] == null ? undefined : json['dr_operation_token'], + primaryApiAddr: json['primary_api_addr'] == null ? undefined : json['primary_api_addr'], + token: json['token'] == null ? undefined : json['token'], + updatePrimaryAddrs: json['update_primary_addrs'] == null ? undefined : json['update_primary_addrs'], + }; +} + +export function SystemWriteReplicationDrSecondaryUpdatePrimaryRequestToJSON( + json: any +): SystemWriteReplicationDrSecondaryUpdatePrimaryRequest { + return SystemWriteReplicationDrSecondaryUpdatePrimaryRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationDrSecondaryUpdatePrimaryRequestToJSONTyped( + value?: SystemWriteReplicationDrSecondaryUpdatePrimaryRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_file: value['caFile'], + ca_path: value['caPath'], + client_cert_pem: value['clientCertPem'], + client_key_pem: value['clientKeyPem'], + dr_operation_token: value['drOperationToken'], + primary_api_addr: value['primaryApiAddr'], + token: value['token'], + update_primary_addrs: value['updatePrimaryAddrs'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationForceCorruptionRequest.ts b/ui/api-client/src/models/SystemWriteReplicationForceCorruptionRequest.ts new file mode 100644 index 0000000000..d80e0994ea --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationForceCorruptionRequest.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationForceCorruptionRequest + */ +export interface SystemWriteReplicationForceCorruptionRequest { + /** + * force corrupting composite rootHashes + * @type {boolean} + * @memberof SystemWriteReplicationForceCorruptionRequest + */ + compositeRootHash?: boolean; + /** + * force corrupting pages + * @type {number} + * @memberof SystemWriteReplicationForceCorruptionRequest + */ + page?: number; + /** + * force corrupting subpages + * @type {number} + * @memberof SystemWriteReplicationForceCorruptionRequest + */ + subpage?: number; + /** + * force corrupting a subtree + * @type {string} + * @memberof SystemWriteReplicationForceCorruptionRequest + */ + subtree?: string; + /** + * force corrupting subtree rootHashes + * @type {boolean} + * @memberof SystemWriteReplicationForceCorruptionRequest + */ + subtreeRootHash?: boolean; +} + +/** + * Check if a given object implements the SystemWriteReplicationForceCorruptionRequest interface. + */ +export function instanceOfSystemWriteReplicationForceCorruptionRequest( + value: object +): value is SystemWriteReplicationForceCorruptionRequest { + return true; +} + +export function SystemWriteReplicationForceCorruptionRequestFromJSON( + json: any +): SystemWriteReplicationForceCorruptionRequest { + return SystemWriteReplicationForceCorruptionRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationForceCorruptionRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationForceCorruptionRequest { + if (json == null) { + return json; + } + return { + compositeRootHash: json['composite_root_hash'] == null ? undefined : json['composite_root_hash'], + page: json['page'] == null ? undefined : json['page'], + subpage: json['subpage'] == null ? undefined : json['subpage'], + subtree: json['subtree'] == null ? undefined : json['subtree'], + subtreeRootHash: json['subtree_root_hash'] == null ? undefined : json['subtree_root_hash'], + }; +} + +export function SystemWriteReplicationForceCorruptionRequestToJSON( + json: any +): SystemWriteReplicationForceCorruptionRequest { + return SystemWriteReplicationForceCorruptionRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationForceCorruptionRequestToJSONTyped( + value?: SystemWriteReplicationForceCorruptionRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + composite_root_hash: value['compositeRootHash'], + page: value['page'], + subpage: value['subpage'], + subtree: value['subtree'], + subtree_root_hash: value['subtreeRootHash'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryEnableRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryEnableRequest.ts new file mode 100644 index 0000000000..5f65f0b109 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryEnableRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPerformancePrimaryEnableRequest + */ +export interface SystemWriteReplicationPerformancePrimaryEnableRequest { + /** + * The address the secondary cluster should connect to. Defaults to the primary's cluster address. + * @type {string} + * @memberof SystemWriteReplicationPerformancePrimaryEnableRequest + */ + primaryClusterAddr?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPerformancePrimaryEnableRequest interface. + */ +export function instanceOfSystemWriteReplicationPerformancePrimaryEnableRequest( + value: object +): value is SystemWriteReplicationPerformancePrimaryEnableRequest { + return true; +} + +export function SystemWriteReplicationPerformancePrimaryEnableRequestFromJSON( + json: any +): SystemWriteReplicationPerformancePrimaryEnableRequest { + return SystemWriteReplicationPerformancePrimaryEnableRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimaryEnableRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPerformancePrimaryEnableRequest { + if (json == null) { + return json; + } + return { + primaryClusterAddr: json['primary_cluster_addr'] == null ? undefined : json['primary_cluster_addr'], + }; +} + +export function SystemWriteReplicationPerformancePrimaryEnableRequestToJSON( + json: any +): SystemWriteReplicationPerformancePrimaryEnableRequest { + return SystemWriteReplicationPerformancePrimaryEnableRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimaryEnableRequestToJSONTyped( + value?: SystemWriteReplicationPerformancePrimaryEnableRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + primary_cluster_addr: value['primaryClusterAddr'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest.ts new file mode 100644 index 0000000000..b26a8ed3d9 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest + */ +export interface SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest { + /** + * The filter mode for the paths filter (allow or deny). Defaults to allow. + * @type {string} + * @memberof SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest + */ + mode?: string; + /** + * The paths to filter in replication. Must be a mount or a namespace. + * @type {Array} + * @memberof SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest + */ + paths?: Array; +} + +/** + * Check if a given object implements the SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest interface. + */ +export function instanceOfSystemWriteReplicationPerformancePrimaryPathsFilterIdRequest( + value: object +): value is SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest { + return true; +} + +export function SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestFromJSON( + json: any +): SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest { + return SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest { + if (json == null) { + return json; + } + return { + mode: json['mode'] == null ? undefined : json['mode'], + paths: json['paths'] == null ? undefined : json['paths'], + }; +} + +export function SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestToJSON( + json: any +): SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest { + return SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimaryPathsFilterIdRequestToJSONTyped( + value?: SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mode: value['mode'], + paths: value['paths'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest.ts new file mode 100644 index 0000000000..134c68e2cb --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest + */ +export interface SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest { + /** + * The secondary cluster ID to revoke + * @type {string} + * @memberof SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest + */ + id?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest interface. + */ +export function instanceOfSystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest( + value: object +): value is SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest { + return true; +} + +export function SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestFromJSON( + json: any +): SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest { + return SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + }; +} + +export function SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestToJSON( + json: any +): SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest { + return SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequestToJSONTyped( + value?: SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPerformancePrimarySecondaryTokenRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimarySecondaryTokenRequest.ts new file mode 100644 index 0000000000..5527e53717 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPerformancePrimarySecondaryTokenRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPerformancePrimarySecondaryTokenRequest + */ +export interface SystemWriteReplicationPerformancePrimarySecondaryTokenRequest { + /** + * An opaque identifier that can be used to identify and revoke a secondary cluster's access later. + * @type {string} + * @memberof SystemWriteReplicationPerformancePrimarySecondaryTokenRequest + */ + id?: string; + /** + * A base64-encoded public key generated by the secondary cluster. + * @type {string} + * @memberof SystemWriteReplicationPerformancePrimarySecondaryTokenRequest + */ + secondaryPublicKey?: string; + /** + * The TTL to use for the secondary activation token. Defaults to 30 minutes. + * @type {string} + * @memberof SystemWriteReplicationPerformancePrimarySecondaryTokenRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPerformancePrimarySecondaryTokenRequest interface. + */ +export function instanceOfSystemWriteReplicationPerformancePrimarySecondaryTokenRequest( + value: object +): value is SystemWriteReplicationPerformancePrimarySecondaryTokenRequest { + return true; +} + +export function SystemWriteReplicationPerformancePrimarySecondaryTokenRequestFromJSON( + json: any +): SystemWriteReplicationPerformancePrimarySecondaryTokenRequest { + return SystemWriteReplicationPerformancePrimarySecondaryTokenRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimarySecondaryTokenRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPerformancePrimarySecondaryTokenRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + secondaryPublicKey: json['secondary_public_key'] == null ? undefined : json['secondary_public_key'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function SystemWriteReplicationPerformancePrimarySecondaryTokenRequestToJSON( + json: any +): SystemWriteReplicationPerformancePrimarySecondaryTokenRequest { + return SystemWriteReplicationPerformancePrimarySecondaryTokenRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformancePrimarySecondaryTokenRequestToJSONTyped( + value?: SystemWriteReplicationPerformancePrimarySecondaryTokenRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + secondary_public_key: value['secondaryPublicKey'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryEnableRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryEnableRequest.ts new file mode 100644 index 0000000000..75d6e1a831 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryEnableRequest.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPerformanceSecondaryEnableRequest + */ +export interface SystemWriteReplicationPerformanceSecondaryEnableRequest { + /** + * A path to a file containing a PEM-encoded CA certificate to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryEnableRequest + */ + caFile?: string; + /** + * A path to a directory containing PEM-encoded CA certificates to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryEnableRequest + */ + caPath?: string; + /** + * The client certificate to use for authentication, in PEM format. Note: client authentication for this operation will always use TLS 1.2 or higher. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryEnableRequest + */ + clientCertPem?: string; + /** + * The client key to use for authentication, in PEM format. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryEnableRequest + */ + clientKeyPem?: string; + /** + * The API address of the primary. If not set, the value the primary supplies in the token will be used, which is the primary's redirect address. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryEnableRequest + */ + primaryApiAddr?: string; + /** + * The token given by the primary to activate secondary status for this cluster. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryEnableRequest + */ + token?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPerformanceSecondaryEnableRequest interface. + */ +export function instanceOfSystemWriteReplicationPerformanceSecondaryEnableRequest( + value: object +): value is SystemWriteReplicationPerformanceSecondaryEnableRequest { + return true; +} + +export function SystemWriteReplicationPerformanceSecondaryEnableRequestFromJSON( + json: any +): SystemWriteReplicationPerformanceSecondaryEnableRequest { + return SystemWriteReplicationPerformanceSecondaryEnableRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformanceSecondaryEnableRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPerformanceSecondaryEnableRequest { + if (json == null) { + return json; + } + return { + caFile: json['ca_file'] == null ? undefined : json['ca_file'], + caPath: json['ca_path'] == null ? undefined : json['ca_path'], + clientCertPem: json['client_cert_pem'] == null ? undefined : json['client_cert_pem'], + clientKeyPem: json['client_key_pem'] == null ? undefined : json['client_key_pem'], + primaryApiAddr: json['primary_api_addr'] == null ? undefined : json['primary_api_addr'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function SystemWriteReplicationPerformanceSecondaryEnableRequestToJSON( + json: any +): SystemWriteReplicationPerformanceSecondaryEnableRequest { + return SystemWriteReplicationPerformanceSecondaryEnableRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformanceSecondaryEnableRequestToJSONTyped( + value?: SystemWriteReplicationPerformanceSecondaryEnableRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_file: value['caFile'], + ca_path: value['caPath'], + client_cert_pem: value['clientCertPem'], + client_key_pem: value['clientKeyPem'], + primary_api_addr: value['primaryApiAddr'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryPromoteRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryPromoteRequest.ts new file mode 100644 index 0000000000..6506a4e845 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryPromoteRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPerformanceSecondaryPromoteRequest + */ +export interface SystemWriteReplicationPerformanceSecondaryPromoteRequest { + /** + * Set to true if the cluster should be promoted despite replication being in an error state. This could mean some data was not replicated to the secondary + * @type {boolean} + * @memberof SystemWriteReplicationPerformanceSecondaryPromoteRequest + */ + force?: boolean; + /** + * The address the secondary cluster should connect to. Defaults to the primary's cluster address. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryPromoteRequest + */ + primaryClusterAddr?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPerformanceSecondaryPromoteRequest interface. + */ +export function instanceOfSystemWriteReplicationPerformanceSecondaryPromoteRequest( + value: object +): value is SystemWriteReplicationPerformanceSecondaryPromoteRequest { + return true; +} + +export function SystemWriteReplicationPerformanceSecondaryPromoteRequestFromJSON( + json: any +): SystemWriteReplicationPerformanceSecondaryPromoteRequest { + return SystemWriteReplicationPerformanceSecondaryPromoteRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformanceSecondaryPromoteRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPerformanceSecondaryPromoteRequest { + if (json == null) { + return json; + } + return { + force: json['force'] == null ? undefined : json['force'], + primaryClusterAddr: json['primary_cluster_addr'] == null ? undefined : json['primary_cluster_addr'], + }; +} + +export function SystemWriteReplicationPerformanceSecondaryPromoteRequestToJSON( + json: any +): SystemWriteReplicationPerformanceSecondaryPromoteRequest { + return SystemWriteReplicationPerformanceSecondaryPromoteRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformanceSecondaryPromoteRequestToJSONTyped( + value?: SystemWriteReplicationPerformanceSecondaryPromoteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + force: value['force'], + primary_cluster_addr: value['primaryClusterAddr'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest.ts new file mode 100644 index 0000000000..53df3f3349 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ +export interface SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest { + /** + * A path to a file containing a PEM-encoded CA certificate to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ + caFile?: string; + /** + * A path to a directory containing PEM-encoded CA certificates to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ + caPath?: string; + /** + * The client certificate to use for authentication, in PEM format. Note: client authentication for this operation will always use TLS 1.2 or higher. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ + clientCertPem?: string; + /** + * The client key to use for authentication, in PEM format. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ + clientKeyPem?: string; + /** + * The API address of the primary. If not set, the value the primary supplies in the token will be used, which is the primary's redirect address. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ + primaryApiAddr?: string; + /** + * The token given by the primary to activate secondary status for this cluster. + * @type {string} + * @memberof SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ + token?: string; + /** + * A comma separated list of host:port strings to serve as new addresses for the primary cluster + * @type {Array} + * @memberof SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest + */ + updatePrimaryAddrs?: Array; +} + +/** + * Check if a given object implements the SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest interface. + */ +export function instanceOfSystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest( + value: object +): value is SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest { + return true; +} + +export function SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestFromJSON( + json: any +): SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest { + return SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest { + if (json == null) { + return json; + } + return { + caFile: json['ca_file'] == null ? undefined : json['ca_file'], + caPath: json['ca_path'] == null ? undefined : json['ca_path'], + clientCertPem: json['client_cert_pem'] == null ? undefined : json['client_cert_pem'], + clientKeyPem: json['client_key_pem'] == null ? undefined : json['client_key_pem'], + primaryApiAddr: json['primary_api_addr'] == null ? undefined : json['primary_api_addr'], + token: json['token'] == null ? undefined : json['token'], + updatePrimaryAddrs: json['update_primary_addrs'] == null ? undefined : json['update_primary_addrs'], + }; +} + +export function SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestToJSON( + json: any +): SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest { + return SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequestToJSONTyped( + value?: SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_file: value['caFile'], + ca_path: value['caPath'], + client_cert_pem: value['clientCertPem'], + client_key_pem: value['clientKeyPem'], + primary_api_addr: value['primaryApiAddr'], + token: value['token'], + update_primary_addrs: value['updatePrimaryAddrs'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPrimaryEnableRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPrimaryEnableRequest.ts new file mode 100644 index 0000000000..a5a08c3078 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPrimaryEnableRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPrimaryEnableRequest + */ +export interface SystemWriteReplicationPrimaryEnableRequest { + /** + * The address the secondary cluster should connect to. Defaults to the primary's cluster address. + * @type {string} + * @memberof SystemWriteReplicationPrimaryEnableRequest + */ + primaryClusterAddr?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPrimaryEnableRequest interface. + */ +export function instanceOfSystemWriteReplicationPrimaryEnableRequest( + value: object +): value is SystemWriteReplicationPrimaryEnableRequest { + return true; +} + +export function SystemWriteReplicationPrimaryEnableRequestFromJSON( + json: any +): SystemWriteReplicationPrimaryEnableRequest { + return SystemWriteReplicationPrimaryEnableRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPrimaryEnableRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPrimaryEnableRequest { + if (json == null) { + return json; + } + return { + primaryClusterAddr: json['primary_cluster_addr'] == null ? undefined : json['primary_cluster_addr'], + }; +} + +export function SystemWriteReplicationPrimaryEnableRequestToJSON( + json: any +): SystemWriteReplicationPrimaryEnableRequest { + return SystemWriteReplicationPrimaryEnableRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPrimaryEnableRequestToJSONTyped( + value?: SystemWriteReplicationPrimaryEnableRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + primary_cluster_addr: value['primaryClusterAddr'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPrimaryRevokeSecondaryRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPrimaryRevokeSecondaryRequest.ts new file mode 100644 index 0000000000..af773f199e --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPrimaryRevokeSecondaryRequest.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPrimaryRevokeSecondaryRequest + */ +export interface SystemWriteReplicationPrimaryRevokeSecondaryRequest { + /** + * The secondary cluster ID to revoke + * @type {string} + * @memberof SystemWriteReplicationPrimaryRevokeSecondaryRequest + */ + id?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPrimaryRevokeSecondaryRequest interface. + */ +export function instanceOfSystemWriteReplicationPrimaryRevokeSecondaryRequest( + value: object +): value is SystemWriteReplicationPrimaryRevokeSecondaryRequest { + return true; +} + +export function SystemWriteReplicationPrimaryRevokeSecondaryRequestFromJSON( + json: any +): SystemWriteReplicationPrimaryRevokeSecondaryRequest { + return SystemWriteReplicationPrimaryRevokeSecondaryRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPrimaryRevokeSecondaryRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPrimaryRevokeSecondaryRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + }; +} + +export function SystemWriteReplicationPrimaryRevokeSecondaryRequestToJSON( + json: any +): SystemWriteReplicationPrimaryRevokeSecondaryRequest { + return SystemWriteReplicationPrimaryRevokeSecondaryRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPrimaryRevokeSecondaryRequestToJSONTyped( + value?: SystemWriteReplicationPrimaryRevokeSecondaryRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationPrimarySecondaryTokenRequest.ts b/ui/api-client/src/models/SystemWriteReplicationPrimarySecondaryTokenRequest.ts new file mode 100644 index 0000000000..9d71c42e96 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationPrimarySecondaryTokenRequest.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationPrimarySecondaryTokenRequest + */ +export interface SystemWriteReplicationPrimarySecondaryTokenRequest { + /** + * An opaque identifier that can be used to identify and revoke a secondary cluster's access later. + * @type {string} + * @memberof SystemWriteReplicationPrimarySecondaryTokenRequest + */ + id?: string; + /** + * A base64-encoded public key generated by the secondary cluster. + * @type {string} + * @memberof SystemWriteReplicationPrimarySecondaryTokenRequest + */ + secondaryPublicKey?: string; + /** + * The TTL to use for the secondary activation token. Defaults to 30 minutes. + * @type {string} + * @memberof SystemWriteReplicationPrimarySecondaryTokenRequest + */ + ttl?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationPrimarySecondaryTokenRequest interface. + */ +export function instanceOfSystemWriteReplicationPrimarySecondaryTokenRequest( + value: object +): value is SystemWriteReplicationPrimarySecondaryTokenRequest { + return true; +} + +export function SystemWriteReplicationPrimarySecondaryTokenRequestFromJSON( + json: any +): SystemWriteReplicationPrimarySecondaryTokenRequest { + return SystemWriteReplicationPrimarySecondaryTokenRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationPrimarySecondaryTokenRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationPrimarySecondaryTokenRequest { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + secondaryPublicKey: json['secondary_public_key'] == null ? undefined : json['secondary_public_key'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function SystemWriteReplicationPrimarySecondaryTokenRequestToJSON( + json: any +): SystemWriteReplicationPrimarySecondaryTokenRequest { + return SystemWriteReplicationPrimarySecondaryTokenRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationPrimarySecondaryTokenRequestToJSONTyped( + value?: SystemWriteReplicationPrimarySecondaryTokenRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + secondary_public_key: value['secondaryPublicKey'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationReindexRequest.ts b/ui/api-client/src/models/SystemWriteReplicationReindexRequest.ts new file mode 100644 index 0000000000..7624651335 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationReindexRequest.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationReindexRequest + */ +export interface SystemWriteReplicationReindexRequest { + /** + * Enables a slower re-indexing which will perform a key level check to diagnose issues. Defaults false. + * @type {boolean} + * @memberof SystemWriteReplicationReindexRequest + */ + diff?: boolean; + /** + * Forces a complete re-indexing which only scans data available in the storage. Defaults false. + * @type {boolean} + * @memberof SystemWriteReplicationReindexRequest + */ + force?: boolean; + /** + * Skips the tree flushing stage of the reindex process. This setting can be used to reduce the amount of time the tree is locked during a reindex process. If this node is killed before the full tree has been asynchronously flushed the reindex may not have applied fully and a new reindex may need to be done. Shutting down this node cleanly will cause the tree to be flushed prior to shutdown. Defaults false. + * @type {boolean} + * @memberof SystemWriteReplicationReindexRequest + */ + skipFlush?: boolean; +} + +/** + * Check if a given object implements the SystemWriteReplicationReindexRequest interface. + */ +export function instanceOfSystemWriteReplicationReindexRequest( + value: object +): value is SystemWriteReplicationReindexRequest { + return true; +} + +export function SystemWriteReplicationReindexRequestFromJSON( + json: any +): SystemWriteReplicationReindexRequest { + return SystemWriteReplicationReindexRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationReindexRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationReindexRequest { + if (json == null) { + return json; + } + return { + diff: json['diff'] == null ? undefined : json['diff'], + force: json['force'] == null ? undefined : json['force'], + skipFlush: json['skip_flush'] == null ? undefined : json['skip_flush'], + }; +} + +export function SystemWriteReplicationReindexRequestToJSON(json: any): SystemWriteReplicationReindexRequest { + return SystemWriteReplicationReindexRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationReindexRequestToJSONTyped( + value?: SystemWriteReplicationReindexRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + diff: value['diff'], + force: value['force'], + skip_flush: value['skipFlush'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationSecondaryEnableRequest.ts b/ui/api-client/src/models/SystemWriteReplicationSecondaryEnableRequest.ts new file mode 100644 index 0000000000..34e4158a87 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationSecondaryEnableRequest.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationSecondaryEnableRequest + */ +export interface SystemWriteReplicationSecondaryEnableRequest { + /** + * A path to a file containing a PEM-encoded CA certificate to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationSecondaryEnableRequest + */ + caFile?: string; + /** + * A path to a directory containing PEM-encoded CA certificates to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationSecondaryEnableRequest + */ + caPath?: string; + /** + * The client certificate to use for authentication, in PEM format. Note: client authentication for this operation will always use TLS 1.2 or higher. + * @type {string} + * @memberof SystemWriteReplicationSecondaryEnableRequest + */ + clientCertPem?: string; + /** + * The client key to use for authentication, in PEM format. + * @type {string} + * @memberof SystemWriteReplicationSecondaryEnableRequest + */ + clientKeyPem?: string; + /** + * The API address of the primary. If not set, the value the primary supplies in the token will be used, which is the primary's redirect address. + * @type {string} + * @memberof SystemWriteReplicationSecondaryEnableRequest + */ + primaryApiAddr?: string; + /** + * The token given by the primary to activate secondary status for this cluster. + * @type {string} + * @memberof SystemWriteReplicationSecondaryEnableRequest + */ + token?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationSecondaryEnableRequest interface. + */ +export function instanceOfSystemWriteReplicationSecondaryEnableRequest( + value: object +): value is SystemWriteReplicationSecondaryEnableRequest { + return true; +} + +export function SystemWriteReplicationSecondaryEnableRequestFromJSON( + json: any +): SystemWriteReplicationSecondaryEnableRequest { + return SystemWriteReplicationSecondaryEnableRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationSecondaryEnableRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationSecondaryEnableRequest { + if (json == null) { + return json; + } + return { + caFile: json['ca_file'] == null ? undefined : json['ca_file'], + caPath: json['ca_path'] == null ? undefined : json['ca_path'], + clientCertPem: json['client_cert_pem'] == null ? undefined : json['client_cert_pem'], + clientKeyPem: json['client_key_pem'] == null ? undefined : json['client_key_pem'], + primaryApiAddr: json['primary_api_addr'] == null ? undefined : json['primary_api_addr'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function SystemWriteReplicationSecondaryEnableRequestToJSON( + json: any +): SystemWriteReplicationSecondaryEnableRequest { + return SystemWriteReplicationSecondaryEnableRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationSecondaryEnableRequestToJSONTyped( + value?: SystemWriteReplicationSecondaryEnableRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_file: value['caFile'], + ca_path: value['caPath'], + client_cert_pem: value['clientCertPem'], + client_key_pem: value['clientKeyPem'], + primary_api_addr: value['primaryApiAddr'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationSecondaryPromoteRequest.ts b/ui/api-client/src/models/SystemWriteReplicationSecondaryPromoteRequest.ts new file mode 100644 index 0000000000..b212c770f7 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationSecondaryPromoteRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationSecondaryPromoteRequest + */ +export interface SystemWriteReplicationSecondaryPromoteRequest { + /** + * Set to true if the cluster should be promoted despite replication being in an error state. This could mean some data was not replicated to the secondary + * @type {boolean} + * @memberof SystemWriteReplicationSecondaryPromoteRequest + */ + force?: boolean; + /** + * The address the secondary cluster should connect to. Defaults to the primary's cluster address. + * @type {string} + * @memberof SystemWriteReplicationSecondaryPromoteRequest + */ + primaryClusterAddr?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationSecondaryPromoteRequest interface. + */ +export function instanceOfSystemWriteReplicationSecondaryPromoteRequest( + value: object +): value is SystemWriteReplicationSecondaryPromoteRequest { + return true; +} + +export function SystemWriteReplicationSecondaryPromoteRequestFromJSON( + json: any +): SystemWriteReplicationSecondaryPromoteRequest { + return SystemWriteReplicationSecondaryPromoteRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationSecondaryPromoteRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationSecondaryPromoteRequest { + if (json == null) { + return json; + } + return { + force: json['force'] == null ? undefined : json['force'], + primaryClusterAddr: json['primary_cluster_addr'] == null ? undefined : json['primary_cluster_addr'], + }; +} + +export function SystemWriteReplicationSecondaryPromoteRequestToJSON( + json: any +): SystemWriteReplicationSecondaryPromoteRequest { + return SystemWriteReplicationSecondaryPromoteRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationSecondaryPromoteRequestToJSONTyped( + value?: SystemWriteReplicationSecondaryPromoteRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + force: value['force'], + primary_cluster_addr: value['primaryClusterAddr'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteReplicationSecondaryUpdatePrimaryRequest.ts b/ui/api-client/src/models/SystemWriteReplicationSecondaryUpdatePrimaryRequest.ts new file mode 100644 index 0000000000..25df1c5dc8 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteReplicationSecondaryUpdatePrimaryRequest.ts @@ -0,0 +1,114 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteReplicationSecondaryUpdatePrimaryRequest + */ +export interface SystemWriteReplicationSecondaryUpdatePrimaryRequest { + /** + * A path to a file containing a PEM-encoded CA certificate to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationSecondaryUpdatePrimaryRequest + */ + caFile?: string; + /** + * A path to a directory containing PEM-encoded CA certificates to verify the call against the primary's API address + * @type {string} + * @memberof SystemWriteReplicationSecondaryUpdatePrimaryRequest + */ + caPath?: string; + /** + * The client certificate to use for authentication, in PEM format. Note: client authentication for this operation will always use TLS 1.2 or higher. + * @type {string} + * @memberof SystemWriteReplicationSecondaryUpdatePrimaryRequest + */ + clientCertPem?: string; + /** + * The client key to use for authentication, in PEM format. + * @type {string} + * @memberof SystemWriteReplicationSecondaryUpdatePrimaryRequest + */ + clientKeyPem?: string; + /** + * The API address of the primary. If not set, the value the primary supplies in the token will be used, which is the primary's redirect address. + * @type {string} + * @memberof SystemWriteReplicationSecondaryUpdatePrimaryRequest + */ + primaryApiAddr?: string; + /** + * The token given by the primary to activate secondary status for this cluster. + * @type {string} + * @memberof SystemWriteReplicationSecondaryUpdatePrimaryRequest + */ + token?: string; +} + +/** + * Check if a given object implements the SystemWriteReplicationSecondaryUpdatePrimaryRequest interface. + */ +export function instanceOfSystemWriteReplicationSecondaryUpdatePrimaryRequest( + value: object +): value is SystemWriteReplicationSecondaryUpdatePrimaryRequest { + return true; +} + +export function SystemWriteReplicationSecondaryUpdatePrimaryRequestFromJSON( + json: any +): SystemWriteReplicationSecondaryUpdatePrimaryRequest { + return SystemWriteReplicationSecondaryUpdatePrimaryRequestFromJSONTyped(json, false); +} + +export function SystemWriteReplicationSecondaryUpdatePrimaryRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteReplicationSecondaryUpdatePrimaryRequest { + if (json == null) { + return json; + } + return { + caFile: json['ca_file'] == null ? undefined : json['ca_file'], + caPath: json['ca_path'] == null ? undefined : json['ca_path'], + clientCertPem: json['client_cert_pem'] == null ? undefined : json['client_cert_pem'], + clientKeyPem: json['client_key_pem'] == null ? undefined : json['client_key_pem'], + primaryApiAddr: json['primary_api_addr'] == null ? undefined : json['primary_api_addr'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function SystemWriteReplicationSecondaryUpdatePrimaryRequestToJSON( + json: any +): SystemWriteReplicationSecondaryUpdatePrimaryRequest { + return SystemWriteReplicationSecondaryUpdatePrimaryRequestToJSONTyped(json, false); +} + +export function SystemWriteReplicationSecondaryUpdatePrimaryRequestToJSONTyped( + value?: SystemWriteReplicationSecondaryUpdatePrimaryRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ca_file: value['caFile'], + ca_path: value['caPath'], + client_cert_pem: value['clientCertPem'], + client_key_pem: value['clientKeyPem'], + primary_api_addr: value['primaryApiAddr'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteStorageRaftSnapshotAutoConfigNameRequest.ts b/ui/api-client/src/models/SystemWriteStorageRaftSnapshotAutoConfigNameRequest.ts new file mode 100644 index 0000000000..ab5b8a0d26 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteStorageRaftSnapshotAutoConfigNameRequest.ts @@ -0,0 +1,304 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ +export interface SystemWriteStorageRaftSnapshotAutoConfigNameRequest { + /** + * AWS access key ID + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsAccessKeyId?: string; + /** + * AWS bucket + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3Bucket?: string; + /** + * Disable TLS for the AWS endpoint, intended only for testing + * @type {boolean} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3DisableTls?: boolean; + /** + * Use KMS to encrypt bucket contents + * @type {boolean} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3EnableKms?: boolean; + /** + * AWS endpoint, typically only set when using a non-AWS S3 instance like Minio + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3Endpoint?: string; + /** + * Use the endpoint/bucket URL style instead of bucket.endpoint + * @type {boolean} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3ForcePathStyle?: boolean; + /** + * Use named KMS key + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3KmsKey?: string; + /** + * AWS region + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3Region?: string; + /** + * Use AES256 to encrypt bucket contents + * @type {boolean} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsS3ServerSideEncryption?: boolean; + /** + * AWS secret access key + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsSecretAccessKey?: string; + /** + * AWS session token + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + awsSessionToken?: string; + /** + * Azure account key + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + azureAccountKey?: string; + /** + * Azure account name + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + azureAccountName?: string; + /** + * Azure auth mode: shared, managed, or application + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + azureAuthMode?: string; + /** + * Azure blob environment + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + azureBlobEnvironment?: string; + /** + * Azure client id + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + azureClientId?: string; + /** + * Azure container name + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + azureContainerName?: string; + /** + * Azure blob storage endpoint + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + azureEndpoint?: string; + /** + * file/object prefix prepended to snapshot ID + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + filePrefix?: string; + /** + * Disable TLS, normally only for testing + * @type {boolean} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + googleDisableTls?: boolean; + /** + * GCS endpoint + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + googleEndpoint?: string; + /** + * GCS bucket + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + googleGcsBucket?: string; + /** + * Service account key in JSON format + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + googleServiceAccountKey?: string; + /** + * snapshot schedule + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + interval?: string; + /** + * max space on disk to use for snapshots + * @type {number} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + localMaxSpace?: number; + /** + * directory (local) or bucket prefix (cloud) for snapshot + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + pathPrefix?: string; + /** + * how many snapshots to keep + * @type {number} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + retain?: number; + /** + * type of storage to use for the snapshots + * @type {string} + * @memberof SystemWriteStorageRaftSnapshotAutoConfigNameRequest + */ + storageType?: SystemWriteStorageRaftSnapshotAutoConfigNameRequestStorageTypeEnum; +} + +/** + * @export + * @enum {string} + */ +export enum SystemWriteStorageRaftSnapshotAutoConfigNameRequestStorageTypeEnum { + LOCAL = 'local', + AZURE_BLOB = 'azure-blob', + AWS_S3 = 'aws-s3', + GOOGLE_GCS = 'google-gcs', +} + +/** + * Check if a given object implements the SystemWriteStorageRaftSnapshotAutoConfigNameRequest interface. + */ +export function instanceOfSystemWriteStorageRaftSnapshotAutoConfigNameRequest( + value: object +): value is SystemWriteStorageRaftSnapshotAutoConfigNameRequest { + return true; +} + +export function SystemWriteStorageRaftSnapshotAutoConfigNameRequestFromJSON( + json: any +): SystemWriteStorageRaftSnapshotAutoConfigNameRequest { + return SystemWriteStorageRaftSnapshotAutoConfigNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteStorageRaftSnapshotAutoConfigNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteStorageRaftSnapshotAutoConfigNameRequest { + if (json == null) { + return json; + } + return { + awsAccessKeyId: json['aws_access_key_id'] == null ? undefined : json['aws_access_key_id'], + awsS3Bucket: json['aws_s3_bucket'] == null ? undefined : json['aws_s3_bucket'], + awsS3DisableTls: json['aws_s3_disable_tls'] == null ? undefined : json['aws_s3_disable_tls'], + awsS3EnableKms: json['aws_s3_enable_kms'] == null ? undefined : json['aws_s3_enable_kms'], + awsS3Endpoint: json['aws_s3_endpoint'] == null ? undefined : json['aws_s3_endpoint'], + awsS3ForcePathStyle: + json['aws_s3_force_path_style'] == null ? undefined : json['aws_s3_force_path_style'], + awsS3KmsKey: json['aws_s3_kms_key'] == null ? undefined : json['aws_s3_kms_key'], + awsS3Region: json['aws_s3_region'] == null ? undefined : json['aws_s3_region'], + awsS3ServerSideEncryption: + json['aws_s3_server_side_encryption'] == null ? undefined : json['aws_s3_server_side_encryption'], + awsSecretAccessKey: json['aws_secret_access_key'] == null ? undefined : json['aws_secret_access_key'], + awsSessionToken: json['aws_session_token'] == null ? undefined : json['aws_session_token'], + azureAccountKey: json['azure_account_key'] == null ? undefined : json['azure_account_key'], + azureAccountName: json['azure_account_name'] == null ? undefined : json['azure_account_name'], + azureAuthMode: json['azure_auth_mode'] == null ? undefined : json['azure_auth_mode'], + azureBlobEnvironment: json['azure_blob_environment'] == null ? undefined : json['azure_blob_environment'], + azureClientId: json['azure_client_id'] == null ? undefined : json['azure_client_id'], + azureContainerName: json['azure_container_name'] == null ? undefined : json['azure_container_name'], + azureEndpoint: json['azure_endpoint'] == null ? undefined : json['azure_endpoint'], + filePrefix: json['file_prefix'] == null ? undefined : json['file_prefix'], + googleDisableTls: json['google_disable_tls'] == null ? undefined : json['google_disable_tls'], + googleEndpoint: json['google_endpoint'] == null ? undefined : json['google_endpoint'], + googleGcsBucket: json['google_gcs_bucket'] == null ? undefined : json['google_gcs_bucket'], + googleServiceAccountKey: + json['google_service_account_key'] == null ? undefined : json['google_service_account_key'], + interval: json['interval'] == null ? undefined : json['interval'], + localMaxSpace: json['local_max_space'] == null ? undefined : json['local_max_space'], + pathPrefix: json['path_prefix'] == null ? undefined : json['path_prefix'], + retain: json['retain'] == null ? undefined : json['retain'], + storageType: json['storage_type'] == null ? undefined : json['storage_type'], + }; +} + +export function SystemWriteStorageRaftSnapshotAutoConfigNameRequestToJSON( + json: any +): SystemWriteStorageRaftSnapshotAutoConfigNameRequest { + return SystemWriteStorageRaftSnapshotAutoConfigNameRequestToJSONTyped(json, false); +} + +export function SystemWriteStorageRaftSnapshotAutoConfigNameRequestToJSONTyped( + value?: SystemWriteStorageRaftSnapshotAutoConfigNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + aws_access_key_id: value['awsAccessKeyId'], + aws_s3_bucket: value['awsS3Bucket'], + aws_s3_disable_tls: value['awsS3DisableTls'], + aws_s3_enable_kms: value['awsS3EnableKms'], + aws_s3_endpoint: value['awsS3Endpoint'], + aws_s3_force_path_style: value['awsS3ForcePathStyle'], + aws_s3_kms_key: value['awsS3KmsKey'], + aws_s3_region: value['awsS3Region'], + aws_s3_server_side_encryption: value['awsS3ServerSideEncryption'], + aws_secret_access_key: value['awsSecretAccessKey'], + aws_session_token: value['awsSessionToken'], + azure_account_key: value['azureAccountKey'], + azure_account_name: value['azureAccountName'], + azure_auth_mode: value['azureAuthMode'], + azure_blob_environment: value['azureBlobEnvironment'], + azure_client_id: value['azureClientId'], + azure_container_name: value['azureContainerName'], + azure_endpoint: value['azureEndpoint'], + file_prefix: value['filePrefix'], + google_disable_tls: value['googleDisableTls'], + google_endpoint: value['googleEndpoint'], + google_gcs_bucket: value['googleGcsBucket'], + google_service_account_key: value['googleServiceAccountKey'], + interval: value['interval'], + local_max_space: value['localMaxSpace'], + path_prefix: value['pathPrefix'], + retain: value['retain'], + storage_type: value['storageType'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsAwsSmNameRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsAwsSmNameRequest.ts new file mode 100644 index 0000000000..de0ef0011b --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsAwsSmNameRequest.ts @@ -0,0 +1,179 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsAwsSmNameRequest + */ +export interface SystemWriteSyncDestinationsAwsSmNameRequest { + /** + * AWS access key ID to access the secrets manager. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + accessKeyId?: string; + /** + * Sets which IPv4 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + allowedIpv4Addresses?: Array; + /** + * Sets which IPv6 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + allowedIpv6Addresses?: Array; + /** + * Sets which port numbers Vault is allowed to connect through for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + allowedPorts?: Array; + /** + * Custom tags to set on the secret managed at the destination. Custom tags are merged with system tags. + * @type {object} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + customTags?: object; + /** + * Allows all IP addresses and ports to be connected to for syncing secrets. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + disableStrictNetworking?: boolean; + /** + * Unique string used as a condition for extra security when assuming the AWS IAM role. Optional. Ignored if the role ARN is not set. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + externalId?: string; + /** + * Determines what level of information is synced as a distinct resource at the destination. Supports `secret-path` and `secret-key`. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + granularity?: string; + /** + * Asynchronously unsyncs all associated secrets with the destination then deletes the destination config. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + purge?: boolean; + /** + * AWS region where to manage secrets. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + region?: string; + /** + * AWS IAM role identifier Vault will assume when connecting to the Secrets Manager. Optional. Supports cross-account access. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + roleArn?: string; + /** + * AWS secret access key to access the secrets manager. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + secretAccessKey?: string; + /** + * Template describing how to generate external secret names. Supports a subset of the Go Template syntax. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + secretNameTemplate?: string; + /** + * List of custom tags to remove for patch requests. This field is ignored on create and update requests. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAwsSmNameRequest + */ + tagsToRemove?: Array; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsAwsSmNameRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsAwsSmNameRequest( + value: object +): value is SystemWriteSyncDestinationsAwsSmNameRequest { + return true; +} + +export function SystemWriteSyncDestinationsAwsSmNameRequestFromJSON( + json: any +): SystemWriteSyncDestinationsAwsSmNameRequest { + return SystemWriteSyncDestinationsAwsSmNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAwsSmNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsAwsSmNameRequest { + if (json == null) { + return json; + } + return { + accessKeyId: json['access_key_id'] == null ? undefined : json['access_key_id'], + allowedIpv4Addresses: json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'], + allowedIpv6Addresses: json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'], + allowedPorts: json['allowed_ports'] == null ? undefined : json['allowed_ports'], + customTags: json['custom_tags'] == null ? undefined : json['custom_tags'], + disableStrictNetworking: + json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'], + externalId: json['external_id'] == null ? undefined : json['external_id'], + granularity: json['granularity'] == null ? undefined : json['granularity'], + purge: json['purge'] == null ? undefined : json['purge'], + region: json['region'] == null ? undefined : json['region'], + roleArn: json['role_arn'] == null ? undefined : json['role_arn'], + secretAccessKey: json['secret_access_key'] == null ? undefined : json['secret_access_key'], + secretNameTemplate: json['secret_name_template'] == null ? undefined : json['secret_name_template'], + tagsToRemove: json['tags_to_remove'] == null ? undefined : json['tags_to_remove'], + }; +} + +export function SystemWriteSyncDestinationsAwsSmNameRequestToJSON( + json: any +): SystemWriteSyncDestinationsAwsSmNameRequest { + return SystemWriteSyncDestinationsAwsSmNameRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAwsSmNameRequestToJSONTyped( + value?: SystemWriteSyncDestinationsAwsSmNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_key_id: value['accessKeyId'], + allowed_ipv4_addresses: value['allowedIpv4Addresses'], + allowed_ipv6_addresses: value['allowedIpv6Addresses'], + allowed_ports: value['allowedPorts'], + custom_tags: value['customTags'], + disable_strict_networking: value['disableStrictNetworking'], + external_id: value['externalId'], + granularity: value['granularity'], + purge: value['purge'], + region: value['region'], + role_arn: value['roleArn'], + secret_access_key: value['secretAccessKey'], + secret_name_template: value['secretNameTemplate'], + tags_to_remove: value['tagsToRemove'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsAwsSmNameResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsAwsSmNameResponse.ts new file mode 100644 index 0000000000..1a75f634ca --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsAwsSmNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsAwsSmNameResponse + */ +export interface SystemWriteSyncDestinationsAwsSmNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemWriteSyncDestinationsAwsSmNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsAwsSmNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsAwsSmNameResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsAwsSmNameResponse( + value: object +): value is SystemWriteSyncDestinationsAwsSmNameResponse { + return true; +} + +export function SystemWriteSyncDestinationsAwsSmNameResponseFromJSON( + json: any +): SystemWriteSyncDestinationsAwsSmNameResponse { + return SystemWriteSyncDestinationsAwsSmNameResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAwsSmNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsAwsSmNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemWriteSyncDestinationsAwsSmNameResponseToJSON( + json: any +): SystemWriteSyncDestinationsAwsSmNameResponse { + return SystemWriteSyncDestinationsAwsSmNameResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAwsSmNameResponseToJSONTyped( + value?: SystemWriteSyncDestinationsAwsSmNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsAzureKvNameRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsAzureKvNameRequest.ts new file mode 100644 index 0000000000..102a9f779a --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsAzureKvNameRequest.ts @@ -0,0 +1,179 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsAzureKvNameRequest + */ +export interface SystemWriteSyncDestinationsAzureKvNameRequest { + /** + * Sets which IPv4 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + allowedIpv4Addresses?: Array; + /** + * Sets which IPv6 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + allowedIpv6Addresses?: Array; + /** + * Sets which port numbers Vault is allowed to connect through for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + allowedPorts?: Array; + /** + * OAuth2 client id of an Azure app registration with access to the key vault. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + clientId?: string; + /** + * OAuth2 client secret of an Azure app registration with access to the key vault. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + clientSecret?: string; + /** + * Azure environment name. If not provided, AzurePublicCloud is used. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + cloud?: string; + /** + * Custom tags to set on the secret managed at the destination. Custom tags are merged with system tags. + * @type {object} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + customTags?: object; + /** + * Allows all IP addresses and ports to be connected to for syncing secrets. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + disableStrictNetworking?: boolean; + /** + * Determines what level of information is synced as a distinct resource at the destination. Supports `secret-path` and `secret-key`. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + granularity?: string; + /** + * URI of the Azure Key Vault to access. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + keyVaultUri?: string; + /** + * Asynchronously unsyncs all associated secrets with the destination then deletes the destination config. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + purge?: boolean; + /** + * Template describing how to generate external secret names. Supports a subset of the Go Template syntax. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + secretNameTemplate?: string; + /** + * List of custom tags to remove for patch requests. This field is ignored on create and update requests. + * @type {Array} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + tagsToRemove?: Array; + /** + * Tenant id for the Azure Active Directory. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameRequest + */ + tenantId?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsAzureKvNameRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsAzureKvNameRequest( + value: object +): value is SystemWriteSyncDestinationsAzureKvNameRequest { + return true; +} + +export function SystemWriteSyncDestinationsAzureKvNameRequestFromJSON( + json: any +): SystemWriteSyncDestinationsAzureKvNameRequest { + return SystemWriteSyncDestinationsAzureKvNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAzureKvNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsAzureKvNameRequest { + if (json == null) { + return json; + } + return { + allowedIpv4Addresses: json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'], + allowedIpv6Addresses: json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'], + allowedPorts: json['allowed_ports'] == null ? undefined : json['allowed_ports'], + clientId: json['client_id'] == null ? undefined : json['client_id'], + clientSecret: json['client_secret'] == null ? undefined : json['client_secret'], + cloud: json['cloud'] == null ? undefined : json['cloud'], + customTags: json['custom_tags'] == null ? undefined : json['custom_tags'], + disableStrictNetworking: + json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'], + granularity: json['granularity'] == null ? undefined : json['granularity'], + keyVaultUri: json['key_vault_uri'] == null ? undefined : json['key_vault_uri'], + purge: json['purge'] == null ? undefined : json['purge'], + secretNameTemplate: json['secret_name_template'] == null ? undefined : json['secret_name_template'], + tagsToRemove: json['tags_to_remove'] == null ? undefined : json['tags_to_remove'], + tenantId: json['tenant_id'] == null ? undefined : json['tenant_id'], + }; +} + +export function SystemWriteSyncDestinationsAzureKvNameRequestToJSON( + json: any +): SystemWriteSyncDestinationsAzureKvNameRequest { + return SystemWriteSyncDestinationsAzureKvNameRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAzureKvNameRequestToJSONTyped( + value?: SystemWriteSyncDestinationsAzureKvNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_ipv4_addresses: value['allowedIpv4Addresses'], + allowed_ipv6_addresses: value['allowedIpv6Addresses'], + allowed_ports: value['allowedPorts'], + client_id: value['clientId'], + client_secret: value['clientSecret'], + cloud: value['cloud'], + custom_tags: value['customTags'], + disable_strict_networking: value['disableStrictNetworking'], + granularity: value['granularity'], + key_vault_uri: value['keyVaultUri'], + purge: value['purge'], + secret_name_template: value['secretNameTemplate'], + tags_to_remove: value['tagsToRemove'], + tenant_id: value['tenantId'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsAzureKvNameResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsAzureKvNameResponse.ts new file mode 100644 index 0000000000..79288add83 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsAzureKvNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsAzureKvNameResponse + */ +export interface SystemWriteSyncDestinationsAzureKvNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemWriteSyncDestinationsAzureKvNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsAzureKvNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsAzureKvNameResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsAzureKvNameResponse( + value: object +): value is SystemWriteSyncDestinationsAzureKvNameResponse { + return true; +} + +export function SystemWriteSyncDestinationsAzureKvNameResponseFromJSON( + json: any +): SystemWriteSyncDestinationsAzureKvNameResponse { + return SystemWriteSyncDestinationsAzureKvNameResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAzureKvNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsAzureKvNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemWriteSyncDestinationsAzureKvNameResponseToJSON( + json: any +): SystemWriteSyncDestinationsAzureKvNameResponse { + return SystemWriteSyncDestinationsAzureKvNameResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsAzureKvNameResponseToJSONTyped( + value?: SystemWriteSyncDestinationsAzureKvNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsGcpSmNameRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsGcpSmNameRequest.ts new file mode 100644 index 0000000000..9130a459ad --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsGcpSmNameRequest.ts @@ -0,0 +1,179 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsGcpSmNameRequest + */ +export interface SystemWriteSyncDestinationsGcpSmNameRequest { + /** + * Sets which IPv4 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + allowedIpv4Addresses?: Array; + /** + * Sets which IPv6 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + allowedIpv6Addresses?: Array; + /** + * Sets which port numbers Vault is allowed to connect through for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + allowedPorts?: Array; + /** + * GCP IAM service account credentials JSON string to access the secret manager + * @type {string} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + credentials?: string; + /** + * Custom tags to set on the secret managed at the destination. Custom tags are merged with system tags. + * @type {object} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + customTags?: object; + /** + * Allows all IP addresses and ports to be connected to for syncing secrets. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + disableStrictNetworking?: boolean; + /** + * The encryption key resource name when using global, automatic replications. Mutually exclusive with locational_kms_keys. + * @type {string} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + globalKmsKey?: string; + /** + * Determines what level of information is synced as a distinct resource at the destination. Supports `secret-path` and `secret-key`. + * @type {string} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + granularity?: string; + /** + * A list of pairs of replication locations and user-managed encryption keys. For each pair, the key is the location name and the value is the encryption key resource name. When specifying 'replication_locations', the encryption key resource must be located within the same region. When using multiple 'replication_locations', a key name is required for each one. + * @type {object} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + locationalKmsKeys?: object; + /** + * The target project to manage secrets in. If set, overrides the project derived from the service account JSON credentials or application default credentials. The credentials must be authorized to perform actions in the target project. + * @type {string} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + projectId?: string; + /** + * Asynchronously unsyncs all associated secrets with the destination then deletes the destination config. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + purge?: boolean; + /** + * The names of the allowed locations for secrets to be replicated into. Secrets are still globally accessible regardless of their selected locations. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + replicationLocations?: Array; + /** + * Template describing how to generate external secret names. Supports a subset of the Go Template syntax. + * @type {string} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + secretNameTemplate?: string; + /** + * List of custom tags to remove for patch requests. This field is ignored on create and update requests. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGcpSmNameRequest + */ + tagsToRemove?: Array; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsGcpSmNameRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsGcpSmNameRequest( + value: object +): value is SystemWriteSyncDestinationsGcpSmNameRequest { + return true; +} + +export function SystemWriteSyncDestinationsGcpSmNameRequestFromJSON( + json: any +): SystemWriteSyncDestinationsGcpSmNameRequest { + return SystemWriteSyncDestinationsGcpSmNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGcpSmNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsGcpSmNameRequest { + if (json == null) { + return json; + } + return { + allowedIpv4Addresses: json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'], + allowedIpv6Addresses: json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'], + allowedPorts: json['allowed_ports'] == null ? undefined : json['allowed_ports'], + credentials: json['credentials'] == null ? undefined : json['credentials'], + customTags: json['custom_tags'] == null ? undefined : json['custom_tags'], + disableStrictNetworking: + json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'], + globalKmsKey: json['global_kms_key'] == null ? undefined : json['global_kms_key'], + granularity: json['granularity'] == null ? undefined : json['granularity'], + locationalKmsKeys: json['locational_kms_keys'] == null ? undefined : json['locational_kms_keys'], + projectId: json['project_id'] == null ? undefined : json['project_id'], + purge: json['purge'] == null ? undefined : json['purge'], + replicationLocations: json['replication_locations'] == null ? undefined : json['replication_locations'], + secretNameTemplate: json['secret_name_template'] == null ? undefined : json['secret_name_template'], + tagsToRemove: json['tags_to_remove'] == null ? undefined : json['tags_to_remove'], + }; +} + +export function SystemWriteSyncDestinationsGcpSmNameRequestToJSON( + json: any +): SystemWriteSyncDestinationsGcpSmNameRequest { + return SystemWriteSyncDestinationsGcpSmNameRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGcpSmNameRequestToJSONTyped( + value?: SystemWriteSyncDestinationsGcpSmNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_ipv4_addresses: value['allowedIpv4Addresses'], + allowed_ipv6_addresses: value['allowedIpv6Addresses'], + allowed_ports: value['allowedPorts'], + credentials: value['credentials'], + custom_tags: value['customTags'], + disable_strict_networking: value['disableStrictNetworking'], + global_kms_key: value['globalKmsKey'], + granularity: value['granularity'], + locational_kms_keys: value['locationalKmsKeys'], + project_id: value['projectId'], + purge: value['purge'], + replication_locations: value['replicationLocations'], + secret_name_template: value['secretNameTemplate'], + tags_to_remove: value['tagsToRemove'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsGcpSmNameResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsGcpSmNameResponse.ts new file mode 100644 index 0000000000..6d884ce6ad --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsGcpSmNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsGcpSmNameResponse + */ +export interface SystemWriteSyncDestinationsGcpSmNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemWriteSyncDestinationsGcpSmNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsGcpSmNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsGcpSmNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsGcpSmNameResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsGcpSmNameResponse( + value: object +): value is SystemWriteSyncDestinationsGcpSmNameResponse { + return true; +} + +export function SystemWriteSyncDestinationsGcpSmNameResponseFromJSON( + json: any +): SystemWriteSyncDestinationsGcpSmNameResponse { + return SystemWriteSyncDestinationsGcpSmNameResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGcpSmNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsGcpSmNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemWriteSyncDestinationsGcpSmNameResponseToJSON( + json: any +): SystemWriteSyncDestinationsGcpSmNameResponse { + return SystemWriteSyncDestinationsGcpSmNameResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGcpSmNameResponseToJSONTyped( + value?: SystemWriteSyncDestinationsGcpSmNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsGhNameRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsGhNameRequest.ts new file mode 100644 index 0000000000..15bd98ae49 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsGhNameRequest.ts @@ -0,0 +1,205 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsGhNameRequest + */ +export interface SystemWriteSyncDestinationsGhNameRequest { + /** + * Classic or fine-grained access token to access your GitHub organization. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + accessToken?: string; + /** + * Sets which IPv4 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + allowedIpv4Addresses?: Array; + /** + * Sets which IPv6 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + allowedIpv6Addresses?: Array; + /** + * Sets which port numbers Vault is allowed to connect through for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + allowedPorts?: Array; + /** + * The user defined name of the GitHub App configuration. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + appName?: string; + /** + * Allows all IP addresses and ports to be connected to for syncing secrets. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + disableStrictNetworking?: boolean; + /** + * The name of the repository environment that the secrets in GitHub will be available for. Only valid when the 'secrets_location' field is set to 'repository'. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + environmentName?: string; + /** + * Determines what level of information is synced as a distinct resource at the destination. Supports `secret-path` and `secret-key`. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + granularity?: string; + /** + * The ID of the GitHub App installation, returned by GitHub after installing the app on your repository + * @type {number} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + installationId?: number; + /** + * The name of the GitHub organization to target which owns the repositories the secrets will be available for. Only valid when 'secrets_location' is set to 'organization'. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + organizationName?: string; + /** + * The type of repositories in a GitHub organization to grant visibility to the secrets, between 'all', 'private', or 'selected'. If using 'selected', you must also specify the 'selected_repository_names' field. Only valid when 'secrets_location' is set to 'organization'. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + organizationVisibility?: string; + /** + * Asynchronously unsyncs all associated secrets with the destination then deletes the destination config. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + purge?: boolean; + /** + * Name of the repository where to manage secrets. For example for 'git clone github.com/acme/my-repo' the name is my-repo. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + repositoryName?: string; + /** + * Organization name or username the repository belongs to. For example for 'git clone github.com/acme/my-repo' the owner is acme. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + repositoryOwner?: string; + /** + * Template describing how to generate external secret names. Supports a subset of the Go Template syntax. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + secretNameTemplate?: string; + /** + * The scope of access that the secrets in GitHub will be available for, between 'organization' or 'repository'. Repository secrets are only visible on the given repository while Organization secrets are visible to as many repositories within the organization as determined by the 'organization_visibility' field. Defaults to 'repository'. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + secretsLocation?: string; + /** + * The list of names of all repositories within a GitHub organization to grant access to the secrets when 'organization_visibility' is set to 'selected'. + * @type {Array} + * @memberof SystemWriteSyncDestinationsGhNameRequest + */ + selectedRepositoryNames?: Array; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsGhNameRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsGhNameRequest( + value: object +): value is SystemWriteSyncDestinationsGhNameRequest { + return true; +} + +export function SystemWriteSyncDestinationsGhNameRequestFromJSON( + json: any +): SystemWriteSyncDestinationsGhNameRequest { + return SystemWriteSyncDestinationsGhNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGhNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsGhNameRequest { + if (json == null) { + return json; + } + return { + accessToken: json['access_token'] == null ? undefined : json['access_token'], + allowedIpv4Addresses: json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'], + allowedIpv6Addresses: json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'], + allowedPorts: json['allowed_ports'] == null ? undefined : json['allowed_ports'], + appName: json['app_name'] == null ? undefined : json['app_name'], + disableStrictNetworking: + json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'], + environmentName: json['environment_name'] == null ? undefined : json['environment_name'], + granularity: json['granularity'] == null ? undefined : json['granularity'], + installationId: json['installation_id'] == null ? undefined : json['installation_id'], + organizationName: json['organization_name'] == null ? undefined : json['organization_name'], + organizationVisibility: + json['organization_visibility'] == null ? undefined : json['organization_visibility'], + purge: json['purge'] == null ? undefined : json['purge'], + repositoryName: json['repository_name'] == null ? undefined : json['repository_name'], + repositoryOwner: json['repository_owner'] == null ? undefined : json['repository_owner'], + secretNameTemplate: json['secret_name_template'] == null ? undefined : json['secret_name_template'], + secretsLocation: json['secrets_location'] == null ? undefined : json['secrets_location'], + selectedRepositoryNames: + json['selected_repository_names'] == null ? undefined : json['selected_repository_names'], + }; +} + +export function SystemWriteSyncDestinationsGhNameRequestToJSON( + json: any +): SystemWriteSyncDestinationsGhNameRequest { + return SystemWriteSyncDestinationsGhNameRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGhNameRequestToJSONTyped( + value?: SystemWriteSyncDestinationsGhNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_token: value['accessToken'], + allowed_ipv4_addresses: value['allowedIpv4Addresses'], + allowed_ipv6_addresses: value['allowedIpv6Addresses'], + allowed_ports: value['allowedPorts'], + app_name: value['appName'], + disable_strict_networking: value['disableStrictNetworking'], + environment_name: value['environmentName'], + granularity: value['granularity'], + installation_id: value['installationId'], + organization_name: value['organizationName'], + organization_visibility: value['organizationVisibility'], + purge: value['purge'], + repository_name: value['repositoryName'], + repository_owner: value['repositoryOwner'], + secret_name_template: value['secretNameTemplate'], + secrets_location: value['secretsLocation'], + selected_repository_names: value['selectedRepositoryNames'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsGhNameResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsGhNameResponse.ts new file mode 100644 index 0000000000..d5cad2e535 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsGhNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsGhNameResponse + */ +export interface SystemWriteSyncDestinationsGhNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemWriteSyncDestinationsGhNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsGhNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsGhNameResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsGhNameResponse( + value: object +): value is SystemWriteSyncDestinationsGhNameResponse { + return true; +} + +export function SystemWriteSyncDestinationsGhNameResponseFromJSON( + json: any +): SystemWriteSyncDestinationsGhNameResponse { + return SystemWriteSyncDestinationsGhNameResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGhNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsGhNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemWriteSyncDestinationsGhNameResponseToJSON( + json: any +): SystemWriteSyncDestinationsGhNameResponse { + return SystemWriteSyncDestinationsGhNameResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsGhNameResponseToJSONTyped( + value?: SystemWriteSyncDestinationsGhNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsInMemNameRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsInMemNameRequest.ts new file mode 100644 index 0000000000..1c782b6884 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsInMemNameRequest.ts @@ -0,0 +1,123 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsInMemNameRequest + */ +export interface SystemWriteSyncDestinationsInMemNameRequest { + /** + * Sets which IPv4 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsInMemNameRequest + */ + allowedIpv4Addresses?: Array; + /** + * Sets which IPv6 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsInMemNameRequest + */ + allowedIpv6Addresses?: Array; + /** + * Sets which port numbers Vault is allowed to connect through for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsInMemNameRequest + */ + allowedPorts?: Array; + /** + * Allows all IP addresses and ports to be connected to for syncing secrets. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsInMemNameRequest + */ + disableStrictNetworking?: boolean; + /** + * Determines what level of information is synced as a distinct resource at the destination. Supports `secret-path` and `secret-key`. + * @type {string} + * @memberof SystemWriteSyncDestinationsInMemNameRequest + */ + granularity?: string; + /** + * Asynchronously unsyncs all associated secrets with the destination then deletes the destination config. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsInMemNameRequest + */ + purge?: boolean; + /** + * Template describing how to generate external secret names. Supports a subset of the Go Template syntax. + * @type {string} + * @memberof SystemWriteSyncDestinationsInMemNameRequest + */ + secretNameTemplate?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsInMemNameRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsInMemNameRequest( + value: object +): value is SystemWriteSyncDestinationsInMemNameRequest { + return true; +} + +export function SystemWriteSyncDestinationsInMemNameRequestFromJSON( + json: any +): SystemWriteSyncDestinationsInMemNameRequest { + return SystemWriteSyncDestinationsInMemNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsInMemNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsInMemNameRequest { + if (json == null) { + return json; + } + return { + allowedIpv4Addresses: json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'], + allowedIpv6Addresses: json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'], + allowedPorts: json['allowed_ports'] == null ? undefined : json['allowed_ports'], + disableStrictNetworking: + json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'], + granularity: json['granularity'] == null ? undefined : json['granularity'], + purge: json['purge'] == null ? undefined : json['purge'], + secretNameTemplate: json['secret_name_template'] == null ? undefined : json['secret_name_template'], + }; +} + +export function SystemWriteSyncDestinationsInMemNameRequestToJSON( + json: any +): SystemWriteSyncDestinationsInMemNameRequest { + return SystemWriteSyncDestinationsInMemNameRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsInMemNameRequestToJSONTyped( + value?: SystemWriteSyncDestinationsInMemNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_ipv4_addresses: value['allowedIpv4Addresses'], + allowed_ipv6_addresses: value['allowedIpv6Addresses'], + allowed_ports: value['allowedPorts'], + disable_strict_networking: value['disableStrictNetworking'], + granularity: value['granularity'], + purge: value['purge'], + secret_name_template: value['secretNameTemplate'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsInMemNameResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsInMemNameResponse.ts new file mode 100644 index 0000000000..8eda5a55c2 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsInMemNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsInMemNameResponse + */ +export interface SystemWriteSyncDestinationsInMemNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemWriteSyncDestinationsInMemNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsInMemNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsInMemNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsInMemNameResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsInMemNameResponse( + value: object +): value is SystemWriteSyncDestinationsInMemNameResponse { + return true; +} + +export function SystemWriteSyncDestinationsInMemNameResponseFromJSON( + json: any +): SystemWriteSyncDestinationsInMemNameResponse { + return SystemWriteSyncDestinationsInMemNameResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsInMemNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsInMemNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemWriteSyncDestinationsInMemNameResponseToJSON( + json: any +): SystemWriteSyncDestinationsInMemNameResponse { + return SystemWriteSyncDestinationsInMemNameResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsInMemNameResponseToJSONTyped( + value?: SystemWriteSyncDestinationsInMemNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest.ts new file mode 100644 index 0000000000..639a70b23c --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest + */ +export interface SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest { + /** + * Mount of the secret to configure or read. + * @type {string} + * @memberof SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest + */ + mount?: string; + /** + * Name of the secret to configure or read. + * @type {string} + * @memberof SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest + */ + secretName?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest( + value: object +): value is SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest { + return true; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestFromJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest { + return SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest { + if (json == null) { + return json; + } + return { + mount: json['mount'] == null ? undefined : json['mount'], + secretName: json['secret_name'] == null ? undefined : json['secret_name'], + }; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestToJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest { + return SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequestToJSONTyped( + value?: SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mount: value['mount'], + secret_name: value['secretName'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse.ts new file mode 100644 index 0000000000..d4ddcaf29b --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse + */ +export interface SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse { + /** + * Map of Vault secrets associated with a given external destination. + * @type {object} + * @memberof SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse + */ + associatedSecrets?: object; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse( + value: object +): value is SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse { + return true; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseFromJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse { + return SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse { + if (json == null) { + return json; + } + return { + associatedSecrets: json['associated_secrets'] == null ? undefined : json['associated_secrets'], + }; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseToJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse { + return SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponseToJSONTyped( + value?: SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + associated_secrets: value['associatedSecrets'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetRequest.ts new file mode 100644 index 0000000000..7ae30648b7 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsTypeNameAssociationsSetRequest + */ +export interface SystemWriteSyncDestinationsTypeNameAssociationsSetRequest { + /** + * Mount of the secret to configure or read. + * @type {string} + * @memberof SystemWriteSyncDestinationsTypeNameAssociationsSetRequest + */ + mount?: string; + /** + * Name of the secret to configure or read. + * @type {string} + * @memberof SystemWriteSyncDestinationsTypeNameAssociationsSetRequest + */ + secretName?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsTypeNameAssociationsSetRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsTypeNameAssociationsSetRequest( + value: object +): value is SystemWriteSyncDestinationsTypeNameAssociationsSetRequest { + return true; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetRequestFromJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsSetRequest { + return SystemWriteSyncDestinationsTypeNameAssociationsSetRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsTypeNameAssociationsSetRequest { + if (json == null) { + return json; + } + return { + mount: json['mount'] == null ? undefined : json['mount'], + secretName: json['secret_name'] == null ? undefined : json['secret_name'], + }; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetRequestToJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsSetRequest { + return SystemWriteSyncDestinationsTypeNameAssociationsSetRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetRequestToJSONTyped( + value?: SystemWriteSyncDestinationsTypeNameAssociationsSetRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + mount: value['mount'], + secret_name: value['secretName'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetResponse.ts new file mode 100644 index 0000000000..9304f020e1 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsTypeNameAssociationsSetResponse.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsTypeNameAssociationsSetResponse + */ +export interface SystemWriteSyncDestinationsTypeNameAssociationsSetResponse { + /** + * Map of Vault secrets associated with a given external destination. + * @type {object} + * @memberof SystemWriteSyncDestinationsTypeNameAssociationsSetResponse + */ + associatedSecrets?: object; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsTypeNameAssociationsSetResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsTypeNameAssociationsSetResponse( + value: object +): value is SystemWriteSyncDestinationsTypeNameAssociationsSetResponse { + return true; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetResponseFromJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsSetResponse { + return SystemWriteSyncDestinationsTypeNameAssociationsSetResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsTypeNameAssociationsSetResponse { + if (json == null) { + return json; + } + return { + associatedSecrets: json['associated_secrets'] == null ? undefined : json['associated_secrets'], + }; +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetResponseToJSON( + json: any +): SystemWriteSyncDestinationsTypeNameAssociationsSetResponse { + return SystemWriteSyncDestinationsTypeNameAssociationsSetResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsTypeNameAssociationsSetResponseToJSONTyped( + value?: SystemWriteSyncDestinationsTypeNameAssociationsSetResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + associated_secrets: value['associatedSecrets'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsVercelProjectNameRequest.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsVercelProjectNameRequest.ts new file mode 100644 index 0000000000..0adbc61415 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsVercelProjectNameRequest.ts @@ -0,0 +1,156 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsVercelProjectNameRequest + */ +export interface SystemWriteSyncDestinationsVercelProjectNameRequest { + /** + * Vercel API access token with the permissions to manage environment variables. + * @type {string} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + accessToken?: string; + /** + * Sets which IPv4 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + allowedIpv4Addresses?: Array; + /** + * Sets which IPv6 addresses Vault is allowed to connect to for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + allowedIpv6Addresses?: Array; + /** + * Sets which port numbers Vault is allowed to connect through for syncing secrets. + * @type {Array} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + allowedPorts?: Array; + /** + * Deployment environments where the environment variables are available. Accepts 'development', 'preview' & 'production'. + * @type {Array} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + deploymentEnvironments?: Array; + /** + * Allows all IP addresses and ports to be connected to for syncing secrets. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + disableStrictNetworking?: boolean; + /** + * Determines what level of information is synced as a distinct resource at the destination. Supports `secret-path` and `secret-key`. + * @type {string} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + granularity?: string; + /** + * Project ID where to manage environment variables. + * @type {string} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + projectId?: string; + /** + * Asynchronously unsyncs all associated secrets with the destination then deletes the destination config. + * @type {boolean} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + purge?: boolean; + /** + * Template describing how to generate external secret names. Supports a subset of the Go Template syntax. + * @type {string} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + secretNameTemplate?: string; + /** + * Team ID the project belongs to. Optional. + * @type {string} + * @memberof SystemWriteSyncDestinationsVercelProjectNameRequest + */ + teamId?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsVercelProjectNameRequest interface. + */ +export function instanceOfSystemWriteSyncDestinationsVercelProjectNameRequest( + value: object +): value is SystemWriteSyncDestinationsVercelProjectNameRequest { + return true; +} + +export function SystemWriteSyncDestinationsVercelProjectNameRequestFromJSON( + json: any +): SystemWriteSyncDestinationsVercelProjectNameRequest { + return SystemWriteSyncDestinationsVercelProjectNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsVercelProjectNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsVercelProjectNameRequest { + if (json == null) { + return json; + } + return { + accessToken: json['access_token'] == null ? undefined : json['access_token'], + allowedIpv4Addresses: json['allowed_ipv4_addresses'] == null ? undefined : json['allowed_ipv4_addresses'], + allowedIpv6Addresses: json['allowed_ipv6_addresses'] == null ? undefined : json['allowed_ipv6_addresses'], + allowedPorts: json['allowed_ports'] == null ? undefined : json['allowed_ports'], + deploymentEnvironments: + json['deployment_environments'] == null ? undefined : json['deployment_environments'], + disableStrictNetworking: + json['disable_strict_networking'] == null ? undefined : json['disable_strict_networking'], + granularity: json['granularity'] == null ? undefined : json['granularity'], + projectId: json['project_id'] == null ? undefined : json['project_id'], + purge: json['purge'] == null ? undefined : json['purge'], + secretNameTemplate: json['secret_name_template'] == null ? undefined : json['secret_name_template'], + teamId: json['team_id'] == null ? undefined : json['team_id'], + }; +} + +export function SystemWriteSyncDestinationsVercelProjectNameRequestToJSON( + json: any +): SystemWriteSyncDestinationsVercelProjectNameRequest { + return SystemWriteSyncDestinationsVercelProjectNameRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsVercelProjectNameRequestToJSONTyped( + value?: SystemWriteSyncDestinationsVercelProjectNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + access_token: value['accessToken'], + allowed_ipv4_addresses: value['allowedIpv4Addresses'], + allowed_ipv6_addresses: value['allowedIpv6Addresses'], + allowed_ports: value['allowedPorts'], + deployment_environments: value['deploymentEnvironments'], + disable_strict_networking: value['disableStrictNetworking'], + granularity: value['granularity'], + project_id: value['projectId'], + purge: value['purge'], + secret_name_template: value['secretNameTemplate'], + team_id: value['teamId'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncDestinationsVercelProjectNameResponse.ts b/ui/api-client/src/models/SystemWriteSyncDestinationsVercelProjectNameResponse.ts new file mode 100644 index 0000000000..c5cabbff48 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncDestinationsVercelProjectNameResponse.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncDestinationsVercelProjectNameResponse + */ +export interface SystemWriteSyncDestinationsVercelProjectNameResponse { + /** + * List of key value pairs of information necessary to connect with the external system. + * @type {object} + * @memberof SystemWriteSyncDestinationsVercelProjectNameResponse + */ + connectionDetails?: object; + /** + * Name of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsVercelProjectNameResponse + */ + name?: string; + /** + * Type of this secrets store. + * @type {string} + * @memberof SystemWriteSyncDestinationsVercelProjectNameResponse + */ + type?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncDestinationsVercelProjectNameResponse interface. + */ +export function instanceOfSystemWriteSyncDestinationsVercelProjectNameResponse( + value: object +): value is SystemWriteSyncDestinationsVercelProjectNameResponse { + return true; +} + +export function SystemWriteSyncDestinationsVercelProjectNameResponseFromJSON( + json: any +): SystemWriteSyncDestinationsVercelProjectNameResponse { + return SystemWriteSyncDestinationsVercelProjectNameResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsVercelProjectNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncDestinationsVercelProjectNameResponse { + if (json == null) { + return json; + } + return { + connectionDetails: json['connection_details'] == null ? undefined : json['connection_details'], + name: json['name'] == null ? undefined : json['name'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function SystemWriteSyncDestinationsVercelProjectNameResponseToJSON( + json: any +): SystemWriteSyncDestinationsVercelProjectNameResponse { + return SystemWriteSyncDestinationsVercelProjectNameResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncDestinationsVercelProjectNameResponseToJSONTyped( + value?: SystemWriteSyncDestinationsVercelProjectNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + connection_details: value['connectionDetails'], + name: value['name'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncGithubAppsNameRequest.ts b/ui/api-client/src/models/SystemWriteSyncGithubAppsNameRequest.ts new file mode 100644 index 0000000000..d09a6478b2 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncGithubAppsNameRequest.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncGithubAppsNameRequest + */ +export interface SystemWriteSyncGithubAppsNameRequest { + /** + * Application ID of the GitHub App. + * @type {number} + * @memberof SystemWriteSyncGithubAppsNameRequest + */ + appId?: number; + /** + * Private key of the GitHub App. + * @type {string} + * @memberof SystemWriteSyncGithubAppsNameRequest + */ + privateKey?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncGithubAppsNameRequest interface. + */ +export function instanceOfSystemWriteSyncGithubAppsNameRequest( + value: object +): value is SystemWriteSyncGithubAppsNameRequest { + return true; +} + +export function SystemWriteSyncGithubAppsNameRequestFromJSON( + json: any +): SystemWriteSyncGithubAppsNameRequest { + return SystemWriteSyncGithubAppsNameRequestFromJSONTyped(json, false); +} + +export function SystemWriteSyncGithubAppsNameRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncGithubAppsNameRequest { + if (json == null) { + return json; + } + return { + appId: json['app_id'] == null ? undefined : json['app_id'], + privateKey: json['private_key'] == null ? undefined : json['private_key'], + }; +} + +export function SystemWriteSyncGithubAppsNameRequestToJSON(json: any): SystemWriteSyncGithubAppsNameRequest { + return SystemWriteSyncGithubAppsNameRequestToJSONTyped(json, false); +} + +export function SystemWriteSyncGithubAppsNameRequestToJSONTyped( + value?: SystemWriteSyncGithubAppsNameRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + app_id: value['appId'], + private_key: value['privateKey'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteSyncGithubAppsNameResponse.ts b/ui/api-client/src/models/SystemWriteSyncGithubAppsNameResponse.ts new file mode 100644 index 0000000000..0cd5a31f7a --- /dev/null +++ b/ui/api-client/src/models/SystemWriteSyncGithubAppsNameResponse.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteSyncGithubAppsNameResponse + */ +export interface SystemWriteSyncGithubAppsNameResponse { + /** + * Application ID of the GitHub App. + * @type {number} + * @memberof SystemWriteSyncGithubAppsNameResponse + */ + appId?: number; + /** + * The name of the GitHub app. Used to identify the application when configuring the GitHub destination + * @type {string} + * @memberof SystemWriteSyncGithubAppsNameResponse + */ + name?: string; +} + +/** + * Check if a given object implements the SystemWriteSyncGithubAppsNameResponse interface. + */ +export function instanceOfSystemWriteSyncGithubAppsNameResponse( + value: object +): value is SystemWriteSyncGithubAppsNameResponse { + return true; +} + +export function SystemWriteSyncGithubAppsNameResponseFromJSON( + json: any +): SystemWriteSyncGithubAppsNameResponse { + return SystemWriteSyncGithubAppsNameResponseFromJSONTyped(json, false); +} + +export function SystemWriteSyncGithubAppsNameResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteSyncGithubAppsNameResponse { + if (json == null) { + return json; + } + return { + appId: json['app_id'] == null ? undefined : json['app_id'], + name: json['name'] == null ? undefined : json['name'], + }; +} + +export function SystemWriteSyncGithubAppsNameResponseToJSON( + json: any +): SystemWriteSyncGithubAppsNameResponse { + return SystemWriteSyncGithubAppsNameResponseToJSONTyped(json, false); +} + +export function SystemWriteSyncGithubAppsNameResponseToJSONTyped( + value?: SystemWriteSyncGithubAppsNameResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + app_id: value['appId'], + name: value['name'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteUtilizationRequest.ts b/ui/api-client/src/models/SystemWriteUtilizationRequest.ts new file mode 100644 index 0000000000..6bb44299d6 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteUtilizationRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteUtilizationRequest + */ +export interface SystemWriteUtilizationRequest { + /** + * Provides context about the conditions under which the report was generated and submitted. This message is not included in the license utilization bundle but will be included in the vault server logs. + * @type {string} + * @memberof SystemWriteUtilizationRequest + */ + message?: string; + /** + * If set to true, includes only today’s snapshot data in response, no historical snapshot data. If not set, response includes all persisted snapshot data. + * @type {boolean} + * @memberof SystemWriteUtilizationRequest + */ + todayOnly?: boolean; +} + +/** + * Check if a given object implements the SystemWriteUtilizationRequest interface. + */ +export function instanceOfSystemWriteUtilizationRequest( + value: object +): value is SystemWriteUtilizationRequest { + return true; +} + +export function SystemWriteUtilizationRequestFromJSON(json: any): SystemWriteUtilizationRequest { + return SystemWriteUtilizationRequestFromJSONTyped(json, false); +} + +export function SystemWriteUtilizationRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteUtilizationRequest { + if (json == null) { + return json; + } + return { + message: json['message'] == null ? undefined : json['message'], + todayOnly: json['today_only'] == null ? undefined : json['today_only'], + }; +} + +export function SystemWriteUtilizationRequestToJSON(json: any): SystemWriteUtilizationRequest { + return SystemWriteUtilizationRequestToJSONTyped(json, false); +} + +export function SystemWriteUtilizationRequestToJSONTyped( + value?: SystemWriteUtilizationRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + message: value['message'], + today_only: value['todayOnly'], + }; +} diff --git a/ui/api-client/src/models/SystemWriteUtilizationResponse.ts b/ui/api-client/src/models/SystemWriteUtilizationResponse.ts new file mode 100644 index 0000000000..cea4bf0b12 --- /dev/null +++ b/ui/api-client/src/models/SystemWriteUtilizationResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SystemWriteUtilizationResponse + */ +export interface SystemWriteUtilizationResponse { + /** + * JSON serialized manual license reporting encoded in base64 + * @type {string} + * @memberof SystemWriteUtilizationResponse + */ + utilizationBundle?: string; +} + +/** + * Check if a given object implements the SystemWriteUtilizationResponse interface. + */ +export function instanceOfSystemWriteUtilizationResponse( + value: object +): value is SystemWriteUtilizationResponse { + return true; +} + +export function SystemWriteUtilizationResponseFromJSON(json: any): SystemWriteUtilizationResponse { + return SystemWriteUtilizationResponseFromJSONTyped(json, false); +} + +export function SystemWriteUtilizationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): SystemWriteUtilizationResponse { + if (json == null) { + return json; + } + return { + utilizationBundle: json['utilization_bundle'] == null ? undefined : json['utilization_bundle'], + }; +} + +export function SystemWriteUtilizationResponseToJSON(json: any): SystemWriteUtilizationResponse { + return SystemWriteUtilizationResponseToJSONTyped(json, false); +} + +export function SystemWriteUtilizationResponseToJSONTyped( + value?: SystemWriteUtilizationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + utilization_bundle: value['utilizationBundle'], + }; +} diff --git a/ui/api-client/src/models/TerraformCloudConfigureRequest.ts b/ui/api-client/src/models/TerraformCloudConfigureRequest.ts new file mode 100644 index 0000000000..cee6b2423d --- /dev/null +++ b/ui/api-client/src/models/TerraformCloudConfigureRequest.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TerraformCloudConfigureRequest + */ +export interface TerraformCloudConfigureRequest { + /** + * The address to access Terraform Cloud or Enterprise. Default is "https://app.terraform.io". + * @type {string} + * @memberof TerraformCloudConfigureRequest + */ + address?: string; + /** + * The base path for the Terraform Cloud or Enterprise API. Default is "/api/v2/". + * @type {string} + * @memberof TerraformCloudConfigureRequest + */ + basePath?: string; + /** + * The token to access Terraform Cloud + * @type {string} + * @memberof TerraformCloudConfigureRequest + */ + token: string; +} + +/** + * Check if a given object implements the TerraformCloudConfigureRequest interface. + */ +export function instanceOfTerraformCloudConfigureRequest( + value: object +): value is TerraformCloudConfigureRequest { + if (!('token' in value) || value['token'] === undefined) return false; + return true; +} + +export function TerraformCloudConfigureRequestFromJSON(json: any): TerraformCloudConfigureRequest { + return TerraformCloudConfigureRequestFromJSONTyped(json, false); +} + +export function TerraformCloudConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TerraformCloudConfigureRequest { + if (json == null) { + return json; + } + return { + address: json['address'] == null ? undefined : json['address'], + basePath: json['base_path'] == null ? undefined : json['base_path'], + token: json['token'], + }; +} + +export function TerraformCloudConfigureRequestToJSON(json: any): TerraformCloudConfigureRequest { + return TerraformCloudConfigureRequestToJSONTyped(json, false); +} + +export function TerraformCloudConfigureRequestToJSONTyped( + value?: TerraformCloudConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + address: value['address'], + base_path: value['basePath'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/TerraformCloudWriteRoleRequest.ts b/ui/api-client/src/models/TerraformCloudWriteRoleRequest.ts new file mode 100644 index 0000000000..339da381f4 --- /dev/null +++ b/ui/api-client/src/models/TerraformCloudWriteRoleRequest.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TerraformCloudWriteRoleRequest + */ +export interface TerraformCloudWriteRoleRequest { + /** + * Maximum time for role. If not set or set to 0, will use system default. + * @type {string} + * @memberof TerraformCloudWriteRoleRequest + */ + maxTtl?: string; + /** + * Name of the Terraform Cloud or Enterprise organization + * @type {string} + * @memberof TerraformCloudWriteRoleRequest + */ + organization?: string; + /** + * ID of the Terraform Cloud or Enterprise team under organization (e.g., settings/teams/team-xxxxxxxxxxxxx) + * @type {string} + * @memberof TerraformCloudWriteRoleRequest + */ + teamId?: string; + /** + * Default lease for generated credentials. If not set or set to 0, will use system default. + * @type {string} + * @memberof TerraformCloudWriteRoleRequest + */ + ttl?: string; + /** + * ID of the Terraform Cloud or Enterprise user (e.g., user-xxxxxxxxxxxxxxxx) + * @type {string} + * @memberof TerraformCloudWriteRoleRequest + */ + userId?: string; +} + +/** + * Check if a given object implements the TerraformCloudWriteRoleRequest interface. + */ +export function instanceOfTerraformCloudWriteRoleRequest( + value: object +): value is TerraformCloudWriteRoleRequest { + return true; +} + +export function TerraformCloudWriteRoleRequestFromJSON(json: any): TerraformCloudWriteRoleRequest { + return TerraformCloudWriteRoleRequestFromJSONTyped(json, false); +} + +export function TerraformCloudWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TerraformCloudWriteRoleRequest { + if (json == null) { + return json; + } + return { + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + organization: json['organization'] == null ? undefined : json['organization'], + teamId: json['team_id'] == null ? undefined : json['team_id'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + userId: json['user_id'] == null ? undefined : json['user_id'], + }; +} + +export function TerraformCloudWriteRoleRequestToJSON(json: any): TerraformCloudWriteRoleRequest { + return TerraformCloudWriteRoleRequestToJSONTyped(json, false); +} + +export function TerraformCloudWriteRoleRequestToJSONTyped( + value?: TerraformCloudWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + max_ttl: value['maxTtl'], + organization: value['organization'], + team_id: value['teamId'], + ttl: value['ttl'], + user_id: value['userId'], + }; +} diff --git a/ui/api-client/src/models/TokenCreateAgainstRoleRequest.ts b/ui/api-client/src/models/TokenCreateAgainstRoleRequest.ts new file mode 100644 index 0000000000..4552dfb946 --- /dev/null +++ b/ui/api-client/src/models/TokenCreateAgainstRoleRequest.ts @@ -0,0 +1,175 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenCreateAgainstRoleRequest + */ +export interface TokenCreateAgainstRoleRequest { + /** + * Name to associate with this token + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + */ + displayName?: string; + /** + * Name of the entity alias to associate with this token + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + */ + entityAlias?: string; + /** + * Explicit Max TTL of this token + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + */ + explicitMaxTtl?: string; + /** + * Value for the token + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + */ + id?: string; + /** + * Use 'ttl' instead + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + * @deprecated + */ + lease?: string; + /** + * Arbitrary key=value metadata to associate with the token + * @type {object} + * @memberof TokenCreateAgainstRoleRequest + */ + meta?: object; + /** + * Do not include default policy for this token + * @type {boolean} + * @memberof TokenCreateAgainstRoleRequest + */ + noDefaultPolicy?: boolean; + /** + * Create the token with no parent + * @type {boolean} + * @memberof TokenCreateAgainstRoleRequest + */ + noParent?: boolean; + /** + * Max number of uses for this token + * @type {number} + * @memberof TokenCreateAgainstRoleRequest + */ + numUses?: number; + /** + * Renew period + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + */ + period?: string; + /** + * List of policies for the token + * @type {Array} + * @memberof TokenCreateAgainstRoleRequest + */ + policies?: Array; + /** + * Allow token to be renewed past its initial TTL up to system/mount maximum TTL + * @type {boolean} + * @memberof TokenCreateAgainstRoleRequest + */ + renewable?: boolean; + /** + * Time to live for this token + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + */ + ttl?: string; + /** + * Token type + * @type {string} + * @memberof TokenCreateAgainstRoleRequest + */ + type?: string; +} + +/** + * Check if a given object implements the TokenCreateAgainstRoleRequest interface. + */ +export function instanceOfTokenCreateAgainstRoleRequest( + value: object +): value is TokenCreateAgainstRoleRequest { + return true; +} + +export function TokenCreateAgainstRoleRequestFromJSON(json: any): TokenCreateAgainstRoleRequest { + return TokenCreateAgainstRoleRequestFromJSONTyped(json, false); +} + +export function TokenCreateAgainstRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenCreateAgainstRoleRequest { + if (json == null) { + return json; + } + return { + displayName: json['display_name'] == null ? undefined : json['display_name'], + entityAlias: json['entity_alias'] == null ? undefined : json['entity_alias'], + explicitMaxTtl: json['explicit_max_ttl'] == null ? undefined : json['explicit_max_ttl'], + id: json['id'] == null ? undefined : json['id'], + lease: json['lease'] == null ? undefined : json['lease'], + meta: json['meta'] == null ? undefined : json['meta'], + noDefaultPolicy: json['no_default_policy'] == null ? undefined : json['no_default_policy'], + noParent: json['no_parent'] == null ? undefined : json['no_parent'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + renewable: json['renewable'] == null ? undefined : json['renewable'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function TokenCreateAgainstRoleRequestToJSON(json: any): TokenCreateAgainstRoleRequest { + return TokenCreateAgainstRoleRequestToJSONTyped(json, false); +} + +export function TokenCreateAgainstRoleRequestToJSONTyped( + value?: TokenCreateAgainstRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + display_name: value['displayName'], + entity_alias: value['entityAlias'], + explicit_max_ttl: value['explicitMaxTtl'], + id: value['id'], + lease: value['lease'], + meta: value['meta'], + no_default_policy: value['noDefaultPolicy'], + no_parent: value['noParent'], + num_uses: value['numUses'], + period: value['period'], + policies: value['policies'], + renewable: value['renewable'], + ttl: value['ttl'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/TokenCreateOrphanRequest.ts b/ui/api-client/src/models/TokenCreateOrphanRequest.ts new file mode 100644 index 0000000000..c9a40bdf8c --- /dev/null +++ b/ui/api-client/src/models/TokenCreateOrphanRequest.ts @@ -0,0 +1,173 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenCreateOrphanRequest + */ +export interface TokenCreateOrphanRequest { + /** + * Name to associate with this token + * @type {string} + * @memberof TokenCreateOrphanRequest + */ + displayName?: string; + /** + * Name of the entity alias to associate with this token + * @type {string} + * @memberof TokenCreateOrphanRequest + */ + entityAlias?: string; + /** + * Explicit Max TTL of this token + * @type {string} + * @memberof TokenCreateOrphanRequest + */ + explicitMaxTtl?: string; + /** + * Value for the token + * @type {string} + * @memberof TokenCreateOrphanRequest + */ + id?: string; + /** + * Use 'ttl' instead + * @type {string} + * @memberof TokenCreateOrphanRequest + * @deprecated + */ + lease?: string; + /** + * Arbitrary key=value metadata to associate with the token + * @type {object} + * @memberof TokenCreateOrphanRequest + */ + meta?: object; + /** + * Do not include default policy for this token + * @type {boolean} + * @memberof TokenCreateOrphanRequest + */ + noDefaultPolicy?: boolean; + /** + * Create the token with no parent + * @type {boolean} + * @memberof TokenCreateOrphanRequest + */ + noParent?: boolean; + /** + * Max number of uses for this token + * @type {number} + * @memberof TokenCreateOrphanRequest + */ + numUses?: number; + /** + * Renew period + * @type {string} + * @memberof TokenCreateOrphanRequest + */ + period?: string; + /** + * List of policies for the token + * @type {Array} + * @memberof TokenCreateOrphanRequest + */ + policies?: Array; + /** + * Allow token to be renewed past its initial TTL up to system/mount maximum TTL + * @type {boolean} + * @memberof TokenCreateOrphanRequest + */ + renewable?: boolean; + /** + * Time to live for this token + * @type {string} + * @memberof TokenCreateOrphanRequest + */ + ttl?: string; + /** + * Token type + * @type {string} + * @memberof TokenCreateOrphanRequest + */ + type?: string; +} + +/** + * Check if a given object implements the TokenCreateOrphanRequest interface. + */ +export function instanceOfTokenCreateOrphanRequest(value: object): value is TokenCreateOrphanRequest { + return true; +} + +export function TokenCreateOrphanRequestFromJSON(json: any): TokenCreateOrphanRequest { + return TokenCreateOrphanRequestFromJSONTyped(json, false); +} + +export function TokenCreateOrphanRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenCreateOrphanRequest { + if (json == null) { + return json; + } + return { + displayName: json['display_name'] == null ? undefined : json['display_name'], + entityAlias: json['entity_alias'] == null ? undefined : json['entity_alias'], + explicitMaxTtl: json['explicit_max_ttl'] == null ? undefined : json['explicit_max_ttl'], + id: json['id'] == null ? undefined : json['id'], + lease: json['lease'] == null ? undefined : json['lease'], + meta: json['meta'] == null ? undefined : json['meta'], + noDefaultPolicy: json['no_default_policy'] == null ? undefined : json['no_default_policy'], + noParent: json['no_parent'] == null ? undefined : json['no_parent'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + renewable: json['renewable'] == null ? undefined : json['renewable'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function TokenCreateOrphanRequestToJSON(json: any): TokenCreateOrphanRequest { + return TokenCreateOrphanRequestToJSONTyped(json, false); +} + +export function TokenCreateOrphanRequestToJSONTyped( + value?: TokenCreateOrphanRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + display_name: value['displayName'], + entity_alias: value['entityAlias'], + explicit_max_ttl: value['explicitMaxTtl'], + id: value['id'], + lease: value['lease'], + meta: value['meta'], + no_default_policy: value['noDefaultPolicy'], + no_parent: value['noParent'], + num_uses: value['numUses'], + period: value['period'], + policies: value['policies'], + renewable: value['renewable'], + ttl: value['ttl'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/TokenCreateRequest.ts b/ui/api-client/src/models/TokenCreateRequest.ts new file mode 100644 index 0000000000..1b7fda270c --- /dev/null +++ b/ui/api-client/src/models/TokenCreateRequest.ts @@ -0,0 +1,170 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenCreateRequest + */ +export interface TokenCreateRequest { + /** + * Name to associate with this token + * @type {string} + * @memberof TokenCreateRequest + */ + displayName?: string; + /** + * Name of the entity alias to associate with this token + * @type {string} + * @memberof TokenCreateRequest + */ + entityAlias?: string; + /** + * Explicit Max TTL of this token + * @type {string} + * @memberof TokenCreateRequest + */ + explicitMaxTtl?: string; + /** + * Value for the token + * @type {string} + * @memberof TokenCreateRequest + */ + id?: string; + /** + * Use 'ttl' instead + * @type {string} + * @memberof TokenCreateRequest + * @deprecated + */ + lease?: string; + /** + * Arbitrary key=value metadata to associate with the token + * @type {object} + * @memberof TokenCreateRequest + */ + meta?: object; + /** + * Do not include default policy for this token + * @type {boolean} + * @memberof TokenCreateRequest + */ + noDefaultPolicy?: boolean; + /** + * Create the token with no parent + * @type {boolean} + * @memberof TokenCreateRequest + */ + noParent?: boolean; + /** + * Max number of uses for this token + * @type {number} + * @memberof TokenCreateRequest + */ + numUses?: number; + /** + * Renew period + * @type {string} + * @memberof TokenCreateRequest + */ + period?: string; + /** + * List of policies for the token + * @type {Array} + * @memberof TokenCreateRequest + */ + policies?: Array; + /** + * Allow token to be renewed past its initial TTL up to system/mount maximum TTL + * @type {boolean} + * @memberof TokenCreateRequest + */ + renewable?: boolean; + /** + * Time to live for this token + * @type {string} + * @memberof TokenCreateRequest + */ + ttl?: string; + /** + * Token type + * @type {string} + * @memberof TokenCreateRequest + */ + type?: string; +} + +/** + * Check if a given object implements the TokenCreateRequest interface. + */ +export function instanceOfTokenCreateRequest(value: object): value is TokenCreateRequest { + return true; +} + +export function TokenCreateRequestFromJSON(json: any): TokenCreateRequest { + return TokenCreateRequestFromJSONTyped(json, false); +} + +export function TokenCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenCreateRequest { + if (json == null) { + return json; + } + return { + displayName: json['display_name'] == null ? undefined : json['display_name'], + entityAlias: json['entity_alias'] == null ? undefined : json['entity_alias'], + explicitMaxTtl: json['explicit_max_ttl'] == null ? undefined : json['explicit_max_ttl'], + id: json['id'] == null ? undefined : json['id'], + lease: json['lease'] == null ? undefined : json['lease'], + meta: json['meta'] == null ? undefined : json['meta'], + noDefaultPolicy: json['no_default_policy'] == null ? undefined : json['no_default_policy'], + noParent: json['no_parent'] == null ? undefined : json['no_parent'], + numUses: json['num_uses'] == null ? undefined : json['num_uses'], + period: json['period'] == null ? undefined : json['period'], + policies: json['policies'] == null ? undefined : json['policies'], + renewable: json['renewable'] == null ? undefined : json['renewable'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function TokenCreateRequestToJSON(json: any): TokenCreateRequest { + return TokenCreateRequestToJSONTyped(json, false); +} + +export function TokenCreateRequestToJSONTyped( + value?: TokenCreateRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + display_name: value['displayName'], + entity_alias: value['entityAlias'], + explicit_max_ttl: value['explicitMaxTtl'], + id: value['id'], + lease: value['lease'], + meta: value['meta'], + no_default_policy: value['noDefaultPolicy'], + no_parent: value['noParent'], + num_uses: value['numUses'], + period: value['period'], + policies: value['policies'], + renewable: value['renewable'], + ttl: value['ttl'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/TokenLookUpAccessorRequest.ts b/ui/api-client/src/models/TokenLookUpAccessorRequest.ts new file mode 100644 index 0000000000..3e12bbc601 --- /dev/null +++ b/ui/api-client/src/models/TokenLookUpAccessorRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenLookUpAccessorRequest + */ +export interface TokenLookUpAccessorRequest { + /** + * Accessor of the token to look up (request body) + * @type {string} + * @memberof TokenLookUpAccessorRequest + */ + accessor?: string; +} + +/** + * Check if a given object implements the TokenLookUpAccessorRequest interface. + */ +export function instanceOfTokenLookUpAccessorRequest(value: object): value is TokenLookUpAccessorRequest { + return true; +} + +export function TokenLookUpAccessorRequestFromJSON(json: any): TokenLookUpAccessorRequest { + return TokenLookUpAccessorRequestFromJSONTyped(json, false); +} + +export function TokenLookUpAccessorRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenLookUpAccessorRequest { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + }; +} + +export function TokenLookUpAccessorRequestToJSON(json: any): TokenLookUpAccessorRequest { + return TokenLookUpAccessorRequestToJSONTyped(json, false); +} + +export function TokenLookUpAccessorRequestToJSONTyped( + value?: TokenLookUpAccessorRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + }; +} diff --git a/ui/api-client/src/models/TokenLookUpRequest.ts b/ui/api-client/src/models/TokenLookUpRequest.ts new file mode 100644 index 0000000000..79ae25fa15 --- /dev/null +++ b/ui/api-client/src/models/TokenLookUpRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenLookUpRequest + */ +export interface TokenLookUpRequest { + /** + * Token to lookup + * @type {string} + * @memberof TokenLookUpRequest + */ + token?: string; +} + +/** + * Check if a given object implements the TokenLookUpRequest interface. + */ +export function instanceOfTokenLookUpRequest(value: object): value is TokenLookUpRequest { + return true; +} + +export function TokenLookUpRequestFromJSON(json: any): TokenLookUpRequest { + return TokenLookUpRequestFromJSONTyped(json, false); +} + +export function TokenLookUpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenLookUpRequest { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function TokenLookUpRequestToJSON(json: any): TokenLookUpRequest { + return TokenLookUpRequestToJSONTyped(json, false); +} + +export function TokenLookUpRequestToJSONTyped( + value?: TokenLookUpRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/TokenLookUpSelf2Request.ts b/ui/api-client/src/models/TokenLookUpSelf2Request.ts new file mode 100644 index 0000000000..a02d8cefbf --- /dev/null +++ b/ui/api-client/src/models/TokenLookUpSelf2Request.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenLookUpSelf2Request + */ +export interface TokenLookUpSelf2Request { + /** + * Token to look up (unused, does not need to be set) + * @type {string} + * @memberof TokenLookUpSelf2Request + */ + token?: string; +} + +/** + * Check if a given object implements the TokenLookUpSelf2Request interface. + */ +export function instanceOfTokenLookUpSelf2Request(value: object): value is TokenLookUpSelf2Request { + return true; +} + +export function TokenLookUpSelf2RequestFromJSON(json: any): TokenLookUpSelf2Request { + return TokenLookUpSelf2RequestFromJSONTyped(json, false); +} + +export function TokenLookUpSelf2RequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenLookUpSelf2Request { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function TokenLookUpSelf2RequestToJSON(json: any): TokenLookUpSelf2Request { + return TokenLookUpSelf2RequestToJSONTyped(json, false); +} + +export function TokenLookUpSelf2RequestToJSONTyped( + value?: TokenLookUpSelf2Request | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/TokenRenewAccessorRequest.ts b/ui/api-client/src/models/TokenRenewAccessorRequest.ts new file mode 100644 index 0000000000..91488225e1 --- /dev/null +++ b/ui/api-client/src/models/TokenRenewAccessorRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenRenewAccessorRequest + */ +export interface TokenRenewAccessorRequest { + /** + * Accessor of the token to renew (request body) + * @type {string} + * @memberof TokenRenewAccessorRequest + */ + accessor?: string; + /** + * The desired increment in seconds to the token expiration + * @type {string} + * @memberof TokenRenewAccessorRequest + */ + increment?: string; +} + +/** + * Check if a given object implements the TokenRenewAccessorRequest interface. + */ +export function instanceOfTokenRenewAccessorRequest(value: object): value is TokenRenewAccessorRequest { + return true; +} + +export function TokenRenewAccessorRequestFromJSON(json: any): TokenRenewAccessorRequest { + return TokenRenewAccessorRequestFromJSONTyped(json, false); +} + +export function TokenRenewAccessorRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenRenewAccessorRequest { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + increment: json['increment'] == null ? undefined : json['increment'], + }; +} + +export function TokenRenewAccessorRequestToJSON(json: any): TokenRenewAccessorRequest { + return TokenRenewAccessorRequestToJSONTyped(json, false); +} + +export function TokenRenewAccessorRequestToJSONTyped( + value?: TokenRenewAccessorRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + increment: value['increment'], + }; +} diff --git a/ui/api-client/src/models/TokenRenewRequest.ts b/ui/api-client/src/models/TokenRenewRequest.ts new file mode 100644 index 0000000000..952201a015 --- /dev/null +++ b/ui/api-client/src/models/TokenRenewRequest.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenRenewRequest + */ +export interface TokenRenewRequest { + /** + * The desired increment in seconds to the token expiration + * @type {string} + * @memberof TokenRenewRequest + */ + increment?: string; + /** + * Token to renew (request body) + * @type {string} + * @memberof TokenRenewRequest + */ + token?: string; +} + +/** + * Check if a given object implements the TokenRenewRequest interface. + */ +export function instanceOfTokenRenewRequest(value: object): value is TokenRenewRequest { + return true; +} + +export function TokenRenewRequestFromJSON(json: any): TokenRenewRequest { + return TokenRenewRequestFromJSONTyped(json, false); +} + +export function TokenRenewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenRenewRequest { + if (json == null) { + return json; + } + return { + increment: json['increment'] == null ? undefined : json['increment'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function TokenRenewRequestToJSON(json: any): TokenRenewRequest { + return TokenRenewRequestToJSONTyped(json, false); +} + +export function TokenRenewRequestToJSONTyped( + value?: TokenRenewRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + increment: value['increment'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/TokenRenewSelfRequest.ts b/ui/api-client/src/models/TokenRenewSelfRequest.ts new file mode 100644 index 0000000000..78fdb73719 --- /dev/null +++ b/ui/api-client/src/models/TokenRenewSelfRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenRenewSelfRequest + */ +export interface TokenRenewSelfRequest { + /** + * The desired increment in seconds to the token expiration + * @type {string} + * @memberof TokenRenewSelfRequest + */ + increment?: string; + /** + * Token to renew (unused, does not need to be set) + * @type {string} + * @memberof TokenRenewSelfRequest + */ + token?: string; +} + +/** + * Check if a given object implements the TokenRenewSelfRequest interface. + */ +export function instanceOfTokenRenewSelfRequest(value: object): value is TokenRenewSelfRequest { + return true; +} + +export function TokenRenewSelfRequestFromJSON(json: any): TokenRenewSelfRequest { + return TokenRenewSelfRequestFromJSONTyped(json, false); +} + +export function TokenRenewSelfRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenRenewSelfRequest { + if (json == null) { + return json; + } + return { + increment: json['increment'] == null ? undefined : json['increment'], + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function TokenRenewSelfRequestToJSON(json: any): TokenRenewSelfRequest { + return TokenRenewSelfRequestToJSONTyped(json, false); +} + +export function TokenRenewSelfRequestToJSONTyped( + value?: TokenRenewSelfRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + increment: value['increment'], + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/TokenRevokeAccessorRequest.ts b/ui/api-client/src/models/TokenRevokeAccessorRequest.ts new file mode 100644 index 0000000000..c27373da26 --- /dev/null +++ b/ui/api-client/src/models/TokenRevokeAccessorRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenRevokeAccessorRequest + */ +export interface TokenRevokeAccessorRequest { + /** + * Accessor of the token (request body) + * @type {string} + * @memberof TokenRevokeAccessorRequest + */ + accessor?: string; +} + +/** + * Check if a given object implements the TokenRevokeAccessorRequest interface. + */ +export function instanceOfTokenRevokeAccessorRequest(value: object): value is TokenRevokeAccessorRequest { + return true; +} + +export function TokenRevokeAccessorRequestFromJSON(json: any): TokenRevokeAccessorRequest { + return TokenRevokeAccessorRequestFromJSONTyped(json, false); +} + +export function TokenRevokeAccessorRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenRevokeAccessorRequest { + if (json == null) { + return json; + } + return { + accessor: json['accessor'] == null ? undefined : json['accessor'], + }; +} + +export function TokenRevokeAccessorRequestToJSON(json: any): TokenRevokeAccessorRequest { + return TokenRevokeAccessorRequestToJSONTyped(json, false); +} + +export function TokenRevokeAccessorRequestToJSONTyped( + value?: TokenRevokeAccessorRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + accessor: value['accessor'], + }; +} diff --git a/ui/api-client/src/models/TokenRevokeOrphanRequest.ts b/ui/api-client/src/models/TokenRevokeOrphanRequest.ts new file mode 100644 index 0000000000..802e4e3cfe --- /dev/null +++ b/ui/api-client/src/models/TokenRevokeOrphanRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenRevokeOrphanRequest + */ +export interface TokenRevokeOrphanRequest { + /** + * Token to revoke (request body) + * @type {string} + * @memberof TokenRevokeOrphanRequest + */ + token?: string; +} + +/** + * Check if a given object implements the TokenRevokeOrphanRequest interface. + */ +export function instanceOfTokenRevokeOrphanRequest(value: object): value is TokenRevokeOrphanRequest { + return true; +} + +export function TokenRevokeOrphanRequestFromJSON(json: any): TokenRevokeOrphanRequest { + return TokenRevokeOrphanRequestFromJSONTyped(json, false); +} + +export function TokenRevokeOrphanRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenRevokeOrphanRequest { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function TokenRevokeOrphanRequestToJSON(json: any): TokenRevokeOrphanRequest { + return TokenRevokeOrphanRequestToJSONTyped(json, false); +} + +export function TokenRevokeOrphanRequestToJSONTyped( + value?: TokenRevokeOrphanRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/TokenRevokeRequest.ts b/ui/api-client/src/models/TokenRevokeRequest.ts new file mode 100644 index 0000000000..80d0856a71 --- /dev/null +++ b/ui/api-client/src/models/TokenRevokeRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenRevokeRequest + */ +export interface TokenRevokeRequest { + /** + * Token to revoke (request body) + * @type {string} + * @memberof TokenRevokeRequest + */ + token?: string; +} + +/** + * Check if a given object implements the TokenRevokeRequest interface. + */ +export function instanceOfTokenRevokeRequest(value: object): value is TokenRevokeRequest { + return true; +} + +export function TokenRevokeRequestFromJSON(json: any): TokenRevokeRequest { + return TokenRevokeRequestFromJSONTyped(json, false); +} + +export function TokenRevokeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenRevokeRequest { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function TokenRevokeRequestToJSON(json: any): TokenRevokeRequest { + return TokenRevokeRequestToJSONTyped(json, false); +} + +export function TokenRevokeRequestToJSONTyped( + value?: TokenRevokeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/TokenWriteRoleRequest.ts b/ui/api-client/src/models/TokenWriteRoleRequest.ts new file mode 100644 index 0000000000..b2535946c2 --- /dev/null +++ b/ui/api-client/src/models/TokenWriteRoleRequest.ts @@ -0,0 +1,201 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TokenWriteRoleRequest + */ +export interface TokenWriteRoleRequest { + /** + * String or JSON list of allowed entity aliases. If set, specifies the entity aliases which are allowed to be used during token generation. This field supports globbing. + * @type {Array} + * @memberof TokenWriteRoleRequest + */ + allowedEntityAliases?: Array; + /** + * If set, tokens can be created with any subset of the policies in this list, rather than the normal semantics of tokens being a subset of the calling token's policies. The parameter is a comma-delimited string of policy names. + * @type {Array} + * @memberof TokenWriteRoleRequest + */ + allowedPolicies?: Array; + /** + * If set, tokens can be created with any subset of glob matched policies in this list, rather than the normal semantics of tokens being a subset of the calling token's policies. The parameter is a comma-delimited string of policy name globs. + * @type {Array} + * @memberof TokenWriteRoleRequest + */ + allowedPoliciesGlob?: Array; + /** + * Use 'token_bound_cidrs' instead. + * @type {Array} + * @memberof TokenWriteRoleRequest + * @deprecated + */ + boundCidrs?: Array; + /** + * If set, successful token creation via this role will require that no policies in the given list are requested. The parameter is a comma-delimited string of policy names. + * @type {Array} + * @memberof TokenWriteRoleRequest + */ + disallowedPolicies?: Array; + /** + * If set, successful token creation via this role will require that no requested policies glob match any of policies in this list. The parameter is a comma-delimited string of policy name globs. + * @type {Array} + * @memberof TokenWriteRoleRequest + */ + disallowedPoliciesGlob?: Array; + /** + * Use 'token_explicit_max_ttl' instead. + * @type {string} + * @memberof TokenWriteRoleRequest + * @deprecated + */ + explicitMaxTtl?: string; + /** + * If true, tokens created via this role will be orphan tokens (have no parent) + * @type {boolean} + * @memberof TokenWriteRoleRequest + */ + orphan?: boolean; + /** + * If set, tokens created via this role will contain the given suffix as a part of their path. This can be used to assist use of the 'revoke-prefix' endpoint later on. The given suffix must match the regular expression.\w[\w-.]+\w + * @type {string} + * @memberof TokenWriteRoleRequest + */ + pathSuffix?: string; + /** + * Use 'token_period' instead. + * @type {string} + * @memberof TokenWriteRoleRequest + * @deprecated + */ + period?: string; + /** + * Tokens created via this role will be renewable or not according to this value. Defaults to "true". + * @type {boolean} + * @memberof TokenWriteRoleRequest + */ + renewable?: boolean; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof TokenWriteRoleRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof TokenWriteRoleRequest + */ + tokenExplicitMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof TokenWriteRoleRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof TokenWriteRoleRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof TokenWriteRoleRequest + */ + tokenPeriod?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof TokenWriteRoleRequest + */ + tokenType?: string; +} + +/** + * Check if a given object implements the TokenWriteRoleRequest interface. + */ +export function instanceOfTokenWriteRoleRequest(value: object): value is TokenWriteRoleRequest { + return true; +} + +export function TokenWriteRoleRequestFromJSON(json: any): TokenWriteRoleRequest { + return TokenWriteRoleRequestFromJSONTyped(json, false); +} + +export function TokenWriteRoleRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TokenWriteRoleRequest { + if (json == null) { + return json; + } + return { + allowedEntityAliases: json['allowed_entity_aliases'] == null ? undefined : json['allowed_entity_aliases'], + allowedPolicies: json['allowed_policies'] == null ? undefined : json['allowed_policies'], + allowedPoliciesGlob: json['allowed_policies_glob'] == null ? undefined : json['allowed_policies_glob'], + boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'], + disallowedPolicies: json['disallowed_policies'] == null ? undefined : json['disallowed_policies'], + disallowedPoliciesGlob: + json['disallowed_policies_glob'] == null ? undefined : json['disallowed_policies_glob'], + explicitMaxTtl: json['explicit_max_ttl'] == null ? undefined : json['explicit_max_ttl'], + orphan: json['orphan'] == null ? undefined : json['orphan'], + pathSuffix: json['path_suffix'] == null ? undefined : json['path_suffix'], + period: json['period'] == null ? undefined : json['period'], + renewable: json['renewable'] == null ? undefined : json['renewable'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + }; +} + +export function TokenWriteRoleRequestToJSON(json: any): TokenWriteRoleRequest { + return TokenWriteRoleRequestToJSONTyped(json, false); +} + +export function TokenWriteRoleRequestToJSONTyped( + value?: TokenWriteRoleRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allowed_entity_aliases: value['allowedEntityAliases'], + allowed_policies: value['allowedPolicies'], + allowed_policies_glob: value['allowedPoliciesGlob'], + bound_cidrs: value['boundCidrs'], + disallowed_policies: value['disallowedPolicies'], + disallowed_policies_glob: value['disallowedPoliciesGlob'], + explicit_max_ttl: value['explicitMaxTtl'], + orphan: value['orphan'], + path_suffix: value['pathSuffix'], + period: value['period'], + renewable: value['renewable'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_type: value['tokenType'], + }; +} diff --git a/ui/api-client/src/models/TotpCreateKeyRequest.ts b/ui/api-client/src/models/TotpCreateKeyRequest.ts new file mode 100644 index 0000000000..fea12f8650 --- /dev/null +++ b/ui/api-client/src/models/TotpCreateKeyRequest.ts @@ -0,0 +1,156 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TotpCreateKeyRequest + */ +export interface TotpCreateKeyRequest { + /** + * The name of the account associated with the key. Required if generate is true. + * @type {string} + * @memberof TotpCreateKeyRequest + */ + accountName?: string; + /** + * The hashing algorithm used to generate the TOTP token. Options include SHA1, SHA256 and SHA512. + * @type {string} + * @memberof TotpCreateKeyRequest + */ + algorithm?: string; + /** + * The number of digits in the generated TOTP token. This value can either be 6 or 8. + * @type {number} + * @memberof TotpCreateKeyRequest + */ + digits?: number; + /** + * Determines if a QR code and url are returned upon generating a key. Only used if generate is true. + * @type {boolean} + * @memberof TotpCreateKeyRequest + */ + exported?: boolean; + /** + * Determines if a key should be generated by Vault or if a key is being passed from another service. + * @type {boolean} + * @memberof TotpCreateKeyRequest + */ + generate?: boolean; + /** + * The name of the key's issuing organization. Required if generate is true. + * @type {string} + * @memberof TotpCreateKeyRequest + */ + issuer?: string; + /** + * The shared master key used to generate a TOTP token. Only used if generate is false. + * @type {string} + * @memberof TotpCreateKeyRequest + */ + key?: string; + /** + * Determines the size in bytes of the generated key. Only used if generate is true. + * @type {number} + * @memberof TotpCreateKeyRequest + */ + keySize?: number; + /** + * The length of time used to generate a counter for the TOTP token calculation. + * @type {string} + * @memberof TotpCreateKeyRequest + */ + period?: string; + /** + * The pixel size of the generated square QR code. Only used if generate is true and exported is true. If this value is 0, a QR code will not be returned. + * @type {number} + * @memberof TotpCreateKeyRequest + */ + qrSize?: number; + /** + * The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1. Only used if generate is true. + * @type {number} + * @memberof TotpCreateKeyRequest + */ + skew?: number; + /** + * A TOTP url string containing all of the parameters for key setup. Only used if generate is false. + * @type {string} + * @memberof TotpCreateKeyRequest + */ + url?: string; +} + +/** + * Check if a given object implements the TotpCreateKeyRequest interface. + */ +export function instanceOfTotpCreateKeyRequest(value: object): value is TotpCreateKeyRequest { + return true; +} + +export function TotpCreateKeyRequestFromJSON(json: any): TotpCreateKeyRequest { + return TotpCreateKeyRequestFromJSONTyped(json, false); +} + +export function TotpCreateKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TotpCreateKeyRequest { + if (json == null) { + return json; + } + return { + accountName: json['account_name'] == null ? undefined : json['account_name'], + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + digits: json['digits'] == null ? undefined : json['digits'], + exported: json['exported'] == null ? undefined : json['exported'], + generate: json['generate'] == null ? undefined : json['generate'], + issuer: json['issuer'] == null ? undefined : json['issuer'], + key: json['key'] == null ? undefined : json['key'], + keySize: json['key_size'] == null ? undefined : json['key_size'], + period: json['period'] == null ? undefined : json['period'], + qrSize: json['qr_size'] == null ? undefined : json['qr_size'], + skew: json['skew'] == null ? undefined : json['skew'], + url: json['url'] == null ? undefined : json['url'], + }; +} + +export function TotpCreateKeyRequestToJSON(json: any): TotpCreateKeyRequest { + return TotpCreateKeyRequestToJSONTyped(json, false); +} + +export function TotpCreateKeyRequestToJSONTyped( + value?: TotpCreateKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + account_name: value['accountName'], + algorithm: value['algorithm'], + digits: value['digits'], + exported: value['exported'], + generate: value['generate'], + issuer: value['issuer'], + key: value['key'], + key_size: value['keySize'], + period: value['period'], + qr_size: value['qrSize'], + skew: value['skew'], + url: value['url'], + }; +} diff --git a/ui/api-client/src/models/TotpValidateCodeRequest.ts b/ui/api-client/src/models/TotpValidateCodeRequest.ts new file mode 100644 index 0000000000..e673a13341 --- /dev/null +++ b/ui/api-client/src/models/TotpValidateCodeRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TotpValidateCodeRequest + */ +export interface TotpValidateCodeRequest { + /** + * TOTP code to be validated. + * @type {string} + * @memberof TotpValidateCodeRequest + */ + code?: string; +} + +/** + * Check if a given object implements the TotpValidateCodeRequest interface. + */ +export function instanceOfTotpValidateCodeRequest(value: object): value is TotpValidateCodeRequest { + return true; +} + +export function TotpValidateCodeRequestFromJSON(json: any): TotpValidateCodeRequest { + return TotpValidateCodeRequestFromJSONTyped(json, false); +} + +export function TotpValidateCodeRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TotpValidateCodeRequest { + if (json == null) { + return json; + } + return { + code: json['code'] == null ? undefined : json['code'], + }; +} + +export function TotpValidateCodeRequestToJSON(json: any): TotpValidateCodeRequest { + return TotpValidateCodeRequestToJSONTyped(json, false); +} + +export function TotpValidateCodeRequestToJSONTyped( + value?: TotpValidateCodeRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + code: value['code'], + }; +} diff --git a/ui/api-client/src/models/TransitConfigureCacheRequest.ts b/ui/api-client/src/models/TransitConfigureCacheRequest.ts new file mode 100644 index 0000000000..ab74537ed4 --- /dev/null +++ b/ui/api-client/src/models/TransitConfigureCacheRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitConfigureCacheRequest + */ +export interface TransitConfigureCacheRequest { + /** + * Size of cache, use 0 for an unlimited cache size, defaults to 0 + * @type {number} + * @memberof TransitConfigureCacheRequest + */ + size?: number; +} + +/** + * Check if a given object implements the TransitConfigureCacheRequest interface. + */ +export function instanceOfTransitConfigureCacheRequest(value: object): value is TransitConfigureCacheRequest { + return true; +} + +export function TransitConfigureCacheRequestFromJSON(json: any): TransitConfigureCacheRequest { + return TransitConfigureCacheRequestFromJSONTyped(json, false); +} + +export function TransitConfigureCacheRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitConfigureCacheRequest { + if (json == null) { + return json; + } + return { + size: json['size'] == null ? undefined : json['size'], + }; +} + +export function TransitConfigureCacheRequestToJSON(json: any): TransitConfigureCacheRequest { + return TransitConfigureCacheRequestToJSONTyped(json, false); +} + +export function TransitConfigureCacheRequestToJSONTyped( + value?: TransitConfigureCacheRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + size: value['size'], + }; +} diff --git a/ui/api-client/src/models/TransitConfigureKeyRequest.ts b/ui/api-client/src/models/TransitConfigureKeyRequest.ts new file mode 100644 index 0000000000..f59dec1b6a --- /dev/null +++ b/ui/api-client/src/models/TransitConfigureKeyRequest.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitConfigureKeyRequest + */ +export interface TransitConfigureKeyRequest { + /** + * Enables taking a backup of the named key in plaintext format. Once set, this cannot be disabled. + * @type {boolean} + * @memberof TransitConfigureKeyRequest + */ + allowPlaintextBackup?: boolean; + /** + * Amount of time the key should live before being automatically rotated. A value of 0 disables automatic rotation for the key. + * @type {string} + * @memberof TransitConfigureKeyRequest + */ + autoRotatePeriod?: string; + /** + * Whether to allow deletion of the key + * @type {boolean} + * @memberof TransitConfigureKeyRequest + */ + deletionAllowed?: boolean; + /** + * Enables export of the key. Once set, this cannot be disabled. + * @type {boolean} + * @memberof TransitConfigureKeyRequest + */ + exportable?: boolean; + /** + * If set, the minimum version of the key allowed to be decrypted. For signing keys, the minimum version allowed to be used for verification. + * @type {number} + * @memberof TransitConfigureKeyRequest + */ + minDecryptionVersion?: number; + /** + * If set, the minimum version of the key allowed to be used for encryption; or for signing keys, to be used for signing. If set to zero, only the latest version of the key is allowed. + * @type {number} + * @memberof TransitConfigureKeyRequest + */ + minEncryptionVersion?: number; +} + +/** + * Check if a given object implements the TransitConfigureKeyRequest interface. + */ +export function instanceOfTransitConfigureKeyRequest(value: object): value is TransitConfigureKeyRequest { + return true; +} + +export function TransitConfigureKeyRequestFromJSON(json: any): TransitConfigureKeyRequest { + return TransitConfigureKeyRequestFromJSONTyped(json, false); +} + +export function TransitConfigureKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitConfigureKeyRequest { + if (json == null) { + return json; + } + return { + allowPlaintextBackup: json['allow_plaintext_backup'] == null ? undefined : json['allow_plaintext_backup'], + autoRotatePeriod: json['auto_rotate_period'] == null ? undefined : json['auto_rotate_period'], + deletionAllowed: json['deletion_allowed'] == null ? undefined : json['deletion_allowed'], + exportable: json['exportable'] == null ? undefined : json['exportable'], + minDecryptionVersion: json['min_decryption_version'] == null ? undefined : json['min_decryption_version'], + minEncryptionVersion: json['min_encryption_version'] == null ? undefined : json['min_encryption_version'], + }; +} + +export function TransitConfigureKeyRequestToJSON(json: any): TransitConfigureKeyRequest { + return TransitConfigureKeyRequestToJSONTyped(json, false); +} + +export function TransitConfigureKeyRequestToJSONTyped( + value?: TransitConfigureKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_plaintext_backup: value['allowPlaintextBackup'], + auto_rotate_period: value['autoRotatePeriod'], + deletion_allowed: value['deletionAllowed'], + exportable: value['exportable'], + min_decryption_version: value['minDecryptionVersion'], + min_encryption_version: value['minEncryptionVersion'], + }; +} diff --git a/ui/api-client/src/models/TransitConfigureKeysRequest.ts b/ui/api-client/src/models/TransitConfigureKeysRequest.ts new file mode 100644 index 0000000000..542588dcca --- /dev/null +++ b/ui/api-client/src/models/TransitConfigureKeysRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitConfigureKeysRequest + */ +export interface TransitConfigureKeysRequest { + /** + * Whether to allow automatic upserting (creation) of keys on the encrypt endpoint. + * @type {boolean} + * @memberof TransitConfigureKeysRequest + */ + disableUpsert?: boolean; +} + +/** + * Check if a given object implements the TransitConfigureKeysRequest interface. + */ +export function instanceOfTransitConfigureKeysRequest(value: object): value is TransitConfigureKeysRequest { + return true; +} + +export function TransitConfigureKeysRequestFromJSON(json: any): TransitConfigureKeysRequest { + return TransitConfigureKeysRequestFromJSONTyped(json, false); +} + +export function TransitConfigureKeysRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitConfigureKeysRequest { + if (json == null) { + return json; + } + return { + disableUpsert: json['disable_upsert'] == null ? undefined : json['disable_upsert'], + }; +} + +export function TransitConfigureKeysRequestToJSON(json: any): TransitConfigureKeysRequest { + return TransitConfigureKeysRequestToJSONTyped(json, false); +} + +export function TransitConfigureKeysRequestToJSONTyped( + value?: TransitConfigureKeysRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + disable_upsert: value['disableUpsert'], + }; +} diff --git a/ui/api-client/src/models/TransitCreateKeyRequest.ts b/ui/api-client/src/models/TransitCreateKeyRequest.ts new file mode 100644 index 0000000000..db71c36f1b --- /dev/null +++ b/ui/api-client/src/models/TransitCreateKeyRequest.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitCreateKeyRequest + */ +export interface TransitCreateKeyRequest { + /** + * Enables taking a backup of the named key in plaintext format. Once set, this cannot be disabled. + * @type {boolean} + * @memberof TransitCreateKeyRequest + */ + allowPlaintextBackup?: boolean; + /** + * Amount of time the key should live before being automatically rotated. A value of 0 (default) disables automatic rotation for the key. + * @type {string} + * @memberof TransitCreateKeyRequest + */ + autoRotatePeriod?: string; + /** + * Base64 encoded context for key derivation. When reading a key with key derivation enabled, if the key type supports public keys, this will return the public key for the given context. + * @type {string} + * @memberof TransitCreateKeyRequest + */ + context?: string; + /** + * Whether to support convergent encryption. This is only supported when using a key with key derivation enabled and will require all requests to carry both a context and 96-bit (12-byte) nonce. The given nonce will be used in place of a randomly generated nonce. As a result, when the same context and nonce are supplied, the same ciphertext is generated. It is *very important* when using this mode that you ensure that all nonces are unique for a given context. Failing to do so will severely impact the ciphertext's security. + * @type {boolean} + * @memberof TransitCreateKeyRequest + */ + convergentEncryption?: boolean; + /** + * Enables key derivation mode. This allows for per-transaction unique keys for encryption operations. + * @type {boolean} + * @memberof TransitCreateKeyRequest + */ + derived?: boolean; + /** + * Enables keys to be exportable. This allows for all the valid keys in the key ring to be exported. + * @type {boolean} + * @memberof TransitCreateKeyRequest + */ + exportable?: boolean; + /** + * The key type of the elliptic curve key to use for hybrid signature schemes. Supported types are: ecdsa-p256, ecdsa-p384, ecdsa-p521, and ed25519. + * @type {string} + * @memberof TransitCreateKeyRequest + */ + hybridKeyTypeEc?: string; + /** + * The key type of the post-quantum key to use for hybrid signature schemes. Supported types are: ML-DSA. + * @type {string} + * @memberof TransitCreateKeyRequest + */ + hybridKeyTypePqc?: string; + /** + * The key size in bytes for the algorithm. Only applies to HMAC and must be no fewer than 32 bytes and no more than 512 + * @type {number} + * @memberof TransitCreateKeyRequest + */ + keySize?: number; + /** + * The UUID of the managed key to use for this transit key + * @type {string} + * @memberof TransitCreateKeyRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use for this transit key + * @type {string} + * @memberof TransitCreateKeyRequest + */ + managedKeyName?: string; + /** + * The parameter set to use. Applies to ML-DSA and SLH-DSA key types. For ML-DSA key types, valid values are 44, 65, or 87. + * @type {string} + * @memberof TransitCreateKeyRequest + */ + parameterSet?: string; + /** + * The type of key to create. Currently, "aes128-gcm96" (symmetric), "aes256-gcm96" (symmetric), "ecdsa-p256" (asymmetric), "ecdsa-p384" (asymmetric), "ecdsa-p521" (asymmetric), "ed25519" (asymmetric), "rsa-2048" (asymmetric), "rsa-3072" (asymmetric), "rsa-4096" (asymmetric), "ml-dsa" (asymmetric) are supported. Defaults to "aes256-gcm96". + * @type {string} + * @memberof TransitCreateKeyRequest + */ + type?: string; +} + +/** + * Check if a given object implements the TransitCreateKeyRequest interface. + */ +export function instanceOfTransitCreateKeyRequest(value: object): value is TransitCreateKeyRequest { + return true; +} + +export function TransitCreateKeyRequestFromJSON(json: any): TransitCreateKeyRequest { + return TransitCreateKeyRequestFromJSONTyped(json, false); +} + +export function TransitCreateKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitCreateKeyRequest { + if (json == null) { + return json; + } + return { + allowPlaintextBackup: json['allow_plaintext_backup'] == null ? undefined : json['allow_plaintext_backup'], + autoRotatePeriod: json['auto_rotate_period'] == null ? undefined : json['auto_rotate_period'], + context: json['context'] == null ? undefined : json['context'], + convergentEncryption: json['convergent_encryption'] == null ? undefined : json['convergent_encryption'], + derived: json['derived'] == null ? undefined : json['derived'], + exportable: json['exportable'] == null ? undefined : json['exportable'], + hybridKeyTypeEc: json['hybrid_key_type_ec'] == null ? undefined : json['hybrid_key_type_ec'], + hybridKeyTypePqc: json['hybrid_key_type_pqc'] == null ? undefined : json['hybrid_key_type_pqc'], + keySize: json['key_size'] == null ? undefined : json['key_size'], + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + parameterSet: json['parameter_set'] == null ? undefined : json['parameter_set'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function TransitCreateKeyRequestToJSON(json: any): TransitCreateKeyRequest { + return TransitCreateKeyRequestToJSONTyped(json, false); +} + +export function TransitCreateKeyRequestToJSONTyped( + value?: TransitCreateKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_plaintext_backup: value['allowPlaintextBackup'], + auto_rotate_period: value['autoRotatePeriod'], + context: value['context'], + convergent_encryption: value['convergentEncryption'], + derived: value['derived'], + exportable: value['exportable'], + hybrid_key_type_ec: value['hybridKeyTypeEc'], + hybrid_key_type_pqc: value['hybridKeyTypePqc'], + key_size: value['keySize'], + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + parameter_set: value['parameterSet'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/TransitDecryptRequest.ts b/ui/api-client/src/models/TransitDecryptRequest.ts new file mode 100644 index 0000000000..7a7ec5d4e0 --- /dev/null +++ b/ui/api-client/src/models/TransitDecryptRequest.ts @@ -0,0 +1,117 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitDecryptRequest + */ +export interface TransitDecryptRequest { + /** + * When using an AEAD cipher mode, such as AES-GCM, this parameter allows passing associated data (AD/AAD) into the encryption function; this data must be passed on subsequent decryption requests but can be transited in plaintext. On successful decryption, both the ciphertext and the associated data are attested not to have been tampered with. + * @type {string} + * @memberof TransitDecryptRequest + */ + associatedData?: string; + /** + * Specifies a list of items to be decrypted in a single batch. When this parameter is set, if the parameters 'ciphertext', 'context' and 'nonce' are also set, they will be ignored. Any batch output will preserve the order of the batch input. + * @type {Array} + * @memberof TransitDecryptRequest + */ + batchInput?: Array; + /** + * The ciphertext to decrypt, provided as returned by encrypt. + * @type {string} + * @memberof TransitDecryptRequest + */ + ciphertext?: string; + /** + * Base64 encoded context for key derivation. Required if key derivation is enabled. + * @type {string} + * @memberof TransitDecryptRequest + */ + context?: string; + /** + * Base64 encoded nonce value used during encryption. Must be provided if convergent encryption is enabled for this key and the key was generated with Vault 0.6.1. Not required for keys created in 0.6.2+. + * @type {string} + * @memberof TransitDecryptRequest + */ + nonce?: string; + /** + * The padding scheme to use for decrypt. Currently only applies to RSA key types. Options are 'oaep' or 'pkcs1v15'. Defaults to 'oaep' + * @type {string} + * @memberof TransitDecryptRequest + */ + paddingScheme?: string; + /** + * Ordinarily, if a batch item fails to decrypt due to a bad input, but other batch items succeed, the HTTP response code is 400 (Bad Request). Some applications may want to treat partial failures differently. Providing the parameter returns the given response code integer instead of a 400 in this case. If all values fail HTTP 400 is still returned. + * @type {number} + * @memberof TransitDecryptRequest + */ + partialFailureResponseCode?: number; +} + +/** + * Check if a given object implements the TransitDecryptRequest interface. + */ +export function instanceOfTransitDecryptRequest(value: object): value is TransitDecryptRequest { + return true; +} + +export function TransitDecryptRequestFromJSON(json: any): TransitDecryptRequest { + return TransitDecryptRequestFromJSONTyped(json, false); +} + +export function TransitDecryptRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitDecryptRequest { + if (json == null) { + return json; + } + return { + associatedData: json['associated_data'] == null ? undefined : json['associated_data'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + ciphertext: json['ciphertext'] == null ? undefined : json['ciphertext'], + context: json['context'] == null ? undefined : json['context'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + paddingScheme: json['padding_scheme'] == null ? undefined : json['padding_scheme'], + partialFailureResponseCode: + json['partial_failure_response_code'] == null ? undefined : json['partial_failure_response_code'], + }; +} + +export function TransitDecryptRequestToJSON(json: any): TransitDecryptRequest { + return TransitDecryptRequestToJSONTyped(json, false); +} + +export function TransitDecryptRequestToJSONTyped( + value?: TransitDecryptRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + associated_data: value['associatedData'], + batch_input: value['batchInput'], + ciphertext: value['ciphertext'], + context: value['context'], + nonce: value['nonce'], + padding_scheme: value['paddingScheme'], + partial_failure_response_code: value['partialFailureResponseCode'], + }; +} diff --git a/ui/api-client/src/models/TransitEncryptRequest.ts b/ui/api-client/src/models/TransitEncryptRequest.ts new file mode 100644 index 0000000000..e416329259 --- /dev/null +++ b/ui/api-client/src/models/TransitEncryptRequest.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitEncryptRequest + */ +export interface TransitEncryptRequest { + /** + * When using an AEAD cipher mode, such as AES-GCM, this parameter allows passing associated data (AD/AAD) into the encryption function; this data must be passed on subsequent decryption requests but can be transited in plaintext. On successful decryption, both the ciphertext and the associated data are attested not to have been tampered with. + * @type {string} + * @memberof TransitEncryptRequest + */ + associatedData?: string; + /** + * Specifies a list of items to be encrypted in a single batch. When this parameter is set, if the parameters 'plaintext', 'context' and 'nonce' are also set, they will be ignored. Any batch output will preserve the order of the batch input. + * @type {Array} + * @memberof TransitEncryptRequest + */ + batchInput?: Array; + /** + * Base64 encoded context for key derivation. Required if key derivation is enabled + * @type {string} + * @memberof TransitEncryptRequest + */ + context?: string; + /** + * This parameter will only be used when a key is expected to be created. Whether to support convergent encryption. This is only supported when using a key with key derivation enabled and will require all requests to carry both a context and 96-bit (12-byte) nonce. The given nonce will be used in place of a randomly generated nonce. As a result, when the same context and nonce are supplied, the same ciphertext is generated. It is *very important* when using this mode that you ensure that all nonces are unique for a given context. Failing to do so will severely impact the ciphertext's security. + * @type {boolean} + * @memberof TransitEncryptRequest + */ + convergentEncryption?: boolean; + /** + * The version of the key to use for encryption. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitEncryptRequest + */ + keyVersion?: number; + /** + * Base64 encoded nonce value. Must be provided if convergent encryption is enabled for this key and the key was generated with Vault 0.6.1. Not required for keys created in 0.6.2+. The value must be exactly 96 bits (12 bytes) long and the user must ensure that for any given context (and thus, any given encryption key) this nonce value is **never reused**. + * @type {string} + * @memberof TransitEncryptRequest + */ + nonce?: string; + /** + * The padding scheme to use for decrypt. Currently only applies to RSA key types. Options are 'oaep' or 'pkcs1v15'. Defaults to 'oaep' + * @type {string} + * @memberof TransitEncryptRequest + */ + paddingScheme?: string; + /** + * Ordinarily, if a batch item fails to encrypt due to a bad input, but other batch items succeed, the HTTP response code is 400 (Bad Request). Some applications may want to treat partial failures differently. Providing the parameter returns the given response code integer instead of a 400 in this case. If all values fail HTTP 400 is still returned. + * @type {number} + * @memberof TransitEncryptRequest + */ + partialFailureResponseCode?: number; + /** + * Base64 encoded plaintext value to be encrypted + * @type {string} + * @memberof TransitEncryptRequest + */ + plaintext?: string; + /** + * This parameter is required when encryption key is expected to be created. When performing an upsert operation, the type of key to create. Currently, "aes128-gcm96" (symmetric) and "aes256-gcm96" (symmetric) are the only types supported. Defaults to "aes256-gcm96". + * @type {string} + * @memberof TransitEncryptRequest + */ + type?: string; +} + +/** + * Check if a given object implements the TransitEncryptRequest interface. + */ +export function instanceOfTransitEncryptRequest(value: object): value is TransitEncryptRequest { + return true; +} + +export function TransitEncryptRequestFromJSON(json: any): TransitEncryptRequest { + return TransitEncryptRequestFromJSONTyped(json, false); +} + +export function TransitEncryptRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitEncryptRequest { + if (json == null) { + return json; + } + return { + associatedData: json['associated_data'] == null ? undefined : json['associated_data'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + context: json['context'] == null ? undefined : json['context'], + convergentEncryption: json['convergent_encryption'] == null ? undefined : json['convergent_encryption'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + paddingScheme: json['padding_scheme'] == null ? undefined : json['padding_scheme'], + partialFailureResponseCode: + json['partial_failure_response_code'] == null ? undefined : json['partial_failure_response_code'], + plaintext: json['plaintext'] == null ? undefined : json['plaintext'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function TransitEncryptRequestToJSON(json: any): TransitEncryptRequest { + return TransitEncryptRequestToJSONTyped(json, false); +} + +export function TransitEncryptRequestToJSONTyped( + value?: TransitEncryptRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + associated_data: value['associatedData'], + batch_input: value['batchInput'], + context: value['context'], + convergent_encryption: value['convergentEncryption'], + key_version: value['keyVersion'], + nonce: value['nonce'], + padding_scheme: value['paddingScheme'], + partial_failure_response_code: value['partialFailureResponseCode'], + plaintext: value['plaintext'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateCmacRequest.ts b/ui/api-client/src/models/TransitGenerateCmacRequest.ts new file mode 100644 index 0000000000..aa0470ce26 --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateCmacRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateCmacRequest + */ +export interface TransitGenerateCmacRequest { + /** + * Specifies a list of items to be processed in a single batch. When this parameter is set, if the parameter 'input' is also set, it will be ignored. Any batch output will preserve the order of the batch input. + * @type {Array} + * @memberof TransitGenerateCmacRequest + */ + batchInput?: Array; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitGenerateCmacRequest + */ + input?: string; + /** + * The version of the key to use for generating the CMAC. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitGenerateCmacRequest + */ + keyVersion?: number; + /** + * MAC length to use (POST body parameter). Valid values are: + * @type {number} + * @memberof TransitGenerateCmacRequest + */ + macLength?: number; +} + +/** + * Check if a given object implements the TransitGenerateCmacRequest interface. + */ +export function instanceOfTransitGenerateCmacRequest(value: object): value is TransitGenerateCmacRequest { + return true; +} + +export function TransitGenerateCmacRequestFromJSON(json: any): TransitGenerateCmacRequest { + return TransitGenerateCmacRequestFromJSONTyped(json, false); +} + +export function TransitGenerateCmacRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateCmacRequest { + if (json == null) { + return json; + } + return { + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + input: json['input'] == null ? undefined : json['input'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + macLength: json['mac_length'] == null ? undefined : json['mac_length'], + }; +} + +export function TransitGenerateCmacRequestToJSON(json: any): TransitGenerateCmacRequest { + return TransitGenerateCmacRequestToJSONTyped(json, false); +} + +export function TransitGenerateCmacRequestToJSONTyped( + value?: TransitGenerateCmacRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + batch_input: value['batchInput'], + input: value['input'], + key_version: value['keyVersion'], + mac_length: value['macLength'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateCmacWithMacLengthRequest.ts b/ui/api-client/src/models/TransitGenerateCmacWithMacLengthRequest.ts new file mode 100644 index 0000000000..cf04038f67 --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateCmacWithMacLengthRequest.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateCmacWithMacLengthRequest + */ +export interface TransitGenerateCmacWithMacLengthRequest { + /** + * Specifies a list of items to be processed in a single batch. When this parameter is set, if the parameter 'input' is also set, it will be ignored. Any batch output will preserve the order of the batch input. + * @type {Array} + * @memberof TransitGenerateCmacWithMacLengthRequest + */ + batchInput?: Array; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitGenerateCmacWithMacLengthRequest + */ + input?: string; + /** + * The version of the key to use for generating the CMAC. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitGenerateCmacWithMacLengthRequest + */ + keyVersion?: number; + /** + * MAC length to use (POST body parameter). Valid values are: + * @type {number} + * @memberof TransitGenerateCmacWithMacLengthRequest + */ + macLength?: number; +} + +/** + * Check if a given object implements the TransitGenerateCmacWithMacLengthRequest interface. + */ +export function instanceOfTransitGenerateCmacWithMacLengthRequest( + value: object +): value is TransitGenerateCmacWithMacLengthRequest { + return true; +} + +export function TransitGenerateCmacWithMacLengthRequestFromJSON( + json: any +): TransitGenerateCmacWithMacLengthRequest { + return TransitGenerateCmacWithMacLengthRequestFromJSONTyped(json, false); +} + +export function TransitGenerateCmacWithMacLengthRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateCmacWithMacLengthRequest { + if (json == null) { + return json; + } + return { + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + input: json['input'] == null ? undefined : json['input'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + macLength: json['mac_length'] == null ? undefined : json['mac_length'], + }; +} + +export function TransitGenerateCmacWithMacLengthRequestToJSON( + json: any +): TransitGenerateCmacWithMacLengthRequest { + return TransitGenerateCmacWithMacLengthRequestToJSONTyped(json, false); +} + +export function TransitGenerateCmacWithMacLengthRequestToJSONTyped( + value?: TransitGenerateCmacWithMacLengthRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + batch_input: value['batchInput'], + input: value['input'], + key_version: value['keyVersion'], + mac_length: value['macLength'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateCsrForKeyRequest.ts b/ui/api-client/src/models/TransitGenerateCsrForKeyRequest.ts new file mode 100644 index 0000000000..86dbebcb3b --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateCsrForKeyRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateCsrForKeyRequest + */ +export interface TransitGenerateCsrForKeyRequest { + /** + * PEM encoded CSR template. The information attributes will be used as a basis for the CSR with the key in transit. If not set, an empty CSR is returned. + * @type {string} + * @memberof TransitGenerateCsrForKeyRequest + */ + csr?: string; + /** + * Optional version of key, 'latest' if not set + * @type {number} + * @memberof TransitGenerateCsrForKeyRequest + */ + version?: number; +} + +/** + * Check if a given object implements the TransitGenerateCsrForKeyRequest interface. + */ +export function instanceOfTransitGenerateCsrForKeyRequest( + value: object +): value is TransitGenerateCsrForKeyRequest { + return true; +} + +export function TransitGenerateCsrForKeyRequestFromJSON(json: any): TransitGenerateCsrForKeyRequest { + return TransitGenerateCsrForKeyRequestFromJSONTyped(json, false); +} + +export function TransitGenerateCsrForKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateCsrForKeyRequest { + if (json == null) { + return json; + } + return { + csr: json['csr'] == null ? undefined : json['csr'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function TransitGenerateCsrForKeyRequestToJSON(json: any): TransitGenerateCsrForKeyRequest { + return TransitGenerateCsrForKeyRequestToJSONTyped(json, false); +} + +export function TransitGenerateCsrForKeyRequestToJSONTyped( + value?: TransitGenerateCsrForKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + csr: value['csr'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateDataKeyRequest.ts b/ui/api-client/src/models/TransitGenerateDataKeyRequest.ts new file mode 100644 index 0000000000..ff7bda84cf --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateDataKeyRequest.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateDataKeyRequest + */ +export interface TransitGenerateDataKeyRequest { + /** + * Number of bits for the key; currently 128, 256, and 512 bits are supported. Defaults to 256. + * @type {number} + * @memberof TransitGenerateDataKeyRequest + */ + bits?: number; + /** + * Context for key derivation. Required for derived keys. + * @type {string} + * @memberof TransitGenerateDataKeyRequest + */ + context?: string; + /** + * The version of the Vault key to use for encryption of the data key. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitGenerateDataKeyRequest + */ + keyVersion?: number; + /** + * Nonce for when convergent encryption v1 is used (only in Vault 0.6.1) + * @type {string} + * @memberof TransitGenerateDataKeyRequest + */ + nonce?: string; + /** + * The padding scheme to use for decrypt. Currently only applies to RSA key types. Options are 'oaep' or 'pkcs1v15'. Defaults to 'oaep' + * @type {string} + * @memberof TransitGenerateDataKeyRequest + */ + paddingScheme?: string; +} + +/** + * Check if a given object implements the TransitGenerateDataKeyRequest interface. + */ +export function instanceOfTransitGenerateDataKeyRequest( + value: object +): value is TransitGenerateDataKeyRequest { + return true; +} + +export function TransitGenerateDataKeyRequestFromJSON(json: any): TransitGenerateDataKeyRequest { + return TransitGenerateDataKeyRequestFromJSONTyped(json, false); +} + +export function TransitGenerateDataKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateDataKeyRequest { + if (json == null) { + return json; + } + return { + bits: json['bits'] == null ? undefined : json['bits'], + context: json['context'] == null ? undefined : json['context'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + paddingScheme: json['padding_scheme'] == null ? undefined : json['padding_scheme'], + }; +} + +export function TransitGenerateDataKeyRequestToJSON(json: any): TransitGenerateDataKeyRequest { + return TransitGenerateDataKeyRequestToJSONTyped(json, false); +} + +export function TransitGenerateDataKeyRequestToJSONTyped( + value?: TransitGenerateDataKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bits: value['bits'], + context: value['context'], + key_version: value['keyVersion'], + nonce: value['nonce'], + padding_scheme: value['paddingScheme'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateHmacRequest.ts b/ui/api-client/src/models/TransitGenerateHmacRequest.ts new file mode 100644 index 0000000000..a25bd4cfc2 --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateHmacRequest.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateHmacRequest + */ +export interface TransitGenerateHmacRequest { + /** + * Algorithm to use (POST body parameter). Valid values are: * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 Defaults to "sha2-256". + * @type {string} + * @memberof TransitGenerateHmacRequest + */ + algorithm?: string; + /** + * Specifies a list of items to be processed in a single batch. When this parameter is set, if the parameter 'input' is also set, it will be ignored. Any batch output will preserve the order of the batch input. + * @type {Array} + * @memberof TransitGenerateHmacRequest + */ + batchInput?: Array; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitGenerateHmacRequest + */ + input?: string; + /** + * The version of the key to use for generating the HMAC. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitGenerateHmacRequest + */ + keyVersion?: number; +} + +/** + * Check if a given object implements the TransitGenerateHmacRequest interface. + */ +export function instanceOfTransitGenerateHmacRequest(value: object): value is TransitGenerateHmacRequest { + return true; +} + +export function TransitGenerateHmacRequestFromJSON(json: any): TransitGenerateHmacRequest { + return TransitGenerateHmacRequestFromJSONTyped(json, false); +} + +export function TransitGenerateHmacRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateHmacRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + input: json['input'] == null ? undefined : json['input'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + }; +} + +export function TransitGenerateHmacRequestToJSON(json: any): TransitGenerateHmacRequest { + return TransitGenerateHmacRequestToJSONTyped(json, false); +} + +export function TransitGenerateHmacRequestToJSONTyped( + value?: TransitGenerateHmacRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + batch_input: value['batchInput'], + input: value['input'], + key_version: value['keyVersion'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateHmacWithAlgorithmRequest.ts b/ui/api-client/src/models/TransitGenerateHmacWithAlgorithmRequest.ts new file mode 100644 index 0000000000..c3c11beb51 --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateHmacWithAlgorithmRequest.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateHmacWithAlgorithmRequest + */ +export interface TransitGenerateHmacWithAlgorithmRequest { + /** + * Algorithm to use (POST body parameter). Valid values are: * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 Defaults to "sha2-256". + * @type {string} + * @memberof TransitGenerateHmacWithAlgorithmRequest + */ + algorithm?: string; + /** + * Specifies a list of items to be processed in a single batch. When this parameter is set, if the parameter 'input' is also set, it will be ignored. Any batch output will preserve the order of the batch input. + * @type {Array} + * @memberof TransitGenerateHmacWithAlgorithmRequest + */ + batchInput?: Array; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitGenerateHmacWithAlgorithmRequest + */ + input?: string; + /** + * The version of the key to use for generating the HMAC. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitGenerateHmacWithAlgorithmRequest + */ + keyVersion?: number; +} + +/** + * Check if a given object implements the TransitGenerateHmacWithAlgorithmRequest interface. + */ +export function instanceOfTransitGenerateHmacWithAlgorithmRequest( + value: object +): value is TransitGenerateHmacWithAlgorithmRequest { + return true; +} + +export function TransitGenerateHmacWithAlgorithmRequestFromJSON( + json: any +): TransitGenerateHmacWithAlgorithmRequest { + return TransitGenerateHmacWithAlgorithmRequestFromJSONTyped(json, false); +} + +export function TransitGenerateHmacWithAlgorithmRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateHmacWithAlgorithmRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + input: json['input'] == null ? undefined : json['input'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + }; +} + +export function TransitGenerateHmacWithAlgorithmRequestToJSON( + json: any +): TransitGenerateHmacWithAlgorithmRequest { + return TransitGenerateHmacWithAlgorithmRequestToJSONTyped(json, false); +} + +export function TransitGenerateHmacWithAlgorithmRequestToJSONTyped( + value?: TransitGenerateHmacWithAlgorithmRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + batch_input: value['batchInput'], + input: value['input'], + key_version: value['keyVersion'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateRandomRequest.ts b/ui/api-client/src/models/TransitGenerateRandomRequest.ts new file mode 100644 index 0000000000..b4060181b5 --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateRandomRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateRandomRequest + */ +export interface TransitGenerateRandomRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof TransitGenerateRandomRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof TransitGenerateRandomRequest + */ + format?: string; +} + +/** + * Check if a given object implements the TransitGenerateRandomRequest interface. + */ +export function instanceOfTransitGenerateRandomRequest(value: object): value is TransitGenerateRandomRequest { + return true; +} + +export function TransitGenerateRandomRequestFromJSON(json: any): TransitGenerateRandomRequest { + return TransitGenerateRandomRequestFromJSONTyped(json, false); +} + +export function TransitGenerateRandomRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateRandomRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function TransitGenerateRandomRequestToJSON(json: any): TransitGenerateRandomRequest { + return TransitGenerateRandomRequestToJSONTyped(json, false); +} + +export function TransitGenerateRandomRequestToJSONTyped( + value?: TransitGenerateRandomRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateRandomWithBytesRequest.ts b/ui/api-client/src/models/TransitGenerateRandomWithBytesRequest.ts new file mode 100644 index 0000000000..ea65b297ee --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateRandomWithBytesRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateRandomWithBytesRequest + */ +export interface TransitGenerateRandomWithBytesRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof TransitGenerateRandomWithBytesRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof TransitGenerateRandomWithBytesRequest + */ + format?: string; +} + +/** + * Check if a given object implements the TransitGenerateRandomWithBytesRequest interface. + */ +export function instanceOfTransitGenerateRandomWithBytesRequest( + value: object +): value is TransitGenerateRandomWithBytesRequest { + return true; +} + +export function TransitGenerateRandomWithBytesRequestFromJSON( + json: any +): TransitGenerateRandomWithBytesRequest { + return TransitGenerateRandomWithBytesRequestFromJSONTyped(json, false); +} + +export function TransitGenerateRandomWithBytesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateRandomWithBytesRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function TransitGenerateRandomWithBytesRequestToJSON( + json: any +): TransitGenerateRandomWithBytesRequest { + return TransitGenerateRandomWithBytesRequestToJSONTyped(json, false); +} + +export function TransitGenerateRandomWithBytesRequestToJSONTyped( + value?: TransitGenerateRandomWithBytesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateRandomWithSourceAndBytesRequest.ts b/ui/api-client/src/models/TransitGenerateRandomWithSourceAndBytesRequest.ts new file mode 100644 index 0000000000..890900e1dd --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateRandomWithSourceAndBytesRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateRandomWithSourceAndBytesRequest + */ +export interface TransitGenerateRandomWithSourceAndBytesRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof TransitGenerateRandomWithSourceAndBytesRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof TransitGenerateRandomWithSourceAndBytesRequest + */ + format?: string; +} + +/** + * Check if a given object implements the TransitGenerateRandomWithSourceAndBytesRequest interface. + */ +export function instanceOfTransitGenerateRandomWithSourceAndBytesRequest( + value: object +): value is TransitGenerateRandomWithSourceAndBytesRequest { + return true; +} + +export function TransitGenerateRandomWithSourceAndBytesRequestFromJSON( + json: any +): TransitGenerateRandomWithSourceAndBytesRequest { + return TransitGenerateRandomWithSourceAndBytesRequestFromJSONTyped(json, false); +} + +export function TransitGenerateRandomWithSourceAndBytesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateRandomWithSourceAndBytesRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function TransitGenerateRandomWithSourceAndBytesRequestToJSON( + json: any +): TransitGenerateRandomWithSourceAndBytesRequest { + return TransitGenerateRandomWithSourceAndBytesRequestToJSONTyped(json, false); +} + +export function TransitGenerateRandomWithSourceAndBytesRequestToJSONTyped( + value?: TransitGenerateRandomWithSourceAndBytesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/TransitGenerateRandomWithSourceRequest.ts b/ui/api-client/src/models/TransitGenerateRandomWithSourceRequest.ts new file mode 100644 index 0000000000..33b5d16590 --- /dev/null +++ b/ui/api-client/src/models/TransitGenerateRandomWithSourceRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitGenerateRandomWithSourceRequest + */ +export interface TransitGenerateRandomWithSourceRequest { + /** + * The number of bytes to generate (POST body parameter). Defaults to 32 (256 bits). + * @type {number} + * @memberof TransitGenerateRandomWithSourceRequest + */ + bytes?: number; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "base64". + * @type {string} + * @memberof TransitGenerateRandomWithSourceRequest + */ + format?: string; +} + +/** + * Check if a given object implements the TransitGenerateRandomWithSourceRequest interface. + */ +export function instanceOfTransitGenerateRandomWithSourceRequest( + value: object +): value is TransitGenerateRandomWithSourceRequest { + return true; +} + +export function TransitGenerateRandomWithSourceRequestFromJSON( + json: any +): TransitGenerateRandomWithSourceRequest { + return TransitGenerateRandomWithSourceRequestFromJSONTyped(json, false); +} + +export function TransitGenerateRandomWithSourceRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitGenerateRandomWithSourceRequest { + if (json == null) { + return json; + } + return { + bytes: json['bytes'] == null ? undefined : json['bytes'], + format: json['format'] == null ? undefined : json['format'], + }; +} + +export function TransitGenerateRandomWithSourceRequestToJSON( + json: any +): TransitGenerateRandomWithSourceRequest { + return TransitGenerateRandomWithSourceRequestToJSONTyped(json, false); +} + +export function TransitGenerateRandomWithSourceRequestToJSONTyped( + value?: TransitGenerateRandomWithSourceRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bytes: value['bytes'], + format: value['format'], + }; +} diff --git a/ui/api-client/src/models/TransitHashRequest.ts b/ui/api-client/src/models/TransitHashRequest.ts new file mode 100644 index 0000000000..42116697a7 --- /dev/null +++ b/ui/api-client/src/models/TransitHashRequest.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitHashRequest + */ +export interface TransitHashRequest { + /** + * Algorithm to use (POST body parameter). Valid values are: * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 Defaults to "sha2-256". + * @type {string} + * @memberof TransitHashRequest + */ + algorithm?: string; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "hex". + * @type {string} + * @memberof TransitHashRequest + */ + format?: string; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitHashRequest + */ + input?: string; +} + +/** + * Check if a given object implements the TransitHashRequest interface. + */ +export function instanceOfTransitHashRequest(value: object): value is TransitHashRequest { + return true; +} + +export function TransitHashRequestFromJSON(json: any): TransitHashRequest { + return TransitHashRequestFromJSONTyped(json, false); +} + +export function TransitHashRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransitHashRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + format: json['format'] == null ? undefined : json['format'], + input: json['input'] == null ? undefined : json['input'], + }; +} + +export function TransitHashRequestToJSON(json: any): TransitHashRequest { + return TransitHashRequestToJSONTyped(json, false); +} + +export function TransitHashRequestToJSONTyped( + value?: TransitHashRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + format: value['format'], + input: value['input'], + }; +} diff --git a/ui/api-client/src/models/TransitHashWithAlgorithmRequest.ts b/ui/api-client/src/models/TransitHashWithAlgorithmRequest.ts new file mode 100644 index 0000000000..99ffde023f --- /dev/null +++ b/ui/api-client/src/models/TransitHashWithAlgorithmRequest.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitHashWithAlgorithmRequest + */ +export interface TransitHashWithAlgorithmRequest { + /** + * Algorithm to use (POST body parameter). Valid values are: * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 Defaults to "sha2-256". + * @type {string} + * @memberof TransitHashWithAlgorithmRequest + */ + algorithm?: string; + /** + * Encoding format to use. Can be "hex" or "base64". Defaults to "hex". + * @type {string} + * @memberof TransitHashWithAlgorithmRequest + */ + format?: string; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitHashWithAlgorithmRequest + */ + input?: string; +} + +/** + * Check if a given object implements the TransitHashWithAlgorithmRequest interface. + */ +export function instanceOfTransitHashWithAlgorithmRequest( + value: object +): value is TransitHashWithAlgorithmRequest { + return true; +} + +export function TransitHashWithAlgorithmRequestFromJSON(json: any): TransitHashWithAlgorithmRequest { + return TransitHashWithAlgorithmRequestFromJSONTyped(json, false); +} + +export function TransitHashWithAlgorithmRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitHashWithAlgorithmRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + format: json['format'] == null ? undefined : json['format'], + input: json['input'] == null ? undefined : json['input'], + }; +} + +export function TransitHashWithAlgorithmRequestToJSON(json: any): TransitHashWithAlgorithmRequest { + return TransitHashWithAlgorithmRequestToJSONTyped(json, false); +} + +export function TransitHashWithAlgorithmRequestToJSONTyped( + value?: TransitHashWithAlgorithmRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + format: value['format'], + input: value['input'], + }; +} diff --git a/ui/api-client/src/models/TransitImportKeyRequest.ts b/ui/api-client/src/models/TransitImportKeyRequest.ts new file mode 100644 index 0000000000..aaddfa8698 --- /dev/null +++ b/ui/api-client/src/models/TransitImportKeyRequest.ts @@ -0,0 +1,140 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitImportKeyRequest + */ +export interface TransitImportKeyRequest { + /** + * Enables taking a backup of the named key in plaintext format. Once set, this cannot be disabled. + * @type {boolean} + * @memberof TransitImportKeyRequest + */ + allowPlaintextBackup?: boolean; + /** + * True if the imported key may be rotated within Vault; false otherwise. + * @type {boolean} + * @memberof TransitImportKeyRequest + */ + allowRotation?: boolean; + /** + * Amount of time the key should live before being automatically rotated. A value of 0 (default) disables automatic rotation for the key. + * @type {string} + * @memberof TransitImportKeyRequest + */ + autoRotatePeriod?: string; + /** + * The base64-encoded ciphertext of the keys. The AES key should be encrypted using OAEP with the wrapping key and then concatenated with the import key, wrapped by the AES key. + * @type {string} + * @memberof TransitImportKeyRequest + */ + ciphertext?: string; + /** + * Base64 encoded context for key derivation. When reading a key with key derivation enabled, if the key type supports public keys, this will return the public key for the given context. + * @type {string} + * @memberof TransitImportKeyRequest + */ + context?: string; + /** + * Enables key derivation mode. This allows for per-transaction unique keys for encryption operations. + * @type {boolean} + * @memberof TransitImportKeyRequest + */ + derived?: boolean; + /** + * Enables keys to be exportable. This allows for all the valid keys in the key ring to be exported. + * @type {boolean} + * @memberof TransitImportKeyRequest + */ + exportable?: boolean; + /** + * The hash function used as a random oracle in the OAEP wrapping of the user-generated, ephemeral AES key. Can be one of "SHA1", "SHA224", "SHA256" (default), "SHA384", or "SHA512" + * @type {string} + * @memberof TransitImportKeyRequest + */ + hashFunction?: string; + /** + * The plaintext PEM public key to be imported. If "ciphertext" is set, this field is ignored. + * @type {string} + * @memberof TransitImportKeyRequest + */ + publicKey?: string; + /** + * The type of key being imported. Currently, "aes128-gcm96" (symmetric), "aes256-gcm96" (symmetric), "ecdsa-p256" (asymmetric), "ecdsa-p384" (asymmetric), "ecdsa-p521" (asymmetric), "ed25519" (asymmetric), "rsa-2048" (asymmetric), "rsa-3072" (asymmetric), "rsa-4096" (asymmetric), "ml-dsa-44 (asymmetric)", "ml-dsa-65 (asymmetric)", "ml-dsa-87 (asymmetric)", "hmac", "aes128-cmac", "aes256-cmac" are supported. Defaults to "aes256-gcm96". + * @type {string} + * @memberof TransitImportKeyRequest + */ + type?: string; +} + +/** + * Check if a given object implements the TransitImportKeyRequest interface. + */ +export function instanceOfTransitImportKeyRequest(value: object): value is TransitImportKeyRequest { + return true; +} + +export function TransitImportKeyRequestFromJSON(json: any): TransitImportKeyRequest { + return TransitImportKeyRequestFromJSONTyped(json, false); +} + +export function TransitImportKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitImportKeyRequest { + if (json == null) { + return json; + } + return { + allowPlaintextBackup: json['allow_plaintext_backup'] == null ? undefined : json['allow_plaintext_backup'], + allowRotation: json['allow_rotation'] == null ? undefined : json['allow_rotation'], + autoRotatePeriod: json['auto_rotate_period'] == null ? undefined : json['auto_rotate_period'], + ciphertext: json['ciphertext'] == null ? undefined : json['ciphertext'], + context: json['context'] == null ? undefined : json['context'], + derived: json['derived'] == null ? undefined : json['derived'], + exportable: json['exportable'] == null ? undefined : json['exportable'], + hashFunction: json['hash_function'] == null ? undefined : json['hash_function'], + publicKey: json['public_key'] == null ? undefined : json['public_key'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function TransitImportKeyRequestToJSON(json: any): TransitImportKeyRequest { + return TransitImportKeyRequestToJSONTyped(json, false); +} + +export function TransitImportKeyRequestToJSONTyped( + value?: TransitImportKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + allow_plaintext_backup: value['allowPlaintextBackup'], + allow_rotation: value['allowRotation'], + auto_rotate_period: value['autoRotatePeriod'], + ciphertext: value['ciphertext'], + context: value['context'], + derived: value['derived'], + exportable: value['exportable'], + hash_function: value['hashFunction'], + public_key: value['publicKey'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/TransitImportKeyVersionRequest.ts b/ui/api-client/src/models/TransitImportKeyVersionRequest.ts new file mode 100644 index 0000000000..232bb1898d --- /dev/null +++ b/ui/api-client/src/models/TransitImportKeyVersionRequest.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitImportKeyVersionRequest + */ +export interface TransitImportKeyVersionRequest { + /** + * The base64-encoded ciphertext of the keys. The AES key should be encrypted using OAEP with the wrapping key and then concatenated with the import key, wrapped by the AES key. + * @type {string} + * @memberof TransitImportKeyVersionRequest + */ + ciphertext?: string; + /** + * The hash function used as a random oracle in the OAEP wrapping of the user-generated, ephemeral AES key. Can be one of "SHA1", "SHA224", "SHA256" (default), "SHA384", or "SHA512" + * @type {string} + * @memberof TransitImportKeyVersionRequest + */ + hashFunction?: string; + /** + * The plaintext public key to be imported. If "ciphertext" is set, this field is ignored. + * @type {string} + * @memberof TransitImportKeyVersionRequest + */ + publicKey?: string; + /** + * Key version to be updated, if left empty, a new version will be created unless a private key is specified and the 'Latest' key is missing a private key. + * @type {number} + * @memberof TransitImportKeyVersionRequest + */ + version?: number; +} + +/** + * Check if a given object implements the TransitImportKeyVersionRequest interface. + */ +export function instanceOfTransitImportKeyVersionRequest( + value: object +): value is TransitImportKeyVersionRequest { + return true; +} + +export function TransitImportKeyVersionRequestFromJSON(json: any): TransitImportKeyVersionRequest { + return TransitImportKeyVersionRequestFromJSONTyped(json, false); +} + +export function TransitImportKeyVersionRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitImportKeyVersionRequest { + if (json == null) { + return json; + } + return { + ciphertext: json['ciphertext'] == null ? undefined : json['ciphertext'], + hashFunction: json['hash_function'] == null ? undefined : json['hash_function'], + publicKey: json['public_key'] == null ? undefined : json['public_key'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function TransitImportKeyVersionRequestToJSON(json: any): TransitImportKeyVersionRequest { + return TransitImportKeyVersionRequestToJSONTyped(json, false); +} + +export function TransitImportKeyVersionRequestToJSONTyped( + value?: TransitImportKeyVersionRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + ciphertext: value['ciphertext'], + hash_function: value['hashFunction'], + public_key: value['publicKey'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/TransitRestoreAndRenameKeyRequest.ts b/ui/api-client/src/models/TransitRestoreAndRenameKeyRequest.ts new file mode 100644 index 0000000000..af17541560 --- /dev/null +++ b/ui/api-client/src/models/TransitRestoreAndRenameKeyRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitRestoreAndRenameKeyRequest + */ +export interface TransitRestoreAndRenameKeyRequest { + /** + * Backed up key data to be restored. This should be the output from the 'backup/' endpoint. + * @type {string} + * @memberof TransitRestoreAndRenameKeyRequest + */ + backup?: string; + /** + * If set and a key by the given name exists, force the restore operation and override the key. + * @type {boolean} + * @memberof TransitRestoreAndRenameKeyRequest + */ + force?: boolean; +} + +/** + * Check if a given object implements the TransitRestoreAndRenameKeyRequest interface. + */ +export function instanceOfTransitRestoreAndRenameKeyRequest( + value: object +): value is TransitRestoreAndRenameKeyRequest { + return true; +} + +export function TransitRestoreAndRenameKeyRequestFromJSON(json: any): TransitRestoreAndRenameKeyRequest { + return TransitRestoreAndRenameKeyRequestFromJSONTyped(json, false); +} + +export function TransitRestoreAndRenameKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitRestoreAndRenameKeyRequest { + if (json == null) { + return json; + } + return { + backup: json['backup'] == null ? undefined : json['backup'], + force: json['force'] == null ? undefined : json['force'], + }; +} + +export function TransitRestoreAndRenameKeyRequestToJSON(json: any): TransitRestoreAndRenameKeyRequest { + return TransitRestoreAndRenameKeyRequestToJSONTyped(json, false); +} + +export function TransitRestoreAndRenameKeyRequestToJSONTyped( + value?: TransitRestoreAndRenameKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + backup: value['backup'], + force: value['force'], + }; +} diff --git a/ui/api-client/src/models/TransitRestoreKeyRequest.ts b/ui/api-client/src/models/TransitRestoreKeyRequest.ts new file mode 100644 index 0000000000..ed3472759d --- /dev/null +++ b/ui/api-client/src/models/TransitRestoreKeyRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitRestoreKeyRequest + */ +export interface TransitRestoreKeyRequest { + /** + * Backed up key data to be restored. This should be the output from the 'backup/' endpoint. + * @type {string} + * @memberof TransitRestoreKeyRequest + */ + backup?: string; + /** + * If set and a key by the given name exists, force the restore operation and override the key. + * @type {boolean} + * @memberof TransitRestoreKeyRequest + */ + force?: boolean; +} + +/** + * Check if a given object implements the TransitRestoreKeyRequest interface. + */ +export function instanceOfTransitRestoreKeyRequest(value: object): value is TransitRestoreKeyRequest { + return true; +} + +export function TransitRestoreKeyRequestFromJSON(json: any): TransitRestoreKeyRequest { + return TransitRestoreKeyRequestFromJSONTyped(json, false); +} + +export function TransitRestoreKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitRestoreKeyRequest { + if (json == null) { + return json; + } + return { + backup: json['backup'] == null ? undefined : json['backup'], + force: json['force'] == null ? undefined : json['force'], + }; +} + +export function TransitRestoreKeyRequestToJSON(json: any): TransitRestoreKeyRequest { + return TransitRestoreKeyRequestToJSONTyped(json, false); +} + +export function TransitRestoreKeyRequestToJSONTyped( + value?: TransitRestoreKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + backup: value['backup'], + force: value['force'], + }; +} diff --git a/ui/api-client/src/models/TransitRewrapRequest.ts b/ui/api-client/src/models/TransitRewrapRequest.ts new file mode 100644 index 0000000000..7cd6e11638 --- /dev/null +++ b/ui/api-client/src/models/TransitRewrapRequest.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitRewrapRequest + */ +export interface TransitRewrapRequest { + /** + * Specifies a list of items to be re-encrypted in a single batch. When this parameter is set, if the parameters 'ciphertext', 'context' and 'nonce' are also set, they will be ignored. Any batch output will preserve the order of the batch input. + * @type {Array} + * @memberof TransitRewrapRequest + */ + batchInput?: Array; + /** + * Ciphertext value to rewrap + * @type {string} + * @memberof TransitRewrapRequest + */ + ciphertext?: string; + /** + * Base64 encoded context for key derivation. Required for derived keys. + * @type {string} + * @memberof TransitRewrapRequest + */ + context?: string; + /** + * The padding scheme to use for rewrap's decrypt step. Currently only applies to RSA key types. Options are 'oaep' or 'pkcs1v15'. Defaults to 'oaep' + * @type {string} + * @memberof TransitRewrapRequest + */ + decryptPaddingScheme?: string; + /** + * The padding scheme to use for rewrap's encrypt step. Currently only applies to RSA key types. Options are 'oaep' or 'pkcs1v15'. Defaults to 'oaep' + * @type {string} + * @memberof TransitRewrapRequest + */ + encryptPaddingScheme?: string; + /** + * The version of the key to use for encryption. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitRewrapRequest + */ + keyVersion?: number; + /** + * Nonce for when convergent encryption is used + * @type {string} + * @memberof TransitRewrapRequest + */ + nonce?: string; +} + +/** + * Check if a given object implements the TransitRewrapRequest interface. + */ +export function instanceOfTransitRewrapRequest(value: object): value is TransitRewrapRequest { + return true; +} + +export function TransitRewrapRequestFromJSON(json: any): TransitRewrapRequest { + return TransitRewrapRequestFromJSONTyped(json, false); +} + +export function TransitRewrapRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitRewrapRequest { + if (json == null) { + return json; + } + return { + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + ciphertext: json['ciphertext'] == null ? undefined : json['ciphertext'], + context: json['context'] == null ? undefined : json['context'], + decryptPaddingScheme: json['decrypt_padding_scheme'] == null ? undefined : json['decrypt_padding_scheme'], + encryptPaddingScheme: json['encrypt_padding_scheme'] == null ? undefined : json['encrypt_padding_scheme'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + }; +} + +export function TransitRewrapRequestToJSON(json: any): TransitRewrapRequest { + return TransitRewrapRequestToJSONTyped(json, false); +} + +export function TransitRewrapRequestToJSONTyped( + value?: TransitRewrapRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + batch_input: value['batchInput'], + ciphertext: value['ciphertext'], + context: value['context'], + decrypt_padding_scheme: value['decryptPaddingScheme'], + encrypt_padding_scheme: value['encryptPaddingScheme'], + key_version: value['keyVersion'], + nonce: value['nonce'], + }; +} diff --git a/ui/api-client/src/models/TransitRotateKeyRequest.ts b/ui/api-client/src/models/TransitRotateKeyRequest.ts new file mode 100644 index 0000000000..8d0d774ab1 --- /dev/null +++ b/ui/api-client/src/models/TransitRotateKeyRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitRotateKeyRequest + */ +export interface TransitRotateKeyRequest { + /** + * The UUID of the managed key to use for the new version of this transit key + * @type {string} + * @memberof TransitRotateKeyRequest + */ + managedKeyId?: string; + /** + * The name of the managed key to use for the new version of this transit key + * @type {string} + * @memberof TransitRotateKeyRequest + */ + managedKeyName?: string; +} + +/** + * Check if a given object implements the TransitRotateKeyRequest interface. + */ +export function instanceOfTransitRotateKeyRequest(value: object): value is TransitRotateKeyRequest { + return true; +} + +export function TransitRotateKeyRequestFromJSON(json: any): TransitRotateKeyRequest { + return TransitRotateKeyRequestFromJSONTyped(json, false); +} + +export function TransitRotateKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitRotateKeyRequest { + if (json == null) { + return json; + } + return { + managedKeyId: json['managed_key_id'] == null ? undefined : json['managed_key_id'], + managedKeyName: json['managed_key_name'] == null ? undefined : json['managed_key_name'], + }; +} + +export function TransitRotateKeyRequestToJSON(json: any): TransitRotateKeyRequest { + return TransitRotateKeyRequestToJSONTyped(json, false); +} + +export function TransitRotateKeyRequestToJSONTyped( + value?: TransitRotateKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + managed_key_id: value['managedKeyId'], + managed_key_name: value['managedKeyName'], + }; +} diff --git a/ui/api-client/src/models/TransitSetCertificateForKeyRequest.ts b/ui/api-client/src/models/TransitSetCertificateForKeyRequest.ts new file mode 100644 index 0000000000..f9fb68ea47 --- /dev/null +++ b/ui/api-client/src/models/TransitSetCertificateForKeyRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitSetCertificateForKeyRequest + */ +export interface TransitSetCertificateForKeyRequest { + /** + * PEM encoded certificate chain. It should be composed by one or more concatenated PEM blocks and ordered starting from the end-entity certificate. + * @type {string} + * @memberof TransitSetCertificateForKeyRequest + */ + certificateChain: string; + /** + * Optional version of key, 'latest' if not set + * @type {number} + * @memberof TransitSetCertificateForKeyRequest + */ + version?: number; +} + +/** + * Check if a given object implements the TransitSetCertificateForKeyRequest interface. + */ +export function instanceOfTransitSetCertificateForKeyRequest( + value: object +): value is TransitSetCertificateForKeyRequest { + if (!('certificateChain' in value) || value['certificateChain'] === undefined) return false; + return true; +} + +export function TransitSetCertificateForKeyRequestFromJSON(json: any): TransitSetCertificateForKeyRequest { + return TransitSetCertificateForKeyRequestFromJSONTyped(json, false); +} + +export function TransitSetCertificateForKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitSetCertificateForKeyRequest { + if (json == null) { + return json; + } + return { + certificateChain: json['certificate_chain'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function TransitSetCertificateForKeyRequestToJSON(json: any): TransitSetCertificateForKeyRequest { + return TransitSetCertificateForKeyRequestToJSONTyped(json, false); +} + +export function TransitSetCertificateForKeyRequestToJSONTyped( + value?: TransitSetCertificateForKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + certificate_chain: value['certificateChain'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/TransitSignRequest.ts b/ui/api-client/src/models/TransitSignRequest.ts new file mode 100644 index 0000000000..f42ac84d99 --- /dev/null +++ b/ui/api-client/src/models/TransitSignRequest.ts @@ -0,0 +1,145 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitSignRequest + */ +export interface TransitSignRequest { + /** + * Deprecated: use "hash_algorithm" instead. + * @type {string} + * @memberof TransitSignRequest + */ + algorithm?: string; + /** + * Specifies a list of items for processing. When this parameter is set, any supplied 'input' or 'context' parameters will be ignored. Responses are returned in the 'batch_results' array component of the 'data' element of the response. Any batch output will preserve the order of the batch input + * @type {Array} + * @memberof TransitSignRequest + */ + batchInput?: Array; + /** + * Base64 encoded context for key derivation. Required if key derivation is enabled; currently only available with ed25519 keys. + * @type {string} + * @memberof TransitSignRequest + */ + context?: string; + /** + * Hash algorithm to use (POST body parameter). Valid values are: * sha1 * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 * none Defaults to "sha2-256". Not valid for all key types, including ed25519. Using none requires setting prehashed=true and signature_algorithm=pkcs1v15, yielding a PKCSv1_5_NoOID instead of the usual PKCSv1_5_DERnull signature. + * @type {string} + * @memberof TransitSignRequest + */ + hashAlgorithm?: string; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitSignRequest + */ + input?: string; + /** + * The version of the key to use for signing. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitSignRequest + */ + keyVersion?: number; + /** + * The method by which to marshal the signature. The default is 'asn1' which is used by openssl and X.509. It can also be set to 'jws' which is used for JWT signatures; setting it to this will also cause the encoding of the signature to be url-safe base64 instead of using standard base64 encoding. Currently only valid for ECDSA P-256 key types". + * @type {string} + * @memberof TransitSignRequest + */ + marshalingAlgorithm?: string; + /** + * Set to 'true' when the input is already hashed. If the key type is 'rsa-2048', 'rsa-3072' or 'rsa-4096', then the algorithm used to hash the input should be indicated by the 'algorithm' parameter. + * @type {boolean} + * @memberof TransitSignRequest + */ + prehashed?: boolean; + /** + * The salt length used to sign. Currently only applies to the RSA PSS signature scheme. Options are 'auto' (the default used by Golang, causing the salt to be as large as possible when signing), 'hash' (causes the salt length to equal the length of the hash used in the signature), or an integer between the minimum and the maximum permissible salt lengths for the given RSA key size. Defaults to 'auto'. + * @type {string} + * @memberof TransitSignRequest + */ + saltLength?: string; + /** + * The signature algorithm to use for signing. Currently only applies to RSA key types. Options are 'pss' or 'pkcs1v15'. Defaults to 'pss' + * @type {string} + * @memberof TransitSignRequest + */ + signatureAlgorithm?: string; + /** + * Base64 encoded context for Ed25519ph and Ed25519ctx signatures. Currently only available with Ed25519 keys. (Enterprise Only) + * @type {string} + * @memberof TransitSignRequest + */ + signatureContext?: string; +} + +/** + * Check if a given object implements the TransitSignRequest interface. + */ +export function instanceOfTransitSignRequest(value: object): value is TransitSignRequest { + return true; +} + +export function TransitSignRequestFromJSON(json: any): TransitSignRequest { + return TransitSignRequestFromJSONTyped(json, false); +} + +export function TransitSignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransitSignRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + context: json['context'] == null ? undefined : json['context'], + hashAlgorithm: json['hash_algorithm'] == null ? undefined : json['hash_algorithm'], + input: json['input'] == null ? undefined : json['input'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + marshalingAlgorithm: json['marshaling_algorithm'] == null ? undefined : json['marshaling_algorithm'], + prehashed: json['prehashed'] == null ? undefined : json['prehashed'], + saltLength: json['salt_length'] == null ? undefined : json['salt_length'], + signatureAlgorithm: json['signature_algorithm'] == null ? undefined : json['signature_algorithm'], + signatureContext: json['signature_context'] == null ? undefined : json['signature_context'], + }; +} + +export function TransitSignRequestToJSON(json: any): TransitSignRequest { + return TransitSignRequestToJSONTyped(json, false); +} + +export function TransitSignRequestToJSONTyped( + value?: TransitSignRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + batch_input: value['batchInput'], + context: value['context'], + hash_algorithm: value['hashAlgorithm'], + input: value['input'], + key_version: value['keyVersion'], + marshaling_algorithm: value['marshalingAlgorithm'], + prehashed: value['prehashed'], + salt_length: value['saltLength'], + signature_algorithm: value['signatureAlgorithm'], + signature_context: value['signatureContext'], + }; +} diff --git a/ui/api-client/src/models/TransitSignWithAlgorithmRequest.ts b/ui/api-client/src/models/TransitSignWithAlgorithmRequest.ts new file mode 100644 index 0000000000..25404b48c9 --- /dev/null +++ b/ui/api-client/src/models/TransitSignWithAlgorithmRequest.ts @@ -0,0 +1,150 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitSignWithAlgorithmRequest + */ +export interface TransitSignWithAlgorithmRequest { + /** + * Deprecated: use "hash_algorithm" instead. + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + algorithm?: string; + /** + * Specifies a list of items for processing. When this parameter is set, any supplied 'input' or 'context' parameters will be ignored. Responses are returned in the 'batch_results' array component of the 'data' element of the response. Any batch output will preserve the order of the batch input + * @type {Array} + * @memberof TransitSignWithAlgorithmRequest + */ + batchInput?: Array; + /** + * Base64 encoded context for key derivation. Required if key derivation is enabled; currently only available with ed25519 keys. + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + context?: string; + /** + * Hash algorithm to use (POST body parameter). Valid values are: * sha1 * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 * none Defaults to "sha2-256". Not valid for all key types, including ed25519. Using none requires setting prehashed=true and signature_algorithm=pkcs1v15, yielding a PKCSv1_5_NoOID instead of the usual PKCSv1_5_DERnull signature. + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + hashAlgorithm?: string; + /** + * The base64-encoded input data + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + input?: string; + /** + * The version of the key to use for signing. Must be 0 (for latest) or a value greater than or equal to the min_encryption_version configured on the key. + * @type {number} + * @memberof TransitSignWithAlgorithmRequest + */ + keyVersion?: number; + /** + * The method by which to marshal the signature. The default is 'asn1' which is used by openssl and X.509. It can also be set to 'jws' which is used for JWT signatures; setting it to this will also cause the encoding of the signature to be url-safe base64 instead of using standard base64 encoding. Currently only valid for ECDSA P-256 key types". + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + marshalingAlgorithm?: string; + /** + * Set to 'true' when the input is already hashed. If the key type is 'rsa-2048', 'rsa-3072' or 'rsa-4096', then the algorithm used to hash the input should be indicated by the 'algorithm' parameter. + * @type {boolean} + * @memberof TransitSignWithAlgorithmRequest + */ + prehashed?: boolean; + /** + * The salt length used to sign. Currently only applies to the RSA PSS signature scheme. Options are 'auto' (the default used by Golang, causing the salt to be as large as possible when signing), 'hash' (causes the salt length to equal the length of the hash used in the signature), or an integer between the minimum and the maximum permissible salt lengths for the given RSA key size. Defaults to 'auto'. + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + saltLength?: string; + /** + * The signature algorithm to use for signing. Currently only applies to RSA key types. Options are 'pss' or 'pkcs1v15'. Defaults to 'pss' + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + signatureAlgorithm?: string; + /** + * Base64 encoded context for Ed25519ph and Ed25519ctx signatures. Currently only available with Ed25519 keys. (Enterprise Only) + * @type {string} + * @memberof TransitSignWithAlgorithmRequest + */ + signatureContext?: string; +} + +/** + * Check if a given object implements the TransitSignWithAlgorithmRequest interface. + */ +export function instanceOfTransitSignWithAlgorithmRequest( + value: object +): value is TransitSignWithAlgorithmRequest { + return true; +} + +export function TransitSignWithAlgorithmRequestFromJSON(json: any): TransitSignWithAlgorithmRequest { + return TransitSignWithAlgorithmRequestFromJSONTyped(json, false); +} + +export function TransitSignWithAlgorithmRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitSignWithAlgorithmRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + context: json['context'] == null ? undefined : json['context'], + hashAlgorithm: json['hash_algorithm'] == null ? undefined : json['hash_algorithm'], + input: json['input'] == null ? undefined : json['input'], + keyVersion: json['key_version'] == null ? undefined : json['key_version'], + marshalingAlgorithm: json['marshaling_algorithm'] == null ? undefined : json['marshaling_algorithm'], + prehashed: json['prehashed'] == null ? undefined : json['prehashed'], + saltLength: json['salt_length'] == null ? undefined : json['salt_length'], + signatureAlgorithm: json['signature_algorithm'] == null ? undefined : json['signature_algorithm'], + signatureContext: json['signature_context'] == null ? undefined : json['signature_context'], + }; +} + +export function TransitSignWithAlgorithmRequestToJSON(json: any): TransitSignWithAlgorithmRequest { + return TransitSignWithAlgorithmRequestToJSONTyped(json, false); +} + +export function TransitSignWithAlgorithmRequestToJSONTyped( + value?: TransitSignWithAlgorithmRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + batch_input: value['batchInput'], + context: value['context'], + hash_algorithm: value['hashAlgorithm'], + input: value['input'], + key_version: value['keyVersion'], + marshaling_algorithm: value['marshalingAlgorithm'], + prehashed: value['prehashed'], + salt_length: value['saltLength'], + signature_algorithm: value['signatureAlgorithm'], + signature_context: value['signatureContext'], + }; +} diff --git a/ui/api-client/src/models/TransitTrimKeyRequest.ts b/ui/api-client/src/models/TransitTrimKeyRequest.ts new file mode 100644 index 0000000000..5a1da2c030 --- /dev/null +++ b/ui/api-client/src/models/TransitTrimKeyRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitTrimKeyRequest + */ +export interface TransitTrimKeyRequest { + /** + * The minimum available version for the key ring. All versions before this version will be permanently deleted. This value can at most be equal to the lesser of 'min_decryption_version' and 'min_encryption_version'. This is not allowed to be set when either 'min_encryption_version' or 'min_decryption_version' is set to zero. + * @type {number} + * @memberof TransitTrimKeyRequest + */ + minAvailableVersion?: number; +} + +/** + * Check if a given object implements the TransitTrimKeyRequest interface. + */ +export function instanceOfTransitTrimKeyRequest(value: object): value is TransitTrimKeyRequest { + return true; +} + +export function TransitTrimKeyRequestFromJSON(json: any): TransitTrimKeyRequest { + return TransitTrimKeyRequestFromJSONTyped(json, false); +} + +export function TransitTrimKeyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitTrimKeyRequest { + if (json == null) { + return json; + } + return { + minAvailableVersion: json['min_available_version'] == null ? undefined : json['min_available_version'], + }; +} + +export function TransitTrimKeyRequestToJSON(json: any): TransitTrimKeyRequest { + return TransitTrimKeyRequestToJSONTyped(json, false); +} + +export function TransitTrimKeyRequestToJSONTyped( + value?: TransitTrimKeyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + min_available_version: value['minAvailableVersion'], + }; +} diff --git a/ui/api-client/src/models/TransitVerifyRequest.ts b/ui/api-client/src/models/TransitVerifyRequest.ts new file mode 100644 index 0000000000..626a10016f --- /dev/null +++ b/ui/api-client/src/models/TransitVerifyRequest.ts @@ -0,0 +1,172 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitVerifyRequest + */ +export interface TransitVerifyRequest { + /** + * Deprecated: use "hash_algorithm" instead. + * @type {string} + * @memberof TransitVerifyRequest + */ + algorithm?: string; + /** + * Specifies a list of items for processing. When this parameter is set, any supplied 'input', 'hmac', 'cmac' or 'signature' parameters will be ignored. Responses are returned in the 'batch_results' array component of the 'data' element of the response. Any batch output will preserve the order of the batch input + * @type {Array} + * @memberof TransitVerifyRequest + */ + batchInput?: Array; + /** + * The CMAC, including vault header/key version (Enterprise only) + * @type {string} + * @memberof TransitVerifyRequest + */ + cmac?: string; + /** + * Base64 encoded context for key derivation. Required if key derivation is enabled; currently only available with ed25519 keys. + * @type {string} + * @memberof TransitVerifyRequest + */ + context?: string; + /** + * Hash algorithm to use (POST body parameter). Valid values are: * sha1 * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 * none Defaults to "sha2-256". Not valid for all key types. See note about none on signing path. + * @type {string} + * @memberof TransitVerifyRequest + */ + hashAlgorithm?: string; + /** + * The HMAC, including vault header/key version + * @type {string} + * @memberof TransitVerifyRequest + */ + hmac?: string; + /** + * The base64-encoded input data to verify + * @type {string} + * @memberof TransitVerifyRequest + */ + input?: string; + /** + * MAC length to use (POST body parameter). Valid values are: + * @type {number} + * @memberof TransitVerifyRequest + */ + macLength?: number; + /** + * The method by which to unmarshal the signature when verifying. The default is 'asn1' which is used by openssl and X.509; can also be set to 'jws' which is used for JWT signatures in which case the signature is also expected to be url-safe base64 encoding instead of standard base64 encoding. Currently only valid for ECDSA P-256 key types". + * @type {string} + * @memberof TransitVerifyRequest + */ + marshalingAlgorithm?: string; + /** + * Set to 'true' when the input is already hashed. If the key type is 'rsa-2048', 'rsa-3072' or 'rsa-4096', then the algorithm used to hash the input should be indicated by the 'algorithm' parameter. + * @type {boolean} + * @memberof TransitVerifyRequest + */ + prehashed?: boolean; + /** + * The salt length used to sign. Currently only applies to the RSA PSS signature scheme. Options are 'auto' (the default used by Golang, causing the salt to be as large as possible when signing), 'hash' (causes the salt length to equal the length of the hash used in the signature), or an integer between the minimum and the maximum permissible salt lengths for the given RSA key size. Defaults to 'auto'. + * @type {string} + * @memberof TransitVerifyRequest + */ + saltLength?: string; + /** + * The signature, including vault header/key version + * @type {string} + * @memberof TransitVerifyRequest + */ + signature?: string; + /** + * The signature algorithm to use for signature verification. Currently only applies to RSA key types. Options are 'pss' or 'pkcs1v15'. Defaults to 'pss' + * @type {string} + * @memberof TransitVerifyRequest + */ + signatureAlgorithm?: string; + /** + * Base64 encoded context for Ed25519ph and Ed25519ctx signatures. Currently only available with Ed25519 keys. (Enterprise Only) + * @type {string} + * @memberof TransitVerifyRequest + */ + signatureContext?: string; +} + +/** + * Check if a given object implements the TransitVerifyRequest interface. + */ +export function instanceOfTransitVerifyRequest(value: object): value is TransitVerifyRequest { + return true; +} + +export function TransitVerifyRequestFromJSON(json: any): TransitVerifyRequest { + return TransitVerifyRequestFromJSONTyped(json, false); +} + +export function TransitVerifyRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitVerifyRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + cmac: json['cmac'] == null ? undefined : json['cmac'], + context: json['context'] == null ? undefined : json['context'], + hashAlgorithm: json['hash_algorithm'] == null ? undefined : json['hash_algorithm'], + hmac: json['hmac'] == null ? undefined : json['hmac'], + input: json['input'] == null ? undefined : json['input'], + macLength: json['mac_length'] == null ? undefined : json['mac_length'], + marshalingAlgorithm: json['marshaling_algorithm'] == null ? undefined : json['marshaling_algorithm'], + prehashed: json['prehashed'] == null ? undefined : json['prehashed'], + saltLength: json['salt_length'] == null ? undefined : json['salt_length'], + signature: json['signature'] == null ? undefined : json['signature'], + signatureAlgorithm: json['signature_algorithm'] == null ? undefined : json['signature_algorithm'], + signatureContext: json['signature_context'] == null ? undefined : json['signature_context'], + }; +} + +export function TransitVerifyRequestToJSON(json: any): TransitVerifyRequest { + return TransitVerifyRequestToJSONTyped(json, false); +} + +export function TransitVerifyRequestToJSONTyped( + value?: TransitVerifyRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + batch_input: value['batchInput'], + cmac: value['cmac'], + context: value['context'], + hash_algorithm: value['hashAlgorithm'], + hmac: value['hmac'], + input: value['input'], + mac_length: value['macLength'], + marshaling_algorithm: value['marshalingAlgorithm'], + prehashed: value['prehashed'], + salt_length: value['saltLength'], + signature: value['signature'], + signature_algorithm: value['signatureAlgorithm'], + signature_context: value['signatureContext'], + }; +} diff --git a/ui/api-client/src/models/TransitVerifyWithAlgorithmRequest.ts b/ui/api-client/src/models/TransitVerifyWithAlgorithmRequest.ts new file mode 100644 index 0000000000..25c8071d9b --- /dev/null +++ b/ui/api-client/src/models/TransitVerifyWithAlgorithmRequest.ts @@ -0,0 +1,174 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface TransitVerifyWithAlgorithmRequest + */ +export interface TransitVerifyWithAlgorithmRequest { + /** + * Deprecated: use "hash_algorithm" instead. + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + algorithm?: string; + /** + * Specifies a list of items for processing. When this parameter is set, any supplied 'input', 'hmac', 'cmac' or 'signature' parameters will be ignored. Responses are returned in the 'batch_results' array component of the 'data' element of the response. Any batch output will preserve the order of the batch input + * @type {Array} + * @memberof TransitVerifyWithAlgorithmRequest + */ + batchInput?: Array; + /** + * The CMAC, including vault header/key version (Enterprise only) + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + cmac?: string; + /** + * Base64 encoded context for key derivation. Required if key derivation is enabled; currently only available with ed25519 keys. + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + context?: string; + /** + * Hash algorithm to use (POST body parameter). Valid values are: * sha1 * sha2-224 * sha2-256 * sha2-384 * sha2-512 * sha3-224 * sha3-256 * sha3-384 * sha3-512 * none Defaults to "sha2-256". Not valid for all key types. See note about none on signing path. + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + hashAlgorithm?: string; + /** + * The HMAC, including vault header/key version + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + hmac?: string; + /** + * The base64-encoded input data to verify + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + input?: string; + /** + * MAC length to use (POST body parameter). Valid values are: + * @type {number} + * @memberof TransitVerifyWithAlgorithmRequest + */ + macLength?: number; + /** + * The method by which to unmarshal the signature when verifying. The default is 'asn1' which is used by openssl and X.509; can also be set to 'jws' which is used for JWT signatures in which case the signature is also expected to be url-safe base64 encoding instead of standard base64 encoding. Currently only valid for ECDSA P-256 key types". + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + marshalingAlgorithm?: string; + /** + * Set to 'true' when the input is already hashed. If the key type is 'rsa-2048', 'rsa-3072' or 'rsa-4096', then the algorithm used to hash the input should be indicated by the 'algorithm' parameter. + * @type {boolean} + * @memberof TransitVerifyWithAlgorithmRequest + */ + prehashed?: boolean; + /** + * The salt length used to sign. Currently only applies to the RSA PSS signature scheme. Options are 'auto' (the default used by Golang, causing the salt to be as large as possible when signing), 'hash' (causes the salt length to equal the length of the hash used in the signature), or an integer between the minimum and the maximum permissible salt lengths for the given RSA key size. Defaults to 'auto'. + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + saltLength?: string; + /** + * The signature, including vault header/key version + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + signature?: string; + /** + * The signature algorithm to use for signature verification. Currently only applies to RSA key types. Options are 'pss' or 'pkcs1v15'. Defaults to 'pss' + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + signatureAlgorithm?: string; + /** + * Base64 encoded context for Ed25519ph and Ed25519ctx signatures. Currently only available with Ed25519 keys. (Enterprise Only) + * @type {string} + * @memberof TransitVerifyWithAlgorithmRequest + */ + signatureContext?: string; +} + +/** + * Check if a given object implements the TransitVerifyWithAlgorithmRequest interface. + */ +export function instanceOfTransitVerifyWithAlgorithmRequest( + value: object +): value is TransitVerifyWithAlgorithmRequest { + return true; +} + +export function TransitVerifyWithAlgorithmRequestFromJSON(json: any): TransitVerifyWithAlgorithmRequest { + return TransitVerifyWithAlgorithmRequestFromJSONTyped(json, false); +} + +export function TransitVerifyWithAlgorithmRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): TransitVerifyWithAlgorithmRequest { + if (json == null) { + return json; + } + return { + algorithm: json['algorithm'] == null ? undefined : json['algorithm'], + batchInput: json['batch_input'] == null ? undefined : json['batch_input'], + cmac: json['cmac'] == null ? undefined : json['cmac'], + context: json['context'] == null ? undefined : json['context'], + hashAlgorithm: json['hash_algorithm'] == null ? undefined : json['hash_algorithm'], + hmac: json['hmac'] == null ? undefined : json['hmac'], + input: json['input'] == null ? undefined : json['input'], + macLength: json['mac_length'] == null ? undefined : json['mac_length'], + marshalingAlgorithm: json['marshaling_algorithm'] == null ? undefined : json['marshaling_algorithm'], + prehashed: json['prehashed'] == null ? undefined : json['prehashed'], + saltLength: json['salt_length'] == null ? undefined : json['salt_length'], + signature: json['signature'] == null ? undefined : json['signature'], + signatureAlgorithm: json['signature_algorithm'] == null ? undefined : json['signature_algorithm'], + signatureContext: json['signature_context'] == null ? undefined : json['signature_context'], + }; +} + +export function TransitVerifyWithAlgorithmRequestToJSON(json: any): TransitVerifyWithAlgorithmRequest { + return TransitVerifyWithAlgorithmRequestToJSONTyped(json, false); +} + +export function TransitVerifyWithAlgorithmRequestToJSONTyped( + value?: TransitVerifyWithAlgorithmRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + algorithm: value['algorithm'], + batch_input: value['batchInput'], + cmac: value['cmac'], + context: value['context'], + hash_algorithm: value['hashAlgorithm'], + hmac: value['hmac'], + input: value['input'], + mac_length: value['macLength'], + marshaling_algorithm: value['marshalingAlgorithm'], + prehashed: value['prehashed'], + salt_length: value['saltLength'], + signature: value['signature'], + signature_algorithm: value['signatureAlgorithm'], + signature_context: value['signatureContext'], + }; +} diff --git a/ui/api-client/src/models/UiConfigDeleteCustomMessageResponse.ts b/ui/api-client/src/models/UiConfigDeleteCustomMessageResponse.ts new file mode 100644 index 0000000000..6cbe32158a --- /dev/null +++ b/ui/api-client/src/models/UiConfigDeleteCustomMessageResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiConfigDeleteCustomMessageResponse + */ +export interface UiConfigDeleteCustomMessageResponse { + /** + * + * @type {string} + * @memberof UiConfigDeleteCustomMessageResponse + */ + id?: string; +} + +/** + * Check if a given object implements the UiConfigDeleteCustomMessageResponse interface. + */ +export function instanceOfUiConfigDeleteCustomMessageResponse( + value: object +): value is UiConfigDeleteCustomMessageResponse { + return true; +} + +export function UiConfigDeleteCustomMessageResponseFromJSON(json: any): UiConfigDeleteCustomMessageResponse { + return UiConfigDeleteCustomMessageResponseFromJSONTyped(json, false); +} + +export function UiConfigDeleteCustomMessageResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UiConfigDeleteCustomMessageResponse { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + }; +} + +export function UiConfigDeleteCustomMessageResponseToJSON(json: any): UiConfigDeleteCustomMessageResponse { + return UiConfigDeleteCustomMessageResponseToJSONTyped(json, false); +} + +export function UiConfigDeleteCustomMessageResponseToJSONTyped( + value?: UiConfigDeleteCustomMessageResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + }; +} diff --git a/ui/api-client/src/models/UiConfigReadCustomMessageResponse.ts b/ui/api-client/src/models/UiConfigReadCustomMessageResponse.ts new file mode 100644 index 0000000000..4010743e5f --- /dev/null +++ b/ui/api-client/src/models/UiConfigReadCustomMessageResponse.ts @@ -0,0 +1,70 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiConfigReadCustomMessageResponse + */ +export interface UiConfigReadCustomMessageResponse { + /** + * + * @type {string} + * @memberof UiConfigReadCustomMessageResponse + */ + id?: string; +} + +/** + * Check if a given object implements the UiConfigReadCustomMessageResponse interface. + */ +export function instanceOfUiConfigReadCustomMessageResponse( + value: object +): value is UiConfigReadCustomMessageResponse { + return true; +} + +export function UiConfigReadCustomMessageResponseFromJSON(json: any): UiConfigReadCustomMessageResponse { + return UiConfigReadCustomMessageResponseFromJSONTyped(json, false); +} + +export function UiConfigReadCustomMessageResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UiConfigReadCustomMessageResponse { + if (json == null) { + return json; + } + return { + id: json['id'] == null ? undefined : json['id'], + }; +} + +export function UiConfigReadCustomMessageResponseToJSON(json: any): UiConfigReadCustomMessageResponse { + return UiConfigReadCustomMessageResponseToJSONTyped(json, false); +} + +export function UiConfigReadCustomMessageResponseToJSONTyped( + value?: UiConfigReadCustomMessageResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + id: value['id'], + }; +} diff --git a/ui/api-client/src/models/UiConfigUpdateCustomMessageRequest.ts b/ui/api-client/src/models/UiConfigUpdateCustomMessageRequest.ts new file mode 100644 index 0000000000..d60cdd9055 --- /dev/null +++ b/ui/api-client/src/models/UiConfigUpdateCustomMessageRequest.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiConfigUpdateCustomMessageRequest + */ +export interface UiConfigUpdateCustomMessageRequest { + /** + * + * @type {boolean} + * @memberof UiConfigUpdateCustomMessageRequest + */ + authenticated?: boolean; + /** + * + * @type {Date} + * @memberof UiConfigUpdateCustomMessageRequest + */ + endTime?: Date; + /** + * + * @type {object} + * @memberof UiConfigUpdateCustomMessageRequest + */ + link?: object; + /** + * + * @type {string} + * @memberof UiConfigUpdateCustomMessageRequest + */ + message: string; + /** + * + * @type {object} + * @memberof UiConfigUpdateCustomMessageRequest + */ + options?: object; + /** + * + * @type {Date} + * @memberof UiConfigUpdateCustomMessageRequest + */ + startTime: Date; + /** + * + * @type {string} + * @memberof UiConfigUpdateCustomMessageRequest + */ + title: string; + /** + * + * @type {string} + * @memberof UiConfigUpdateCustomMessageRequest + */ + type?: string; +} + +/** + * Check if a given object implements the UiConfigUpdateCustomMessageRequest interface. + */ +export function instanceOfUiConfigUpdateCustomMessageRequest( + value: object +): value is UiConfigUpdateCustomMessageRequest { + if (!('message' in value) || value['message'] === undefined) return false; + if (!('startTime' in value) || value['startTime'] === undefined) return false; + if (!('title' in value) || value['title'] === undefined) return false; + return true; +} + +export function UiConfigUpdateCustomMessageRequestFromJSON(json: any): UiConfigUpdateCustomMessageRequest { + return UiConfigUpdateCustomMessageRequestFromJSONTyped(json, false); +} + +export function UiConfigUpdateCustomMessageRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UiConfigUpdateCustomMessageRequest { + if (json == null) { + return json; + } + return { + authenticated: json['authenticated'] == null ? undefined : json['authenticated'], + endTime: json['end_time'] == null ? undefined : new Date(json['end_time']), + link: json['link'] == null ? undefined : json['link'], + message: json['message'], + options: json['options'] == null ? undefined : json['options'], + startTime: new Date(json['start_time']), + title: json['title'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function UiConfigUpdateCustomMessageRequestToJSON(json: any): UiConfigUpdateCustomMessageRequest { + return UiConfigUpdateCustomMessageRequestToJSONTyped(json, false); +} + +export function UiConfigUpdateCustomMessageRequestToJSONTyped( + value?: UiConfigUpdateCustomMessageRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + authenticated: value['authenticated'], + end_time: value['endTime'] == null ? undefined : value['endTime'].toISOString(), + link: value['link'], + message: value['message'], + options: value['options'], + start_time: value['startTime'].toISOString(), + title: value['title'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/UiConfigUpdateCustomMessageResponse.ts b/ui/api-client/src/models/UiConfigUpdateCustomMessageResponse.ts new file mode 100644 index 0000000000..ffd8680a08 --- /dev/null +++ b/ui/api-client/src/models/UiConfigUpdateCustomMessageResponse.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiConfigUpdateCustomMessageResponse + */ +export interface UiConfigUpdateCustomMessageResponse { + /** + * + * @type {boolean} + * @memberof UiConfigUpdateCustomMessageResponse + */ + authenticated?: boolean; + /** + * + * @type {Date} + * @memberof UiConfigUpdateCustomMessageResponse + */ + endTime?: Date; + /** + * + * @type {string} + * @memberof UiConfigUpdateCustomMessageResponse + */ + id?: string; + /** + * + * @type {object} + * @memberof UiConfigUpdateCustomMessageResponse + */ + link?: object; + /** + * + * @type {string} + * @memberof UiConfigUpdateCustomMessageResponse + */ + message?: string; + /** + * + * @type {object} + * @memberof UiConfigUpdateCustomMessageResponse + */ + options?: object; + /** + * + * @type {Date} + * @memberof UiConfigUpdateCustomMessageResponse + */ + startTime?: Date; + /** + * + * @type {string} + * @memberof UiConfigUpdateCustomMessageResponse + */ + title?: string; + /** + * + * @type {boolean} + * @memberof UiConfigUpdateCustomMessageResponse + */ + type?: boolean; +} + +/** + * Check if a given object implements the UiConfigUpdateCustomMessageResponse interface. + */ +export function instanceOfUiConfigUpdateCustomMessageResponse( + value: object +): value is UiConfigUpdateCustomMessageResponse { + return true; +} + +export function UiConfigUpdateCustomMessageResponseFromJSON(json: any): UiConfigUpdateCustomMessageResponse { + return UiConfigUpdateCustomMessageResponseFromJSONTyped(json, false); +} + +export function UiConfigUpdateCustomMessageResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UiConfigUpdateCustomMessageResponse { + if (json == null) { + return json; + } + return { + authenticated: json['authenticated'] == null ? undefined : json['authenticated'], + endTime: json['end_time'] == null ? undefined : new Date(json['end_time']), + id: json['id'] == null ? undefined : json['id'], + link: json['link'] == null ? undefined : json['link'], + message: json['message'] == null ? undefined : json['message'], + options: json['options'] == null ? undefined : json['options'], + startTime: json['start_time'] == null ? undefined : new Date(json['start_time']), + title: json['title'] == null ? undefined : json['title'], + type: json['type'] == null ? undefined : json['type'], + }; +} + +export function UiConfigUpdateCustomMessageResponseToJSON(json: any): UiConfigUpdateCustomMessageResponse { + return UiConfigUpdateCustomMessageResponseToJSONTyped(json, false); +} + +export function UiConfigUpdateCustomMessageResponseToJSONTyped( + value?: UiConfigUpdateCustomMessageResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + authenticated: value['authenticated'], + end_time: value['endTime'] == null ? undefined : value['endTime'].toISOString(), + id: value['id'], + link: value['link'], + message: value['message'], + options: value['options'], + start_time: value['startTime'] == null ? undefined : value['startTime'].toISOString(), + title: value['title'], + type: value['type'], + }; +} diff --git a/ui/api-client/src/models/UiHeadersConfigureRequest.ts b/ui/api-client/src/models/UiHeadersConfigureRequest.ts new file mode 100644 index 0000000000..ff886876a0 --- /dev/null +++ b/ui/api-client/src/models/UiHeadersConfigureRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiHeadersConfigureRequest + */ +export interface UiHeadersConfigureRequest { + /** + * Returns multiple values if true + * @type {boolean} + * @memberof UiHeadersConfigureRequest + */ + multivalue?: boolean; + /** + * The values to set the header. + * @type {Array} + * @memberof UiHeadersConfigureRequest + */ + values?: Array; +} + +/** + * Check if a given object implements the UiHeadersConfigureRequest interface. + */ +export function instanceOfUiHeadersConfigureRequest(value: object): value is UiHeadersConfigureRequest { + return true; +} + +export function UiHeadersConfigureRequestFromJSON(json: any): UiHeadersConfigureRequest { + return UiHeadersConfigureRequestFromJSONTyped(json, false); +} + +export function UiHeadersConfigureRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UiHeadersConfigureRequest { + if (json == null) { + return json; + } + return { + multivalue: json['multivalue'] == null ? undefined : json['multivalue'], + values: json['values'] == null ? undefined : json['values'], + }; +} + +export function UiHeadersConfigureRequestToJSON(json: any): UiHeadersConfigureRequest { + return UiHeadersConfigureRequestToJSONTyped(json, false); +} + +export function UiHeadersConfigureRequestToJSONTyped( + value?: UiHeadersConfigureRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + multivalue: value['multivalue'], + values: value['values'], + }; +} diff --git a/ui/api-client/src/models/UiHeadersListResponse.ts b/ui/api-client/src/models/UiHeadersListResponse.ts new file mode 100644 index 0000000000..1db97b7eec --- /dev/null +++ b/ui/api-client/src/models/UiHeadersListResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiHeadersListResponse + */ +export interface UiHeadersListResponse { + /** + * Lists of configured UI headers. Omitted if list is empty + * @type {Array} + * @memberof UiHeadersListResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the UiHeadersListResponse interface. + */ +export function instanceOfUiHeadersListResponse(value: object): value is UiHeadersListResponse { + return true; +} + +export function UiHeadersListResponseFromJSON(json: any): UiHeadersListResponse { + return UiHeadersListResponseFromJSONTyped(json, false); +} + +export function UiHeadersListResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UiHeadersListResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function UiHeadersListResponseToJSON(json: any): UiHeadersListResponse { + return UiHeadersListResponseToJSONTyped(json, false); +} + +export function UiHeadersListResponseToJSONTyped( + value?: UiHeadersListResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/UiHeadersReadConfigurationResponse.ts b/ui/api-client/src/models/UiHeadersReadConfigurationResponse.ts new file mode 100644 index 0000000000..0cee46ceac --- /dev/null +++ b/ui/api-client/src/models/UiHeadersReadConfigurationResponse.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UiHeadersReadConfigurationResponse + */ +export interface UiHeadersReadConfigurationResponse { + /** + * returns the first header value when `multivalue` request parameter is false + * @type {string} + * @memberof UiHeadersReadConfigurationResponse + */ + value?: string; + /** + * returns all header values when `multivalue` request parameter is true + * @type {Array} + * @memberof UiHeadersReadConfigurationResponse + */ + values?: Array; +} + +/** + * Check if a given object implements the UiHeadersReadConfigurationResponse interface. + */ +export function instanceOfUiHeadersReadConfigurationResponse( + value: object +): value is UiHeadersReadConfigurationResponse { + return true; +} + +export function UiHeadersReadConfigurationResponseFromJSON(json: any): UiHeadersReadConfigurationResponse { + return UiHeadersReadConfigurationResponseFromJSONTyped(json, false); +} + +export function UiHeadersReadConfigurationResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UiHeadersReadConfigurationResponse { + if (json == null) { + return json; + } + return { + value: json['value'] == null ? undefined : json['value'], + values: json['values'] == null ? undefined : json['values'], + }; +} + +export function UiHeadersReadConfigurationResponseToJSON(json: any): UiHeadersReadConfigurationResponse { + return UiHeadersReadConfigurationResponseToJSONTyped(json, false); +} + +export function UiHeadersReadConfigurationResponseToJSONTyped( + value?: UiHeadersReadConfigurationResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + value: value['value'], + values: value['values'], + }; +} diff --git a/ui/api-client/src/models/UnsealRequest.ts b/ui/api-client/src/models/UnsealRequest.ts new file mode 100644 index 0000000000..f99a30c2d2 --- /dev/null +++ b/ui/api-client/src/models/UnsealRequest.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UnsealRequest + */ +export interface UnsealRequest { + /** + * Specifies a single unseal key share. This is required unless reset is true. + * @type {string} + * @memberof UnsealRequest + */ + key?: string; + /** + * Used to migrate the seal from shamir to autoseal or autoseal to shamir. Must be provided on all unseal key calls. + * @type {boolean} + * @memberof UnsealRequest + */ + migrate?: boolean; + /** + * Specifies if previously-provided unseal keys are discarded and the unseal process is reset. + * @type {boolean} + * @memberof UnsealRequest + */ + reset?: boolean; +} + +/** + * Check if a given object implements the UnsealRequest interface. + */ +export function instanceOfUnsealRequest(value: object): value is UnsealRequest { + return true; +} + +export function UnsealRequestFromJSON(json: any): UnsealRequest { + return UnsealRequestFromJSONTyped(json, false); +} + +export function UnsealRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnsealRequest { + if (json == null) { + return json; + } + return { + key: json['key'] == null ? undefined : json['key'], + migrate: json['migrate'] == null ? undefined : json['migrate'], + reset: json['reset'] == null ? undefined : json['reset'], + }; +} + +export function UnsealRequestToJSON(json: any): UnsealRequest { + return UnsealRequestToJSONTyped(json, false); +} + +export function UnsealRequestToJSONTyped( + value?: UnsealRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key: value['key'], + migrate: value['migrate'], + reset: value['reset'], + }; +} diff --git a/ui/api-client/src/models/UnsealResponse.ts b/ui/api-client/src/models/UnsealResponse.ts new file mode 100644 index 0000000000..44761389df --- /dev/null +++ b/ui/api-client/src/models/UnsealResponse.ts @@ -0,0 +1,185 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UnsealResponse + */ +export interface UnsealResponse { + /** + * + * @type {string} + * @memberof UnsealResponse + */ + buildDate?: string; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + clusterId?: string; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + clusterName?: string; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + hcpLinkResourceID?: string; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + hcpLinkStatus?: string; + /** + * + * @type {boolean} + * @memberof UnsealResponse + */ + initialized?: boolean; + /** + * + * @type {boolean} + * @memberof UnsealResponse + */ + migration?: boolean; + /** + * + * @type {number} + * @memberof UnsealResponse + */ + n?: number; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + nonce?: string; + /** + * + * @type {number} + * @memberof UnsealResponse + */ + progress?: number; + /** + * + * @type {boolean} + * @memberof UnsealResponse + */ + recoverySeal?: boolean; + /** + * + * @type {boolean} + * @memberof UnsealResponse + */ + sealed?: boolean; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + storageType?: string; + /** + * + * @type {number} + * @memberof UnsealResponse + */ + t?: number; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + type?: string; + /** + * + * @type {string} + * @memberof UnsealResponse + */ + version?: string; +} + +/** + * Check if a given object implements the UnsealResponse interface. + */ +export function instanceOfUnsealResponse(value: object): value is UnsealResponse { + return true; +} + +export function UnsealResponseFromJSON(json: any): UnsealResponse { + return UnsealResponseFromJSONTyped(json, false); +} + +export function UnsealResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnsealResponse { + if (json == null) { + return json; + } + return { + buildDate: json['build_date'] == null ? undefined : json['build_date'], + clusterId: json['cluster_id'] == null ? undefined : json['cluster_id'], + clusterName: json['cluster_name'] == null ? undefined : json['cluster_name'], + hcpLinkResourceID: json['hcp_link_resource_ID'] == null ? undefined : json['hcp_link_resource_ID'], + hcpLinkStatus: json['hcp_link_status'] == null ? undefined : json['hcp_link_status'], + initialized: json['initialized'] == null ? undefined : json['initialized'], + migration: json['migration'] == null ? undefined : json['migration'], + n: json['n'] == null ? undefined : json['n'], + nonce: json['nonce'] == null ? undefined : json['nonce'], + progress: json['progress'] == null ? undefined : json['progress'], + recoverySeal: json['recovery_seal'] == null ? undefined : json['recovery_seal'], + sealed: json['sealed'] == null ? undefined : json['sealed'], + storageType: json['storage_type'] == null ? undefined : json['storage_type'], + t: json['t'] == null ? undefined : json['t'], + type: json['type'] == null ? undefined : json['type'], + version: json['version'] == null ? undefined : json['version'], + }; +} + +export function UnsealResponseToJSON(json: any): UnsealResponse { + return UnsealResponseToJSONTyped(json, false); +} + +export function UnsealResponseToJSONTyped( + value?: UnsealResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + build_date: value['buildDate'], + cluster_id: value['clusterId'], + cluster_name: value['clusterName'], + hcp_link_resource_ID: value['hcpLinkResourceID'], + hcp_link_status: value['hcpLinkStatus'], + initialized: value['initialized'], + migration: value['migration'], + n: value['n'], + nonce: value['nonce'], + progress: value['progress'], + recovery_seal: value['recoverySeal'], + sealed: value['sealed'], + storage_type: value['storageType'], + t: value['t'], + type: value['type'], + version: value['version'], + }; +} diff --git a/ui/api-client/src/models/UnwrapRequest.ts b/ui/api-client/src/models/UnwrapRequest.ts new file mode 100644 index 0000000000..ef6626d3e8 --- /dev/null +++ b/ui/api-client/src/models/UnwrapRequest.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UnwrapRequest + */ +export interface UnwrapRequest { + /** + * + * @type {string} + * @memberof UnwrapRequest + */ + token?: string; +} + +/** + * Check if a given object implements the UnwrapRequest interface. + */ +export function instanceOfUnwrapRequest(value: object): value is UnwrapRequest { + return true; +} + +export function UnwrapRequestFromJSON(json: any): UnwrapRequest { + return UnwrapRequestFromJSONTyped(json, false); +} + +export function UnwrapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnwrapRequest { + if (json == null) { + return json; + } + return { + token: json['token'] == null ? undefined : json['token'], + }; +} + +export function UnwrapRequestToJSON(json: any): UnwrapRequest { + return UnwrapRequestToJSONTyped(json, false); +} + +export function UnwrapRequestToJSONTyped( + value?: UnwrapRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + token: value['token'], + }; +} diff --git a/ui/api-client/src/models/UserpassLoginRequest.ts b/ui/api-client/src/models/UserpassLoginRequest.ts new file mode 100644 index 0000000000..b545a977c3 --- /dev/null +++ b/ui/api-client/src/models/UserpassLoginRequest.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UserpassLoginRequest + */ +export interface UserpassLoginRequest { + /** + * Password for this user. + * @type {string} + * @memberof UserpassLoginRequest + */ + password?: string; +} + +/** + * Check if a given object implements the UserpassLoginRequest interface. + */ +export function instanceOfUserpassLoginRequest(value: object): value is UserpassLoginRequest { + return true; +} + +export function UserpassLoginRequestFromJSON(json: any): UserpassLoginRequest { + return UserpassLoginRequestFromJSONTyped(json, false); +} + +export function UserpassLoginRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UserpassLoginRequest { + if (json == null) { + return json; + } + return { + password: json['password'] == null ? undefined : json['password'], + }; +} + +export function UserpassLoginRequestToJSON(json: any): UserpassLoginRequest { + return UserpassLoginRequestToJSONTyped(json, false); +} + +export function UserpassLoginRequestToJSONTyped( + value?: UserpassLoginRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + password: value['password'], + }; +} diff --git a/ui/api-client/src/models/UserpassResetPasswordRequest.ts b/ui/api-client/src/models/UserpassResetPasswordRequest.ts new file mode 100644 index 0000000000..5df10fd0ea --- /dev/null +++ b/ui/api-client/src/models/UserpassResetPasswordRequest.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UserpassResetPasswordRequest + */ +export interface UserpassResetPasswordRequest { + /** + * Password for this user. + * @type {string} + * @memberof UserpassResetPasswordRequest + */ + password?: string; + /** + * Pre-hashed password in bcrypt format for this user. + * @type {string} + * @memberof UserpassResetPasswordRequest + */ + passwordHash?: string; +} + +/** + * Check if a given object implements the UserpassResetPasswordRequest interface. + */ +export function instanceOfUserpassResetPasswordRequest(value: object): value is UserpassResetPasswordRequest { + return true; +} + +export function UserpassResetPasswordRequestFromJSON(json: any): UserpassResetPasswordRequest { + return UserpassResetPasswordRequestFromJSONTyped(json, false); +} + +export function UserpassResetPasswordRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UserpassResetPasswordRequest { + if (json == null) { + return json; + } + return { + password: json['password'] == null ? undefined : json['password'], + passwordHash: json['password_hash'] == null ? undefined : json['password_hash'], + }; +} + +export function UserpassResetPasswordRequestToJSON(json: any): UserpassResetPasswordRequest { + return UserpassResetPasswordRequestToJSONTyped(json, false); +} + +export function UserpassResetPasswordRequestToJSONTyped( + value?: UserpassResetPasswordRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + password: value['password'], + password_hash: value['passwordHash'], + }; +} diff --git a/ui/api-client/src/models/UserpassUpdatePoliciesRequest.ts b/ui/api-client/src/models/UserpassUpdatePoliciesRequest.ts new file mode 100644 index 0000000000..b2db14895c --- /dev/null +++ b/ui/api-client/src/models/UserpassUpdatePoliciesRequest.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UserpassUpdatePoliciesRequest + */ +export interface UserpassUpdatePoliciesRequest { + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof UserpassUpdatePoliciesRequest + * @deprecated + */ + policies?: Array; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof UserpassUpdatePoliciesRequest + */ + tokenPolicies?: Array; +} + +/** + * Check if a given object implements the UserpassUpdatePoliciesRequest interface. + */ +export function instanceOfUserpassUpdatePoliciesRequest( + value: object +): value is UserpassUpdatePoliciesRequest { + return true; +} + +export function UserpassUpdatePoliciesRequestFromJSON(json: any): UserpassUpdatePoliciesRequest { + return UserpassUpdatePoliciesRequestFromJSONTyped(json, false); +} + +export function UserpassUpdatePoliciesRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UserpassUpdatePoliciesRequest { + if (json == null) { + return json; + } + return { + policies: json['policies'] == null ? undefined : json['policies'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + }; +} + +export function UserpassUpdatePoliciesRequestToJSON(json: any): UserpassUpdatePoliciesRequest { + return UserpassUpdatePoliciesRequestToJSONTyped(json, false); +} + +export function UserpassUpdatePoliciesRequestToJSONTyped( + value?: UserpassUpdatePoliciesRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + policies: value['policies'], + token_policies: value['tokenPolicies'], + }; +} diff --git a/ui/api-client/src/models/UserpassWriteUserRequest.ts b/ui/api-client/src/models/UserpassWriteUserRequest.ts new file mode 100644 index 0000000000..f28b573597 --- /dev/null +++ b/ui/api-client/src/models/UserpassWriteUserRequest.ts @@ -0,0 +1,185 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UserpassWriteUserRequest + */ +export interface UserpassWriteUserRequest { + /** + * Use "token_bound_cidrs" instead. If this and "token_bound_cidrs" are both specified, only "token_bound_cidrs" will be used. + * @type {Array} + * @memberof UserpassWriteUserRequest + * @deprecated + */ + boundCidrs?: Array; + /** + * Use "token_max_ttl" instead. If this and "token_max_ttl" are both specified, only "token_max_ttl" will be used. + * @type {string} + * @memberof UserpassWriteUserRequest + * @deprecated + */ + maxTtl?: string; + /** + * Password for this user. + * @type {string} + * @memberof UserpassWriteUserRequest + */ + password?: string; + /** + * Pre-hashed password in bcrypt format for this user. + * @type {string} + * @memberof UserpassWriteUserRequest + */ + passwordHash?: string; + /** + * Use "token_policies" instead. If this and "token_policies" are both specified, only "token_policies" will be used. + * @type {Array} + * @memberof UserpassWriteUserRequest + * @deprecated + */ + policies?: Array; + /** + * Comma separated string or JSON list of CIDR blocks. If set, specifies the blocks of IP addresses which are allowed to use the generated token. + * @type {Array} + * @memberof UserpassWriteUserRequest + */ + tokenBoundCidrs?: Array; + /** + * If set, tokens created via this role carry an explicit maximum TTL. During renewal, the current maximum TTL values of the role and the mount are not checked for changes, and any updates to these values will have no effect on the token being renewed. + * @type {string} + * @memberof UserpassWriteUserRequest + */ + tokenExplicitMaxTtl?: string; + /** + * The maximum lifetime of the generated token + * @type {string} + * @memberof UserpassWriteUserRequest + */ + tokenMaxTtl?: string; + /** + * If true, the 'default' policy will not automatically be added to generated tokens + * @type {boolean} + * @memberof UserpassWriteUserRequest + */ + tokenNoDefaultPolicy?: boolean; + /** + * The maximum number of times a token may be used, a value of zero means unlimited + * @type {number} + * @memberof UserpassWriteUserRequest + */ + tokenNumUses?: number; + /** + * If set, tokens created via this role will have no max lifetime; instead, their renewal period will be fixed to this value. This takes an integer number of seconds, or a string duration (e.g. "24h"). + * @type {string} + * @memberof UserpassWriteUserRequest + */ + tokenPeriod?: string; + /** + * Comma-separated list of policies + * @type {Array} + * @memberof UserpassWriteUserRequest + */ + tokenPolicies?: Array; + /** + * The initial ttl of the token to generate + * @type {string} + * @memberof UserpassWriteUserRequest + */ + tokenTtl?: string; + /** + * The type of token to generate, service or batch + * @type {string} + * @memberof UserpassWriteUserRequest + */ + tokenType?: string; + /** + * Use "token_ttl" instead. If this and "token_ttl" are both specified, only "token_ttl" will be used. + * @type {string} + * @memberof UserpassWriteUserRequest + * @deprecated + */ + ttl?: string; +} + +/** + * Check if a given object implements the UserpassWriteUserRequest interface. + */ +export function instanceOfUserpassWriteUserRequest(value: object): value is UserpassWriteUserRequest { + return true; +} + +export function UserpassWriteUserRequestFromJSON(json: any): UserpassWriteUserRequest { + return UserpassWriteUserRequestFromJSONTyped(json, false); +} + +export function UserpassWriteUserRequestFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): UserpassWriteUserRequest { + if (json == null) { + return json; + } + return { + boundCidrs: json['bound_cidrs'] == null ? undefined : json['bound_cidrs'], + maxTtl: json['max_ttl'] == null ? undefined : json['max_ttl'], + password: json['password'] == null ? undefined : json['password'], + passwordHash: json['password_hash'] == null ? undefined : json['password_hash'], + policies: json['policies'] == null ? undefined : json['policies'], + tokenBoundCidrs: json['token_bound_cidrs'] == null ? undefined : json['token_bound_cidrs'], + tokenExplicitMaxTtl: json['token_explicit_max_ttl'] == null ? undefined : json['token_explicit_max_ttl'], + tokenMaxTtl: json['token_max_ttl'] == null ? undefined : json['token_max_ttl'], + tokenNoDefaultPolicy: + json['token_no_default_policy'] == null ? undefined : json['token_no_default_policy'], + tokenNumUses: json['token_num_uses'] == null ? undefined : json['token_num_uses'], + tokenPeriod: json['token_period'] == null ? undefined : json['token_period'], + tokenPolicies: json['token_policies'] == null ? undefined : json['token_policies'], + tokenTtl: json['token_ttl'] == null ? undefined : json['token_ttl'], + tokenType: json['token_type'] == null ? undefined : json['token_type'], + ttl: json['ttl'] == null ? undefined : json['ttl'], + }; +} + +export function UserpassWriteUserRequestToJSON(json: any): UserpassWriteUserRequest { + return UserpassWriteUserRequestToJSONTyped(json, false); +} + +export function UserpassWriteUserRequestToJSONTyped( + value?: UserpassWriteUserRequest | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + bound_cidrs: value['boundCidrs'], + max_ttl: value['maxTtl'], + password: value['password'], + password_hash: value['passwordHash'], + policies: value['policies'], + token_bound_cidrs: value['tokenBoundCidrs'], + token_explicit_max_ttl: value['tokenExplicitMaxTtl'], + token_max_ttl: value['tokenMaxTtl'], + token_no_default_policy: value['tokenNoDefaultPolicy'], + token_num_uses: value['tokenNumUses'], + token_period: value['tokenPeriod'], + token_policies: value['tokenPolicies'], + token_ttl: value['tokenTtl'], + token_type: value['tokenType'], + ttl: value['ttl'], + }; +} diff --git a/ui/api-client/src/models/VersionHistoryResponse.ts b/ui/api-client/src/models/VersionHistoryResponse.ts new file mode 100644 index 0000000000..ce2275daac --- /dev/null +++ b/ui/api-client/src/models/VersionHistoryResponse.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface VersionHistoryResponse + */ +export interface VersionHistoryResponse { + /** + * + * @type {object} + * @memberof VersionHistoryResponse + */ + keyInfo?: object; + /** + * + * @type {Array} + * @memberof VersionHistoryResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the VersionHistoryResponse interface. + */ +export function instanceOfVersionHistoryResponse(value: object): value is VersionHistoryResponse { + return true; +} + +export function VersionHistoryResponseFromJSON(json: any): VersionHistoryResponse { + return VersionHistoryResponseFromJSONTyped(json, false); +} + +export function VersionHistoryResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): VersionHistoryResponse { + if (json == null) { + return json; + } + return { + keyInfo: json['key_info'] == null ? undefined : json['key_info'], + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function VersionHistoryResponseToJSON(json: any): VersionHistoryResponse { + return VersionHistoryResponseToJSONTyped(json, false); +} + +export function VersionHistoryResponseToJSONTyped( + value?: VersionHistoryResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + key_info: value['keyInfo'], + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/WellKnownListLabels2Response.ts b/ui/api-client/src/models/WellKnownListLabels2Response.ts new file mode 100644 index 0000000000..018eb0be7c --- /dev/null +++ b/ui/api-client/src/models/WellKnownListLabels2Response.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface WellKnownListLabels2Response + */ +export interface WellKnownListLabels2Response { + /** + * + * @type {Array} + * @memberof WellKnownListLabels2Response + */ + keys?: Array; +} + +/** + * Check if a given object implements the WellKnownListLabels2Response interface. + */ +export function instanceOfWellKnownListLabels2Response(value: object): value is WellKnownListLabels2Response { + return true; +} + +export function WellKnownListLabels2ResponseFromJSON(json: any): WellKnownListLabels2Response { + return WellKnownListLabels2ResponseFromJSONTyped(json, false); +} + +export function WellKnownListLabels2ResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): WellKnownListLabels2Response { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function WellKnownListLabels2ResponseToJSON(json: any): WellKnownListLabels2Response { + return WellKnownListLabels2ResponseToJSONTyped(json, false); +} + +export function WellKnownListLabels2ResponseToJSONTyped( + value?: WellKnownListLabels2Response | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/WellKnownListLabelsResponse.ts b/ui/api-client/src/models/WellKnownListLabelsResponse.ts new file mode 100644 index 0000000000..fc82034d06 --- /dev/null +++ b/ui/api-client/src/models/WellKnownListLabelsResponse.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface WellKnownListLabelsResponse + */ +export interface WellKnownListLabelsResponse { + /** + * + * @type {Array} + * @memberof WellKnownListLabelsResponse + */ + keys?: Array; +} + +/** + * Check if a given object implements the WellKnownListLabelsResponse interface. + */ +export function instanceOfWellKnownListLabelsResponse(value: object): value is WellKnownListLabelsResponse { + return true; +} + +export function WellKnownListLabelsResponseFromJSON(json: any): WellKnownListLabelsResponse { + return WellKnownListLabelsResponseFromJSONTyped(json, false); +} + +export function WellKnownListLabelsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): WellKnownListLabelsResponse { + if (json == null) { + return json; + } + return { + keys: json['keys'] == null ? undefined : json['keys'], + }; +} + +export function WellKnownListLabelsResponseToJSON(json: any): WellKnownListLabelsResponse { + return WellKnownListLabelsResponseToJSONTyped(json, false); +} + +export function WellKnownListLabelsResponseToJSONTyped( + value?: WellKnownListLabelsResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + keys: value['keys'], + }; +} diff --git a/ui/api-client/src/models/WellKnownReadLabelResponse.ts b/ui/api-client/src/models/WellKnownReadLabelResponse.ts new file mode 100644 index 0000000000..722532f567 --- /dev/null +++ b/ui/api-client/src/models/WellKnownReadLabelResponse.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface WellKnownReadLabelResponse + */ +export interface WellKnownReadLabelResponse { + /** + * + * @type {string} + * @memberof WellKnownReadLabelResponse + */ + label?: string; + /** + * + * @type {string} + * @memberof WellKnownReadLabelResponse + */ + mountPath?: string; + /** + * + * @type {string} + * @memberof WellKnownReadLabelResponse + */ + mountUuid?: string; + /** + * + * @type {string} + * @memberof WellKnownReadLabelResponse + */ + prefix?: string; +} + +/** + * Check if a given object implements the WellKnownReadLabelResponse interface. + */ +export function instanceOfWellKnownReadLabelResponse(value: object): value is WellKnownReadLabelResponse { + return true; +} + +export function WellKnownReadLabelResponseFromJSON(json: any): WellKnownReadLabelResponse { + return WellKnownReadLabelResponseFromJSONTyped(json, false); +} + +export function WellKnownReadLabelResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean +): WellKnownReadLabelResponse { + if (json == null) { + return json; + } + return { + label: json['label'] == null ? undefined : json['label'], + mountPath: json['mount_path'] == null ? undefined : json['mount_path'], + mountUuid: json['mount_uuid'] == null ? undefined : json['mount_uuid'], + prefix: json['prefix'] == null ? undefined : json['prefix'], + }; +} + +export function WellKnownReadLabelResponseToJSON(json: any): WellKnownReadLabelResponse { + return WellKnownReadLabelResponseToJSONTyped(json, false); +} + +export function WellKnownReadLabelResponseToJSONTyped( + value?: WellKnownReadLabelResponse | null, + ignoreDiscriminator: boolean = false +): any { + if (value == null) { + return value; + } + + return { + label: value['label'], + mount_path: value['mountPath'], + mount_uuid: value['mountUuid'], + prefix: value['prefix'], + }; +} diff --git a/ui/api-client/src/models/index.ts b/ui/api-client/src/models/index.ts new file mode 100644 index 0000000000..45ef104b71 --- /dev/null +++ b/ui/api-client/src/models/index.ts @@ -0,0 +1,757 @@ +/* tslint:disable */ +/* eslint-disable */ +export * from './AliCloudConfigureRequest'; +export * from './AliCloudLoginRequest'; +export * from './AliCloudWriteAuthRoleRequest'; +export * from './AliCloudWriteRoleRequest'; +export * from './AliasCreateRequest'; +export * from './AliasUpdateByIdRequest'; +export * from './AppRoleDestroySecretIdByAccessorRequest'; +export * from './AppRoleDestroySecretIdRequest'; +export * from './AppRoleLoginRequest'; +export * from './AppRoleLoginResponse'; +export * from './AppRoleLookUpSecretIdByAccessorRequest'; +export * from './AppRoleLookUpSecretIdByAccessorResponse'; +export * from './AppRoleLookUpSecretIdRequest'; +export * from './AppRoleLookUpSecretIdResponse'; +export * from './AppRoleReadBindSecretIdResponse'; +export * from './AppRoleReadBoundCidrListResponse'; +export * from './AppRoleReadLocalSecretIdsResponse'; +export * from './AppRoleReadPeriodResponse'; +export * from './AppRoleReadPoliciesResponse'; +export * from './AppRoleReadRoleIdResponse'; +export * from './AppRoleReadRoleResponse'; +export * from './AppRoleReadSecretIdBoundCidrsResponse'; +export * from './AppRoleReadSecretIdNumUsesResponse'; +export * from './AppRoleReadSecretIdTtlResponse'; +export * from './AppRoleReadTokenBoundCidrsResponse'; +export * from './AppRoleReadTokenMaxTtlResponse'; +export * from './AppRoleReadTokenNumUsesResponse'; +export * from './AppRoleReadTokenTtlResponse'; +export * from './AppRoleWriteBindSecretIdRequest'; +export * from './AppRoleWriteBoundCidrListRequest'; +export * from './AppRoleWriteCustomSecretIdRequest'; +export * from './AppRoleWriteCustomSecretIdResponse'; +export * from './AppRoleWritePeriodRequest'; +export * from './AppRoleWritePoliciesRequest'; +export * from './AppRoleWriteRoleIdRequest'; +export * from './AppRoleWriteRoleRequest'; +export * from './AppRoleWriteSecretIdBoundCidrsRequest'; +export * from './AppRoleWriteSecretIdNumUsesRequest'; +export * from './AppRoleWriteSecretIdRequest'; +export * from './AppRoleWriteSecretIdResponse'; +export * from './AppRoleWriteSecretIdTtlRequest'; +export * from './AppRoleWriteTokenBoundCidrsRequest'; +export * from './AppRoleWriteTokenMaxTtlRequest'; +export * from './AppRoleWriteTokenNumUsesRequest'; +export * from './AppRoleWriteTokenTtlRequest'; +export * from './AuditingCalculateHashRequest'; +export * from './AuditingCalculateHashResponse'; +export * from './AuditingEnableDeviceRequest'; +export * from './AuditingEnableRequestHeaderRequest'; +export * from './AuditingListRequestHeadersResponse'; +export * from './AuthEnableMethodRequest'; +export * from './AuthReadConfigurationResponse'; +export * from './AuthReadTuningInformationResponse'; +export * from './AuthTuneConfigurationParametersRequest'; +export * from './AwsConfigureCertificateRequest'; +export * from './AwsConfigureClientRequest'; +export * from './AwsConfigureIdentityAccessListTidyOperationRequest'; +export * from './AwsConfigureIdentityIntegrationRequest'; +export * from './AwsConfigureIdentityWhitelistTidyOperationRequest'; +export * from './AwsConfigureLeaseRequest'; +export * from './AwsConfigureRoleTagBlacklistTidyOperationRequest'; +export * from './AwsConfigureRoleTagDenyListTidyOperationRequest'; +export * from './AwsConfigureRootIamCredentialsRequest'; +export * from './AwsGenerateCredentialsWithParametersRequest'; +export * from './AwsGenerateStsCredentialsWithParametersRequest'; +export * from './AwsLoginRequest'; +export * from './AwsReadStaticCredsNameResponse'; +export * from './AwsReadStaticRolesNameResponse'; +export * from './AwsTidyIdentityAccessListRequest'; +export * from './AwsTidyIdentityWhitelistRequest'; +export * from './AwsTidyRoleTagBlacklistRequest'; +export * from './AwsTidyRoleTagDenyListRequest'; +export * from './AwsWriteAuthRoleRequest'; +export * from './AwsWriteRoleRequest'; +export * from './AwsWriteRoleTagRequest'; +export * from './AwsWriteStaticRolesNameRequest'; +export * from './AwsWriteStaticRolesNameResponse'; +export * from './AwsWriteStsRoleRequest'; +export * from './AzureConfigureAuthRequest'; +export * from './AzureConfigureRequest'; +export * from './AzureLoginRequest'; +export * from './AzureWriteAuthRoleRequest'; +export * from './AzureWriteRoleRequest'; +export * from './CertConfigureRequest'; +export * from './CertLoginRequest'; +export * from './CertWriteCertificateRequest'; +export * from './CertWriteCrlRequest'; +export * from './CloudFoundryConfigureRequest'; +export * from './CloudFoundryLoginRequest'; +export * from './CloudFoundryWriteRoleRequest'; +export * from './CollectHostInformationResponse'; +export * from './ConsulConfigureAccessRequest'; +export * from './ConsulWriteRoleRequest'; +export * from './CorsConfigureRequest'; +export * from './CorsReadConfigurationResponse'; +export * from './CreateCustomMessageRequest'; +export * from './DatabaseConfigureConnectionRequest'; +export * from './DatabaseWriteRoleRequest'; +export * from './DatabaseWriteStaticRoleRequest'; +export * from './DecodeTokenRequest'; +export * from './EncryptionKeyConfigureRotationRequest'; +export * from './EncryptionKeyReadRotationConfigurationResponse'; +export * from './EntitiesCreateDuplicatesRequest'; +export * from './EntityAliasCreateDuplicatesRequest'; +export * from './EntityAliasesCreateDuplicatesRequest'; +export * from './EntityBatchDeleteRequest'; +export * from './EntityCreateAliasRequest'; +export * from './EntityCreateRequest'; +export * from './EntityLookUpRequest'; +export * from './EntityMergeRequest'; +export * from './EntityUpdateAliasByIdRequest'; +export * from './EntityUpdateByIdRequest'; +export * from './EntityUpdateByNameRequest'; +export * from './GenerateHashRequest'; +export * from './GenerateHashResponse'; +export * from './GenerateHashWithAlgorithmRequest'; +export * from './GenerateHashWithAlgorithmResponse'; +export * from './GenerateRandomRequest'; +export * from './GenerateRandomResponse'; +export * from './GenerateRandomWithBytesRequest'; +export * from './GenerateRandomWithBytesResponse'; +export * from './GenerateRandomWithSourceAndBytesRequest'; +export * from './GenerateRandomWithSourceAndBytesResponse'; +export * from './GenerateRandomWithSourceRequest'; +export * from './GenerateRandomWithSourceResponse'; +export * from './GithubConfigureRequest'; +export * from './GithubLoginRequest'; +export * from './GithubWriteTeamMappingRequest'; +export * from './GithubWriteUserMappingRequest'; +export * from './GoogleCloudConfigureAuthRequest'; +export * from './GoogleCloudConfigureRequest'; +export * from './GoogleCloudEditLabelsForRoleRequest'; +export * from './GoogleCloudEditServiceAccountsForRoleRequest'; +export * from './GoogleCloudGenerateRolesetKey3Request'; +export * from './GoogleCloudGenerateRolesetKeyRequest'; +export * from './GoogleCloudGenerateStaticAccountKeyRequest'; +export * from './GoogleCloudKmsConfigureKeyRequest'; +export * from './GoogleCloudKmsConfigureRequest'; +export * from './GoogleCloudKmsDecryptRequest'; +export * from './GoogleCloudKmsEncryptRequest'; +export * from './GoogleCloudKmsReencryptRequest'; +export * from './GoogleCloudKmsRegisterKeyRequest'; +export * from './GoogleCloudKmsSignRequest'; +export * from './GoogleCloudKmsVerifyRequest'; +export * from './GoogleCloudKmsWriteKeyRequest'; +export * from './GoogleCloudLoginRequest'; +export * from './GoogleCloudWriteImpersonatedAccountRequest'; +export * from './GoogleCloudWriteRoleRequest'; +export * from './GoogleCloudWriteRolesetRequest'; +export * from './GoogleCloudWriteStaticAccountRequest'; +export * from './GroupCreateAliasRequest'; +export * from './GroupCreateRequest'; +export * from './GroupLookUpRequest'; +export * from './GroupUpdateAliasByIdRequest'; +export * from './GroupUpdateByIdRequest'; +export * from './GroupUpdateByNameRequest'; +export * from './GroupsCreateDuplicatesRequest'; +export * from './HaStatusResponse'; +export * from './InitializeRequest'; +export * from './InternalClientActivityConfigureRequest'; +export * from './InternalCountEntitiesResponse'; +export * from './InternalCountTokensResponse'; +export * from './InternalGenerateOpenApiDocumentWithParametersRequest'; +export * from './InternalUiListEnabledFeatureFlagsResponse'; +export * from './InternalUiListEnabledVisibleMountsResponse'; +export * from './InternalUiListNamespacesResponse'; +export * from './InternalUiReadAuthenticatedActiveCustomMessagesResponse'; +export * from './InternalUiReadMountInformationResponse'; +export * from './InternalUiReadResultantAclResponse'; +export * from './InternalUiReadUnauthenticatedActiveCustomMessagesResponse'; +export * from './JwtConfigureRequest'; +export * from './JwtLoginRequest'; +export * from './JwtOidcCallbackFormPostRequest'; +export * from './JwtOidcRequestAuthorizationUrlRequest'; +export * from './JwtWriteRoleRequest'; +export * from './KerberosConfigureLdapRequest'; +export * from './KerberosConfigureRequest'; +export * from './KerberosLoginRequest'; +export * from './KerberosWriteGroupRequest'; +export * from './KubernetesConfigureAuthRequest'; +export * from './KubernetesConfigureRequest'; +export * from './KubernetesGenerateCredentialsRequest'; +export * from './KubernetesLoginRequest'; +export * from './KubernetesWriteAuthRoleRequest'; +export * from './KubernetesWriteRoleRequest'; +export * from './KvV2ConfigureRequest'; +export * from './KvV2DeleteVersionsRequest'; +export * from './KvV2DestroyVersionsRequest'; +export * from './KvV2PatchResponse'; +export * from './KvV2ReadConfigurationResponse'; +export * from './KvV2ReadMetadataResponse'; +export * from './KvV2ReadResponse'; +export * from './KvV2ReadSubkeysResponse'; +export * from './KvV2UndeleteVersionsRequest'; +export * from './KvV2WriteMetadataRequest'; +export * from './KvV2WriteRequest'; +export * from './KvV2WriteResponse'; +export * from './LdapConfigureAuthRequest'; +export * from './LdapConfigureRequest'; +export * from './LdapLibraryCheckInRequest'; +export * from './LdapLibraryCheckOutRequest'; +export * from './LdapLibraryConfigureRequest'; +export * from './LdapLibraryForceCheckInRequest'; +export * from './LdapLoginRequest'; +export * from './LdapRotateStaticRoleRequest'; +export * from './LdapWriteDynamicRoleRequest'; +export * from './LdapWriteGroupRequest'; +export * from './LdapWriteStaticRoleRequest'; +export * from './LdapWriteUserRequest'; +export * from './LeaderStatusResponse'; +export * from './LeasesCountResponse'; +export * from './LeasesListResponse'; +export * from './LeasesLookUpResponse'; +export * from './LeasesReadLeaseRequest'; +export * from './LeasesReadLeaseResponse'; +export * from './LeasesRenewLease2Request'; +export * from './LeasesRenewLeaseRequest'; +export * from './LeasesRenewLeaseWithId2Request'; +export * from './LeasesRenewLeaseWithIdRequest'; +export * from './LeasesRevokeLease2Request'; +export * from './LeasesRevokeLeaseRequest'; +export * from './LeasesRevokeLeaseWithId2Request'; +export * from './LeasesRevokeLeaseWithIdRequest'; +export * from './LeasesRevokeLeaseWithPrefix2Request'; +export * from './LeasesRevokeLeaseWithPrefixRequest'; +export * from './LoggersUpdateVerbosityLevelForRequest'; +export * from './LoggersUpdateVerbosityLevelRequest'; +export * from './MfaAdminDestroyTotpSecretRequest'; +export * from './MfaAdminGenerateTotpSecretRequest'; +export * from './MfaCreateDuoMethodRequest'; +export * from './MfaCreateOktaMethodRequest'; +export * from './MfaCreatePingIdMethodRequest'; +export * from './MfaCreateTotpMethodRequest'; +export * from './MfaGenerateTotpSecretRequest'; +export * from './MfaUpdateDuoMethodRequest'; +export * from './MfaUpdateOktaMethodRequest'; +export * from './MfaUpdatePingIdMethodRequest'; +export * from './MfaUpdateTotpMethodRequest'; +export * from './MfaValidateRequest'; +export * from './MfaWriteLoginEnforcementRequest'; +export * from './MongoDbAtlasConfigureRequest'; +export * from './MongoDbAtlasWriteRoleRequest'; +export * from './MountsEnableSecretsEngineRequest'; +export * from './MountsReadConfigurationResponse'; +export * from './MountsReadTuningInformationResponse'; +export * from './MountsTuneConfigurationParametersRequest'; +export * from './NomadConfigureAccessRequest'; +export * from './NomadConfigureLeaseRequest'; +export * from './NomadWriteRoleRequest'; +export * from './OciConfigureRequest'; +export * from './OciLoginRequest'; +export * from './OciWriteRoleRequest'; +export * from './OidcConfigureRequest'; +export * from './OidcIntrospectRequest'; +export * from './OidcProviderAuthorizeWithParametersRequest'; +export * from './OidcProviderTokenRequest'; +export * from './OidcRotateKeyRequest'; +export * from './OidcWriteAssignmentRequest'; +export * from './OidcWriteClientRequest'; +export * from './OidcWriteKeyRequest'; +export * from './OidcWriteProviderRequest'; +export * from './OidcWriteRoleRequest'; +export * from './OidcWriteScopeRequest'; +export * from './OktaConfigureRequest'; +export * from './OktaLoginRequest'; +export * from './OktaWriteGroupRequest'; +export * from './OktaWriteUserRequest'; +export * from './PersonaCreateRequest'; +export * from './PersonaUpdateByIdRequest'; +export * from './PkiConfigureAcmeRequest'; +export * from './PkiConfigureAutoTidyRequest'; +export * from './PkiConfigureAutoTidyResponse'; +export * from './PkiConfigureCaRequest'; +export * from './PkiConfigureCaResponse'; +export * from './PkiConfigureClusterRequest'; +export * from './PkiConfigureClusterResponse'; +export * from './PkiConfigureCmpRequest'; +export * from './PkiConfigureCrlRequest'; +export * from './PkiConfigureCrlResponse'; +export * from './PkiConfigureEstRequest'; +export * from './PkiConfigureExternalPolicyRequest'; +export * from './PkiConfigureExternalPolicyResponse'; +export * from './PkiConfigureIssuersRequest'; +export * from './PkiConfigureIssuersResponse'; +export * from './PkiConfigureKeysRequest'; +export * from './PkiConfigureKeysResponse'; +export * from './PkiConfigureScepRequest'; +export * from './PkiConfigureUrlsRequest'; +export * from './PkiConfigureUrlsResponse'; +export * from './PkiCrossSignIntermediateRequest'; +export * from './PkiCrossSignIntermediateResponse'; +export * from './PkiGenerateEabKeyForIssuerAndRoleResponse'; +export * from './PkiGenerateEabKeyForIssuerResponse'; +export * from './PkiGenerateEabKeyForRoleResponse'; +export * from './PkiGenerateEabKeyResponse'; +export * from './PkiGenerateExportedKeyRequest'; +export * from './PkiGenerateExportedKeyResponse'; +export * from './PkiGenerateIntermediateRequest'; +export * from './PkiGenerateIntermediateResponse'; +export * from './PkiGenerateInternalKeyRequest'; +export * from './PkiGenerateInternalKeyResponse'; +export * from './PkiGenerateKmsKeyRequest'; +export * from './PkiGenerateKmsKeyResponse'; +export * from './PkiGenerateRootRequest'; +export * from './PkiGenerateRootResponse'; +export * from './PkiImportKeyRequest'; +export * from './PkiImportKeyResponse'; +export * from './PkiIssueWithRoleRequest'; +export * from './PkiIssueWithRoleResponse'; +export * from './PkiIssuerIssueWithRoleRequest'; +export * from './PkiIssuerIssueWithRoleResponse'; +export * from './PkiIssuerReadCrlDeltaDerResponse'; +export * from './PkiIssuerReadCrlDeltaPemResponse'; +export * from './PkiIssuerReadCrlDeltaResponse'; +export * from './PkiIssuerReadCrlDerResponse'; +export * from './PkiIssuerReadCrlPemResponse'; +export * from './PkiIssuerReadCrlResponse'; +export * from './PkiIssuerReadUnifiedCrlDeltaDerResponse'; +export * from './PkiIssuerReadUnifiedCrlDeltaPemResponse'; +export * from './PkiIssuerReadUnifiedCrlDeltaResponse'; +export * from './PkiIssuerReadUnifiedCrlDerResponse'; +export * from './PkiIssuerReadUnifiedCrlPemResponse'; +export * from './PkiIssuerReadUnifiedCrlResponse'; +export * from './PkiIssuerResignCrlsRequest'; +export * from './PkiIssuerResignCrlsResponse'; +export * from './PkiIssuerSignIntermediateRequest'; +export * from './PkiIssuerSignIntermediateResponse'; +export * from './PkiIssuerSignRevocationListRequest'; +export * from './PkiIssuerSignRevocationListResponse'; +export * from './PkiIssuerSignSelfIssuedRequest'; +export * from './PkiIssuerSignSelfIssuedResponse'; +export * from './PkiIssuerSignVerbatimRequest'; +export * from './PkiIssuerSignVerbatimResponse'; +export * from './PkiIssuerSignVerbatimWithRoleRequest'; +export * from './PkiIssuerSignVerbatimWithRoleResponse'; +export * from './PkiIssuerSignWithRoleRequest'; +export * from './PkiIssuerSignWithRoleResponse'; +export * from './PkiIssuersGenerateIntermediateRequest'; +export * from './PkiIssuersGenerateIntermediateResponse'; +export * from './PkiIssuersGenerateRootRequest'; +export * from './PkiIssuersGenerateRootResponse'; +export * from './PkiIssuersImportBundleRequest'; +export * from './PkiIssuersImportBundleResponse'; +export * from './PkiIssuersImportCertRequest'; +export * from './PkiIssuersImportCertResponse'; +export * from './PkiListEabKeysResponse'; +export * from './PkiListIssuersResponse'; +export * from './PkiListKeysResponse'; +export * from './PkiListUnifiedRevokedCertsResponse'; +export * from './PkiPatchIssuerResponse'; +export * from './PkiPatchRoleResponse'; +export * from './PkiReadAutoTidyConfigurationResponse'; +export * from './PkiReadCaChainPemResponse'; +export * from './PkiReadCaDerResponse'; +export * from './PkiReadCaPemResponse'; +export * from './PkiReadCertCaChainResponse'; +export * from './PkiReadCertCrlResponse'; +export * from './PkiReadCertDeltaCrlResponse'; +export * from './PkiReadCertMetadataResponse'; +export * from './PkiReadCertRawDerResponse'; +export * from './PkiReadCertRawPemResponse'; +export * from './PkiReadCertResponse'; +export * from './PkiReadCertUnifiedCrlResponse'; +export * from './PkiReadCertUnifiedDeltaCrlResponse'; +export * from './PkiReadClusterConfigurationResponse'; +export * from './PkiReadCrlConfigurationResponse'; +export * from './PkiReadCrlDeltaPemResponse'; +export * from './PkiReadCrlDeltaResponse'; +export * from './PkiReadCrlDerResponse'; +export * from './PkiReadCrlPemResponse'; +export * from './PkiReadIssuerDerResponse'; +export * from './PkiReadIssuerJsonResponse'; +export * from './PkiReadIssuerPemResponse'; +export * from './PkiReadIssuerResponse'; +export * from './PkiReadIssuersConfigurationResponse'; +export * from './PkiReadKeyResponse'; +export * from './PkiReadKeysConfigurationResponse'; +export * from './PkiReadRoleResponse'; +export * from './PkiReadUrlsConfigurationResponse'; +export * from './PkiReplaceRootRequest'; +export * from './PkiReplaceRootResponse'; +export * from './PkiRevokeIssuerResponse'; +export * from './PkiRevokeRequest'; +export * from './PkiRevokeResponse'; +export * from './PkiRevokeWithKeyRequest'; +export * from './PkiRevokeWithKeyResponse'; +export * from './PkiRootSignIntermediateRequest'; +export * from './PkiRootSignIntermediateResponse'; +export * from './PkiRootSignSelfIssuedRequest'; +export * from './PkiRootSignSelfIssuedResponse'; +export * from './PkiRotateCrlResponse'; +export * from './PkiRotateDeltaCrlResponse'; +export * from './PkiRotateRootRequest'; +export * from './PkiRotateRootResponse'; +export * from './PkiSetSignedIntermediateRequest'; +export * from './PkiSetSignedIntermediateResponse'; +export * from './PkiSignVerbatimRequest'; +export * from './PkiSignVerbatimResponse'; +export * from './PkiSignVerbatimWithRoleRequest'; +export * from './PkiSignVerbatimWithRoleResponse'; +export * from './PkiSignWithRoleRequest'; +export * from './PkiSignWithRoleResponse'; +export * from './PkiTidyCancelResponse'; +export * from './PkiTidyRequest'; +export * from './PkiTidyStatusResponse'; +export * from './PkiWriteAcmeAccountKidRequest'; +export * from './PkiWriteAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteAcmeKeyIdRequest'; +export * from './PkiWriteAcmeNewAccountRequest'; +export * from './PkiWriteAcmeNewOrderRequest'; +export * from './PkiWriteAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteAcmeOrderOrderIdRequest'; +export * from './PkiWriteAcmeOrdersRequest'; +export * from './PkiWriteAcmeRevokeCertRequest'; +export * from './PkiWriteExternalPolicyAcmeAccountKidRequest'; +export * from './PkiWriteExternalPolicyAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteExternalPolicyAcmeNewAccountRequest'; +export * from './PkiWriteExternalPolicyAcmeNewOrderRequest'; +export * from './PkiWriteExternalPolicyAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteExternalPolicyAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteExternalPolicyAcmeOrderOrderIdRequest'; +export * from './PkiWriteExternalPolicyAcmeOrdersRequest'; +export * from './PkiWriteExternalPolicyAcmeRevokeCertRequest'; +export * from './PkiWriteExternalPolicyIssuePolicyRequest'; +export * from './PkiWriteExternalPolicyIssuePolicyResponse'; +export * from './PkiWriteExternalPolicyIssueRequest'; +export * from './PkiWriteExternalPolicyIssueResponse'; +export * from './PkiWriteExternalPolicyPolicyAcmeAccountKidRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeNewAccountRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeNewOrderRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeOrderOrderIdRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeOrdersRequest'; +export * from './PkiWriteExternalPolicyPolicyAcmeRevokeCertRequest'; +export * from './PkiWriteExternalPolicySignIntermediatePolicyRequest'; +export * from './PkiWriteExternalPolicySignIntermediatePolicyResponse'; +export * from './PkiWriteExternalPolicySignIntermediateRequest'; +export * from './PkiWriteExternalPolicySignIntermediateResponse'; +export * from './PkiWriteExternalPolicySignPolicyRequest'; +export * from './PkiWriteExternalPolicySignPolicyResponse'; +export * from './PkiWriteExternalPolicySignRequest'; +export * from './PkiWriteExternalPolicySignResponse'; +export * from './PkiWriteIssuerIssuerRefAcmeAccountKidRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeNewAccountRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeNewOrderRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeOrderOrderIdRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeOrdersRequest'; +export * from './PkiWriteIssuerIssuerRefAcmeRevokeCertRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeAccountKidRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeNewAccountRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeNewOrderRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeOrderOrderIdRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeOrdersRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyAcmeRevokeCertRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyIssuePolicyResponse'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyIssueRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyIssueResponse'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAccountKidRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewAccountRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeNewOrderRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrderOrderIdRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeOrdersRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicyPolicyAcmeRevokeCertRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignIntermediatePolicyResponse'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignIntermediateRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignIntermediateResponse'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignPolicyRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignPolicyResponse'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignRequest'; +export * from './PkiWriteIssuerIssuerRefExternalPolicySignResponse'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeAccountKidRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeNewAccountRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeNewOrderRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeOrderOrderIdRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeOrdersRequest'; +export * from './PkiWriteIssuerIssuerRefRolesRoleAcmeRevokeCertRequest'; +export * from './PkiWriteIssuerRequest'; +export * from './PkiWriteIssuerResponse'; +export * from './PkiWriteKeyRequest'; +export * from './PkiWriteKeyResponse'; +export * from './PkiWriteRoleRequest'; +export * from './PkiWriteRoleResponse'; +export * from './PkiWriteRolesRoleAcmeAccountKidRequest'; +export * from './PkiWriteRolesRoleAcmeAuthorizationAuthIdRequest'; +export * from './PkiWriteRolesRoleAcmeChallengeAuthIdChallengeTypeRequest'; +export * from './PkiWriteRolesRoleAcmeNewAccountRequest'; +export * from './PkiWriteRolesRoleAcmeNewOrderRequest'; +export * from './PkiWriteRolesRoleAcmeOrderOrderIdCertRequest'; +export * from './PkiWriteRolesRoleAcmeOrderOrderIdFinalizeRequest'; +export * from './PkiWriteRolesRoleAcmeOrderOrderIdRequest'; +export * from './PkiWriteRolesRoleAcmeOrdersRequest'; +export * from './PkiWriteRolesRoleAcmeRevokeCertRequest'; +export * from './PluginsCatalogListPluginsResponse'; +export * from './PluginsCatalogListPluginsWithTypeResponse'; +export * from './PluginsCatalogPinsCreatePinnedVersionRequest'; +export * from './PluginsCatalogPinsListPinnedVersionsResponse'; +export * from './PluginsCatalogPinsReadPinnedVersionResponse'; +export * from './PluginsCatalogReadPluginConfigurationResponse'; +export * from './PluginsCatalogReadPluginConfigurationWithTypeResponse'; +export * from './PluginsCatalogRegisterPluginRequest'; +export * from './PluginsCatalogRegisterPluginWithTypeRequest'; +export * from './PluginsReloadBackendsRequest'; +export * from './PluginsReloadBackendsResponse'; +export * from './PluginsRuntimesCatalogListPluginsRuntimesResponse'; +export * from './PluginsRuntimesCatalogReadPluginRuntimeConfigurationResponse'; +export * from './PluginsRuntimesCatalogRegisterPluginRuntimeRequest'; +export * from './PoliciesGeneratePasswordFromPasswordPolicyResponse'; +export * from './PoliciesListAclPolicies2Response'; +export * from './PoliciesListAclPolicies3Response'; +export * from './PoliciesListAclPoliciesResponse'; +export * from './PoliciesReadAclPolicy2Response'; +export * from './PoliciesReadAclPolicyResponse'; +export * from './PoliciesReadPasswordPolicyResponse'; +export * from './PoliciesWriteAclPolicy2Request'; +export * from './PoliciesWriteAclPolicyRequest'; +export * from './PoliciesWritePasswordPolicyRequest'; +export * from './QueryTokenAccessorCapabilitiesRequest'; +export * from './QueryTokenCapabilitiesRequest'; +export * from './QueryTokenSelfCapabilitiesRequest'; +export * from './RabbitMqConfigureConnectionRequest'; +export * from './RabbitMqConfigureLeaseRequest'; +export * from './RabbitMqWriteRoleRequest'; +export * from './RadiusConfigureRequest'; +export * from './RadiusLoginRequest'; +export * from './RadiusLoginWithUsernameRequest'; +export * from './RadiusWriteUserRequest'; +export * from './RateLimitQuotasConfigureRequest'; +export * from './RateLimitQuotasReadConfigurationResponse'; +export * from './RateLimitQuotasReadResponse'; +export * from './RateLimitQuotasWriteRequest'; +export * from './RawReadResponse'; +export * from './RawWriteRequest'; +export * from './ReadWrappingProperties2Response'; +export * from './ReadWrappingPropertiesRequest'; +export * from './ReadWrappingPropertiesResponse'; +export * from './RekeyAttemptInitializeRequest'; +export * from './RekeyAttemptInitializeResponse'; +export * from './RekeyAttemptReadProgressResponse'; +export * from './RekeyAttemptUpdateRequest'; +export * from './RekeyAttemptUpdateResponse'; +export * from './RekeyReadBackupKeyResponse'; +export * from './RekeyReadBackupRecoveryKeyResponse'; +export * from './RekeyVerificationCancelResponse'; +export * from './RekeyVerificationReadProgressResponse'; +export * from './RekeyVerificationUpdateRequest'; +export * from './RekeyVerificationUpdateResponse'; +export * from './ReloadPluginsRequest'; +export * from './ReloadPluginsResponse'; +export * from './RemountRequest'; +export * from './RemountResponse'; +export * from './RemountStatusResponse'; +export * from './RewrapRequest'; +export * from './RootTokenGenerationInitialize2Request'; +export * from './RootTokenGenerationInitialize2Response'; +export * from './RootTokenGenerationInitializeRequest'; +export * from './RootTokenGenerationInitializeResponse'; +export * from './RootTokenGenerationReadProgress2Response'; +export * from './RootTokenGenerationReadProgressResponse'; +export * from './RootTokenGenerationUpdateRequest'; +export * from './RootTokenGenerationUpdateResponse'; +export * from './SealStatusResponse'; +export * from './SshConfigureCaRequest'; +export * from './SshConfigureZeroAddressRequest'; +export * from './SshGenerateCredentialsRequest'; +export * from './SshIssueCertificateRequest'; +export * from './SshListRolesByIpRequest'; +export * from './SshSignCertificateRequest'; +export * from './SshVerifyOtpRequest'; +export * from './SshWriteRoleRequest'; +export * from './StandardListResponse'; +export * from './SubscriptionsCreateResponse'; +export * from './SubscriptionsListEventsSubscriptionsResponse'; +export * from './SubscriptionsReadEventsSubscriptionsResponse'; +export * from './SubscriptionsWriteEventsSubscriptionsRequest'; +export * from './SubscriptionsWriteEventsSubscriptionsResponse'; +export * from './SystemDeleteSyncConfigResponse'; +export * from './SystemDeleteSyncGithubAppsNameResponse'; +export * from './SystemListSyncAssociationsResponse'; +export * from './SystemListSyncDestinationsResponse'; +export * from './SystemListSyncDestinationsTypeResponse'; +export * from './SystemListSyncGithubAppsResponse'; +export * from './SystemPatchSyncConfigResponse'; +export * from './SystemPatchSyncDestinationsAwsSmNameResponse'; +export * from './SystemPatchSyncDestinationsAzureKvNameResponse'; +export * from './SystemPatchSyncDestinationsGcpSmNameResponse'; +export * from './SystemPatchSyncDestinationsGhNameResponse'; +export * from './SystemPatchSyncDestinationsInMemNameResponse'; +export * from './SystemPatchSyncDestinationsVercelProjectNameResponse'; +export * from './SystemReadConfigGroupPolicyApplicationResponse'; +export * from './SystemReadSyncAssociationsDestinationsResponse'; +export * from './SystemReadSyncAssociationsMountSecretNameResponse'; +export * from './SystemReadSyncConfigResponse'; +export * from './SystemReadSyncDestinationsAwsSmNameResponse'; +export * from './SystemReadSyncDestinationsAzureKvNameResponse'; +export * from './SystemReadSyncDestinationsGcpSmNameResponse'; +export * from './SystemReadSyncDestinationsGhNameResponse'; +export * from './SystemReadSyncDestinationsInMemNameResponse'; +export * from './SystemReadSyncDestinationsTypeNameAssociationsResponse'; +export * from './SystemReadSyncDestinationsVercelProjectNameResponse'; +export * from './SystemReadSyncGithubAppsNameResponse'; +export * from './SystemWriteConfigControlGroupRequest'; +export * from './SystemWriteConfigGroupPolicyApplicationRequest'; +export * from './SystemWriteControlGroupAuthorizeRequest'; +export * from './SystemWriteControlGroupRequestRequest'; +export * from './SystemWriteInternalCountersActivityWriteRequest'; +export * from './SystemWriteManagedKeysTypeNameRequest'; +export * from './SystemWriteManagedKeysTypeNameTestSignRequest'; +export * from './SystemWriteMfaMethodDuoNameRequest'; +export * from './SystemWriteMfaMethodOktaNameRequest'; +export * from './SystemWriteMfaMethodPingidNameRequest'; +export * from './SystemWriteMfaMethodTotpNameAdminDestroyRequest'; +export * from './SystemWriteMfaMethodTotpNameAdminGenerateRequest'; +export * from './SystemWriteMfaMethodTotpNameRequest'; +export * from './SystemWriteNamespacesApiLockUnlockPathRequest'; +export * from './SystemWriteNamespacesApiLockUnlockRequest'; +export * from './SystemWriteNamespacesPathRequest'; +export * from './SystemWritePoliciesEgpNameRequest'; +export * from './SystemWritePoliciesRgpNameRequest'; +export * from './SystemWriteQuotasLeaseCountNameRequest'; +export * from './SystemWriteReplicationDrPrimaryEnableRequest'; +export * from './SystemWriteReplicationDrPrimaryRevokeSecondaryRequest'; +export * from './SystemWriteReplicationDrPrimarySecondaryTokenRequest'; +export * from './SystemWriteReplicationDrSecondaryDisableRequest'; +export * from './SystemWriteReplicationDrSecondaryEnableRequest'; +export * from './SystemWriteReplicationDrSecondaryMerkleCheckRequest'; +export * from './SystemWriteReplicationDrSecondaryOperationTokenDeleteRequest'; +export * from './SystemWriteReplicationDrSecondaryPromoteRequest'; +export * from './SystemWriteReplicationDrSecondaryRecoverRequest'; +export * from './SystemWriteReplicationDrSecondaryReindexRequest'; +export * from './SystemWriteReplicationDrSecondaryUpdatePrimaryRequest'; +export * from './SystemWriteReplicationForceCorruptionRequest'; +export * from './SystemWriteReplicationPerformancePrimaryEnableRequest'; +export * from './SystemWriteReplicationPerformancePrimaryPathsFilterIdRequest'; +export * from './SystemWriteReplicationPerformancePrimaryRevokeSecondaryRequest'; +export * from './SystemWriteReplicationPerformancePrimarySecondaryTokenRequest'; +export * from './SystemWriteReplicationPerformanceSecondaryEnableRequest'; +export * from './SystemWriteReplicationPerformanceSecondaryPromoteRequest'; +export * from './SystemWriteReplicationPerformanceSecondaryUpdatePrimaryRequest'; +export * from './SystemWriteReplicationPrimaryEnableRequest'; +export * from './SystemWriteReplicationPrimaryRevokeSecondaryRequest'; +export * from './SystemWriteReplicationPrimarySecondaryTokenRequest'; +export * from './SystemWriteReplicationReindexRequest'; +export * from './SystemWriteReplicationSecondaryEnableRequest'; +export * from './SystemWriteReplicationSecondaryPromoteRequest'; +export * from './SystemWriteReplicationSecondaryUpdatePrimaryRequest'; +export * from './SystemWriteStorageRaftSnapshotAutoConfigNameRequest'; +export * from './SystemWriteSyncDestinationsAwsSmNameRequest'; +export * from './SystemWriteSyncDestinationsAwsSmNameResponse'; +export * from './SystemWriteSyncDestinationsAzureKvNameRequest'; +export * from './SystemWriteSyncDestinationsAzureKvNameResponse'; +export * from './SystemWriteSyncDestinationsGcpSmNameRequest'; +export * from './SystemWriteSyncDestinationsGcpSmNameResponse'; +export * from './SystemWriteSyncDestinationsGhNameRequest'; +export * from './SystemWriteSyncDestinationsGhNameResponse'; +export * from './SystemWriteSyncDestinationsInMemNameRequest'; +export * from './SystemWriteSyncDestinationsInMemNameResponse'; +export * from './SystemWriteSyncDestinationsTypeNameAssociationsRemoveRequest'; +export * from './SystemWriteSyncDestinationsTypeNameAssociationsRemoveResponse'; +export * from './SystemWriteSyncDestinationsTypeNameAssociationsSetRequest'; +export * from './SystemWriteSyncDestinationsTypeNameAssociationsSetResponse'; +export * from './SystemWriteSyncDestinationsVercelProjectNameRequest'; +export * from './SystemWriteSyncDestinationsVercelProjectNameResponse'; +export * from './SystemWriteSyncGithubAppsNameRequest'; +export * from './SystemWriteSyncGithubAppsNameResponse'; +export * from './SystemWriteUtilizationRequest'; +export * from './SystemWriteUtilizationResponse'; +export * from './TerraformCloudConfigureRequest'; +export * from './TerraformCloudWriteRoleRequest'; +export * from './TokenCreateAgainstRoleRequest'; +export * from './TokenCreateOrphanRequest'; +export * from './TokenCreateRequest'; +export * from './TokenLookUpAccessorRequest'; +export * from './TokenLookUpRequest'; +export * from './TokenLookUpSelf2Request'; +export * from './TokenRenewAccessorRequest'; +export * from './TokenRenewRequest'; +export * from './TokenRenewSelfRequest'; +export * from './TokenRevokeAccessorRequest'; +export * from './TokenRevokeOrphanRequest'; +export * from './TokenRevokeRequest'; +export * from './TokenWriteRoleRequest'; +export * from './TotpCreateKeyRequest'; +export * from './TotpValidateCodeRequest'; +export * from './TransitConfigureCacheRequest'; +export * from './TransitConfigureKeyRequest'; +export * from './TransitConfigureKeysRequest'; +export * from './TransitCreateKeyRequest'; +export * from './TransitDecryptRequest'; +export * from './TransitEncryptRequest'; +export * from './TransitGenerateCmacRequest'; +export * from './TransitGenerateCmacWithMacLengthRequest'; +export * from './TransitGenerateCsrForKeyRequest'; +export * from './TransitGenerateDataKeyRequest'; +export * from './TransitGenerateHmacRequest'; +export * from './TransitGenerateHmacWithAlgorithmRequest'; +export * from './TransitGenerateRandomRequest'; +export * from './TransitGenerateRandomWithBytesRequest'; +export * from './TransitGenerateRandomWithSourceAndBytesRequest'; +export * from './TransitGenerateRandomWithSourceRequest'; +export * from './TransitHashRequest'; +export * from './TransitHashWithAlgorithmRequest'; +export * from './TransitImportKeyRequest'; +export * from './TransitImportKeyVersionRequest'; +export * from './TransitRestoreAndRenameKeyRequest'; +export * from './TransitRestoreKeyRequest'; +export * from './TransitRewrapRequest'; +export * from './TransitRotateKeyRequest'; +export * from './TransitSetCertificateForKeyRequest'; +export * from './TransitSignRequest'; +export * from './TransitSignWithAlgorithmRequest'; +export * from './TransitTrimKeyRequest'; +export * from './TransitVerifyRequest'; +export * from './TransitVerifyWithAlgorithmRequest'; +export * from './UiConfigDeleteCustomMessageResponse'; +export * from './UiConfigReadCustomMessageResponse'; +export * from './UiConfigUpdateCustomMessageRequest'; +export * from './UiConfigUpdateCustomMessageResponse'; +export * from './UiHeadersConfigureRequest'; +export * from './UiHeadersListResponse'; +export * from './UiHeadersReadConfigurationResponse'; +export * from './UnsealRequest'; +export * from './UnsealResponse'; +export * from './UnwrapRequest'; +export * from './UserpassLoginRequest'; +export * from './UserpassResetPasswordRequest'; +export * from './UserpassUpdatePoliciesRequest'; +export * from './UserpassWriteUserRequest'; +export * from './VersionHistoryResponse'; +export * from './WellKnownListLabels2Response'; +export * from './WellKnownListLabelsResponse'; +export * from './WellKnownReadLabelResponse'; diff --git a/ui/api-client/src/runtime.ts b/ui/api-client/src/runtime.ts new file mode 100644 index 0000000000..692cfc43ae --- /dev/null +++ b/ui/api-client/src/runtime.ts @@ -0,0 +1,479 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * HashiCorp Vault API + * HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. + * + * The version of the OpenAPI document: 1.20.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export const BASE_PATH = 'http://localhost'.replace(/\/+$/, ''); + +export interface ConfigurationParameters { + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request +} + +export class Configuration { + constructor(private configuration: ConfigurationParameters = {}) {} + + set config(configuration: Configuration) { + this.configuration = configuration; + } + + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; + } + + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } + + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string | Promise) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } +} + +export const DefaultConfig = new Configuration(); + +/** + * This is the base class for all generated API classes. + */ +export class BaseAPI { + private static readonly jsonRegex = new RegExp( + '^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', + 'i' + ); + private middleware: Middleware[]; + + constructor(protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; + } + + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + + protected async request( + context: RequestOpts, + initOverrides?: RequestInit | InitOverrideFunction + ): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && response.status >= 200 && response.status < 300) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach((key) => (headers[key] === undefined ? delete headers[key] : {})); + + const initOverrideFn = typeof initOverrides === 'function' ? initOverrides : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overriddenInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })), + }; + + let body: any; + if ( + isFormData(overriddenInit.body) || + overriddenInit.body instanceof URLSearchParams || + isBlob(overriddenInit.body) + ) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } else { + body = overriddenInit.body; + } + + const init: RequestInit = { + ...overriddenInit, + body, + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = + (await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + })) || fetchParams; + } + } + let response: Response | undefined = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = + (await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + })) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError( + e, + 'The request failed and the interceptors did not return an alternative response' + ); + } else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = + (await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + })) || response; + } + } + return response; + }; + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +} + +function isBlob(value: any): value is Blob { + return typeof Blob !== 'undefined' && value instanceof Blob; +} + +function isFormData(value: any): value is FormData { + return typeof FormData !== 'undefined' && value instanceof FormData; +} + +export class ResponseError extends Error { + override name: 'ResponseError' = 'ResponseError'; + constructor( + public response: Response, + msg?: string + ) { + super(msg); + } +} + +export class FetchError extends Error { + override name: 'FetchError' = 'FetchError'; + constructor( + public cause: Error, + msg?: string + ) { + super(msg); + } +} + +export class RequiredError extends Error { + override name: 'RequiredError' = 'RequiredError'; + constructor( + public field: string, + msg?: string + ) { + super(msg); + } +} + +export const COLLECTION_FORMATS = { + csv: ',', + ssv: ' ', + tsv: '\t', + pipes: '|', +}; + +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; + +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { [key: string]: string }; +export type HTTPQuery = { + [key: string]: + | string + | number + | null + | boolean + | Array + | Set + | HTTPQuery; +}; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; + +export type InitOverrideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; + +export interface FetchParams { + url: string; + init: RequestInit; +} + +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} + +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map((key) => querystringSingleKey(key, params[key], prefix)) + .filter((part) => part.length > 0) + .join('&'); +} + +function querystringSingleKey( + key: string, + value: + | string + | number + | null + | undefined + | boolean + | Array + | Set + | HTTPQuery, + keyPrefix: string = '' +): string { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value + .map((singleValue) => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} + +export function exists(json: any, key: string) { + const value = json[key]; + return value !== null && value !== undefined; +} + +export function mapValues(data: any, fn: (item: any) => any) { + return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}); +} + +export function canConsumeForm(consumes: Consume[]): boolean { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} + +export interface Consume { + contentType: string; +} + +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} + +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} + +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} + +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} + +export interface ApiResponse { + raw: Response; + value(): Promise; +} + +export interface ResponseTransformer { + (json: any): T; +} + +export class JSONApiResponse { + constructor( + public raw: Response, + private transformer: ResponseTransformer = (jsonValue: any) => jsonValue + ) {} + + async value(): Promise { + return this.transformer(await this.raw.json()); + } +} + +export class VoidApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return undefined; + } +} + +export class BlobApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.blob(); + } +} + +export class TextApiResponse { + constructor(public raw: Response) {} + + async value(): Promise { + return await this.raw.text(); + } +} diff --git a/ui/api-client/tsconfig.esm.json b/ui/api-client/tsconfig.esm.json new file mode 100644 index 0000000000..2c0331cce0 --- /dev/null +++ b/ui/api-client/tsconfig.esm.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext", + "outDir": "dist/esm" + } +} diff --git a/ui/api-client/tsconfig.json b/ui/api-client/tsconfig.json new file mode 100644 index 0000000000..250280d9ab --- /dev/null +++ b/ui/api-client/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "declaration": true, + "target": "es6", + "module": "commonjs", + "moduleResolution": "node", + "outDir": "dist", + "typeRoots": [ + "node_modules/@types" + ] + }, + "exclude": [ + "dist", + "node_modules" + ] +} diff --git a/ui/package.json b/ui/package.json index 96b167f1e2..e8ddd2f637 100644 --- a/ui/package.json +++ b/ui/package.json @@ -218,6 +218,7 @@ "dependencies": { "@babel/core": "^7.24.0", "@hashicorp/design-system-components": "~4.16.0", + "@hashicorp/vault-client-typescript": "portal:./api-client", "ember-auto-import": "^2.7.2", "handlebars": "4.7.7", "highlight.js": "^10.4.1", diff --git a/ui/yarn.lock b/ui/yarn.lock index babdd1c139..4ffb3c3876 100644 --- a/ui/yarn.lock +++ b/ui/yarn.lock @@ -2462,6 +2462,12 @@ __metadata: languageName: node linkType: hard +"@hashicorp/vault-client-typescript@portal:./api-client::locator=vault%40workspace%3A.": + version: 0.0.0-use.local + resolution: "@hashicorp/vault-client-typescript@portal:./api-client::locator=vault%40workspace%3A." + languageName: node + linkType: soft + "@humanwhocodes/config-array@npm:^0.13.0": version: 0.13.0 resolution: "@humanwhocodes/config-array@npm:0.13.0" @@ -18829,6 +18835,7 @@ __metadata: "@glimmer/component": ^1.1.2 "@glimmer/tracking": ^1.1.2 "@hashicorp/design-system-components": ~4.16.0 + "@hashicorp/vault-client-typescript": "portal:./api-client" "@icholy/duration": ^5.1.0 "@lineal-viz/lineal": ^0.5.1 "@tsconfig/ember": ^2.0.0