@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,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _KVPair = _interopRequireDefault(require("../../../common/v1/config/KVPair"));
|
|
8
8
|
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
9
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
@@ -15,39 +15,17 @@ var _UserType = _interopRequireDefault(require("./UserType"));
|
|
|
15
15
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
16
16
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
17
17
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
19
|
-
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); }
|
|
20
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
21
|
-
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."); }
|
|
22
|
-
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; } }
|
|
23
|
-
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; }
|
|
24
|
-
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; } }
|
|
25
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
26
|
-
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; }
|
|
27
|
-
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; }
|
|
28
|
-
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; }
|
|
29
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
30
|
-
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); } }
|
|
31
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
32
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
33
|
-
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); }
|
|
34
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
35
|
-
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); }
|
|
36
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
37
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
38
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
39
|
-
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); }
|
|
40
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
41
19
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
42
20
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
43
21
|
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"); } /*
|
|
44
22
|
* Nutanix Security APIs
|
|
45
23
|
*
|
|
46
|
-
* OpenAPI spec version: 4.
|
|
24
|
+
* OpenAPI spec version: 4.1.2
|
|
47
25
|
*
|
|
48
26
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
49
27
|
*
|
|
50
|
-
* Open API Dev Platform Codegen version: 17.
|
|
28
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
51
29
|
*
|
|
52
30
|
* Do not edit the class manually.
|
|
53
31
|
*
|
|
@@ -55,37 +33,34 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
55
33
|
/**
|
|
56
34
|
* The User model module.
|
|
57
35
|
* @module Ntnx/User
|
|
58
|
-
* @version 4.
|
|
36
|
+
* @version 4.1.2
|
|
59
37
|
* @class User
|
|
60
38
|
* @extends ExternalizableAbstractModel
|
|
61
39
|
*/
|
|
62
40
|
var _User_brand = /*#__PURE__*/new WeakSet();
|
|
63
|
-
|
|
41
|
+
class User extends _ExternalizableAbstractModel.default {
|
|
64
42
|
/**
|
|
65
43
|
* Constructs a new <code>User</code>.
|
|
66
44
|
* Information of the user.
|
|
67
45
|
* @alias module:Ntnx/User
|
|
68
46
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
69
47
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
_classCallCheck(this, User);
|
|
73
|
-
_this = _callSuper(this, User);
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
74
50
|
/*
|
|
75
51
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
76
52
|
* @param {Object} obj
|
|
77
53
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
78
54
|
* Otherwise, just returns the input object.
|
|
79
55
|
*/
|
|
80
|
-
_classPrivateMethodInitSpec(
|
|
81
|
-
|
|
56
|
+
_classPrivateMethodInitSpec(this, _User_brand);
|
|
57
|
+
this.$objectType = "iam.v4.authn.User";
|
|
82
58
|
/** @type {object<string, any>} */
|
|
83
|
-
|
|
84
|
-
'$fv': "v4.r1.
|
|
59
|
+
this.$reserved = {
|
|
60
|
+
'$fv': "v4.r1.b2"
|
|
85
61
|
};
|
|
86
62
|
/** @type {object<string, any>} */
|
|
87
|
-
|
|
88
|
-
return _this;
|
|
63
|
+
this.$unknownFields = {};
|
|
89
64
|
}
|
|
90
65
|
|
|
91
66
|
/**
|
|
@@ -96,891 +71,820 @@ var User = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
|
96
71
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
97
72
|
* @return {module:Ntnx/User} The populated <code>User</code> instance.
|
|
98
73
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
74
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
75
|
+
let items, item, i, itemArr, discriminator;
|
|
76
|
+
if (data) {
|
|
77
|
+
obj = obj || new User();
|
|
78
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
79
|
+
if (data.hasOwnProperty('username') && data.username !== null && data.username !== undefined) {
|
|
80
|
+
obj.setUsername(data['username']);
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('userType') && data.userType !== null && data.userType !== undefined) {
|
|
83
|
+
obj.setUserType(_UserType.default.constructFromObject(data['userType']));
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('idpId') && data.idpId !== null && data.idpId !== undefined) {
|
|
86
|
+
obj.setIdpId(data['idpId']);
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('displayName') && data.displayName !== null && data.displayName !== undefined) {
|
|
89
|
+
obj.setDisplayName(data['displayName']);
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('firstName') && data.firstName !== null && data.firstName !== undefined) {
|
|
92
|
+
obj.setFirstName(data['firstName']);
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('middleInitial') && data.middleInitial !== null && data.middleInitial !== undefined) {
|
|
95
|
+
obj.setMiddleInitial(data['middleInitial']);
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('lastName') && data.lastName !== null && data.lastName !== undefined) {
|
|
98
|
+
obj.setLastName(data['lastName']);
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('emailId') && data.emailId !== null && data.emailId !== undefined) {
|
|
101
|
+
obj.setEmailId(data['emailId']);
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {
|
|
104
|
+
obj.setLocale(data['locale']);
|
|
105
|
+
}
|
|
106
|
+
if (data.hasOwnProperty('region') && data.region !== null && data.region !== undefined) {
|
|
107
|
+
obj.setRegion(data['region']);
|
|
108
|
+
}
|
|
109
|
+
if (data.hasOwnProperty('password') && data.password !== null && data.password !== undefined) {
|
|
110
|
+
obj.setPassword(data['password']);
|
|
111
|
+
}
|
|
112
|
+
if (data.hasOwnProperty('isForceResetPasswordEnabled') && data.isForceResetPasswordEnabled !== null && data.isForceResetPasswordEnabled !== undefined) {
|
|
113
|
+
obj.setIsForceResetPasswordEnabled(data['isForceResetPasswordEnabled']);
|
|
114
|
+
}
|
|
115
|
+
if (data.hasOwnProperty('additionalAttributes') && data.additionalAttributes !== null && data.additionalAttributes !== undefined) {
|
|
116
|
+
itemArr = [];
|
|
117
|
+
items = data.additionalAttributes;
|
|
118
|
+
for (i = 0; i < items.length; i++) {
|
|
119
|
+
item = _KVPair.default.constructFromObject(items[i], undefined);
|
|
120
|
+
itemArr.push(item);
|
|
121
|
+
}
|
|
122
|
+
obj.setAdditionalAttributes(itemArr);
|
|
123
|
+
}
|
|
124
|
+
if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
|
|
125
|
+
obj.setStatus(_UserStatusType.default.constructFromObject(data['status']));
|
|
126
|
+
}
|
|
127
|
+
if (data.hasOwnProperty('bucketsAccessKeys') && data.bucketsAccessKeys !== null && data.bucketsAccessKeys !== undefined) {
|
|
128
|
+
itemArr = [];
|
|
129
|
+
items = data.bucketsAccessKeys;
|
|
130
|
+
for (i = 0; i < items.length; i++) {
|
|
131
|
+
item = _BucketsAccessKey.default.constructFromObject(items[i], undefined);
|
|
132
|
+
itemArr.push(item);
|
|
133
|
+
}
|
|
134
|
+
obj.setBucketsAccessKeys(itemArr);
|
|
135
|
+
}
|
|
136
|
+
if (data.hasOwnProperty('lastLoginTime') && data.lastLoginTime !== null && data.lastLoginTime !== undefined) {
|
|
137
|
+
obj.setLastLoginTime(data['lastLoginTime']);
|
|
138
|
+
}
|
|
139
|
+
if (data.hasOwnProperty('createdTime') && data.createdTime !== null && data.createdTime !== undefined) {
|
|
140
|
+
obj.setCreatedTime(data['createdTime']);
|
|
141
|
+
}
|
|
142
|
+
if (data.hasOwnProperty('lastUpdatedTime') && data.lastUpdatedTime !== null && data.lastUpdatedTime !== undefined) {
|
|
143
|
+
obj.setLastUpdatedTime(data['lastUpdatedTime']);
|
|
144
|
+
}
|
|
145
|
+
if (data.hasOwnProperty('createdBy') && data.createdBy !== null && data.createdBy !== undefined) {
|
|
146
|
+
obj.setCreatedBy(data['createdBy']);
|
|
147
|
+
}
|
|
148
|
+
if (data.hasOwnProperty('lastUpdatedBy') && data.lastUpdatedBy !== null && data.lastUpdatedBy !== undefined) {
|
|
149
|
+
obj.setLastUpdatedBy(data['lastUpdatedBy']);
|
|
150
|
+
}
|
|
151
|
+
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
152
|
+
obj.setDescription(data['description']);
|
|
153
|
+
}
|
|
154
|
+
if (data.hasOwnProperty('creationType') && data.creationType !== null && data.creationType !== undefined) {
|
|
155
|
+
obj.setCreationType(_CreationType.default.constructFromObject(data['creationType']));
|
|
156
|
+
}
|
|
157
|
+
if (!callFromChild) {
|
|
158
|
+
obj.$unknownFields = {
|
|
159
|
+
...data.$unknownFields
|
|
160
|
+
};
|
|
161
|
+
for (const property in data) {
|
|
162
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
163
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
164
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
165
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
166
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
167
|
+
obj.$unknownFields[property] = data[property];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
109
171
|
}
|
|
172
|
+
return obj;
|
|
173
|
+
}
|
|
110
174
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
175
|
+
/**
|
|
176
|
+
* Converts a given snake_case string to camelCase.
|
|
177
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
178
|
+
* @returns {string} - The converted string in camelCase format.
|
|
179
|
+
*/
|
|
180
|
+
static snakeToCamel(snakeStr) {
|
|
181
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
182
|
+
}
|
|
120
183
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
184
|
+
/**
|
|
185
|
+
* Returns Identifier of the user.
|
|
186
|
+
* @return {string}
|
|
187
|
+
*/
|
|
188
|
+
getUsername() {
|
|
189
|
+
return this.username;
|
|
190
|
+
}
|
|
129
191
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
192
|
+
/**
|
|
193
|
+
* Sets Identifier of the user.
|
|
194
|
+
* @param {string} username Identifier of the user.
|
|
195
|
+
*/
|
|
196
|
+
setUsername(username) {
|
|
197
|
+
this.username = username;
|
|
198
|
+
}
|
|
138
199
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
value: function getIdpId() {
|
|
146
|
-
return this.idpId;
|
|
147
|
-
}
|
|
200
|
+
/**
|
|
201
|
+
* @return {UserType}
|
|
202
|
+
*/
|
|
203
|
+
getUserType() {
|
|
204
|
+
return this.userType;
|
|
205
|
+
}
|
|
148
206
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
value: function setIdpId(idpId) {
|
|
156
|
-
this.idpId = idpId;
|
|
157
|
-
}
|
|
207
|
+
/**
|
|
208
|
+
* @param {UserType} userType
|
|
209
|
+
*/
|
|
210
|
+
setUserType(userType) {
|
|
211
|
+
this.userType = userType;
|
|
212
|
+
}
|
|
158
213
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
return this.displayName;
|
|
167
|
-
}
|
|
214
|
+
/**
|
|
215
|
+
* Returns Identifier of the IDP for the user.
|
|
216
|
+
* @return {string}
|
|
217
|
+
*/
|
|
218
|
+
getIdpId() {
|
|
219
|
+
return this.idpId;
|
|
220
|
+
}
|
|
168
221
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
this.displayName = displayName;
|
|
177
|
-
}
|
|
222
|
+
/**
|
|
223
|
+
* Sets Identifier of the IDP for the user.
|
|
224
|
+
* @param {string} idpId Identifier of the IDP for the user.
|
|
225
|
+
*/
|
|
226
|
+
setIdpId(idpId) {
|
|
227
|
+
this.idpId = idpId;
|
|
228
|
+
}
|
|
178
229
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return this.firstName;
|
|
187
|
-
}
|
|
230
|
+
/**
|
|
231
|
+
* Returns Display name of the user. For LDAP and SAML users, this is set from AD config.
|
|
232
|
+
* @return {string}
|
|
233
|
+
*/
|
|
234
|
+
getDisplayName() {
|
|
235
|
+
return this.displayName;
|
|
236
|
+
}
|
|
188
237
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
this.firstName = firstName;
|
|
197
|
-
}
|
|
238
|
+
/**
|
|
239
|
+
* Sets Display name of the user. For LDAP and SAML users, this is set from AD config.
|
|
240
|
+
* @param {string} displayName Display name of the user. For LDAP and SAML users, this is set from AD config.
|
|
241
|
+
*/
|
|
242
|
+
setDisplayName(displayName) {
|
|
243
|
+
this.displayName = displayName;
|
|
244
|
+
}
|
|
198
245
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return this.middleInitial;
|
|
207
|
-
}
|
|
246
|
+
/**
|
|
247
|
+
* Returns First name of the user.
|
|
248
|
+
* @return {string}
|
|
249
|
+
*/
|
|
250
|
+
getFirstName() {
|
|
251
|
+
return this.firstName;
|
|
252
|
+
}
|
|
208
253
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
this.middleInitial = middleInitial;
|
|
217
|
-
}
|
|
254
|
+
/**
|
|
255
|
+
* Sets First name of the user.
|
|
256
|
+
* @param {string} firstName First name of the user.
|
|
257
|
+
*/
|
|
258
|
+
setFirstName(firstName) {
|
|
259
|
+
this.firstName = firstName;
|
|
260
|
+
}
|
|
218
261
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
return this.lastName;
|
|
227
|
-
}
|
|
262
|
+
/**
|
|
263
|
+
* Returns Middle name of the user.
|
|
264
|
+
* @return {string}
|
|
265
|
+
*/
|
|
266
|
+
getMiddleInitial() {
|
|
267
|
+
return this.middleInitial;
|
|
268
|
+
}
|
|
228
269
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
this.lastName = lastName;
|
|
237
|
-
}
|
|
270
|
+
/**
|
|
271
|
+
* Sets Middle name of the user.
|
|
272
|
+
* @param {string} middleInitial Middle name of the user.
|
|
273
|
+
*/
|
|
274
|
+
setMiddleInitial(middleInitial) {
|
|
275
|
+
this.middleInitial = middleInitial;
|
|
276
|
+
}
|
|
238
277
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
return this.emailId;
|
|
247
|
-
}
|
|
278
|
+
/**
|
|
279
|
+
* Returns Last name of the user.
|
|
280
|
+
* @return {string}
|
|
281
|
+
*/
|
|
282
|
+
getLastName() {
|
|
283
|
+
return this.lastName;
|
|
284
|
+
}
|
|
248
285
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
this.emailId = emailId;
|
|
257
|
-
}
|
|
286
|
+
/**
|
|
287
|
+
* Sets Last name of the user.
|
|
288
|
+
* @param {string} lastName Last name of the user.
|
|
289
|
+
*/
|
|
290
|
+
setLastName(lastName) {
|
|
291
|
+
this.lastName = lastName;
|
|
292
|
+
}
|
|
258
293
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
return this.locale;
|
|
267
|
-
}
|
|
294
|
+
/**
|
|
295
|
+
* Returns Email ID of the user.
|
|
296
|
+
* @return {string}
|
|
297
|
+
*/
|
|
298
|
+
getEmailId() {
|
|
299
|
+
return this.emailId;
|
|
300
|
+
}
|
|
268
301
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
this.locale = locale;
|
|
277
|
-
}
|
|
302
|
+
/**
|
|
303
|
+
* Sets Email ID of the user.
|
|
304
|
+
* @param {string} emailId Email ID of the user.
|
|
305
|
+
*/
|
|
306
|
+
setEmailId(emailId) {
|
|
307
|
+
this.emailId = emailId;
|
|
308
|
+
}
|
|
278
309
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
return this.region;
|
|
287
|
-
}
|
|
310
|
+
/**
|
|
311
|
+
* Returns Default locale of the user.
|
|
312
|
+
* @return {string}
|
|
313
|
+
*/
|
|
314
|
+
getLocale() {
|
|
315
|
+
return this.locale;
|
|
316
|
+
}
|
|
288
317
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
this.region = region;
|
|
297
|
-
}
|
|
318
|
+
/**
|
|
319
|
+
* Sets Default locale of the user.
|
|
320
|
+
* @param {string} locale Default locale of the user.
|
|
321
|
+
*/
|
|
322
|
+
setLocale(locale) {
|
|
323
|
+
this.locale = locale;
|
|
324
|
+
}
|
|
298
325
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
return this.password;
|
|
307
|
-
}
|
|
326
|
+
/**
|
|
327
|
+
* Returns Default region of the user.
|
|
328
|
+
* @return {string}
|
|
329
|
+
*/
|
|
330
|
+
getRegion() {
|
|
331
|
+
return this.region;
|
|
332
|
+
}
|
|
308
333
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
this.password = password;
|
|
317
|
-
}
|
|
334
|
+
/**
|
|
335
|
+
* Sets Default region of the user.
|
|
336
|
+
* @param {string} region Default region of the user.
|
|
337
|
+
*/
|
|
338
|
+
setRegion(region) {
|
|
339
|
+
this.region = region;
|
|
340
|
+
}
|
|
318
341
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return this.isForceResetPasswordEnabled;
|
|
327
|
-
}
|
|
342
|
+
/**
|
|
343
|
+
* Returns Password of the user.
|
|
344
|
+
* @return {string}
|
|
345
|
+
*/
|
|
346
|
+
getPassword() {
|
|
347
|
+
return this.password;
|
|
348
|
+
}
|
|
328
349
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
this.isForceResetPasswordEnabled = isForceResetPasswordEnabled;
|
|
337
|
-
}
|
|
350
|
+
/**
|
|
351
|
+
* Sets Password of the user.
|
|
352
|
+
* @param {string} password Password of the user.
|
|
353
|
+
*/
|
|
354
|
+
setPassword(password) {
|
|
355
|
+
this.password = password;
|
|
356
|
+
}
|
|
338
357
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return this.additionalAttributes;
|
|
347
|
-
}
|
|
358
|
+
/**
|
|
359
|
+
* Returns Flag to force the user to reset password.
|
|
360
|
+
* @return {boolean}
|
|
361
|
+
*/
|
|
362
|
+
getIsForceResetPasswordEnabled() {
|
|
363
|
+
return this.isForceResetPasswordEnabled;
|
|
364
|
+
}
|
|
348
365
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
this.additionalAttributes = additionalAttributes;
|
|
357
|
-
}
|
|
366
|
+
/**
|
|
367
|
+
* Sets Flag to force the user to reset password.
|
|
368
|
+
* @param {boolean} isForceResetPasswordEnabled Flag to force the user to reset password.
|
|
369
|
+
*/
|
|
370
|
+
setIsForceResetPasswordEnabled(isForceResetPasswordEnabled) {
|
|
371
|
+
this.isForceResetPasswordEnabled = isForceResetPasswordEnabled;
|
|
372
|
+
}
|
|
358
373
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
374
|
+
/**
|
|
375
|
+
* Returns Indicates additional attributes of the user.
|
|
376
|
+
* @return {KVPair[]}
|
|
377
|
+
*/
|
|
378
|
+
getAdditionalAttributes() {
|
|
379
|
+
return this.additionalAttributes;
|
|
380
|
+
}
|
|
367
381
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
382
|
+
/**
|
|
383
|
+
* Sets Indicates additional attributes of the user.
|
|
384
|
+
* @param {KVPair[]} additionalAttributes Indicates additional attributes of the user.
|
|
385
|
+
*/
|
|
386
|
+
setAdditionalAttributes(additionalAttributes) {
|
|
387
|
+
this.additionalAttributes = additionalAttributes;
|
|
388
|
+
}
|
|
376
389
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
value: function getBucketsAccessKeys() {
|
|
384
|
-
return this.bucketsAccessKeys;
|
|
385
|
-
}
|
|
390
|
+
/**
|
|
391
|
+
* @return {UserStatusType}
|
|
392
|
+
*/
|
|
393
|
+
getStatus() {
|
|
394
|
+
return this.status;
|
|
395
|
+
}
|
|
386
396
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
value: function setBucketsAccessKeys(bucketsAccessKeys) {
|
|
394
|
-
this.bucketsAccessKeys = bucketsAccessKeys;
|
|
395
|
-
}
|
|
397
|
+
/**
|
|
398
|
+
* @param {UserStatusType} status
|
|
399
|
+
*/
|
|
400
|
+
setStatus(status) {
|
|
401
|
+
this.status = status;
|
|
402
|
+
}
|
|
396
403
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
return this.lastLoginTime;
|
|
405
|
-
}
|
|
404
|
+
/**
|
|
405
|
+
* Returns Bucket access keys for the user.
|
|
406
|
+
* @return {BucketsAccessKey[]}
|
|
407
|
+
*/
|
|
408
|
+
getBucketsAccessKeys() {
|
|
409
|
+
return this.bucketsAccessKeys;
|
|
410
|
+
}
|
|
406
411
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
this.lastLoginTime = lastLoginTime;
|
|
415
|
-
}
|
|
412
|
+
/**
|
|
413
|
+
* Sets Bucket access keys for the user.
|
|
414
|
+
* @param {BucketsAccessKey[]} bucketsAccessKeys Bucket access keys for the user.
|
|
415
|
+
*/
|
|
416
|
+
setBucketsAccessKeys(bucketsAccessKeys) {
|
|
417
|
+
this.bucketsAccessKeys = bucketsAccessKeys;
|
|
418
|
+
}
|
|
416
419
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
return this.createdTime;
|
|
425
|
-
}
|
|
420
|
+
/**
|
|
421
|
+
* Returns The last successful login time for the user.
|
|
422
|
+
* @return {Date}
|
|
423
|
+
*/
|
|
424
|
+
getLastLoginTime() {
|
|
425
|
+
return this.lastLoginTime;
|
|
426
|
+
}
|
|
426
427
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
this.createdTime = createdTime;
|
|
435
|
-
}
|
|
428
|
+
/**
|
|
429
|
+
* Sets The last successful login time for the user.
|
|
430
|
+
* @param {Date} lastLoginTime The last successful login time for the user.
|
|
431
|
+
*/
|
|
432
|
+
setLastLoginTime(lastLoginTime) {
|
|
433
|
+
this.lastLoginTime = lastLoginTime;
|
|
434
|
+
}
|
|
436
435
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
return this.lastUpdatedTime;
|
|
445
|
-
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns Creation time of the user.
|
|
438
|
+
* @return {Date}
|
|
439
|
+
*/
|
|
440
|
+
getCreatedTime() {
|
|
441
|
+
return this.createdTime;
|
|
442
|
+
}
|
|
446
443
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
this.lastUpdatedTime = lastUpdatedTime;
|
|
455
|
-
}
|
|
444
|
+
/**
|
|
445
|
+
* Sets Creation time of the user.
|
|
446
|
+
* @param {Date} createdTime Creation time of the user.
|
|
447
|
+
*/
|
|
448
|
+
setCreatedTime(createdTime) {
|
|
449
|
+
this.createdTime = createdTime;
|
|
450
|
+
}
|
|
456
451
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
return this.createdBy;
|
|
465
|
-
}
|
|
452
|
+
/**
|
|
453
|
+
* Returns The last updated time for the user.
|
|
454
|
+
* @return {Date}
|
|
455
|
+
*/
|
|
456
|
+
getLastUpdatedTime() {
|
|
457
|
+
return this.lastUpdatedTime;
|
|
458
|
+
}
|
|
466
459
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
this.createdBy = createdBy;
|
|
475
|
-
}
|
|
460
|
+
/**
|
|
461
|
+
* Sets The last updated time for the user.
|
|
462
|
+
* @param {Date} lastUpdatedTime The last updated time for the user.
|
|
463
|
+
*/
|
|
464
|
+
setLastUpdatedTime(lastUpdatedTime) {
|
|
465
|
+
this.lastUpdatedTime = lastUpdatedTime;
|
|
466
|
+
}
|
|
476
467
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
return this.lastUpdatedBy;
|
|
485
|
-
}
|
|
468
|
+
/**
|
|
469
|
+
* Returns User or Service who created the user.
|
|
470
|
+
* @return {string}
|
|
471
|
+
*/
|
|
472
|
+
getCreatedBy() {
|
|
473
|
+
return this.createdBy;
|
|
474
|
+
}
|
|
486
475
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
this.lastUpdatedBy = lastUpdatedBy;
|
|
495
|
-
}
|
|
476
|
+
/**
|
|
477
|
+
* Sets User or Service who created the user.
|
|
478
|
+
* @param {string} createdBy User or Service who created the user.
|
|
479
|
+
*/
|
|
480
|
+
setCreatedBy(createdBy) {
|
|
481
|
+
this.createdBy = createdBy;
|
|
482
|
+
}
|
|
496
483
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
return this.description;
|
|
505
|
-
}
|
|
484
|
+
/**
|
|
485
|
+
* Returns Last updated by this user ID.
|
|
486
|
+
* @return {string}
|
|
487
|
+
*/
|
|
488
|
+
getLastUpdatedBy() {
|
|
489
|
+
return this.lastUpdatedBy;
|
|
490
|
+
}
|
|
506
491
|
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
this.description = description;
|
|
515
|
-
}
|
|
492
|
+
/**
|
|
493
|
+
* Sets Last updated by this user ID.
|
|
494
|
+
* @param {string} lastUpdatedBy Last updated by this user ID.
|
|
495
|
+
*/
|
|
496
|
+
setLastUpdatedBy(lastUpdatedBy) {
|
|
497
|
+
this.lastUpdatedBy = lastUpdatedBy;
|
|
498
|
+
}
|
|
516
499
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
500
|
+
/**
|
|
501
|
+
* Returns Description of the user.
|
|
502
|
+
* @return {string}
|
|
503
|
+
*/
|
|
504
|
+
getDescription() {
|
|
505
|
+
return this.description;
|
|
506
|
+
}
|
|
525
507
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
508
|
+
/**
|
|
509
|
+
* Sets Description of the user.
|
|
510
|
+
* @param {string} description Description of the user.
|
|
511
|
+
*/
|
|
512
|
+
setDescription(description) {
|
|
513
|
+
this.description = description;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @return {CreationType}
|
|
518
|
+
*/
|
|
519
|
+
getCreationType() {
|
|
520
|
+
return this.creationType;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* @param {CreationType} creationType
|
|
525
|
+
*/
|
|
526
|
+
setCreationType(creationType) {
|
|
527
|
+
this.creationType = creationType;
|
|
528
|
+
}
|
|
529
|
+
toJson(forMutation) {
|
|
530
|
+
if (forMutation === false) {
|
|
531
|
+
return {
|
|
532
|
+
...(typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {
|
|
539
533
|
'username': this.getUsername()
|
|
540
|
-
} : {}),
|
|
534
|
+
} : {}),
|
|
535
|
+
...(typeof this.getUserType() !== 'undefined' && this.getUserType() !== null ? {
|
|
541
536
|
'userType': this.getUserType()
|
|
542
|
-
} : {}),
|
|
537
|
+
} : {}),
|
|
538
|
+
...(typeof this.getIdpId() !== 'undefined' && this.getIdpId() !== null ? {
|
|
543
539
|
'idpId': this.getIdpId()
|
|
544
|
-
} : {}),
|
|
540
|
+
} : {}),
|
|
541
|
+
...(typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
|
|
545
542
|
'displayName': this.getDisplayName()
|
|
546
|
-
} : {}),
|
|
543
|
+
} : {}),
|
|
544
|
+
...(typeof this.getFirstName() !== 'undefined' && this.getFirstName() !== null ? {
|
|
547
545
|
'firstName': this.getFirstName()
|
|
548
|
-
} : {}),
|
|
546
|
+
} : {}),
|
|
547
|
+
...(typeof this.getMiddleInitial() !== 'undefined' && this.getMiddleInitial() !== null ? {
|
|
549
548
|
'middleInitial': this.getMiddleInitial()
|
|
550
|
-
} : {}),
|
|
549
|
+
} : {}),
|
|
550
|
+
...(typeof this.getLastName() !== 'undefined' && this.getLastName() !== null ? {
|
|
551
551
|
'lastName': this.getLastName()
|
|
552
|
-
} : {}),
|
|
552
|
+
} : {}),
|
|
553
|
+
...(typeof this.getEmailId() !== 'undefined' && this.getEmailId() !== null ? {
|
|
553
554
|
'emailId': this.getEmailId()
|
|
554
|
-
} : {}),
|
|
555
|
+
} : {}),
|
|
556
|
+
...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
|
|
555
557
|
'locale': this.getLocale()
|
|
556
|
-
} : {}),
|
|
558
|
+
} : {}),
|
|
559
|
+
...(typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
|
|
557
560
|
'region': this.getRegion()
|
|
558
|
-
} : {}),
|
|
561
|
+
} : {}),
|
|
562
|
+
...(typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {
|
|
559
563
|
'password': this.getPassword()
|
|
560
|
-
} : {}),
|
|
564
|
+
} : {}),
|
|
565
|
+
...(typeof this.getIsForceResetPasswordEnabled() !== 'undefined' && this.getIsForceResetPasswordEnabled() !== null ? {
|
|
561
566
|
'isForceResetPasswordEnabled': this.getIsForceResetPasswordEnabled()
|
|
562
|
-
} : {}),
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
+
} : {}),
|
|
568
|
+
...(typeof this.getAdditionalAttributes() !== 'undefined' && this.getAdditionalAttributes() !== null ? {
|
|
569
|
+
'additionalAttributes': this.getAdditionalAttributes().map(item => item.toJson(false))
|
|
570
|
+
} : {}),
|
|
571
|
+
...(typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
567
572
|
'status': this.getStatus()
|
|
568
|
-
} : {}),
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
+
} : {}),
|
|
574
|
+
...(typeof this.getBucketsAccessKeys() !== 'undefined' && this.getBucketsAccessKeys() !== null ? {
|
|
575
|
+
'bucketsAccessKeys': this.getBucketsAccessKeys().map(item => item.toJson(false))
|
|
576
|
+
} : {}),
|
|
577
|
+
...(typeof this.getLastLoginTime() !== 'undefined' && this.getLastLoginTime() !== null ? {
|
|
573
578
|
'lastLoginTime': _assertClassBrand(_User_brand, this, _handleDateType).call(this, this.getLastLoginTime(), false)
|
|
574
|
-
} : {}),
|
|
579
|
+
} : {}),
|
|
580
|
+
...(typeof this.getCreatedTime() !== 'undefined' && this.getCreatedTime() !== null ? {
|
|
575
581
|
'createdTime': _assertClassBrand(_User_brand, this, _handleDateType).call(this, this.getCreatedTime(), false)
|
|
576
|
-
} : {}),
|
|
582
|
+
} : {}),
|
|
583
|
+
...(typeof this.getLastUpdatedTime() !== 'undefined' && this.getLastUpdatedTime() !== null ? {
|
|
577
584
|
'lastUpdatedTime': _assertClassBrand(_User_brand, this, _handleDateType).call(this, this.getLastUpdatedTime(), false)
|
|
578
|
-
} : {}),
|
|
585
|
+
} : {}),
|
|
586
|
+
...(typeof this.getCreatedBy() !== 'undefined' && this.getCreatedBy() !== null ? {
|
|
579
587
|
'createdBy': this.getCreatedBy()
|
|
580
|
-
} : {}),
|
|
588
|
+
} : {}),
|
|
589
|
+
...(typeof this.getLastUpdatedBy() !== 'undefined' && this.getLastUpdatedBy() !== null ? {
|
|
581
590
|
'lastUpdatedBy': this.getLastUpdatedBy()
|
|
582
|
-
} : {}),
|
|
591
|
+
} : {}),
|
|
592
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
583
593
|
'description': this.getDescription()
|
|
584
|
-
} : {}),
|
|
594
|
+
} : {}),
|
|
595
|
+
...(typeof this.getCreationType() !== 'undefined' && this.getCreationType() !== null ? {
|
|
585
596
|
'creationType': this.getCreationType()
|
|
586
|
-
} : {}),
|
|
597
|
+
} : {}),
|
|
598
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
587
599
|
'extId': this.getExtId()
|
|
588
|
-
} : {}),
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
600
|
+
} : {}),
|
|
601
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
602
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
603
|
+
} : {}),
|
|
604
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
593
605
|
'tenantId': this.getTenantId()
|
|
594
|
-
} : {}),
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
|
|
606
|
+
} : {}),
|
|
607
|
+
'$reserved': this.get$Reserved(),
|
|
608
|
+
'$objectType': this.get$ObjectType(),
|
|
609
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
610
|
+
'$unknownFields': {}
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
return {
|
|
614
|
+
...(typeof this.getUsername() !== 'undefined' && this.getUsername() !== null ? {
|
|
601
615
|
'username': this.getUsername()
|
|
602
|
-
} : {}),
|
|
616
|
+
} : {}),
|
|
617
|
+
...(typeof this.getUserType() !== 'undefined' && this.getUserType() !== null ? {
|
|
603
618
|
'userType': this.getUserType()
|
|
604
|
-
} : {}),
|
|
619
|
+
} : {}),
|
|
620
|
+
...(typeof this.getIdpId() !== 'undefined' && this.getIdpId() !== null ? {
|
|
605
621
|
'idpId': this.getIdpId()
|
|
606
|
-
} : {}),
|
|
622
|
+
} : {}),
|
|
623
|
+
...(typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
|
|
607
624
|
'displayName': this.getDisplayName()
|
|
608
|
-
} : {}),
|
|
625
|
+
} : {}),
|
|
626
|
+
...(typeof this.getFirstName() !== 'undefined' && this.getFirstName() !== null ? {
|
|
609
627
|
'firstName': this.getFirstName()
|
|
610
|
-
} : {}),
|
|
628
|
+
} : {}),
|
|
629
|
+
...(typeof this.getMiddleInitial() !== 'undefined' && this.getMiddleInitial() !== null ? {
|
|
611
630
|
'middleInitial': this.getMiddleInitial()
|
|
612
|
-
} : {}),
|
|
631
|
+
} : {}),
|
|
632
|
+
...(typeof this.getLastName() !== 'undefined' && this.getLastName() !== null ? {
|
|
613
633
|
'lastName': this.getLastName()
|
|
614
|
-
} : {}),
|
|
634
|
+
} : {}),
|
|
635
|
+
...(typeof this.getEmailId() !== 'undefined' && this.getEmailId() !== null ? {
|
|
615
636
|
'emailId': this.getEmailId()
|
|
616
|
-
} : {}),
|
|
637
|
+
} : {}),
|
|
638
|
+
...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {
|
|
617
639
|
'locale': this.getLocale()
|
|
618
|
-
} : {}),
|
|
640
|
+
} : {}),
|
|
641
|
+
...(typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
|
|
619
642
|
'region': this.getRegion()
|
|
620
|
-
} : {}),
|
|
643
|
+
} : {}),
|
|
644
|
+
...(typeof this.getPassword() !== 'undefined' && this.getPassword() !== null ? {
|
|
621
645
|
'password': this.getPassword()
|
|
622
|
-
} : {}),
|
|
646
|
+
} : {}),
|
|
647
|
+
...(typeof this.getIsForceResetPasswordEnabled() !== 'undefined' && this.getIsForceResetPasswordEnabled() !== null ? {
|
|
623
648
|
'isForceResetPasswordEnabled': this.getIsForceResetPasswordEnabled()
|
|
624
|
-
} : {}),
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
649
|
+
} : {}),
|
|
650
|
+
...(typeof this.getAdditionalAttributes() !== 'undefined' && this.getAdditionalAttributes() !== null ? {
|
|
651
|
+
'additionalAttributes': this.getAdditionalAttributes().map(item => item.toJson(false))
|
|
652
|
+
} : {}),
|
|
653
|
+
...(typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
629
654
|
'status': this.getStatus()
|
|
630
|
-
} : {}),
|
|
655
|
+
} : {}),
|
|
656
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
631
657
|
'description': this.getDescription()
|
|
632
|
-
} : {}),
|
|
658
|
+
} : {}),
|
|
659
|
+
...(typeof this.getCreationType() !== 'undefined' && this.getCreationType() !== null ? {
|
|
633
660
|
'creationType': this.getCreationType()
|
|
634
|
-
} : {}),
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
661
|
+
} : {}),
|
|
662
|
+
'$reserved': this.get$Reserved(),
|
|
663
|
+
'$objectType': this.get$ObjectType(),
|
|
664
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
665
|
+
'$unknownFields': {}
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
validate(scope, properties) {
|
|
669
|
+
let propList = [];
|
|
670
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
671
|
+
//cases validate() and validate(scope)
|
|
672
|
+
propList = [];
|
|
673
|
+
} else if (arguments.length === 1) {
|
|
674
|
+
//case validate(properties)
|
|
675
|
+
propList = arguments[0];
|
|
676
|
+
scope = null;
|
|
677
|
+
} else {
|
|
678
|
+
//case validate(scope, properties)
|
|
679
|
+
propList = arguments[1];
|
|
639
680
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
scope = null;
|
|
681
|
+
let res = [];
|
|
682
|
+
let err = null;
|
|
683
|
+
propList.forEach(property => {
|
|
684
|
+
err = this.validateProperty(property, scope);
|
|
685
|
+
if (err) {
|
|
686
|
+
res.push(err);
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
return new Promise(function (resolve, reject) {
|
|
690
|
+
if (res.length !== 0) {
|
|
691
|
+
reject(err);
|
|
652
692
|
} else {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
}
|
|
693
|
+
resolve();
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
validateProperty(scope, property) {
|
|
698
|
+
if (property === "username") {
|
|
699
|
+
if (typeof this.username === 'undefined' || this.username === null) {
|
|
700
|
+
return new _ValidationError.default("username", "undefined or null");
|
|
701
|
+
}
|
|
702
|
+
if (!_ValidationUtils.default.validateMaxLength(this.username, 255)) {
|
|
703
|
+
return new _ValidationError.default("username", "does not satisfy required maxLength constraint: 255");
|
|
704
|
+
}
|
|
705
|
+
if (!_ValidationUtils.default.validateMinLength(this.username, 1)) {
|
|
706
|
+
return new _ValidationError.default("username", "does not satisfy required minLength constraint: 1");
|
|
707
|
+
}
|
|
708
|
+
if (!_ValidationUtils.default.validatePattern(this.username, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
709
|
+
return new _ValidationError.default("username", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
710
|
+
}
|
|
671
711
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
if (property === "username") {
|
|
676
|
-
if (typeof this.username === 'undefined' || this.username === null) {
|
|
677
|
-
return new _ValidationError["default"]("username", "undefined or null");
|
|
678
|
-
}
|
|
679
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.username, 255)) {
|
|
680
|
-
return new _ValidationError["default"]("username", "does not satisfy required maxLength constraint: 255");
|
|
681
|
-
}
|
|
682
|
-
if (!_ValidationUtils["default"].validateMinLength(this.username, 1)) {
|
|
683
|
-
return new _ValidationError["default"]("username", "does not satisfy required minLength constraint: 1");
|
|
684
|
-
}
|
|
685
|
-
if (!_ValidationUtils["default"].validatePattern(this.username, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
686
|
-
return new _ValidationError["default"]("username", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
687
|
-
}
|
|
712
|
+
if (property === "userType") {
|
|
713
|
+
if (typeof this.userType === 'undefined' || this.userType === null) {
|
|
714
|
+
return new _ValidationError.default("userType", "undefined or null");
|
|
688
715
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
716
|
+
}
|
|
717
|
+
if (property === "idpId") {
|
|
718
|
+
if (typeof this.idpId === 'undefined' || this.idpId === null) {
|
|
719
|
+
return new _ValidationError.default("idpId", "undefined or null");
|
|
693
720
|
}
|
|
694
|
-
if (
|
|
695
|
-
|
|
696
|
-
return new _ValidationError["default"]("idpId", "undefined or null");
|
|
697
|
-
}
|
|
698
|
-
if (!_ValidationUtils["default"].validatePattern(this.idpId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
699
|
-
return new _ValidationError["default"]("idpId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
700
|
-
}
|
|
721
|
+
if (!_ValidationUtils.default.validatePattern(this.idpId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
722
|
+
return new _ValidationError.default("idpId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
701
723
|
}
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.displayName, 255)) {
|
|
707
|
-
return new _ValidationError["default"]("displayName", "does not satisfy required maxLength constraint: 255");
|
|
708
|
-
}
|
|
709
|
-
if (!_ValidationUtils["default"].validateMinLength(this.displayName, 1)) {
|
|
710
|
-
return new _ValidationError["default"]("displayName", "does not satisfy required minLength constraint: 1");
|
|
711
|
-
}
|
|
712
|
-
if (!_ValidationUtils["default"].validatePattern(this.displayName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
713
|
-
return new _ValidationError["default"]("displayName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
714
|
-
}
|
|
724
|
+
}
|
|
725
|
+
if (property === "displayName") {
|
|
726
|
+
if (typeof this.displayName === 'undefined' || this.displayName === null) {
|
|
727
|
+
return new _ValidationError.default("displayName", "undefined or null");
|
|
715
728
|
}
|
|
716
|
-
if (
|
|
717
|
-
|
|
718
|
-
return new _ValidationError["default"]("firstName", "undefined or null");
|
|
719
|
-
}
|
|
720
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.firstName, 255)) {
|
|
721
|
-
return new _ValidationError["default"]("firstName", "does not satisfy required maxLength constraint: 255");
|
|
722
|
-
}
|
|
723
|
-
if (!_ValidationUtils["default"].validateMinLength(this.firstName, 1)) {
|
|
724
|
-
return new _ValidationError["default"]("firstName", "does not satisfy required minLength constraint: 1");
|
|
725
|
-
}
|
|
726
|
-
if (!_ValidationUtils["default"].validatePattern(this.firstName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
727
|
-
return new _ValidationError["default"]("firstName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
728
|
-
}
|
|
729
|
+
if (!_ValidationUtils.default.validateMaxLength(this.displayName, 255)) {
|
|
730
|
+
return new _ValidationError.default("displayName", "does not satisfy required maxLength constraint: 255");
|
|
729
731
|
}
|
|
730
|
-
if (
|
|
731
|
-
|
|
732
|
-
return new _ValidationError["default"]("middleInitial", "undefined or null");
|
|
733
|
-
}
|
|
734
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.middleInitial, 255)) {
|
|
735
|
-
return new _ValidationError["default"]("middleInitial", "does not satisfy required maxLength constraint: 255");
|
|
736
|
-
}
|
|
737
|
-
if (!_ValidationUtils["default"].validateMinLength(this.middleInitial, 1)) {
|
|
738
|
-
return new _ValidationError["default"]("middleInitial", "does not satisfy required minLength constraint: 1");
|
|
739
|
-
}
|
|
740
|
-
if (!_ValidationUtils["default"].validatePattern(this.middleInitial, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
741
|
-
return new _ValidationError["default"]("middleInitial", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
742
|
-
}
|
|
732
|
+
if (!_ValidationUtils.default.validateMinLength(this.displayName, 1)) {
|
|
733
|
+
return new _ValidationError.default("displayName", "does not satisfy required minLength constraint: 1");
|
|
743
734
|
}
|
|
744
|
-
if (
|
|
745
|
-
|
|
746
|
-
return new _ValidationError["default"]("lastName", "undefined or null");
|
|
747
|
-
}
|
|
748
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.lastName, 255)) {
|
|
749
|
-
return new _ValidationError["default"]("lastName", "does not satisfy required maxLength constraint: 255");
|
|
750
|
-
}
|
|
751
|
-
if (!_ValidationUtils["default"].validateMinLength(this.lastName, 1)) {
|
|
752
|
-
return new _ValidationError["default"]("lastName", "does not satisfy required minLength constraint: 1");
|
|
753
|
-
}
|
|
754
|
-
if (!_ValidationUtils["default"].validatePattern(this.lastName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
755
|
-
return new _ValidationError["default"]("lastName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
756
|
-
}
|
|
735
|
+
if (!_ValidationUtils.default.validatePattern(this.displayName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
736
|
+
return new _ValidationError.default("displayName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
757
737
|
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.emailId, 255)) {
|
|
763
|
-
return new _ValidationError["default"]("emailId", "does not satisfy required maxLength constraint: 255");
|
|
764
|
-
}
|
|
765
|
-
if (!_ValidationUtils["default"].validatePattern(this.emailId, /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/)) {
|
|
766
|
-
return new _ValidationError["default"]("emailId", "does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/");
|
|
767
|
-
}
|
|
738
|
+
}
|
|
739
|
+
if (property === "firstName") {
|
|
740
|
+
if (typeof this.firstName === 'undefined' || this.firstName === null) {
|
|
741
|
+
return new _ValidationError.default("firstName", "undefined or null");
|
|
768
742
|
}
|
|
769
|
-
if (
|
|
770
|
-
|
|
771
|
-
return new _ValidationError["default"]("locale", "undefined or null");
|
|
772
|
-
}
|
|
743
|
+
if (!_ValidationUtils.default.validateMaxLength(this.firstName, 255)) {
|
|
744
|
+
return new _ValidationError.default("firstName", "does not satisfy required maxLength constraint: 255");
|
|
773
745
|
}
|
|
774
|
-
if (
|
|
775
|
-
|
|
776
|
-
return new _ValidationError["default"]("region", "undefined or null");
|
|
777
|
-
}
|
|
746
|
+
if (!_ValidationUtils.default.validateMinLength(this.firstName, 1)) {
|
|
747
|
+
return new _ValidationError.default("firstName", "does not satisfy required minLength constraint: 1");
|
|
778
748
|
}
|
|
779
|
-
if (
|
|
780
|
-
|
|
781
|
-
return new _ValidationError["default"]("password", "undefined or null");
|
|
782
|
-
}
|
|
749
|
+
if (!_ValidationUtils.default.validatePattern(this.firstName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
750
|
+
return new _ValidationError.default("firstName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
783
751
|
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
752
|
+
}
|
|
753
|
+
if (property === "middleInitial") {
|
|
754
|
+
if (typeof this.middleInitial === 'undefined' || this.middleInitial === null) {
|
|
755
|
+
return new _ValidationError.default("middleInitial", "undefined or null");
|
|
788
756
|
}
|
|
789
|
-
if (
|
|
790
|
-
|
|
791
|
-
return new _ValidationError["default"]("additionalAttributes", "undefined or null");
|
|
792
|
-
}
|
|
793
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.additionalAttributes, 10)) {
|
|
794
|
-
return new _ValidationError["default"]("additionalAttributes", "does not satisfy required maxItems constraint: 10");
|
|
795
|
-
}
|
|
757
|
+
if (!_ValidationUtils.default.validateMaxLength(this.middleInitial, 255)) {
|
|
758
|
+
return new _ValidationError.default("middleInitial", "does not satisfy required maxLength constraint: 255");
|
|
796
759
|
}
|
|
797
|
-
if (
|
|
798
|
-
|
|
799
|
-
return new _ValidationError["default"]("status", "undefined or null");
|
|
800
|
-
}
|
|
760
|
+
if (!_ValidationUtils.default.validateMinLength(this.middleInitial, 1)) {
|
|
761
|
+
return new _ValidationError.default("middleInitial", "does not satisfy required minLength constraint: 1");
|
|
801
762
|
}
|
|
802
|
-
if (
|
|
803
|
-
|
|
804
|
-
return new _ValidationError["default"]("bucketsAccessKeys", "undefined or null");
|
|
805
|
-
}
|
|
806
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.bucketsAccessKeys, 5)) {
|
|
807
|
-
return new _ValidationError["default"]("bucketsAccessKeys", "does not satisfy required maxItems constraint: 5");
|
|
808
|
-
}
|
|
763
|
+
if (!_ValidationUtils.default.validatePattern(this.middleInitial, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
764
|
+
return new _ValidationError.default("middleInitial", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
809
765
|
}
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
766
|
+
}
|
|
767
|
+
if (property === "lastName") {
|
|
768
|
+
if (typeof this.lastName === 'undefined' || this.lastName === null) {
|
|
769
|
+
return new _ValidationError.default("lastName", "undefined or null");
|
|
814
770
|
}
|
|
815
|
-
if (
|
|
816
|
-
|
|
817
|
-
return new _ValidationError["default"]("createdTime", "undefined or null");
|
|
818
|
-
}
|
|
771
|
+
if (!_ValidationUtils.default.validateMaxLength(this.lastName, 255)) {
|
|
772
|
+
return new _ValidationError.default("lastName", "does not satisfy required maxLength constraint: 255");
|
|
819
773
|
}
|
|
820
|
-
if (
|
|
821
|
-
|
|
822
|
-
return new _ValidationError["default"]("lastUpdatedTime", "undefined or null");
|
|
823
|
-
}
|
|
774
|
+
if (!_ValidationUtils.default.validateMinLength(this.lastName, 1)) {
|
|
775
|
+
return new _ValidationError.default("lastName", "does not satisfy required minLength constraint: 1");
|
|
824
776
|
}
|
|
825
|
-
if (
|
|
826
|
-
|
|
827
|
-
return new _ValidationError["default"]("createdBy", "undefined or null");
|
|
828
|
-
}
|
|
829
|
-
if (!_ValidationUtils["default"].validatePattern(this.createdBy, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
830
|
-
return new _ValidationError["default"]("createdBy", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
831
|
-
}
|
|
777
|
+
if (!_ValidationUtils.default.validatePattern(this.lastName, /^[^<>;'()&+%\/\\\\\"`]*$/)) {
|
|
778
|
+
return new _ValidationError.default("lastName", "does not satisfy required pattern: /^[^<>;'()&+%\/\\\\\"`]*$/");
|
|
832
779
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
if (!_ValidationUtils["default"].validatePattern(this.lastUpdatedBy, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
838
|
-
return new _ValidationError["default"]("lastUpdatedBy", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
839
|
-
}
|
|
780
|
+
}
|
|
781
|
+
if (property === "emailId") {
|
|
782
|
+
if (typeof this.emailId === 'undefined' || this.emailId === null) {
|
|
783
|
+
return new _ValidationError.default("emailId", "undefined or null");
|
|
840
784
|
}
|
|
841
|
-
if (
|
|
842
|
-
|
|
843
|
-
return new _ValidationError["default"]("description", "undefined or null");
|
|
844
|
-
}
|
|
785
|
+
if (!_ValidationUtils.default.validateMaxLength(this.emailId, 255)) {
|
|
786
|
+
return new _ValidationError.default("emailId", "does not satisfy required maxLength constraint: 255");
|
|
845
787
|
}
|
|
846
|
-
if (
|
|
847
|
-
|
|
848
|
-
return new _ValidationError["default"]("creationType", "undefined or null");
|
|
849
|
-
}
|
|
788
|
+
if (!_ValidationUtils.default.validatePattern(this.emailId, /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/)) {
|
|
789
|
+
return new _ValidationError.default("emailId", "does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/");
|
|
850
790
|
}
|
|
851
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
852
791
|
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
857
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
858
|
-
var items, item, i, itemArr, discriminator;
|
|
859
|
-
if (data) {
|
|
860
|
-
obj = obj || new User();
|
|
861
|
-
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
862
|
-
if (data.hasOwnProperty('username') && data.username !== null && data.username !== undefined) {
|
|
863
|
-
obj.setUsername(data['username']);
|
|
864
|
-
}
|
|
865
|
-
if (data.hasOwnProperty('userType') && data.userType !== null && data.userType !== undefined) {
|
|
866
|
-
obj.setUserType(_UserType["default"].constructFromObject(data['userType']));
|
|
867
|
-
}
|
|
868
|
-
if (data.hasOwnProperty('idpId') && data.idpId !== null && data.idpId !== undefined) {
|
|
869
|
-
obj.setIdpId(data['idpId']);
|
|
870
|
-
}
|
|
871
|
-
if (data.hasOwnProperty('displayName') && data.displayName !== null && data.displayName !== undefined) {
|
|
872
|
-
obj.setDisplayName(data['displayName']);
|
|
873
|
-
}
|
|
874
|
-
if (data.hasOwnProperty('firstName') && data.firstName !== null && data.firstName !== undefined) {
|
|
875
|
-
obj.setFirstName(data['firstName']);
|
|
876
|
-
}
|
|
877
|
-
if (data.hasOwnProperty('middleInitial') && data.middleInitial !== null && data.middleInitial !== undefined) {
|
|
878
|
-
obj.setMiddleInitial(data['middleInitial']);
|
|
879
|
-
}
|
|
880
|
-
if (data.hasOwnProperty('lastName') && data.lastName !== null && data.lastName !== undefined) {
|
|
881
|
-
obj.setLastName(data['lastName']);
|
|
882
|
-
}
|
|
883
|
-
if (data.hasOwnProperty('emailId') && data.emailId !== null && data.emailId !== undefined) {
|
|
884
|
-
obj.setEmailId(data['emailId']);
|
|
885
|
-
}
|
|
886
|
-
if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {
|
|
887
|
-
obj.setLocale(data['locale']);
|
|
888
|
-
}
|
|
889
|
-
if (data.hasOwnProperty('region') && data.region !== null && data.region !== undefined) {
|
|
890
|
-
obj.setRegion(data['region']);
|
|
891
|
-
}
|
|
892
|
-
if (data.hasOwnProperty('password') && data.password !== null && data.password !== undefined) {
|
|
893
|
-
obj.setPassword(data['password']);
|
|
894
|
-
}
|
|
895
|
-
if (data.hasOwnProperty('isForceResetPasswordEnabled') && data.isForceResetPasswordEnabled !== null && data.isForceResetPasswordEnabled !== undefined) {
|
|
896
|
-
obj.setIsForceResetPasswordEnabled(data['isForceResetPasswordEnabled']);
|
|
897
|
-
}
|
|
898
|
-
if (data.hasOwnProperty('additionalAttributes') && data.additionalAttributes !== null && data.additionalAttributes !== undefined) {
|
|
899
|
-
itemArr = [];
|
|
900
|
-
items = data.additionalAttributes;
|
|
901
|
-
for (i = 0; i < items.length; i++) {
|
|
902
|
-
item = _KVPair["default"].constructFromObject(items[i], undefined);
|
|
903
|
-
itemArr.push(item);
|
|
904
|
-
}
|
|
905
|
-
obj.setAdditionalAttributes(itemArr);
|
|
906
|
-
}
|
|
907
|
-
if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
|
|
908
|
-
obj.setStatus(_UserStatusType["default"].constructFromObject(data['status']));
|
|
909
|
-
}
|
|
910
|
-
if (data.hasOwnProperty('bucketsAccessKeys') && data.bucketsAccessKeys !== null && data.bucketsAccessKeys !== undefined) {
|
|
911
|
-
itemArr = [];
|
|
912
|
-
items = data.bucketsAccessKeys;
|
|
913
|
-
for (i = 0; i < items.length; i++) {
|
|
914
|
-
item = _BucketsAccessKey["default"].constructFromObject(items[i], undefined);
|
|
915
|
-
itemArr.push(item);
|
|
916
|
-
}
|
|
917
|
-
obj.setBucketsAccessKeys(itemArr);
|
|
918
|
-
}
|
|
919
|
-
if (data.hasOwnProperty('lastLoginTime') && data.lastLoginTime !== null && data.lastLoginTime !== undefined) {
|
|
920
|
-
obj.setLastLoginTime(data['lastLoginTime']);
|
|
921
|
-
}
|
|
922
|
-
if (data.hasOwnProperty('createdTime') && data.createdTime !== null && data.createdTime !== undefined) {
|
|
923
|
-
obj.setCreatedTime(data['createdTime']);
|
|
924
|
-
}
|
|
925
|
-
if (data.hasOwnProperty('lastUpdatedTime') && data.lastUpdatedTime !== null && data.lastUpdatedTime !== undefined) {
|
|
926
|
-
obj.setLastUpdatedTime(data['lastUpdatedTime']);
|
|
927
|
-
}
|
|
928
|
-
if (data.hasOwnProperty('createdBy') && data.createdBy !== null && data.createdBy !== undefined) {
|
|
929
|
-
obj.setCreatedBy(data['createdBy']);
|
|
930
|
-
}
|
|
931
|
-
if (data.hasOwnProperty('lastUpdatedBy') && data.lastUpdatedBy !== null && data.lastUpdatedBy !== undefined) {
|
|
932
|
-
obj.setLastUpdatedBy(data['lastUpdatedBy']);
|
|
933
|
-
}
|
|
934
|
-
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
935
|
-
obj.setDescription(data['description']);
|
|
936
|
-
}
|
|
937
|
-
if (data.hasOwnProperty('creationType') && data.creationType !== null && data.creationType !== undefined) {
|
|
938
|
-
obj.setCreationType(_CreationType["default"].constructFromObject(data['creationType']));
|
|
939
|
-
}
|
|
940
|
-
if (!callFromChild) {
|
|
941
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
942
|
-
for (var property in data) {
|
|
943
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
944
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
945
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
946
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
947
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
948
|
-
obj.$unknownFields[property] = data[property];
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
}
|
|
792
|
+
if (property === "locale") {
|
|
793
|
+
if (typeof this.locale === 'undefined' || this.locale === null) {
|
|
794
|
+
return new _ValidationError.default("locale", "undefined or null");
|
|
952
795
|
}
|
|
953
|
-
return obj;
|
|
954
796
|
}
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
797
|
+
if (property === "region") {
|
|
798
|
+
if (typeof this.region === 'undefined' || this.region === null) {
|
|
799
|
+
return new _ValidationError.default("region", "undefined or null");
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
if (property === "password") {
|
|
803
|
+
if (typeof this.password === 'undefined' || this.password === null) {
|
|
804
|
+
return new _ValidationError.default("password", "undefined or null");
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
if (property === "isForceResetPasswordEnabled") {
|
|
808
|
+
if (typeof this.isForceResetPasswordEnabled === 'undefined' || this.isForceResetPasswordEnabled === null) {
|
|
809
|
+
return new _ValidationError.default("isForceResetPasswordEnabled", "undefined or null");
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
if (property === "additionalAttributes") {
|
|
813
|
+
if (typeof this.additionalAttributes === 'undefined' || this.additionalAttributes === null) {
|
|
814
|
+
return new _ValidationError.default("additionalAttributes", "undefined or null");
|
|
815
|
+
}
|
|
816
|
+
if (!_ValidationUtils.default.validateMaxItems(this.additionalAttributes, 10)) {
|
|
817
|
+
return new _ValidationError.default("additionalAttributes", "does not satisfy required maxItems constraint: 10");
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
if (property === "status") {
|
|
821
|
+
if (typeof this.status === 'undefined' || this.status === null) {
|
|
822
|
+
return new _ValidationError.default("status", "undefined or null");
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
if (property === "bucketsAccessKeys") {
|
|
826
|
+
if (typeof this.bucketsAccessKeys === 'undefined' || this.bucketsAccessKeys === null) {
|
|
827
|
+
return new _ValidationError.default("bucketsAccessKeys", "undefined or null");
|
|
828
|
+
}
|
|
829
|
+
if (!_ValidationUtils.default.validateMaxItems(this.bucketsAccessKeys, 5)) {
|
|
830
|
+
return new _ValidationError.default("bucketsAccessKeys", "does not satisfy required maxItems constraint: 5");
|
|
831
|
+
}
|
|
967
832
|
}
|
|
968
|
-
|
|
969
|
-
|
|
833
|
+
if (property === "lastLoginTime") {
|
|
834
|
+
if (typeof this.lastLoginTime === 'undefined' || this.lastLoginTime === null) {
|
|
835
|
+
return new _ValidationError.default("lastLoginTime", "undefined or null");
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
if (property === "createdTime") {
|
|
839
|
+
if (typeof this.createdTime === 'undefined' || this.createdTime === null) {
|
|
840
|
+
return new _ValidationError.default("createdTime", "undefined or null");
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
if (property === "lastUpdatedTime") {
|
|
844
|
+
if (typeof this.lastUpdatedTime === 'undefined' || this.lastUpdatedTime === null) {
|
|
845
|
+
return new _ValidationError.default("lastUpdatedTime", "undefined or null");
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if (property === "createdBy") {
|
|
849
|
+
if (typeof this.createdBy === 'undefined' || this.createdBy === null) {
|
|
850
|
+
return new _ValidationError.default("createdBy", "undefined or null");
|
|
851
|
+
}
|
|
852
|
+
if (!_ValidationUtils.default.validatePattern(this.createdBy, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
853
|
+
return new _ValidationError.default("createdBy", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
if (property === "lastUpdatedBy") {
|
|
857
|
+
if (typeof this.lastUpdatedBy === 'undefined' || this.lastUpdatedBy === null) {
|
|
858
|
+
return new _ValidationError.default("lastUpdatedBy", "undefined or null");
|
|
859
|
+
}
|
|
860
|
+
if (!_ValidationUtils.default.validatePattern(this.lastUpdatedBy, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
861
|
+
return new _ValidationError.default("lastUpdatedBy", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
if (property === "description") {
|
|
865
|
+
if (typeof this.description === 'undefined' || this.description === null) {
|
|
866
|
+
return new _ValidationError.default("description", "undefined or null");
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
if (property === "creationType") {
|
|
870
|
+
if (typeof this.creationType === 'undefined' || this.creationType === null) {
|
|
871
|
+
return new _ValidationError.default("creationType", "undefined or null");
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
|
|
970
878
|
/**
|
|
971
879
|
* Identifier of the user.
|
|
972
880
|
* @memberof User
|
|
973
881
|
*/
|
|
882
|
+
exports.default = User;
|
|
974
883
|
function _toJsonMapType(obj, forMutation) {
|
|
975
884
|
if (obj instanceof Map) {
|
|
976
|
-
return Object.fromEntries(Array.from(obj,
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
v = _ref2[1];
|
|
980
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
981
|
-
}));
|
|
982
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
983
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
885
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
886
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
887
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
984
888
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
985
889
|
}));
|
|
986
890
|
}
|
|
@@ -1127,14 +1031,14 @@ User.prototype.creationType = undefined;
|
|
|
1127
1031
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
1128
1032
|
* @memberof User
|
|
1129
1033
|
*/
|
|
1130
|
-
_ExternalizableAbstractModel
|
|
1034
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
1131
1035
|
/**
|
|
1132
1036
|
* 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.
|
|
1133
1037
|
* @memberof User
|
|
1134
1038
|
*/
|
|
1135
|
-
_ExternalizableAbstractModel
|
|
1039
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
1136
1040
|
/**
|
|
1137
1041
|
* 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).
|
|
1138
1042
|
* @memberof User
|
|
1139
1043
|
*/
|
|
1140
|
-
_TenantAwareModel
|
|
1044
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|