@nutanix-scratch/security-js-client 4.0.1 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -5
- package/dist/Ntnx-Security-js-client-prod.js +1 -1
- package/dist/Ntnx-Security-js-client.js +626 -532
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/approvalpolicies-endpoints.d.ts +2 -2
- package/dist/es/apis/approvalpolicies-endpoints.js +221 -235
- package/dist/es/apis/credentials-endpoints.d.ts +2 -2
- package/dist/es/apis/credentials-endpoints.js +210 -224
- package/dist/es/apis/keymanagementservers-endpoints.d.ts +1 -1
- package/dist/es/apis/keymanagementservers-endpoints.js +190 -210
- package/dist/es/apis/securitysummaries-endpoints.d.ts +56 -0
- package/dist/es/apis/securitysummaries-endpoints.js +140 -0
- package/dist/es/apis/stigs-endpoints.d.ts +4 -3
- package/dist/es/apis/stigs-endpoints.js +108 -111
- package/dist/es/apis/vulnerabilities-endpoints.d.ts +46 -0
- package/dist/es/apis/vulnerabilities-endpoints.js +107 -0
- package/dist/es/index.d.ts +31 -15
- package/dist/es/index.js +361 -297
- package/dist/es/models/common/v1/config/BasicAuth.d.ts +2 -8
- package/dist/es/models/common/v1/config/BasicAuth.js +170 -211
- package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/es/models/common/v1/config/FQDN.js +141 -180
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -26
- package/dist/es/models/iam/v4/authn/BucketsAccessKey.js +385 -453
- package/dist/es/models/iam/v4/authn/BucketsAccessKeyStatusType.js +7 -9
- package/dist/es/models/iam/v4/authn/CreationType.js +7 -9
- package/dist/es/models/iam/v4/authn/User.d.ts +1 -67
- package/dist/es/models/iam/v4/authn/User.js +714 -810
- package/dist/es/models/iam/v4/authn/UserStatusType.js +7 -9
- package/dist/es/models/iam/v4/authn/UserType.js +7 -9
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +143 -181
- package/dist/es/models/security/v4/common/Cluster.d.ts +2 -8
- package/dist/es/models/security/v4/common/Cluster.js +171 -212
- package/dist/es/models/security/v4/common/ClusterProjection.d.ts +1 -1
- package/dist/es/models/security/v4/common/ClusterProjection.js +74 -103
- package/dist/es/models/security/v4/common/Timescale.js +9 -29
- package/dist/es/models/security/v4/config/AzureAccessInformation.d.ts +2 -13
- package/dist/es/models/security/v4/config/AzureAccessInformation.js +311 -361
- package/dist/es/models/security/v4/config/BasicAuthCredential.d.ts +2 -13
- package/dist/es/models/security/v4/config/BasicAuthCredential.js +138 -177
- package/dist/es/models/security/v4/config/BmcCredential.d.ts +1 -14
- package/dist/es/models/security/v4/config/BmcCredential.js +121 -163
- package/dist/es/models/security/v4/config/CreateCredentialApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/CreateCredentialApiResponse.js +187 -242
- package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/CreateKeyManagementServerApiResponse.js +187 -242
- package/dist/es/models/security/v4/config/Credential.d.ts +1 -18
- package/dist/es/models/security/v4/config/Credential.js +200 -251
- package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/DeleteCredentialApiResponse.js +190 -245
- package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +187 -242
- package/dist/es/models/security/v4/config/EndpointInfo.d.ts +70 -0
- package/dist/es/models/security/v4/config/EndpointInfo.js +278 -0
- package/dist/es/models/security/v4/config/ExternalSshAccessConfig.d.ts +2 -10
- package/dist/es/models/security/v4/config/ExternalSshAccessConfig.js +218 -265
- package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +10 -0
- package/dist/es/models/security/v4/config/ExternalSshAccessConfigProjection.js +121 -0
- package/dist/es/models/security/v4/config/GetCredentialApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/GetCredentialApiResponse.js +187 -242
- package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/GetKeyManagementServerApiResponse.js +187 -242
- package/dist/es/models/security/v4/config/IntersightConnectionType.js +7 -9
- package/dist/es/models/security/v4/config/IntersightCredential.d.ts +1 -16
- package/dist/es/models/security/v4/config/IntersightCredential.js +172 -218
- package/dist/es/models/security/v4/config/KeyBasedAuth.d.ts +2 -8
- package/dist/es/models/security/v4/config/KeyBasedAuth.js +176 -217
- package/dist/es/models/security/v4/config/KeyBasedAuthCredential.d.ts +2 -13
- package/dist/es/models/security/v4/config/KeyBasedAuthCredential.js +138 -177
- package/dist/es/models/security/v4/config/KeyManagementServer.d.ts +20 -33
- package/dist/es/models/security/v4/config/KeyManagementServer.js +206 -199
- package/dist/es/models/security/v4/config/KmipAccessInformation.d.ts +118 -0
- package/dist/es/models/security/v4/config/KmipAccessInformation.js +428 -0
- package/dist/es/models/security/v4/config/ListCredentialsApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/ListCredentialsApiResponse.js +209 -264
- package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/ListKeyManagementServersApiResponse.js +209 -264
- package/dist/es/models/security/v4/config/ScheduleType.js +11 -13
- package/dist/es/models/security/v4/config/SecurityConfig.d.ts +1 -25
- package/dist/es/models/security/v4/config/SecurityConfig.js +350 -421
- package/dist/es/models/security/v4/config/SecurityConfigProjection.d.ts +1 -32
- package/dist/es/models/security/v4/config/SecurityConfigProjection.js +169 -202
- package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -23
- package/dist/es/models/security/v4/config/SecurityConfigVisibilitySetting.js +303 -359
- package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +10 -0
- package/dist/es/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +123 -0
- package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.d.ts +2 -45
- package/dist/es/models/security/v4/config/UpdateCredentialApiResponse.js +187 -242
- package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +187 -242
- package/dist/es/models/security/v4/config/VcenterCredential.d.ts +1 -39
- package/dist/es/models/security/v4/config/VcenterCredential.js +145 -189
- package/dist/es/models/security/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/security/v4/error/AppMessage.js +264 -313
- package/dist/es/models/security/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/security/v4/error/ErrorResponse.js +178 -218
- package/dist/es/models/security/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/security/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/security/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/security/v4/management/ApprovalPolicy.d.ts +1 -100
- package/dist/es/models/security/v4/management/ApprovalPolicy.js +302 -366
- package/dist/es/models/security/v4/management/ApprovalPolicyProjection.d.ts +14 -0
- package/dist/es/models/security/v4/management/ApprovalPolicyProjection.js +133 -0
- package/dist/es/models/security/v4/management/ApproverGroup.d.ts +2 -74
- package/dist/es/models/security/v4/management/ApproverGroup.js +206 -253
- package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/management/AssociatePoliciesApiResponse.js +187 -242
- package/dist/es/models/security/v4/management/AssociatePoliciesSpec.d.ts +2 -13
- package/dist/es/models/security/v4/management/AssociatePoliciesSpec.js +149 -192
- package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/management/CreateApprovalPolicyApiResponse.js +187 -242
- package/dist/es/models/security/v4/management/EventType.js +7 -9
- package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/management/GetApprovalPolicyApiResponse.js +187 -242
- package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +8 -48
- package/dist/es/models/security/v4/management/ListApprovalPoliciesApiResponse.js +214 -264
- package/dist/es/models/security/v4/management/PolicyType.js +7 -9
- package/dist/es/models/security/v4/management/SecuredEntityType.js +7 -9
- package/dist/es/models/security/v4/management/SecuredPolicy.d.ts +2 -8
- package/dist/es/models/security/v4/management/SecuredPolicy.js +166 -207
- package/dist/es/models/security/v4/management/SecurityValidationSpec.d.ts +2 -14
- package/dist/es/models/security/v4/management/SecurityValidationSpec.js +332 -385
- package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +187 -242
- package/dist/es/models/security/v4/report/IssueSummary.d.ts +9 -21
- package/dist/es/models/security/v4/report/IssueSummary.js +178 -223
- package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +59 -0
- package/dist/es/models/security/v4/report/ListSecuritySummariesApiResponse.js +315 -0
- package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/report/ListStigSummariesApiResponse.js +213 -268
- package/dist/es/models/security/v4/report/ListStigsApiResponse.d.ts +2 -43
- package/dist/es/models/security/v4/report/ListStigsApiResponse.js +213 -268
- package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +59 -0
- package/dist/es/models/security/v4/report/ListVulnerabilitiesApiResponse.js +315 -0
- package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +58 -0
- package/dist/es/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +288 -0
- package/dist/es/models/security/v4/report/SecurityConfigSummary.d.ts +55 -0
- package/dist/es/models/security/v4/report/SecurityConfigSummary.js +324 -0
- package/dist/es/models/security/v4/report/SecuritySummary.d.ts +83 -0
- package/dist/es/models/security/v4/report/SecuritySummary.js +438 -0
- package/dist/es/models/security/v4/report/SecuritySummaryProjection.d.ts +21 -0
- package/dist/es/models/security/v4/report/SecuritySummaryProjection.js +303 -0
- package/dist/es/models/security/v4/report/Severity.js +7 -9
- package/dist/es/models/security/v4/report/SoftwareType.js +7 -9
- package/dist/es/models/security/v4/report/Stig.d.ts +1 -25
- package/dist/es/models/security/v4/report/Stig.js +371 -439
- package/dist/es/models/security/v4/report/StigProjection.d.ts +1 -1
- package/dist/es/models/security/v4/report/StigProjection.js +74 -103
- package/dist/es/models/security/v4/report/StigSecuritySummary.d.ts +44 -0
- package/dist/es/models/security/v4/report/StigSecuritySummary.js +291 -0
- package/dist/es/models/security/v4/report/StigStatus.js +7 -9
- package/dist/es/models/security/v4/report/StigSummary.d.ts +1 -22
- package/dist/es/models/security/v4/report/StigSummary.js +193 -245
- package/dist/es/models/security/v4/report/StigSummaryProjection.d.ts +1 -26
- package/dist/es/models/security/v4/report/StigSummaryProjection.js +138 -176
- package/dist/es/models/security/v4/report/TrendValue.d.ts +10 -16
- package/dist/es/models/security/v4/report/TrendValue.js +170 -211
- package/dist/es/models/security/v4/report/Vulnerability.d.ts +4 -37
- package/dist/es/models/security/v4/report/Vulnerability.js +283 -379
- package/dist/es/models/security/v4/report/VulnerabilityDetail.d.ts +68 -0
- package/dist/es/models/security/v4/report/VulnerabilityDetail.js +310 -0
- package/dist/es/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
- package/dist/es/models/security/v4/report/VulnerabilityProjection.js +74 -103
- package/dist/es/models/security/v4/report/VulnerabilitySummary.d.ts +12 -61
- package/dist/es/models/security/v4/report/VulnerabilitySummary.js +147 -302
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/approvalpolicies-endpoints.d.ts +2 -2
- package/dist/lib/apis/approvalpolicies-endpoints.js +221 -235
- package/dist/lib/apis/credentials-endpoints.d.ts +2 -2
- package/dist/lib/apis/credentials-endpoints.js +210 -224
- package/dist/lib/apis/keymanagementservers-endpoints.d.ts +1 -1
- package/dist/lib/apis/keymanagementservers-endpoints.js +190 -210
- package/dist/lib/apis/securitysummaries-endpoints.d.ts +56 -0
- package/dist/lib/apis/securitysummaries-endpoints.js +140 -0
- package/dist/lib/apis/stigs-endpoints.d.ts +4 -3
- package/dist/lib/apis/stigs-endpoints.js +108 -111
- package/dist/lib/apis/vulnerabilities-endpoints.d.ts +46 -0
- package/dist/lib/apis/vulnerabilities-endpoints.js +107 -0
- package/dist/lib/index.d.ts +31 -15
- package/dist/lib/index.js +361 -297
- package/dist/lib/models/common/v1/config/BasicAuth.d.ts +2 -8
- package/dist/lib/models/common/v1/config/BasicAuth.js +170 -211
- package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/lib/models/common/v1/config/FQDN.js +141 -180
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/iam/v4/authn/BucketsAccessKey.d.ts +1 -26
- package/dist/lib/models/iam/v4/authn/BucketsAccessKey.js +385 -453
- package/dist/lib/models/iam/v4/authn/BucketsAccessKeyStatusType.js +7 -9
- package/dist/lib/models/iam/v4/authn/CreationType.js +7 -9
- package/dist/lib/models/iam/v4/authn/User.d.ts +1 -67
- package/dist/lib/models/iam/v4/authn/User.js +714 -810
- package/dist/lib/models/iam/v4/authn/UserStatusType.js +7 -9
- package/dist/lib/models/iam/v4/authn/UserType.js +7 -9
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +143 -181
- package/dist/lib/models/security/v4/common/Cluster.d.ts +2 -8
- package/dist/lib/models/security/v4/common/Cluster.js +171 -212
- package/dist/lib/models/security/v4/common/ClusterProjection.d.ts +1 -1
- package/dist/lib/models/security/v4/common/ClusterProjection.js +74 -103
- package/dist/lib/models/security/v4/common/Timescale.js +9 -29
- package/dist/lib/models/security/v4/config/AzureAccessInformation.d.ts +2 -13
- package/dist/lib/models/security/v4/config/AzureAccessInformation.js +311 -361
- package/dist/lib/models/security/v4/config/BasicAuthCredential.d.ts +2 -13
- package/dist/lib/models/security/v4/config/BasicAuthCredential.js +138 -177
- package/dist/lib/models/security/v4/config/BmcCredential.d.ts +1 -14
- package/dist/lib/models/security/v4/config/BmcCredential.js +121 -163
- package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/CreateCredentialApiResponse.js +187 -242
- package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/CreateKeyManagementServerApiResponse.js +187 -242
- package/dist/lib/models/security/v4/config/Credential.d.ts +1 -18
- package/dist/lib/models/security/v4/config/Credential.js +200 -251
- package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/DeleteCredentialApiResponse.js +190 -245
- package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/DeleteKeyManagementServerApiResponse.js +187 -242
- package/dist/lib/models/security/v4/config/EndpointInfo.d.ts +70 -0
- package/dist/lib/models/security/v4/config/EndpointInfo.js +278 -0
- package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.d.ts +2 -10
- package/dist/lib/models/security/v4/config/ExternalSshAccessConfig.js +218 -265
- package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.d.ts +10 -0
- package/dist/lib/models/security/v4/config/ExternalSshAccessConfigProjection.js +121 -0
- package/dist/lib/models/security/v4/config/GetCredentialApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/GetCredentialApiResponse.js +187 -242
- package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/GetKeyManagementServerApiResponse.js +187 -242
- package/dist/lib/models/security/v4/config/IntersightConnectionType.js +7 -9
- package/dist/lib/models/security/v4/config/IntersightCredential.d.ts +1 -16
- package/dist/lib/models/security/v4/config/IntersightCredential.js +172 -218
- package/dist/lib/models/security/v4/config/KeyBasedAuth.d.ts +2 -8
- package/dist/lib/models/security/v4/config/KeyBasedAuth.js +176 -217
- package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.d.ts +2 -13
- package/dist/lib/models/security/v4/config/KeyBasedAuthCredential.js +138 -177
- package/dist/lib/models/security/v4/config/KeyManagementServer.d.ts +20 -33
- package/dist/lib/models/security/v4/config/KeyManagementServer.js +206 -199
- package/dist/lib/models/security/v4/config/KmipAccessInformation.d.ts +118 -0
- package/dist/lib/models/security/v4/config/KmipAccessInformation.js +428 -0
- package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/ListCredentialsApiResponse.js +209 -264
- package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/ListKeyManagementServersApiResponse.js +209 -264
- package/dist/lib/models/security/v4/config/ScheduleType.js +11 -13
- package/dist/lib/models/security/v4/config/SecurityConfig.d.ts +1 -25
- package/dist/lib/models/security/v4/config/SecurityConfig.js +350 -421
- package/dist/lib/models/security/v4/config/SecurityConfigProjection.d.ts +1 -32
- package/dist/lib/models/security/v4/config/SecurityConfigProjection.js +169 -202
- package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.d.ts +1 -23
- package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySetting.js +303 -359
- package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.d.ts +10 -0
- package/dist/lib/models/security/v4/config/SecurityConfigVisibilitySettingProjection.js +123 -0
- package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.d.ts +2 -45
- package/dist/lib/models/security/v4/config/UpdateCredentialApiResponse.js +187 -242
- package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/config/UpdateKeyManagementServerApiResponse.js +187 -242
- package/dist/lib/models/security/v4/config/VcenterCredential.d.ts +1 -39
- package/dist/lib/models/security/v4/config/VcenterCredential.js +145 -189
- package/dist/lib/models/security/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/security/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/security/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/security/v4/error/ErrorResponse.js +178 -218
- package/dist/lib/models/security/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/security/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/security/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/security/v4/management/ApprovalPolicy.d.ts +1 -100
- package/dist/lib/models/security/v4/management/ApprovalPolicy.js +302 -366
- package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.d.ts +14 -0
- package/dist/lib/models/security/v4/management/ApprovalPolicyProjection.js +133 -0
- package/dist/lib/models/security/v4/management/ApproverGroup.d.ts +2 -74
- package/dist/lib/models/security/v4/management/ApproverGroup.js +206 -253
- package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/management/AssociatePoliciesApiResponse.js +187 -242
- package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.d.ts +2 -13
- package/dist/lib/models/security/v4/management/AssociatePoliciesSpec.js +149 -192
- package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/management/CreateApprovalPolicyApiResponse.js +187 -242
- package/dist/lib/models/security/v4/management/EventType.js +7 -9
- package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/management/GetApprovalPolicyApiResponse.js +187 -242
- package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.d.ts +8 -48
- package/dist/lib/models/security/v4/management/ListApprovalPoliciesApiResponse.js +214 -264
- package/dist/lib/models/security/v4/management/PolicyType.js +7 -9
- package/dist/lib/models/security/v4/management/SecuredEntityType.js +7 -9
- package/dist/lib/models/security/v4/management/SecuredPolicy.d.ts +2 -8
- package/dist/lib/models/security/v4/management/SecuredPolicy.js +166 -207
- package/dist/lib/models/security/v4/management/SecurityValidationSpec.d.ts +2 -14
- package/dist/lib/models/security/v4/management/SecurityValidationSpec.js +332 -385
- package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/management/UpdateApprovalPolicyApiResponse.js +187 -242
- package/dist/lib/models/security/v4/report/IssueSummary.d.ts +9 -21
- package/dist/lib/models/security/v4/report/IssueSummary.js +178 -223
- package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.d.ts +59 -0
- package/dist/lib/models/security/v4/report/ListSecuritySummariesApiResponse.js +315 -0
- package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/report/ListStigSummariesApiResponse.js +213 -268
- package/dist/lib/models/security/v4/report/ListStigsApiResponse.d.ts +2 -43
- package/dist/lib/models/security/v4/report/ListStigsApiResponse.js +213 -268
- package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.d.ts +59 -0
- package/dist/lib/models/security/v4/report/ListVulnerabilitiesApiResponse.js +315 -0
- package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.d.ts +58 -0
- package/dist/lib/models/security/v4/report/RefreshSecuritySummariesApiResponse.js +288 -0
- package/dist/lib/models/security/v4/report/SecurityConfigSummary.d.ts +55 -0
- package/dist/lib/models/security/v4/report/SecurityConfigSummary.js +324 -0
- package/dist/lib/models/security/v4/report/SecuritySummary.d.ts +83 -0
- package/dist/lib/models/security/v4/report/SecuritySummary.js +438 -0
- package/dist/lib/models/security/v4/report/SecuritySummaryProjection.d.ts +21 -0
- package/dist/lib/models/security/v4/report/SecuritySummaryProjection.js +303 -0
- package/dist/lib/models/security/v4/report/Severity.js +7 -9
- package/dist/lib/models/security/v4/report/SoftwareType.js +7 -9
- package/dist/lib/models/security/v4/report/Stig.d.ts +1 -25
- package/dist/lib/models/security/v4/report/Stig.js +371 -439
- package/dist/lib/models/security/v4/report/StigProjection.d.ts +1 -1
- package/dist/lib/models/security/v4/report/StigProjection.js +74 -103
- package/dist/lib/models/security/v4/report/StigSecuritySummary.d.ts +44 -0
- package/dist/lib/models/security/v4/report/StigSecuritySummary.js +291 -0
- package/dist/lib/models/security/v4/report/StigStatus.js +7 -9
- package/dist/lib/models/security/v4/report/StigSummary.d.ts +1 -22
- package/dist/lib/models/security/v4/report/StigSummary.js +193 -245
- package/dist/lib/models/security/v4/report/StigSummaryProjection.d.ts +1 -26
- package/dist/lib/models/security/v4/report/StigSummaryProjection.js +138 -176
- package/dist/lib/models/security/v4/report/TrendValue.d.ts +10 -16
- package/dist/lib/models/security/v4/report/TrendValue.js +170 -211
- package/dist/lib/models/security/v4/report/Vulnerability.d.ts +4 -37
- package/dist/lib/models/security/v4/report/Vulnerability.js +283 -379
- package/dist/lib/models/security/v4/report/VulnerabilityDetail.d.ts +68 -0
- package/dist/lib/models/security/v4/report/VulnerabilityDetail.js +310 -0
- package/dist/lib/models/security/v4/report/VulnerabilityProjection.d.ts +1 -1
- package/dist/lib/models/security/v4/report/VulnerabilityProjection.js +74 -103
- package/dist/lib/models/security/v4/report/VulnerabilitySummary.d.ts +12 -61
- package/dist/lib/models/security/v4/report/VulnerabilitySummary.js +147 -302
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
- package/dist/es/models/security/v4/config/PasswordStatus.d.ts +0 -19
- package/dist/es/models/security/v4/config/PasswordStatus.js +0 -97
- package/dist/es/models/security/v4/config/PasswordVerificationStatus.d.ts +0 -19
- package/dist/es/models/security/v4/config/PasswordVerificationStatus.js +0 -91
- package/dist/es/models/security/v4/config/VerifyPassword.d.ts +0 -36
- package/dist/es/models/security/v4/config/VerifyPassword.js +0 -271
- package/dist/es/models/security/v4/config/VerifyPasswordSpec.d.ts +0 -62
- package/dist/es/models/security/v4/config/VerifyPasswordSpec.js +0 -279
- package/dist/es/models/security/v4/report/Summary.d.ts +0 -149
- package/dist/es/models/security/v4/report/Summary.js +0 -490
- package/dist/es/models/security/v4/report/SummaryProjection.d.ts +0 -97
- package/dist/es/models/security/v4/report/SummaryProjection.js +0 -329
- package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +0 -10
- package/dist/es/models/security/v4/report/VulnerabilitySummaryProjection.js +0 -153
- package/dist/lib/models/security/v4/config/PasswordStatus.d.ts +0 -19
- package/dist/lib/models/security/v4/config/PasswordStatus.js +0 -97
- package/dist/lib/models/security/v4/config/PasswordVerificationStatus.d.ts +0 -19
- package/dist/lib/models/security/v4/config/PasswordVerificationStatus.js +0 -91
- package/dist/lib/models/security/v4/config/VerifyPassword.d.ts +0 -36
- package/dist/lib/models/security/v4/config/VerifyPassword.js +0 -271
- package/dist/lib/models/security/v4/config/VerifyPasswordSpec.d.ts +0 -62
- package/dist/lib/models/security/v4/config/VerifyPasswordSpec.js +0 -279
- package/dist/lib/models/security/v4/report/Summary.d.ts +0 -149
- package/dist/lib/models/security/v4/report/Summary.js +0 -490
- package/dist/lib/models/security/v4/report/SummaryProjection.d.ts +0 -97
- package/dist/lib/models/security/v4/report/SummaryProjection.js +0 -329
- package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.d.ts +0 -10
- package/dist/lib/models/security/v4/report/VulnerabilitySummaryProjection.js +0 -153
|
@@ -3,46 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
|
-
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
8
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
9
|
var _AzureAccessInformation = _interopRequireDefault(require("./AzureAccessInformation"));
|
|
10
|
+
var _KmipAccessInformation = _interopRequireDefault(require("./KmipAccessInformation"));
|
|
11
11
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
12
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
13
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
15
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
19
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
25
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
27
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
30
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
32
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
35
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
36
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
37
15
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
38
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
16
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
17
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
39
18
|
* Nutanix Security APIs
|
|
40
19
|
*
|
|
41
|
-
* OpenAPI spec version: 4.
|
|
20
|
+
* OpenAPI spec version: 4.1.2
|
|
42
21
|
*
|
|
43
22
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
44
23
|
*
|
|
45
|
-
* Open API Dev Platform Codegen version: 17.
|
|
24
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
46
25
|
*
|
|
47
26
|
* Do not edit the class manually.
|
|
48
27
|
*
|
|
@@ -50,37 +29,34 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
50
29
|
/**
|
|
51
30
|
* The KeyManagementServer model module.
|
|
52
31
|
* @module Ntnx/KeyManagementServer
|
|
53
|
-
* @version 4.
|
|
32
|
+
* @version 4.1.2
|
|
54
33
|
* @class KeyManagementServer
|
|
55
34
|
* @extends ExternalizableAbstractModel
|
|
56
35
|
*/
|
|
57
36
|
var _KeyManagementServer_brand = /*#__PURE__*/new WeakSet();
|
|
58
|
-
|
|
37
|
+
class KeyManagementServer extends _ExternalizableAbstractModel.default {
|
|
59
38
|
/**
|
|
60
39
|
* Constructs a new <code>KeyManagementServer</code>.
|
|
61
40
|
* Key Management Server.
|
|
62
41
|
* @alias module:Ntnx/KeyManagementServer
|
|
63
42
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
64
43
|
*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
_classCallCheck(this, KeyManagementServer);
|
|
68
|
-
_this = _callSuper(this, KeyManagementServer);
|
|
44
|
+
constructor() {
|
|
45
|
+
super();
|
|
69
46
|
/*
|
|
70
47
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
71
48
|
* @param {Object} obj
|
|
72
49
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
73
50
|
* Otherwise, just returns the input object.
|
|
74
51
|
*/
|
|
75
|
-
_classPrivateMethodInitSpec(
|
|
76
|
-
|
|
52
|
+
_classPrivateMethodInitSpec(this, _KeyManagementServer_brand);
|
|
53
|
+
this.$objectType = "security.v4.config.KeyManagementServer";
|
|
77
54
|
/** @type {object<string, any>} */
|
|
78
|
-
|
|
79
|
-
'$fv': "v4.
|
|
55
|
+
this.$reserved = {
|
|
56
|
+
'$fv': "v4.r1"
|
|
80
57
|
};
|
|
81
58
|
/** @type {object<string, any>} */
|
|
82
|
-
|
|
83
|
-
return _this;
|
|
59
|
+
this.$unknownFields = {};
|
|
84
60
|
}
|
|
85
61
|
|
|
86
62
|
/**
|
|
@@ -91,186 +67,210 @@ var KeyManagementServer = exports["default"] = /*#__PURE__*/function (_Externali
|
|
|
91
67
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
92
68
|
* @return {module:Ntnx/KeyManagementServer} The populated <code>KeyManagementServer</code> instance.
|
|
93
69
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
70
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
71
|
+
let items, item, i, itemArr, discriminator;
|
|
72
|
+
if (data) {
|
|
73
|
+
obj = obj || new KeyManagementServer();
|
|
74
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
75
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
76
|
+
obj.setName(data['name']);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('accessInformation') && data.accessInformation !== null && data.accessInformation !== undefined) {
|
|
79
|
+
if (data['accessInformation'].hasOwnProperty('$objectType')) {
|
|
80
|
+
discriminator = data['accessInformation']['$objectType'];
|
|
81
|
+
} else {
|
|
82
|
+
discriminator = typeof data['accessInformation'];
|
|
83
|
+
}
|
|
84
|
+
switch (discriminator) {
|
|
85
|
+
case 'security.v4.config.AzureAccessInformation':
|
|
86
|
+
obj.setAccessInformation(_AzureAccessInformation.default.constructFromObject(data['accessInformation'], undefined));
|
|
87
|
+
break;
|
|
88
|
+
case 'security.v4.config.KmipAccessInformation':
|
|
89
|
+
obj.setAccessInformation(_KmipAccessInformation.default.constructFromObject(data['accessInformation'], undefined));
|
|
90
|
+
break;
|
|
91
|
+
default:
|
|
92
|
+
throw "Unknown datatype " + discriminator + " in data";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('creationTimestamp') && data.creationTimestamp !== null && data.creationTimestamp !== undefined) {
|
|
96
|
+
obj.setCreationTimestamp(data['creationTimestamp']);
|
|
97
|
+
}
|
|
98
|
+
if (!callFromChild) {
|
|
99
|
+
obj.$unknownFields = {
|
|
100
|
+
...data.$unknownFields
|
|
101
|
+
};
|
|
102
|
+
for (const property in data) {
|
|
103
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
104
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
105
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
106
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
107
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
108
|
+
obj.$unknownFields[property] = data[property];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
104
112
|
}
|
|
113
|
+
return obj;
|
|
114
|
+
}
|
|
105
115
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
116
|
+
/**
|
|
117
|
+
* Converts a given snake_case string to camelCase.
|
|
118
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
119
|
+
* @returns {string} - The converted string in camelCase format.
|
|
120
|
+
*/
|
|
121
|
+
static snakeToCamel(snakeStr) {
|
|
122
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
123
|
+
}
|
|
115
124
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
125
|
+
/**
|
|
126
|
+
* Returns Name of the key management server (KMS).
|
|
127
|
+
* @return {string}
|
|
128
|
+
*/
|
|
129
|
+
getName() {
|
|
130
|
+
return this.name;
|
|
131
|
+
}
|
|
124
132
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Sets Name of the key management server (KMS).
|
|
135
|
+
* @param {string} name Name of the key management server (KMS).
|
|
136
|
+
*/
|
|
137
|
+
setName(name) {
|
|
138
|
+
this.name = name;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Returns KMS access information.
|
|
143
|
+
* @return {AzureAccessInformation | KmipAccessInformation}
|
|
144
|
+
*/
|
|
145
|
+
getAccessInformation() {
|
|
146
|
+
return this.accessInformation;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Sets KMS access information.
|
|
151
|
+
* @param {AzureAccessInformation | KmipAccessInformation} accessInformation KMS access information.
|
|
152
|
+
*/
|
|
153
|
+
setAccessInformation(accessInformation) {
|
|
154
|
+
this.accessInformation = accessInformation;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Returns Timestamp of KMS Creation.
|
|
159
|
+
* @return {Date}
|
|
160
|
+
*/
|
|
161
|
+
getCreationTimestamp() {
|
|
162
|
+
return this.creationTimestamp;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Sets Timestamp of KMS Creation.
|
|
167
|
+
* @param {Date} creationTimestamp Timestamp of KMS Creation.
|
|
168
|
+
*/
|
|
169
|
+
setCreationTimestamp(creationTimestamp) {
|
|
170
|
+
this.creationTimestamp = creationTimestamp;
|
|
171
|
+
}
|
|
172
|
+
toJson(forMutation) {
|
|
173
|
+
if (forMutation === false) {
|
|
174
|
+
return {
|
|
175
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
138
176
|
'name': this.getName()
|
|
139
|
-
} : {}),
|
|
140
|
-
|
|
141
|
-
|
|
177
|
+
} : {}),
|
|
178
|
+
...(typeof this.getAccessInformation() !== 'undefined' && this.getAccessInformation() !== null ? {
|
|
179
|
+
'accessInformation': typeof this.getAccessInformation().toJson !== "undefined" ? this.getAccessInformation().toJson(false) : Array.isArray(this.getAccessInformation()) ? this.getAccessInformation().map(item => typeof item.toJson !== "undefined" ? item.toJson(false) : item) : _assertClassBrand(_KeyManagementServer_brand, this, _toJsonMapType).call(this, this.getAccessInformation(), false)
|
|
180
|
+
} : {}),
|
|
181
|
+
...(typeof this.getCreationTimestamp() !== 'undefined' && this.getCreationTimestamp() !== null ? {
|
|
182
|
+
'creationTimestamp': _assertClassBrand(_KeyManagementServer_brand, this, _handleDateType).call(this, this.getCreationTimestamp(), true)
|
|
183
|
+
} : {}),
|
|
184
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
142
185
|
'extId': this.getExtId()
|
|
143
|
-
} : {}),
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
186
|
+
} : {}),
|
|
187
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
188
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
189
|
+
} : {}),
|
|
190
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
148
191
|
'tenantId': this.getTenantId()
|
|
149
|
-
} : {}),
|
|
150
|
-
'$reserved': this.get$Reserved(),
|
|
151
|
-
'$objectType': this.get$ObjectType(),
|
|
152
|
-
'$unknownFields': this.get$UnknownFields()
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
156
|
-
'name': this.getName()
|
|
157
|
-
} : {}), typeof this.getAccessInformation() !== 'undefined' && this.getAccessInformation() !== null ? {
|
|
158
|
-
'accessInformation': this.getAccessInformation().toJson(false)
|
|
159
|
-
} : {}), {}, {
|
|
192
|
+
} : {}),
|
|
160
193
|
'$reserved': this.get$Reserved(),
|
|
161
194
|
'$objectType': this.get$ObjectType(),
|
|
162
|
-
|
|
163
|
-
|
|
195
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
196
|
+
'$unknownFields': {}
|
|
197
|
+
};
|
|
164
198
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
199
|
+
return {
|
|
200
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
201
|
+
'name': this.getName()
|
|
202
|
+
} : {}),
|
|
203
|
+
...(typeof this.getAccessInformation() !== 'undefined' && this.getAccessInformation() !== null ? {
|
|
204
|
+
'accessInformation': typeof this.getAccessInformation().toJson !== "undefined" ? this.getAccessInformation().toJson() : Array.isArray(this.getAccessInformation()) ? this.getAccessInformation().map(item => typeof item.toJson !== "undefined" ? item.toJson() : item) : _assertClassBrand(_KeyManagementServer_brand, this, _toJsonMapType).call(this, this.getAccessInformation())
|
|
205
|
+
} : {}),
|
|
206
|
+
'$reserved': this.get$Reserved(),
|
|
207
|
+
'$objectType': this.get$ObjectType(),
|
|
208
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
209
|
+
'$unknownFields': {}
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
validate(scope, properties) {
|
|
213
|
+
let propList = [];
|
|
214
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
215
|
+
//cases validate() and validate(scope)
|
|
216
|
+
propList = [];
|
|
217
|
+
} else if (arguments.length === 1) {
|
|
218
|
+
//case validate(properties)
|
|
219
|
+
propList = arguments[0];
|
|
220
|
+
scope = null;
|
|
221
|
+
} else {
|
|
222
|
+
//case validate(scope, properties)
|
|
223
|
+
propList = arguments[1];
|
|
224
|
+
}
|
|
225
|
+
let res = [];
|
|
226
|
+
let err = null;
|
|
227
|
+
propList.forEach(property => {
|
|
228
|
+
err = this.validateProperty(property, scope);
|
|
229
|
+
if (err) {
|
|
230
|
+
res.push(err);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
return new Promise(function (resolve, reject) {
|
|
234
|
+
if (res.length !== 0) {
|
|
235
|
+
reject(err);
|
|
177
236
|
} else {
|
|
178
|
-
|
|
179
|
-
propList = arguments[1];
|
|
237
|
+
resolve();
|
|
180
238
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
return new Promise(function (resolve, reject) {
|
|
190
|
-
if (res.length !== 0) {
|
|
191
|
-
reject(err);
|
|
192
|
-
} else {
|
|
193
|
-
resolve();
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}, {
|
|
198
|
-
key: "validateProperty",
|
|
199
|
-
value: function validateProperty(scope, property) {
|
|
200
|
-
if (property === "name") {
|
|
201
|
-
if (typeof this.name === 'undefined' || this.name === null) {
|
|
202
|
-
return new _ValidationError["default"]("name", "undefined or null");
|
|
203
|
-
}
|
|
204
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.name, 256)) {
|
|
205
|
-
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 256");
|
|
206
|
-
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
validateProperty(scope, property) {
|
|
242
|
+
if (property === "name") {
|
|
243
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
244
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
207
245
|
}
|
|
208
|
-
if (
|
|
209
|
-
|
|
210
|
-
return new _ValidationError["default"]("accessInformation", "undefined or null");
|
|
211
|
-
}
|
|
246
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 256)) {
|
|
247
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 256");
|
|
212
248
|
}
|
|
213
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
214
249
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
219
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
220
|
-
var items, item, i, itemArr, discriminator;
|
|
221
|
-
if (data) {
|
|
222
|
-
obj = obj || new KeyManagementServer();
|
|
223
|
-
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
224
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
225
|
-
obj.setName(data['name']);
|
|
226
|
-
}
|
|
227
|
-
if (data.hasOwnProperty('accessInformation') && data.accessInformation !== null && data.accessInformation !== undefined) {
|
|
228
|
-
obj.setAccessInformation(_AzureAccessInformation["default"].constructFromObject(data['accessInformation']));
|
|
229
|
-
}
|
|
230
|
-
if (!callFromChild) {
|
|
231
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
232
|
-
for (var property in data) {
|
|
233
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
234
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
235
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
236
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
237
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
238
|
-
obj.$unknownFields[property] = data[property];
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
250
|
+
if (property === "accessInformation") {
|
|
251
|
+
if (typeof this.accessInformation === 'undefined' || this.accessInformation === null) {
|
|
252
|
+
return new _ValidationError.default("accessInformation", "undefined or null");
|
|
242
253
|
}
|
|
243
|
-
return obj;
|
|
244
254
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
* @returns {string} - The converted string in camelCase format.
|
|
250
|
-
*/
|
|
251
|
-
}, {
|
|
252
|
-
key: "snakeToCamel",
|
|
253
|
-
value: function snakeToCamel(snakeStr) {
|
|
254
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
255
|
-
return match[1].toUpperCase();
|
|
256
|
-
});
|
|
255
|
+
if (property === "creationTimestamp") {
|
|
256
|
+
if (typeof this.creationTimestamp === 'undefined' || this.creationTimestamp === null) {
|
|
257
|
+
return new _ValidationError.default("creationTimestamp", "undefined or null");
|
|
258
|
+
}
|
|
257
259
|
}
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
260
264
|
/**
|
|
261
265
|
* Name of the key management server (KMS).
|
|
262
266
|
* @memberof KeyManagementServer
|
|
263
267
|
*/
|
|
268
|
+
exports.default = KeyManagementServer;
|
|
264
269
|
function _toJsonMapType(obj, forMutation) {
|
|
265
270
|
if (obj instanceof Map) {
|
|
266
|
-
return Object.fromEntries(Array.from(obj,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
v = _ref2[1];
|
|
270
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
271
|
-
}));
|
|
272
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
273
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
271
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
272
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
273
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
274
274
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
275
275
|
}));
|
|
276
276
|
}
|
|
@@ -291,23 +291,30 @@ function _handleDateType(obj, isDateOnly) {
|
|
|
291
291
|
KeyManagementServer.prototype.name = undefined;
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
|
+
* KMS access information.
|
|
294
295
|
* @memberof KeyManagementServer
|
|
295
296
|
*/
|
|
296
297
|
KeyManagementServer.prototype.accessInformation = undefined;
|
|
297
298
|
|
|
299
|
+
/**
|
|
300
|
+
* Timestamp of KMS Creation.
|
|
301
|
+
* @memberof KeyManagementServer
|
|
302
|
+
*/
|
|
303
|
+
KeyManagementServer.prototype.creationTimestamp = undefined;
|
|
304
|
+
|
|
298
305
|
/**
|
|
299
306
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
300
307
|
* @memberof KeyManagementServer
|
|
301
308
|
*/
|
|
302
|
-
_ExternalizableAbstractModel
|
|
309
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
303
310
|
/**
|
|
304
311
|
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
305
312
|
* @memberof KeyManagementServer
|
|
306
313
|
*/
|
|
307
|
-
_ExternalizableAbstractModel
|
|
314
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
308
315
|
/**
|
|
309
316
|
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
310
317
|
* @memberof KeyManagementServer
|
|
311
318
|
*/
|
|
312
|
-
_TenantAwareModel
|
|
319
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
313
320
|
// Implement OneOfsecurity.v4.config.GetKeyManagementServerApiResponsedata interface:
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The KmipAccessInformation model module.
|
|
3
|
+
* @module Ntnx/KmipAccessInformation
|
|
4
|
+
* @version 4.1.2
|
|
5
|
+
* @class KmipAccessInformation
|
|
6
|
+
*
|
|
7
|
+
* @param { string } certPem Cert PEM File.
|
|
8
|
+
*
|
|
9
|
+
* @param { string } privateKey Private Key used by the External Key Manager.
|
|
10
|
+
*
|
|
11
|
+
* @param { string } caName Name of the Certificate Authority.
|
|
12
|
+
*
|
|
13
|
+
* @param { string } caPem CA PEM file.
|
|
14
|
+
*
|
|
15
|
+
* @param { EndpointInfo[] } endpoints List of endpoints of the External Key Manager server.
|
|
16
|
+
*/
|
|
17
|
+
export default class KmipAccessInformation {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a <code>KmipAccessInformation</code> from a plain JavaScript object, optionally creating a new instance.
|
|
20
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
21
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
22
|
+
* @param {module:Ntnx/KmipAccessInformation} obj Optional instance to populate.
|
|
23
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
24
|
+
* @return {module:Ntnx/KmipAccessInformation} The populated <code>KmipAccessInformation</code> instance.
|
|
25
|
+
*/
|
|
26
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
27
|
+
/**
|
|
28
|
+
* Converts a given snake_case string to camelCase.
|
|
29
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
30
|
+
* @returns {string} - The converted string in camelCase format.
|
|
31
|
+
*/
|
|
32
|
+
static snakeToCamel(snakeStr: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>KmipAccessInformation</code>.
|
|
35
|
+
* Access info for KMIP based External Key Manager.
|
|
36
|
+
* @alias module:Ntnx/KmipAccessInformation
|
|
37
|
+
*
|
|
38
|
+
* @param { string } certPem Cert PEM File.
|
|
39
|
+
*
|
|
40
|
+
* @param { string } privateKey Private Key used by the External Key Manager.
|
|
41
|
+
*
|
|
42
|
+
* @param { string } caName Name of the Certificate Authority.
|
|
43
|
+
*
|
|
44
|
+
* @param { string } caPem CA PEM file.
|
|
45
|
+
*
|
|
46
|
+
* @param { EndpointInfo[] } endpoints List of endpoints of the External Key Manager server.
|
|
47
|
+
*/
|
|
48
|
+
constructor(certPem: string, privateKey: string, caName: string, caPem: string, endpoints: EndpointInfo[]);
|
|
49
|
+
certPem: string;
|
|
50
|
+
privateKey: string;
|
|
51
|
+
caName: string;
|
|
52
|
+
caPem: string;
|
|
53
|
+
endpoints: EndpointInfo[];
|
|
54
|
+
$objectType: string;
|
|
55
|
+
/** @type {object<string, any>} */
|
|
56
|
+
$reserved: object;
|
|
57
|
+
/** @type {object<string, any>} */
|
|
58
|
+
$unknownFields: object;
|
|
59
|
+
/**
|
|
60
|
+
* Returns Cert PEM File.
|
|
61
|
+
* @return {string}
|
|
62
|
+
*/
|
|
63
|
+
getCertPem(): string;
|
|
64
|
+
/**
|
|
65
|
+
* Sets Cert PEM File.
|
|
66
|
+
* @param {string} certPem Cert PEM File.
|
|
67
|
+
*/
|
|
68
|
+
setCertPem(certPem: string): void;
|
|
69
|
+
/**
|
|
70
|
+
* Returns Private Key used by the External Key Manager.
|
|
71
|
+
* @return {string}
|
|
72
|
+
*/
|
|
73
|
+
getPrivateKey(): string;
|
|
74
|
+
/**
|
|
75
|
+
* Sets Private Key used by the External Key Manager.
|
|
76
|
+
* @param {string} privateKey Private Key used by the External Key Manager.
|
|
77
|
+
*/
|
|
78
|
+
setPrivateKey(privateKey: string): void;
|
|
79
|
+
/**
|
|
80
|
+
* Returns Name of the Certificate Authority.
|
|
81
|
+
* @return {string}
|
|
82
|
+
*/
|
|
83
|
+
getCaName(): string;
|
|
84
|
+
/**
|
|
85
|
+
* Sets Name of the Certificate Authority.
|
|
86
|
+
* @param {string} caName Name of the Certificate Authority.
|
|
87
|
+
*/
|
|
88
|
+
setCaName(caName: string): void;
|
|
89
|
+
/**
|
|
90
|
+
* Returns CA PEM file.
|
|
91
|
+
* @return {string}
|
|
92
|
+
*/
|
|
93
|
+
getCaPem(): string;
|
|
94
|
+
/**
|
|
95
|
+
* Sets CA PEM file.
|
|
96
|
+
* @param {string} caPem CA PEM file.
|
|
97
|
+
*/
|
|
98
|
+
setCaPem(caPem: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Returns List of endpoints of the External Key Manager server.
|
|
101
|
+
* @return {EndpointInfo[]}
|
|
102
|
+
*/
|
|
103
|
+
getEndpoints(): EndpointInfo[];
|
|
104
|
+
/**
|
|
105
|
+
* Sets List of endpoints of the External Key Manager server.
|
|
106
|
+
* @param {EndpointInfo[]} endpoints List of endpoints of the External Key Manager server.
|
|
107
|
+
*/
|
|
108
|
+
setEndpoints(endpoints: EndpointInfo[]): void;
|
|
109
|
+
get$Reserved(): any;
|
|
110
|
+
get$ObjectType(): string;
|
|
111
|
+
get$UnknownFields(): any;
|
|
112
|
+
toJson(forMutation: any): any;
|
|
113
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
114
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
115
|
+
#private;
|
|
116
|
+
}
|
|
117
|
+
import EndpointInfo from "./EndpointInfo";
|
|
118
|
+
import ValidationError from "../../../validation/ValidationError";
|