@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
|
@@ -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,14 +39,14 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
39
39
|
/**
|
|
40
40
|
* The IcmpTypeCodeSpec model module.
|
|
41
41
|
* @module Ntnx/IcmpTypeCodeSpec
|
|
42
|
-
* @version 4.0.1
|
|
42
|
+
* @version 4.0.1
|
|
43
43
|
* @class IcmpTypeCodeSpec
|
|
44
44
|
*/
|
|
45
45
|
var _IcmpTypeCodeSpec_brand = /*#__PURE__*/new WeakSet();
|
|
46
46
|
var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
47
47
|
/**
|
|
48
48
|
* Constructs a new <code>IcmpTypeCodeSpec</code>.
|
|
49
|
-
*
|
|
49
|
+
* ICMP Type Code Object. This object contains values for Icmp type and Icmp code.
|
|
50
50
|
* @alias module:Ntnx/IcmpTypeCodeSpec
|
|
51
51
|
*/
|
|
52
52
|
function IcmpTypeCodeSpec() {
|
|
@@ -59,9 +59,11 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
59
59
|
*/
|
|
60
60
|
_classPrivateMethodInitSpec(this, _IcmpTypeCodeSpec_brand);
|
|
61
61
|
this.$objectType = "microseg.v4.config.IcmpTypeCodeSpec";
|
|
62
|
+
/** @type {object<string, any>} */
|
|
62
63
|
this.$reserved = {
|
|
63
|
-
'$fv': "v4.r0
|
|
64
|
+
'$fv': "v4.r0"
|
|
64
65
|
};
|
|
66
|
+
/** @type {object<string, any>} */
|
|
65
67
|
this.$unknownFields = {};
|
|
66
68
|
}
|
|
67
69
|
|
|
@@ -78,7 +80,7 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
80
|
value:
|
|
79
81
|
/**
|
|
80
82
|
* Returns Set this field to true if both Type and Code is ANY.
|
|
81
|
-
* @return {}
|
|
83
|
+
* @return {boolean}
|
|
82
84
|
*/
|
|
83
85
|
function getIsAllAllowed() {
|
|
84
86
|
return this.isAllAllowed;
|
|
@@ -86,7 +88,7 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
88
|
|
|
87
89
|
/**
|
|
88
90
|
* Sets Set this field to true if both Type and Code is ANY.
|
|
89
|
-
* @param {} isAllAllowed Set this field to true if both Type and Code is ANY.
|
|
91
|
+
* @param {boolean} isAllAllowed Set this field to true if both Type and Code is ANY.
|
|
90
92
|
*/
|
|
91
93
|
}, {
|
|
92
94
|
key: "setIsAllAllowed",
|
|
@@ -95,10 +97,10 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
/**
|
|
98
|
-
* Returns
|
|
100
|
+
* Returns ICMP service Type. Ignore this field if Type has to be ANY.
|
|
99
101
|
* minimum: 0
|
|
100
102
|
* maximum: 43
|
|
101
|
-
* @return {}
|
|
103
|
+
* @return {Number}
|
|
102
104
|
*/
|
|
103
105
|
}, {
|
|
104
106
|
key: "getType",
|
|
@@ -107,8 +109,8 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
|
-
* Sets
|
|
111
|
-
* @param {} type
|
|
112
|
+
* Sets ICMP service Type. Ignore this field if Type has to be ANY.
|
|
113
|
+
* @param {Number} type ICMP service Type. Ignore this field if Type has to be ANY.
|
|
112
114
|
*/
|
|
113
115
|
}, {
|
|
114
116
|
key: "setType",
|
|
@@ -117,10 +119,10 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
/**
|
|
120
|
-
* Returns
|
|
122
|
+
* Returns ICMP service Code. Ignore this field if Code has to be ANY.
|
|
121
123
|
* minimum: 0
|
|
122
124
|
* maximum: 15
|
|
123
|
-
* @return {}
|
|
125
|
+
* @return {Number}
|
|
124
126
|
*/
|
|
125
127
|
}, {
|
|
126
128
|
key: "getCode",
|
|
@@ -129,8 +131,8 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
/**
|
|
132
|
-
* Sets
|
|
133
|
-
* @param {} code
|
|
134
|
+
* Sets ICMP service Code. Ignore this field if Code has to be ANY.
|
|
135
|
+
* @param {Number} code ICMP service Code. Ignore this field if Code has to be ANY.
|
|
134
136
|
*/
|
|
135
137
|
}, {
|
|
136
138
|
key: "setCode",
|
|
@@ -261,7 +263,8 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
263
|
}
|
|
262
264
|
}], [{
|
|
263
265
|
key: "constructFromObject",
|
|
264
|
-
value: function constructFromObject(data
|
|
266
|
+
value: function constructFromObject(data) {
|
|
267
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
265
268
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
266
269
|
var items, item, i, itemArr, discriminator;
|
|
267
270
|
if (data) {
|
|
@@ -287,7 +290,11 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
287
290
|
if (!callFromChild) {
|
|
288
291
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
289
292
|
for (var property in data) {
|
|
290
|
-
if
|
|
293
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
294
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
295
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
296
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
297
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
291
298
|
obj.$unknownFields[property] = data[property];
|
|
292
299
|
}
|
|
293
300
|
}
|
|
@@ -295,6 +302,19 @@ var IcmpTypeCodeSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
295
302
|
}
|
|
296
303
|
return obj;
|
|
297
304
|
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Converts a given snake_case string to camelCase.
|
|
308
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
309
|
+
* @returns {string} - The converted string in camelCase format.
|
|
310
|
+
*/
|
|
311
|
+
}, {
|
|
312
|
+
key: "snakeToCamel",
|
|
313
|
+
value: function snakeToCamel(snakeStr) {
|
|
314
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
315
|
+
return match[1].toUpperCase();
|
|
316
|
+
});
|
|
317
|
+
}
|
|
298
318
|
}]);
|
|
299
319
|
}();
|
|
300
320
|
/**
|
|
@@ -317,16 +337,28 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
317
337
|
}
|
|
318
338
|
return obj;
|
|
319
339
|
}
|
|
340
|
+
/*
|
|
341
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
342
|
+
* @param {Object} obj Object to serialize
|
|
343
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
344
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
345
|
+
*/
|
|
346
|
+
function _handleDateType(obj, isDateOnly) {
|
|
347
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
348
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
349
|
+
}
|
|
350
|
+
return obj;
|
|
351
|
+
}
|
|
320
352
|
IcmpTypeCodeSpec.prototype.isAllAllowed = false;
|
|
321
353
|
|
|
322
354
|
/**
|
|
323
|
-
*
|
|
355
|
+
* ICMP service Type. Ignore this field if Type has to be ANY.
|
|
324
356
|
* @memberof IcmpTypeCodeSpec
|
|
325
357
|
*/
|
|
326
358
|
IcmpTypeCodeSpec.prototype.type = undefined;
|
|
327
359
|
|
|
328
360
|
/**
|
|
329
|
-
*
|
|
361
|
+
* ICMP service Code. Ignore this field if Code has to be ANY.
|
|
330
362
|
* @memberof IcmpTypeCodeSpec
|
|
331
363
|
*/
|
|
332
364
|
IcmpTypeCodeSpec.prototype.code = undefined;
|
|
@@ -7,15 +7,15 @@ 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
|
/*
|
|
12
|
-
* Nutanix
|
|
12
|
+
* Nutanix Flow Management APIs
|
|
13
13
|
*
|
|
14
|
-
* OpenAPI spec version: 4.0.1
|
|
14
|
+
* OpenAPI spec version: 4.0.1
|
|
15
15
|
*
|
|
16
16
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
17
|
*
|
|
18
|
-
* Open API Dev Platform Codegen version: 16.
|
|
18
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
19
19
|
*
|
|
20
20
|
* Do not edit the class manually.
|
|
21
21
|
*
|
|
@@ -28,13 +28,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
28
28
|
*/
|
|
29
29
|
var IntraEntityGroupRuleAction = {
|
|
30
30
|
/**
|
|
31
|
-
* value
|
|
32
|
-
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
33
|
*/
|
|
34
34
|
$UNKNOWN: "$UNKNOWN",
|
|
35
35
|
/**
|
|
36
|
-
* value
|
|
37
|
-
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
38
|
*/
|
|
39
39
|
$REDACTED: "$REDACTED",
|
|
40
40
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The IntraEntityGroupRuleSpec model module.
|
|
3
3
|
* @module Ntnx/IntraEntityGroupRuleSpec
|
|
4
|
-
* @version 4.0.1
|
|
4
|
+
* @version 4.0.1
|
|
5
5
|
* @class IntraEntityGroupRuleSpec
|
|
6
6
|
*
|
|
7
|
-
* @param {
|
|
7
|
+
* @param { string[] } securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
8
8
|
*
|
|
9
9
|
* @param { IntraEntityGroupRuleAction } securedGroupAction
|
|
10
10
|
*/
|
|
@@ -17,57 +17,61 @@ export default class IntraEntityGroupRuleSpec {
|
|
|
17
17
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
18
18
|
* @return {module:Ntnx/IntraEntityGroupRuleSpec} The populated <code>IntraEntityGroupRuleSpec</code> instance.
|
|
19
19
|
*/
|
|
20
|
-
static constructFromObject(data: any, obj
|
|
20
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
21
|
+
/**
|
|
22
|
+
* Converts a given snake_case string to camelCase.
|
|
23
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
24
|
+
* @returns {string} - The converted string in camelCase format.
|
|
25
|
+
*/
|
|
26
|
+
static snakeToCamel(snakeStr: string): string;
|
|
21
27
|
/**
|
|
22
28
|
* Constructs a new <code>IntraEntityGroupRuleSpec</code>.
|
|
23
29
|
* A rule for specifying allowed traffic inside of a secured entity group.
|
|
24
30
|
* @alias module:Ntnx/IntraEntityGroupRuleSpec
|
|
25
31
|
*
|
|
26
|
-
* @param {
|
|
32
|
+
* @param { string[] } securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
27
33
|
*
|
|
28
34
|
* @param { IntraEntityGroupRuleAction } securedGroupAction
|
|
29
35
|
*/
|
|
30
|
-
constructor(securedGroupCategoryReferences:
|
|
31
|
-
securedGroupCategoryReferences:
|
|
36
|
+
constructor(securedGroupCategoryReferences: string[], securedGroupAction: IntraEntityGroupRuleAction);
|
|
37
|
+
securedGroupCategoryReferences: string[];
|
|
32
38
|
securedGroupAction: string;
|
|
33
39
|
$objectType: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
$unknownFields:
|
|
40
|
+
/** @type {object<string, any>} */
|
|
41
|
+
$reserved: object;
|
|
42
|
+
/** @type {object<string, any>} */
|
|
43
|
+
$unknownFields: object;
|
|
38
44
|
/**
|
|
39
|
-
*
|
|
45
|
+
* Returns A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
46
|
+
* @return {string[]}
|
|
40
47
|
*/
|
|
41
|
-
getSecuredGroupCategoryReferences():
|
|
48
|
+
getSecuredGroupCategoryReferences(): string[];
|
|
42
49
|
/**
|
|
43
|
-
*
|
|
50
|
+
* Sets A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
51
|
+
* @param {string[]} securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
44
52
|
*/
|
|
45
|
-
setSecuredGroupCategoryReferences(securedGroupCategoryReferences:
|
|
53
|
+
setSecuredGroupCategoryReferences(securedGroupCategoryReferences: string[]): void;
|
|
46
54
|
/**
|
|
47
|
-
* @return {}
|
|
55
|
+
* @return {IntraEntityGroupRuleAction}
|
|
48
56
|
*/
|
|
49
|
-
getSecuredGroupAction():
|
|
57
|
+
getSecuredGroupAction(): IntraEntityGroupRuleAction;
|
|
50
58
|
/**
|
|
51
|
-
* @param {} securedGroupAction
|
|
59
|
+
* @param {IntraEntityGroupRuleAction} securedGroupAction
|
|
52
60
|
*/
|
|
53
|
-
setSecuredGroupAction(securedGroupAction:
|
|
54
|
-
get$Reserved():
|
|
55
|
-
$fv: string;
|
|
56
|
-
};
|
|
61
|
+
setSecuredGroupAction(securedGroupAction: IntraEntityGroupRuleAction): void;
|
|
62
|
+
get$Reserved(): any;
|
|
57
63
|
get$ObjectType(): string;
|
|
58
|
-
get$UnknownFields():
|
|
64
|
+
get$UnknownFields(): any;
|
|
59
65
|
toJson(forMutation: any): {
|
|
60
|
-
$reserved:
|
|
61
|
-
$fv: string;
|
|
62
|
-
};
|
|
66
|
+
$reserved: any;
|
|
63
67
|
$objectType: string;
|
|
64
|
-
$unknownFields:
|
|
65
|
-
securedGroupAction?:
|
|
66
|
-
securedGroupCategoryReferences?:
|
|
68
|
+
$unknownFields: any;
|
|
69
|
+
securedGroupAction?: string;
|
|
70
|
+
securedGroupCategoryReferences?: string[];
|
|
67
71
|
};
|
|
68
72
|
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
69
73
|
validateProperty(scope: any, property: any): ValidationError;
|
|
70
74
|
#private;
|
|
71
75
|
}
|
|
72
|
-
import ValidationError from "../../../validation/ValidationError";
|
|
73
76
|
import IntraEntityGroupRuleAction from "./IntraEntityGroupRuleAction";
|
|
77
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -8,31 +8,31 @@ var _IntraEntityGroupRuleAction = _interopRequireDefault(require("./IntraEntityG
|
|
|
8
8
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
9
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
10
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
12
|
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); }
|
|
13
|
-
function _slicedToArray(
|
|
13
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
14
14
|
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."); }
|
|
15
|
-
function _unsupportedIterableToArray(
|
|
16
|
-
function _arrayLikeToArray(
|
|
15
|
+
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; } }
|
|
16
|
+
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; }
|
|
17
17
|
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; } }
|
|
18
|
-
function _arrayWithHoles(
|
|
18
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
19
19
|
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; }
|
|
20
20
|
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; }
|
|
21
|
-
function _defineProperty(
|
|
22
|
-
function _classCallCheck(
|
|
23
|
-
function _defineProperties(
|
|
24
|
-
function _createClass(
|
|
21
|
+
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; }
|
|
22
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
23
|
+
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); } }
|
|
24
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
25
25
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
26
|
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); }
|
|
27
|
-
function _classPrivateMethodInitSpec(
|
|
28
|
-
function _checkPrivateRedeclaration(
|
|
29
|
-
* Nutanix
|
|
27
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
28
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
29
|
+
* Nutanix Flow Management APIs
|
|
30
30
|
*
|
|
31
|
-
* OpenAPI spec version: 4.0.1
|
|
31
|
+
* OpenAPI spec version: 4.0.1
|
|
32
32
|
*
|
|
33
33
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
34
|
*
|
|
35
|
-
* Open API Dev Platform Codegen version: 16.
|
|
35
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
36
36
|
*
|
|
37
37
|
* Do not edit the class manually.
|
|
38
38
|
*
|
|
@@ -40,10 +40,10 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
40
40
|
/**
|
|
41
41
|
* The IntraEntityGroupRuleSpec model module.
|
|
42
42
|
* @module Ntnx/IntraEntityGroupRuleSpec
|
|
43
|
-
* @version 4.0.1
|
|
43
|
+
* @version 4.0.1
|
|
44
44
|
* @class IntraEntityGroupRuleSpec
|
|
45
45
|
*
|
|
46
|
-
* @param {
|
|
46
|
+
* @param { string[] } securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
47
47
|
*
|
|
48
48
|
* @param { IntraEntityGroupRuleAction } securedGroupAction
|
|
49
49
|
*/
|
|
@@ -54,7 +54,7 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
54
54
|
* A rule for specifying allowed traffic inside of a secured entity group.
|
|
55
55
|
* @alias module:Ntnx/IntraEntityGroupRuleSpec
|
|
56
56
|
*
|
|
57
|
-
* @param {
|
|
57
|
+
* @param { string[] } securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
58
58
|
*
|
|
59
59
|
* @param { IntraEntityGroupRuleAction } securedGroupAction
|
|
60
60
|
*/
|
|
@@ -70,9 +70,11 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
70
70
|
this.securedGroupCategoryReferences = securedGroupCategoryReferences;
|
|
71
71
|
this.securedGroupAction = securedGroupAction;
|
|
72
72
|
this.$objectType = "microseg.v4.config.IntraEntityGroupRuleSpec";
|
|
73
|
+
/** @type {object<string, any>} */
|
|
73
74
|
this.$reserved = {
|
|
74
|
-
'$fv': "v4.r0
|
|
75
|
+
'$fv': "v4.r0"
|
|
75
76
|
};
|
|
77
|
+
/** @type {object<string, any>} */
|
|
76
78
|
this.$unknownFields = {};
|
|
77
79
|
}
|
|
78
80
|
|
|
@@ -88,14 +90,16 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
88
90
|
key: "getSecuredGroupCategoryReferences",
|
|
89
91
|
value:
|
|
90
92
|
/**
|
|
91
|
-
*
|
|
93
|
+
* Returns A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
94
|
+
* @return {string[]}
|
|
92
95
|
*/
|
|
93
96
|
function getSecuredGroupCategoryReferences() {
|
|
94
97
|
return this.securedGroupCategoryReferences;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
/**
|
|
98
|
-
*
|
|
101
|
+
* Sets A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
102
|
+
* @param {string[]} securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
99
103
|
*/
|
|
100
104
|
}, {
|
|
101
105
|
key: "setSecuredGroupCategoryReferences",
|
|
@@ -104,7 +108,7 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
/**
|
|
107
|
-
* @return {}
|
|
111
|
+
* @return {IntraEntityGroupRuleAction}
|
|
108
112
|
*/
|
|
109
113
|
}, {
|
|
110
114
|
key: "getSecuredGroupAction",
|
|
@@ -113,7 +117,7 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
/**
|
|
116
|
-
* @param {} securedGroupAction
|
|
120
|
+
* @param {IntraEntityGroupRuleAction} securedGroupAction
|
|
117
121
|
*/
|
|
118
122
|
}, {
|
|
119
123
|
key: "setSecuredGroupAction",
|
|
@@ -229,7 +233,8 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
229
233
|
}
|
|
230
234
|
}], [{
|
|
231
235
|
key: "constructFromObject",
|
|
232
|
-
value: function constructFromObject(data
|
|
236
|
+
value: function constructFromObject(data) {
|
|
237
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
233
238
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
234
239
|
var items, item, i, itemArr, discriminator;
|
|
235
240
|
if (data) {
|
|
@@ -257,7 +262,11 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
257
262
|
if (!callFromChild) {
|
|
258
263
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
259
264
|
for (var property in data) {
|
|
260
|
-
if
|
|
265
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
266
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
267
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
268
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
269
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
261
270
|
obj.$unknownFields[property] = data[property];
|
|
262
271
|
}
|
|
263
272
|
}
|
|
@@ -265,9 +274,23 @@ var IntraEntityGroupRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
265
274
|
}
|
|
266
275
|
return obj;
|
|
267
276
|
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Converts a given snake_case string to camelCase.
|
|
280
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
281
|
+
* @returns {string} - The converted string in camelCase format.
|
|
282
|
+
*/
|
|
283
|
+
}, {
|
|
284
|
+
key: "snakeToCamel",
|
|
285
|
+
value: function snakeToCamel(snakeStr) {
|
|
286
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
287
|
+
return match[1].toUpperCase();
|
|
288
|
+
});
|
|
289
|
+
}
|
|
268
290
|
}]);
|
|
269
291
|
}();
|
|
270
292
|
/**
|
|
293
|
+
* A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
271
294
|
* @memberof IntraEntityGroupRuleSpec
|
|
272
295
|
*/
|
|
273
296
|
function _toJsonMapType(obj, forMutation) {
|
|
@@ -285,6 +308,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
285
308
|
}
|
|
286
309
|
return obj;
|
|
287
310
|
}
|
|
311
|
+
/*
|
|
312
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
313
|
+
* @param {Object} obj Object to serialize
|
|
314
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
315
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
316
|
+
*/
|
|
317
|
+
function _handleDateType(obj, isDateOnly) {
|
|
318
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
319
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
320
|
+
}
|
|
321
|
+
return obj;
|
|
322
|
+
}
|
|
288
323
|
IntraEntityGroupRuleSpec.prototype.securedGroupCategoryReferences = undefined;
|
|
289
324
|
|
|
290
325
|
/**
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The IsolationGroup model module.
|
|
3
|
+
* @module Ntnx/IsolationGroup
|
|
4
|
+
* @version 4.0.1
|
|
5
|
+
* @class IsolationGroup
|
|
6
|
+
*
|
|
7
|
+
* @param { string[] } groupCategoryReferences External identifiers of categories belonging to the isolation group.
|
|
8
|
+
*/
|
|
9
|
+
export default class IsolationGroup {
|
|
10
|
+
/**
|
|
11
|
+
* Constructs a <code>IsolationGroup</code> from a plain JavaScript object, optionally creating a new instance.
|
|
12
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
13
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
14
|
+
* @param {module:Ntnx/IsolationGroup} obj Optional instance to populate.
|
|
15
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
16
|
+
* @return {module:Ntnx/IsolationGroup} The populated <code>IsolationGroup</code> instance.
|
|
17
|
+
*/
|
|
18
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
19
|
+
/**
|
|
20
|
+
* Converts a given snake_case string to camelCase.
|
|
21
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
22
|
+
* @returns {string} - The converted string in camelCase format.
|
|
23
|
+
*/
|
|
24
|
+
static snakeToCamel(snakeStr: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new <code>IsolationGroup</code>.
|
|
27
|
+
* A set of network endpoints which is protected by an Isolation policy and defined as a list of categories.
|
|
28
|
+
* @alias module:Ntnx/IsolationGroup
|
|
29
|
+
*
|
|
30
|
+
* @param { string[] } groupCategoryReferences External identifiers of categories belonging to the isolation group.
|
|
31
|
+
*/
|
|
32
|
+
constructor(groupCategoryReferences: string[]);
|
|
33
|
+
groupCategoryReferences: string[];
|
|
34
|
+
$objectType: string;
|
|
35
|
+
/** @type {object<string, any>} */
|
|
36
|
+
$reserved: object;
|
|
37
|
+
/** @type {object<string, any>} */
|
|
38
|
+
$unknownFields: object;
|
|
39
|
+
/**
|
|
40
|
+
* Returns External identifiers of categories belonging to the isolation group.
|
|
41
|
+
* @return {string[]}
|
|
42
|
+
*/
|
|
43
|
+
getGroupCategoryReferences(): string[];
|
|
44
|
+
/**
|
|
45
|
+
* Sets External identifiers of categories belonging to the isolation group.
|
|
46
|
+
* @param {string[]} groupCategoryReferences External identifiers of categories belonging to the isolation group.
|
|
47
|
+
*/
|
|
48
|
+
setGroupCategoryReferences(groupCategoryReferences: string[]): void;
|
|
49
|
+
get$Reserved(): any;
|
|
50
|
+
get$ObjectType(): string;
|
|
51
|
+
get$UnknownFields(): any;
|
|
52
|
+
toJson(forMutation: any): {
|
|
53
|
+
$reserved: any;
|
|
54
|
+
$objectType: string;
|
|
55
|
+
$unknownFields: any;
|
|
56
|
+
groupCategoryReferences?: string[];
|
|
57
|
+
};
|
|
58
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
59
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
60
|
+
#private;
|
|
61
|
+
}
|
|
62
|
+
import ValidationError from "../../../validation/ValidationError";
|