@nutanix-scratch/microseg-js-client 4.0.1-beta.1 → 4.0.1
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/LICENSE.txt +202 -49
- package/README.md +37 -21
- package/dist/Ntnx-Microseg-js-client-prod.js +1 -1
- package/dist/Ntnx-Microseg-js-client.js +147 -125
- package/dist/es/ApiClient.d.ts +8 -1
- package/dist/es/ApiClient.js +249 -189
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +10 -10
- package/dist/es/apis/addressgroups-endpoints.d.ts +1 -1
- package/dist/es/apis/addressgroups-endpoints.js +21 -21
- package/dist/es/apis/directoryserverconfigs-endpoints.d.ts +14 -1
- package/dist/es/apis/directoryserverconfigs-endpoints.js +48 -33
- package/dist/es/apis/networksecuritypolicies-endpoints.d.ts +27 -6
- package/dist/es/apis/networksecuritypolicies-endpoints.js +81 -48
- package/dist/es/apis/servicegroups-endpoints.d.ts +1 -1
- package/dist/es/apis/servicegroups-endpoints.js +21 -21
- package/dist/es/index.d.ts +11 -7
- package/dist/es/index.js +41 -25
- package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/es/models/common/v1/config/FQDN.js +57 -22
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +66 -22
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +56 -24
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv4Address.js +65 -24
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv6Address.js +65 -24
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +71 -25
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +58 -26
- package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/es/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +54 -22
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/es/models/microseg/v4/config/AdInfo.d.ts +43 -40
- package/dist/es/models/microseg/v4/config/AdInfo.js +62 -30
- package/dist/es/models/microseg/v4/config/AdStatus.js +8 -8
- package/dist/es/models/microseg/v4/config/AddressGroup.d.ts +66 -45
- package/dist/es/models/microseg/v4/config/AddressGroup.js +96 -40
- package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +68 -0
- package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.js +298 -0
- package/dist/es/models/microseg/v4/config/AllowType.js +8 -8
- package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.d.ts +151 -111
- package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.js +91 -56
- package/dist/es/models/microseg/v4/config/CategoryMapping.d.ts +47 -34
- package/dist/es/models/microseg/v4/config/CategoryMapping.js +87 -40
- package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +67 -25
- package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +68 -25
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +73 -67
- package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +68 -25
- package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +67 -25
- package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DirectoryServerConfig.d.ts +81 -38
- package/dist/es/models/microseg/v4/config/DirectoryServerConfig.js +83 -36
- package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/IPv4Range.d.ts +34 -28
- package/dist/es/models/microseg/v4/config/IPv4Range.js +64 -26
- package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +38 -36
- package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.js +63 -31
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleAction.js +8 -8
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +33 -29
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +59 -24
- package/dist/es/models/microseg/v4/config/IsolationGroup.d.ts +62 -0
- package/dist/{lib/models/microseg/v4/config/ImportEntity.js → es/models/microseg/v4/config/IsolationGroup.js} +105 -147
- package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/MatchEntity.js +8 -8
- package/dist/es/models/microseg/v4/config/MatchField.js +8 -8
- package/dist/es/models/microseg/v4/config/MatchType.js +8 -8
- package/dist/es/models/microseg/v4/config/MatchingCriteria.d.ts +38 -36
- package/dist/es/models/microseg/v4/config/MatchingCriteria.js +58 -26
- package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +63 -0
- package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +298 -0
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +127 -95
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.js +129 -62
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +35 -27
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.js +90 -35
- package/dist/es/models/microseg/v4/config/RuleType.js +16 -10
- package/dist/es/models/microseg/v4/config/SecurityPolicyScope.js +8 -8
- package/dist/es/models/microseg/v4/config/SecurityPolicyState.js +8 -8
- package/dist/es/models/microseg/v4/config/SecurityPolicyType.js +8 -8
- package/dist/es/models/microseg/v4/config/ServiceGroup.d.ts +88 -59
- package/dist/es/models/microseg/v4/config/ServiceGroup.js +103 -47
- package/dist/es/models/microseg/v4/config/SyncPolicy.d.ts +87 -0
- package/dist/es/models/microseg/v4/config/SyncPolicy.js +410 -0
- package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.d.ts +34 -28
- package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.js +64 -26
- package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +33 -31
- package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +58 -26
- package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.d.ts +34 -28
- package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.js +64 -26
- package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/error/AppMessage.d.ts +57 -48
- package/dist/es/models/microseg/v4/error/AppMessage.js +62 -30
- package/dist/es/models/microseg/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/microseg/v4/error/ErrorResponse.js +53 -21
- package/dist/es/models/microseg/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/microseg/v4/error/SchemaValidationError.js +63 -30
- package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/es/models/microseg/v4/operation/DryRunSpec.d.ts +28 -26
- package/dist/es/models/microseg/v4/operation/DryRunSpec.js +55 -23
- package/dist/es/models/microseg/v4/operation/DryRunSummary.d.ts +127 -32
- package/dist/es/models/microseg/v4/operation/DryRunSummary.js +86 -35
- package/dist/es/models/microseg/v4/operation/PolicyCount.d.ts +31 -29
- package/dist/es/models/microseg/v4/operation/PolicyCount.js +56 -24
- package/dist/es/models/microseg/v4/operation/PolicyCountByType.d.ts +35 -25
- package/dist/es/models/microseg/v4/operation/PolicyCountByType.js +54 -22
- package/dist/es/models/microseg/v4/operation/PolicyMetadata.d.ts +69 -60
- package/dist/es/models/microseg/v4/operation/PolicyMetadata.js +71 -35
- package/dist/es/models/microseg/v4/operation/PolicyPreview.d.ts +112 -20
- package/dist/es/models/microseg/v4/operation/PolicyPreview.js +79 -31
- package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +70 -32
- package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.js +58 -26
- package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +32 -26
- package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.js +60 -22
- package/dist/es/models/microseg/v4/operation/SecurityPolicyType.js +8 -8
- package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +33 -31
- package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.js +56 -24
- package/dist/es/models/microseg/v4/operation/TotalPolicyCount.d.ts +48 -25
- package/dist/es/models/microseg/v4/operation/TotalPolicyCount.js +54 -22
- package/dist/es/models/microseg/v4/operation/UpgradeJob.d.ts +25 -33
- package/dist/es/models/microseg/v4/operation/UpgradeJob.js +62 -66
- package/dist/es/models/microseg/v4/operation/UpgradeSpec.d.ts +29 -27
- package/dist/es/models/microseg/v4/operation/UpgradeSpec.js +56 -24
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/es/models/prism/v4/config/TaskReference.js +52 -20
- package/dist/es/models/validation/ValidationError.js +6 -6
- package/dist/es/utils/ValidationUtils.js +6 -6
- package/dist/lib/ApiClient.d.ts +8 -1
- package/dist/lib/ApiClient.js +249 -189
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +10 -10
- package/dist/lib/apis/addressgroups-endpoints.d.ts +1 -1
- package/dist/lib/apis/addressgroups-endpoints.js +21 -21
- package/dist/lib/apis/directoryserverconfigs-endpoints.d.ts +14 -1
- package/dist/lib/apis/directoryserverconfigs-endpoints.js +48 -33
- package/dist/lib/apis/networksecuritypolicies-endpoints.d.ts +27 -6
- package/dist/lib/apis/networksecuritypolicies-endpoints.js +81 -48
- package/dist/lib/apis/servicegroups-endpoints.d.ts +1 -1
- package/dist/lib/apis/servicegroups-endpoints.js +21 -21
- package/dist/lib/index.d.ts +11 -7
- package/dist/lib/index.js +41 -25
- package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/lib/models/common/v1/config/FQDN.js +57 -22
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +66 -22
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +56 -24
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv4Address.js +65 -24
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv6Address.js +65 -24
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +71 -25
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +58 -26
- package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/lib/models/microseg/v4/config/AdInfo.d.ts +43 -40
- package/dist/lib/models/microseg/v4/config/AdInfo.js +62 -30
- package/dist/lib/models/microseg/v4/config/AdStatus.js +8 -8
- package/dist/lib/models/microseg/v4/config/AddressGroup.d.ts +66 -45
- package/dist/lib/models/microseg/v4/config/AddressGroup.js +96 -40
- package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +68 -0
- package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.js +298 -0
- package/dist/lib/models/microseg/v4/config/AllowType.js +8 -8
- package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.d.ts +151 -111
- package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.js +91 -56
- package/dist/lib/models/microseg/v4/config/CategoryMapping.d.ts +47 -34
- package/dist/lib/models/microseg/v4/config/CategoryMapping.js +87 -40
- package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +67 -25
- package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +68 -25
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +73 -67
- package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +68 -25
- package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +67 -25
- package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.d.ts +81 -38
- package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.js +83 -36
- package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/IPv4Range.d.ts +34 -28
- package/dist/lib/models/microseg/v4/config/IPv4Range.js +64 -26
- package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +38 -36
- package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.js +63 -31
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleAction.js +8 -8
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +33 -29
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +59 -24
- package/dist/lib/models/microseg/v4/config/IsolationGroup.d.ts +62 -0
- package/dist/{es/models/microseg/v4/config/ImportEntity.js → lib/models/microseg/v4/config/IsolationGroup.js} +105 -147
- package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/MatchEntity.js +8 -8
- package/dist/lib/models/microseg/v4/config/MatchField.js +8 -8
- package/dist/lib/models/microseg/v4/config/MatchType.js +8 -8
- package/dist/lib/models/microseg/v4/config/MatchingCriteria.d.ts +38 -36
- package/dist/lib/models/microseg/v4/config/MatchingCriteria.js +58 -26
- package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +63 -0
- package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +298 -0
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +127 -95
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.js +129 -62
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +35 -27
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.js +90 -35
- package/dist/lib/models/microseg/v4/config/RuleType.js +16 -10
- package/dist/lib/models/microseg/v4/config/SecurityPolicyScope.js +8 -8
- package/dist/lib/models/microseg/v4/config/SecurityPolicyState.js +8 -8
- package/dist/lib/models/microseg/v4/config/SecurityPolicyType.js +8 -8
- package/dist/lib/models/microseg/v4/config/ServiceGroup.d.ts +88 -59
- package/dist/lib/models/microseg/v4/config/ServiceGroup.js +103 -47
- package/dist/lib/models/microseg/v4/config/SyncPolicy.d.ts +87 -0
- package/dist/lib/models/microseg/v4/config/SyncPolicy.js +410 -0
- package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.d.ts +34 -28
- package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.js +64 -26
- package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +33 -31
- package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +58 -26
- package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.d.ts +34 -28
- package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.js +64 -26
- package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/error/AppMessage.d.ts +57 -48
- package/dist/lib/models/microseg/v4/error/AppMessage.js +62 -30
- package/dist/lib/models/microseg/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/microseg/v4/error/ErrorResponse.js +53 -21
- package/dist/lib/models/microseg/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/microseg/v4/error/SchemaValidationError.js +63 -30
- package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/lib/models/microseg/v4/operation/DryRunSpec.d.ts +28 -26
- package/dist/lib/models/microseg/v4/operation/DryRunSpec.js +55 -23
- package/dist/lib/models/microseg/v4/operation/DryRunSummary.d.ts +127 -32
- package/dist/lib/models/microseg/v4/operation/DryRunSummary.js +86 -35
- package/dist/lib/models/microseg/v4/operation/PolicyCount.d.ts +31 -29
- package/dist/lib/models/microseg/v4/operation/PolicyCount.js +56 -24
- package/dist/lib/models/microseg/v4/operation/PolicyCountByType.d.ts +35 -25
- package/dist/lib/models/microseg/v4/operation/PolicyCountByType.js +54 -22
- package/dist/lib/models/microseg/v4/operation/PolicyMetadata.d.ts +69 -60
- package/dist/lib/models/microseg/v4/operation/PolicyMetadata.js +71 -35
- package/dist/lib/models/microseg/v4/operation/PolicyPreview.d.ts +112 -20
- package/dist/lib/models/microseg/v4/operation/PolicyPreview.js +79 -31
- package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +70 -32
- package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.js +58 -26
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +32 -26
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.js +60 -22
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyType.js +8 -8
- package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +33 -31
- package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.js +56 -24
- package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.d.ts +48 -25
- package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.js +54 -22
- package/dist/lib/models/microseg/v4/operation/UpgradeJob.d.ts +25 -33
- package/dist/lib/models/microseg/v4/operation/UpgradeJob.js +62 -66
- package/dist/lib/models/microseg/v4/operation/UpgradeSpec.d.ts +29 -27
- package/dist/lib/models/microseg/v4/operation/UpgradeSpec.js +56 -24
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/lib/models/prism/v4/config/TaskReference.js +52 -20
- package/dist/lib/models/validation/ValidationError.js +6 -6
- package/dist/lib/utils/ValidationUtils.js +6 -6
- package/package.json +3 -3
- package/dist/es/models/microseg/v4/config/ImportEntity.d.ts +0 -90
- package/dist/es/models/microseg/v4/config/ImportEntityType.d.ts +0 -19
- package/dist/es/models/microseg/v4/config/ImportEntityType.js +0 -103
- package/dist/es/models/microseg/v4/config/ImportEntityUpdateType.d.ts +0 -19
- package/dist/es/models/microseg/v4/config/ImportEntityUpdateType.js +0 -91
- package/dist/lib/models/microseg/v4/config/ImportEntity.d.ts +0 -90
- package/dist/lib/models/microseg/v4/config/ImportEntityType.d.ts +0 -19
- package/dist/lib/models/microseg/v4/config/ImportEntityType.js +0 -103
- package/dist/lib/models/microseg/v4/config/ImportEntityUpdateType.d.ts +0 -19
- package/dist/lib/models/microseg/v4/config/ImportEntityUpdateType.js +0 -91
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _Message = _interopRequireDefault(require("../../../common/v1/config/Message"));
|
|
8
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
9
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
10
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
11
|
var _PolicyUpgradeSummary = _interopRequireDefault(require("./PolicyUpgradeSummary"));
|
|
@@ -13,38 +14,38 @@ var _TotalPolicyCount = _interopRequireDefault(require("./TotalPolicyCount"));
|
|
|
13
14
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
14
15
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
15
16
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
16
|
-
function _interopRequireDefault(
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
18
|
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); }
|
|
18
|
-
function _slicedToArray(
|
|
19
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
20
|
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."); }
|
|
20
|
-
function _unsupportedIterableToArray(
|
|
21
|
-
function _arrayLikeToArray(
|
|
21
|
+
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; } }
|
|
22
|
+
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; }
|
|
22
23
|
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; } }
|
|
23
|
-
function _arrayWithHoles(
|
|
24
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
25
|
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; }
|
|
25
26
|
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; }
|
|
26
|
-
function _defineProperty(
|
|
27
|
-
function _classCallCheck(
|
|
28
|
-
function _defineProperties(
|
|
29
|
-
function _createClass(
|
|
27
|
+
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; }
|
|
28
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
|
+
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); } }
|
|
30
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
30
31
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
31
32
|
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); }
|
|
32
33
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
33
|
-
function _possibleConstructorReturn(
|
|
34
|
-
function _assertThisInitialized(
|
|
34
|
+
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); }
|
|
35
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
35
36
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36
|
-
function _getPrototypeOf(
|
|
37
|
-
function _inherits(
|
|
38
|
-
function _setPrototypeOf(
|
|
39
|
-
function _classPrivateMethodInitSpec(
|
|
40
|
-
function _checkPrivateRedeclaration(
|
|
41
|
-
* Nutanix
|
|
37
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
38
|
+
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); }
|
|
39
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
41
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
42
|
+
* Nutanix Flow Management APIs
|
|
42
43
|
*
|
|
43
|
-
* OpenAPI spec version: 4.0.1
|
|
44
|
+
* OpenAPI spec version: 4.0.1
|
|
44
45
|
*
|
|
45
46
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
46
47
|
*
|
|
47
|
-
* Open API Dev Platform Codegen version: 16.
|
|
48
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
48
49
|
*
|
|
49
50
|
* Do not edit the class manually.
|
|
50
51
|
*
|
|
@@ -52,8 +53,9 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
52
53
|
/**
|
|
53
54
|
* The DryRunSummary model module.
|
|
54
55
|
* @module Ntnx/DryRunSummary
|
|
55
|
-
* @version 4.0.1
|
|
56
|
+
* @version 4.0.1
|
|
56
57
|
* @class DryRunSummary
|
|
58
|
+
* @extends ExternalizableAbstractModel
|
|
57
59
|
*/
|
|
58
60
|
var _DryRunSummary_brand = /*#__PURE__*/new WeakSet();
|
|
59
61
|
var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
@@ -74,9 +76,11 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
74
76
|
*/
|
|
75
77
|
_classPrivateMethodInitSpec(_this, _DryRunSummary_brand);
|
|
76
78
|
_this.$objectType = "microseg.v4.operation.DryRunSummary";
|
|
79
|
+
/** @type {object<string, any>} */
|
|
77
80
|
_this.$reserved = {
|
|
78
|
-
'$fv': "v4.r0
|
|
81
|
+
'$fv': "v4.r0"
|
|
79
82
|
};
|
|
83
|
+
/** @type {object<string, any>} */
|
|
80
84
|
_this.$unknownFields = {};
|
|
81
85
|
return _this;
|
|
82
86
|
}
|
|
@@ -94,14 +98,14 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
94
98
|
key: "getPolicySummaries",
|
|
95
99
|
value:
|
|
96
100
|
/**
|
|
97
|
-
* @return {}
|
|
101
|
+
* @return {PolicyUpgradeSummary[]}
|
|
98
102
|
*/
|
|
99
103
|
function getPolicySummaries() {
|
|
100
104
|
return this.policySummaries;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
/**
|
|
104
|
-
* @param {} policySummaries
|
|
108
|
+
* @param {PolicyUpgradeSummary[]} policySummaries
|
|
105
109
|
*/
|
|
106
110
|
}, {
|
|
107
111
|
key: "setPolicySummaries",
|
|
@@ -110,7 +114,7 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
110
114
|
}
|
|
111
115
|
|
|
112
116
|
/**
|
|
113
|
-
* @return {}
|
|
117
|
+
* @return {TotalPolicyCount}
|
|
114
118
|
*/
|
|
115
119
|
}, {
|
|
116
120
|
key: "getCountSummary",
|
|
@@ -119,7 +123,7 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
119
123
|
}
|
|
120
124
|
|
|
121
125
|
/**
|
|
122
|
-
* @param {} countSummary
|
|
126
|
+
* @param {TotalPolicyCount} countSummary
|
|
123
127
|
*/
|
|
124
128
|
}, {
|
|
125
129
|
key: "setCountSummary",
|
|
@@ -128,7 +132,7 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
/**
|
|
131
|
-
* @return {}
|
|
135
|
+
* @return {SubnetUpgradeSummary[]}
|
|
132
136
|
*/
|
|
133
137
|
}, {
|
|
134
138
|
key: "getSubnetSummaries",
|
|
@@ -137,7 +141,7 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
/**
|
|
140
|
-
* @param {} subnetSummaries
|
|
144
|
+
* @param {SubnetUpgradeSummary[]} subnetSummaries
|
|
141
145
|
*/
|
|
142
146
|
}, {
|
|
143
147
|
key: "setSubnetSummaries",
|
|
@@ -146,7 +150,8 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
/**
|
|
149
|
-
*
|
|
153
|
+
* Returns Summary of failures from the flow upgrade dry-run summary report.
|
|
154
|
+
* @return {Message[]}
|
|
150
155
|
*/
|
|
151
156
|
}, {
|
|
152
157
|
key: "getSummaryFailures",
|
|
@@ -155,7 +160,8 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
/**
|
|
158
|
-
*
|
|
163
|
+
* Sets Summary of failures from the flow upgrade dry-run summary report.
|
|
164
|
+
* @param {Message[]} summaryFailures Summary of failures from the flow upgrade dry-run summary report.
|
|
159
165
|
*/
|
|
160
166
|
}, {
|
|
161
167
|
key: "setSummaryFailures",
|
|
@@ -194,7 +200,7 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
194
200
|
'$unknownFields': this.get$UnknownFields()
|
|
195
201
|
});
|
|
196
202
|
}
|
|
197
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(
|
|
203
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getPolicySummaries() !== 'undefined' && this.getPolicySummaries() !== null ? {
|
|
198
204
|
'policySummaries': this.getPolicySummaries().map(function (item) {
|
|
199
205
|
return item.toJson(false);
|
|
200
206
|
})
|
|
@@ -208,8 +214,6 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
208
214
|
'summaryFailures': this.getSummaryFailures().map(function (item) {
|
|
209
215
|
return item.toJson(false);
|
|
210
216
|
})
|
|
211
|
-
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
212
|
-
'extId': this.getExtId()
|
|
213
217
|
} : {}), {}, {
|
|
214
218
|
'$reserved': this.get$Reserved(),
|
|
215
219
|
'$objectType': this.get$ObjectType(),
|
|
@@ -284,7 +288,8 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
284
288
|
}
|
|
285
289
|
}], [{
|
|
286
290
|
key: "constructFromObject",
|
|
287
|
-
value: function constructFromObject(data
|
|
291
|
+
value: function constructFromObject(data) {
|
|
292
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
288
293
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
289
294
|
var items, item, i, itemArr, discriminator;
|
|
290
295
|
if (data) {
|
|
@@ -323,7 +328,11 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
323
328
|
if (!callFromChild) {
|
|
324
329
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
325
330
|
for (var property in data) {
|
|
326
|
-
if
|
|
331
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
332
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
333
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
334
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
335
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
327
336
|
obj.$unknownFields[property] = data[property];
|
|
328
337
|
}
|
|
329
338
|
}
|
|
@@ -331,6 +340,19 @@ var DryRunSummary = exports["default"] = /*#__PURE__*/function (_ExternalizableA
|
|
|
331
340
|
}
|
|
332
341
|
return obj;
|
|
333
342
|
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Converts a given snake_case string to camelCase.
|
|
346
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
347
|
+
* @returns {string} - The converted string in camelCase format.
|
|
348
|
+
*/
|
|
349
|
+
}, {
|
|
350
|
+
key: "snakeToCamel",
|
|
351
|
+
value: function snakeToCamel(snakeStr) {
|
|
352
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
353
|
+
return match[1].toUpperCase();
|
|
354
|
+
});
|
|
355
|
+
}
|
|
334
356
|
}]);
|
|
335
357
|
}(_ExternalizableAbstractModel["default"]);
|
|
336
358
|
/**
|
|
@@ -351,6 +373,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
351
373
|
}
|
|
352
374
|
return obj;
|
|
353
375
|
}
|
|
376
|
+
/*
|
|
377
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
378
|
+
* @param {Object} obj Object to serialize
|
|
379
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
380
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
381
|
+
*/
|
|
382
|
+
function _handleDateType(obj, isDateOnly) {
|
|
383
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
384
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
385
|
+
}
|
|
386
|
+
return obj;
|
|
387
|
+
}
|
|
354
388
|
DryRunSummary.prototype.policySummaries = undefined;
|
|
355
389
|
|
|
356
390
|
/**
|
|
@@ -364,6 +398,23 @@ DryRunSummary.prototype.countSummary = undefined;
|
|
|
364
398
|
DryRunSummary.prototype.subnetSummaries = undefined;
|
|
365
399
|
|
|
366
400
|
/**
|
|
401
|
+
* Summary of failures from the flow upgrade dry-run summary report.
|
|
367
402
|
* @memberof DryRunSummary
|
|
368
403
|
*/
|
|
369
|
-
DryRunSummary.prototype.summaryFailures = undefined;
|
|
404
|
+
DryRunSummary.prototype.summaryFailures = undefined;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
408
|
+
* @memberof DryRunSummary
|
|
409
|
+
*/
|
|
410
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
411
|
+
/**
|
|
412
|
+
* 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.
|
|
413
|
+
* @memberof DryRunSummary
|
|
414
|
+
*/
|
|
415
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
416
|
+
/**
|
|
417
|
+
* 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).
|
|
418
|
+
* @memberof DryRunSummary
|
|
419
|
+
*/
|
|
420
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The PolicyCount model module.
|
|
3
3
|
* @module Ntnx/PolicyCount
|
|
4
|
-
* @version 4.0.1
|
|
4
|
+
* @version 4.0.1
|
|
5
5
|
* @class PolicyCount
|
|
6
6
|
*
|
|
7
7
|
* @param { Number } newPoliciesCount Number of policies after the upgrade.
|
|
@@ -19,7 +19,13 @@ export default class PolicyCount {
|
|
|
19
19
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
20
20
|
* @return {module:Ntnx/PolicyCount} The populated <code>PolicyCount</code> instance.
|
|
21
21
|
*/
|
|
22
|
-
static constructFromObject(data: any, obj
|
|
22
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
23
|
+
/**
|
|
24
|
+
* Converts a given snake_case string to camelCase.
|
|
25
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
26
|
+
* @returns {string} - The converted string in camelCase format.
|
|
27
|
+
*/
|
|
28
|
+
static snakeToCamel(snakeStr: string): string;
|
|
23
29
|
/**
|
|
24
30
|
* Constructs a new <code>PolicyCount</code>.
|
|
25
31
|
* Cumulative Policy counts pre and post Flow upgrade to FNS Next-Gen. Contains total count of FNS Next-Gen policies that'll be created post successful upgrade, total count of FNS policies before upgrade and the total count of FNS Next-Gen policies which were system generated as a result of FNS to FNS Next-Gen conversion.<br>
|
|
@@ -36,54 +42,50 @@ export default class PolicyCount {
|
|
|
36
42
|
oldPoliciesCount: number;
|
|
37
43
|
systemDefinedPoliciesCount: number;
|
|
38
44
|
$objectType: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
$unknownFields:
|
|
45
|
+
/** @type {object<string, any>} */
|
|
46
|
+
$reserved: object;
|
|
47
|
+
/** @type {object<string, any>} */
|
|
48
|
+
$unknownFields: object;
|
|
43
49
|
/**
|
|
44
50
|
* Returns Number of policies after the upgrade.
|
|
45
|
-
* @return {}
|
|
51
|
+
* @return {Number}
|
|
46
52
|
*/
|
|
47
|
-
getNewPoliciesCount():
|
|
53
|
+
getNewPoliciesCount(): number;
|
|
48
54
|
/**
|
|
49
55
|
* Sets Number of policies after the upgrade.
|
|
50
|
-
* @param {} newPoliciesCount Number of policies after the upgrade.
|
|
56
|
+
* @param {Number} newPoliciesCount Number of policies after the upgrade.
|
|
51
57
|
*/
|
|
52
|
-
setNewPoliciesCount(newPoliciesCount:
|
|
58
|
+
setNewPoliciesCount(newPoliciesCount: number): void;
|
|
53
59
|
/**
|
|
54
60
|
* Returns Number of policies before the migration.
|
|
55
|
-
* @return {}
|
|
61
|
+
* @return {Number}
|
|
56
62
|
*/
|
|
57
|
-
getOldPoliciesCount():
|
|
63
|
+
getOldPoliciesCount(): number;
|
|
58
64
|
/**
|
|
59
65
|
* Sets Number of policies before the migration.
|
|
60
|
-
* @param {} oldPoliciesCount Number of policies before the migration.
|
|
66
|
+
* @param {Number} oldPoliciesCount Number of policies before the migration.
|
|
61
67
|
*/
|
|
62
|
-
setOldPoliciesCount(oldPoliciesCount:
|
|
68
|
+
setOldPoliciesCount(oldPoliciesCount: number): void;
|
|
63
69
|
/**
|
|
64
70
|
* Returns Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
65
|
-
* @return {}
|
|
71
|
+
* @return {Number}
|
|
66
72
|
*/
|
|
67
|
-
getSystemDefinedPoliciesCount():
|
|
73
|
+
getSystemDefinedPoliciesCount(): number;
|
|
68
74
|
/**
|
|
69
75
|
* Sets Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
70
|
-
* @param {} systemDefinedPoliciesCount Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
76
|
+
* @param {Number} systemDefinedPoliciesCount Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
71
77
|
*/
|
|
72
|
-
setSystemDefinedPoliciesCount(systemDefinedPoliciesCount:
|
|
73
|
-
get$Reserved():
|
|
74
|
-
$fv: string;
|
|
75
|
-
};
|
|
78
|
+
setSystemDefinedPoliciesCount(systemDefinedPoliciesCount: number): void;
|
|
79
|
+
get$Reserved(): any;
|
|
76
80
|
get$ObjectType(): string;
|
|
77
|
-
get$UnknownFields():
|
|
81
|
+
get$UnknownFields(): any;
|
|
78
82
|
toJson(forMutation: any): {
|
|
79
|
-
$reserved:
|
|
80
|
-
$fv: string;
|
|
81
|
-
};
|
|
83
|
+
$reserved: any;
|
|
82
84
|
$objectType: string;
|
|
83
|
-
$unknownFields:
|
|
84
|
-
systemDefinedPoliciesCount?:
|
|
85
|
-
oldPoliciesCount?:
|
|
86
|
-
newPoliciesCount?:
|
|
85
|
+
$unknownFields: any;
|
|
86
|
+
systemDefinedPoliciesCount?: number;
|
|
87
|
+
oldPoliciesCount?: number;
|
|
88
|
+
newPoliciesCount?: number;
|
|
87
89
|
};
|
|
88
90
|
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
89
91
|
validateProperty(scope: any, property: any): ValidationError;
|
|
@@ -7,31 +7,31 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
8
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
9
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
|
-
function _slicedToArray(
|
|
12
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
13
13
|
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."); }
|
|
14
|
-
function _unsupportedIterableToArray(
|
|
15
|
-
function _arrayLikeToArray(
|
|
14
|
+
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; } }
|
|
15
|
+
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; }
|
|
16
16
|
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; } }
|
|
17
|
-
function _arrayWithHoles(
|
|
17
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
18
18
|
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; }
|
|
19
19
|
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; }
|
|
20
|
-
function _defineProperty(
|
|
21
|
-
function _classCallCheck(
|
|
22
|
-
function _defineProperties(
|
|
23
|
-
function _createClass(
|
|
20
|
+
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; }
|
|
21
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
22
|
+
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); } }
|
|
23
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
24
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
25
|
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); }
|
|
26
|
-
function _classPrivateMethodInitSpec(
|
|
27
|
-
function _checkPrivateRedeclaration(
|
|
28
|
-
* Nutanix
|
|
26
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
27
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
28
|
+
* Nutanix Flow Management APIs
|
|
29
29
|
*
|
|
30
|
-
* OpenAPI spec version: 4.0.1
|
|
30
|
+
* OpenAPI spec version: 4.0.1
|
|
31
31
|
*
|
|
32
32
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
33
33
|
*
|
|
34
|
-
* Open API Dev Platform Codegen version: 16.
|
|
34
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
35
35
|
*
|
|
36
36
|
* Do not edit the class manually.
|
|
37
37
|
*
|
|
@@ -39,7 +39,7 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
39
39
|
/**
|
|
40
40
|
* The PolicyCount model module.
|
|
41
41
|
* @module Ntnx/PolicyCount
|
|
42
|
-
* @version 4.0.1
|
|
42
|
+
* @version 4.0.1
|
|
43
43
|
* @class PolicyCount
|
|
44
44
|
*
|
|
45
45
|
* @param { Number } newPoliciesCount Number of policies after the upgrade.
|
|
@@ -74,9 +74,11 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
74
74
|
this.oldPoliciesCount = oldPoliciesCount;
|
|
75
75
|
this.systemDefinedPoliciesCount = systemDefinedPoliciesCount;
|
|
76
76
|
this.$objectType = "microseg.v4.operation.PolicyCount";
|
|
77
|
+
/** @type {object<string, any>} */
|
|
77
78
|
this.$reserved = {
|
|
78
|
-
'$fv': "v4.r0
|
|
79
|
+
'$fv': "v4.r0"
|
|
79
80
|
};
|
|
81
|
+
/** @type {object<string, any>} */
|
|
80
82
|
this.$unknownFields = {};
|
|
81
83
|
}
|
|
82
84
|
|
|
@@ -93,7 +95,7 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
93
95
|
value:
|
|
94
96
|
/**
|
|
95
97
|
* Returns Number of policies after the upgrade.
|
|
96
|
-
* @return {}
|
|
98
|
+
* @return {Number}
|
|
97
99
|
*/
|
|
98
100
|
function getNewPoliciesCount() {
|
|
99
101
|
return this.newPoliciesCount;
|
|
@@ -101,7 +103,7 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
101
103
|
|
|
102
104
|
/**
|
|
103
105
|
* Sets Number of policies after the upgrade.
|
|
104
|
-
* @param {} newPoliciesCount Number of policies after the upgrade.
|
|
106
|
+
* @param {Number} newPoliciesCount Number of policies after the upgrade.
|
|
105
107
|
*/
|
|
106
108
|
}, {
|
|
107
109
|
key: "setNewPoliciesCount",
|
|
@@ -111,7 +113,7 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
113
|
|
|
112
114
|
/**
|
|
113
115
|
* Returns Number of policies before the migration.
|
|
114
|
-
* @return {}
|
|
116
|
+
* @return {Number}
|
|
115
117
|
*/
|
|
116
118
|
}, {
|
|
117
119
|
key: "getOldPoliciesCount",
|
|
@@ -121,7 +123,7 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
121
123
|
|
|
122
124
|
/**
|
|
123
125
|
* Sets Number of policies before the migration.
|
|
124
|
-
* @param {} oldPoliciesCount Number of policies before the migration.
|
|
126
|
+
* @param {Number} oldPoliciesCount Number of policies before the migration.
|
|
125
127
|
*/
|
|
126
128
|
}, {
|
|
127
129
|
key: "setOldPoliciesCount",
|
|
@@ -131,7 +133,7 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
135
|
* Returns Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
134
|
-
* @return {}
|
|
136
|
+
* @return {Number}
|
|
135
137
|
*/
|
|
136
138
|
}, {
|
|
137
139
|
key: "getSystemDefinedPoliciesCount",
|
|
@@ -141,7 +143,7 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
141
143
|
|
|
142
144
|
/**
|
|
143
145
|
* Sets Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
144
|
-
* @param {} systemDefinedPoliciesCount Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
146
|
+
* @param {Number} systemDefinedPoliciesCount Count of isolation policies that would be generated post upgrade to FNS Next-Gen.
|
|
145
147
|
*/
|
|
146
148
|
}, {
|
|
147
149
|
key: "setSystemDefinedPoliciesCount",
|
|
@@ -260,7 +262,8 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
260
262
|
}
|
|
261
263
|
}], [{
|
|
262
264
|
key: "constructFromObject",
|
|
263
|
-
value: function constructFromObject(data
|
|
265
|
+
value: function constructFromObject(data) {
|
|
266
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
264
267
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
265
268
|
var items, item, i, itemArr, discriminator;
|
|
266
269
|
if (data) {
|
|
@@ -286,7 +289,11 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
289
|
if (!callFromChild) {
|
|
287
290
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
288
291
|
for (var property in data) {
|
|
289
|
-
if
|
|
292
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
293
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
294
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
295
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
296
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
290
297
|
obj.$unknownFields[property] = data[property];
|
|
291
298
|
}
|
|
292
299
|
}
|
|
@@ -294,6 +301,19 @@ var PolicyCount = exports["default"] = /*#__PURE__*/function () {
|
|
|
294
301
|
}
|
|
295
302
|
return obj;
|
|
296
303
|
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Converts a given snake_case string to camelCase.
|
|
307
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
308
|
+
* @returns {string} - The converted string in camelCase format.
|
|
309
|
+
*/
|
|
310
|
+
}, {
|
|
311
|
+
key: "snakeToCamel",
|
|
312
|
+
value: function snakeToCamel(snakeStr) {
|
|
313
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
314
|
+
return match[1].toUpperCase();
|
|
315
|
+
});
|
|
316
|
+
}
|
|
297
317
|
}]);
|
|
298
318
|
}();
|
|
299
319
|
/**
|
|
@@ -315,6 +335,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
315
335
|
}
|
|
316
336
|
return obj;
|
|
317
337
|
}
|
|
338
|
+
/*
|
|
339
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
340
|
+
* @param {Object} obj Object to serialize
|
|
341
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
342
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
343
|
+
*/
|
|
344
|
+
function _handleDateType(obj, isDateOnly) {
|
|
345
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
346
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
347
|
+
}
|
|
348
|
+
return obj;
|
|
349
|
+
}
|
|
318
350
|
PolicyCount.prototype.newPoliciesCount = undefined;
|
|
319
351
|
|
|
320
352
|
/**
|