@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
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
7
8
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
8
9
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
9
10
|
var _NetworkSecurityPolicyRule = _interopRequireDefault(require("./NetworkSecurityPolicyRule"));
|
|
@@ -13,38 +14,39 @@ var _SecurityPolicyType = _interopRequireDefault(require("./SecurityPolicyType")
|
|
|
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
|
-
|
|
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
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
43
|
+
* Nutanix Flow Management APIs
|
|
42
44
|
*
|
|
43
|
-
* OpenAPI spec version: 4.0.1
|
|
45
|
+
* OpenAPI spec version: 4.0.1
|
|
44
46
|
*
|
|
45
47
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
46
48
|
*
|
|
47
|
-
* Open API Dev Platform Codegen version: 16.
|
|
49
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
48
50
|
*
|
|
49
51
|
* Do not edit the class manually.
|
|
50
52
|
*
|
|
@@ -52,23 +54,25 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
52
54
|
/**
|
|
53
55
|
* The NetworkSecurityPolicy model module.
|
|
54
56
|
* @module Ntnx/NetworkSecurityPolicy
|
|
55
|
-
* @version 4.0.1
|
|
57
|
+
* @version 4.0.1
|
|
56
58
|
* @class NetworkSecurityPolicy
|
|
59
|
+
* @extends ExternalizableAbstractModel
|
|
57
60
|
*
|
|
58
|
-
* @param {
|
|
61
|
+
* @param { string } name Name of the Flow Network Security Policy.<br> It can have a maximum length of 63 characters.
|
|
59
62
|
*
|
|
60
|
-
* @param {
|
|
63
|
+
* @param { SecurityPolicyType } type
|
|
61
64
|
*/
|
|
62
65
|
var _NetworkSecurityPolicy_brand = /*#__PURE__*/new WeakSet();
|
|
63
66
|
var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
64
67
|
/**
|
|
65
68
|
* Constructs a new <code>NetworkSecurityPolicy</code>.
|
|
69
|
+
* A policy that contains rules for specifying security posture.
|
|
66
70
|
* @alias module:Ntnx/NetworkSecurityPolicy
|
|
67
71
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
68
72
|
*
|
|
69
|
-
* @param {
|
|
73
|
+
* @param { string } name Name of the Flow Network Security Policy.<br> It can have a maximum length of 63 characters.
|
|
70
74
|
*
|
|
71
|
-
* @param {
|
|
75
|
+
* @param { SecurityPolicyType } type
|
|
72
76
|
*/
|
|
73
77
|
function NetworkSecurityPolicy(name, type) {
|
|
74
78
|
var _this;
|
|
@@ -84,9 +88,11 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
84
88
|
_this.name = name;
|
|
85
89
|
_this.type = type;
|
|
86
90
|
_this.$objectType = "microseg.v4.config.NetworkSecurityPolicy";
|
|
91
|
+
/** @type {object<string, any>} */
|
|
87
92
|
_this.$reserved = {
|
|
88
|
-
'$fv': "v4.r0
|
|
93
|
+
'$fv': "v4.r0"
|
|
89
94
|
};
|
|
95
|
+
/** @type {object<string, any>} */
|
|
90
96
|
_this.$unknownFields = {};
|
|
91
97
|
return _this;
|
|
92
98
|
}
|
|
@@ -105,7 +111,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
105
111
|
value:
|
|
106
112
|
/**
|
|
107
113
|
* Returns Name of the Flow Network Security Policy.<br> It can have a maximum length of 63 characters.
|
|
108
|
-
* @return {}
|
|
114
|
+
* @return {string}
|
|
109
115
|
*/
|
|
110
116
|
function getName() {
|
|
111
117
|
return this.name;
|
|
@@ -113,7 +119,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
113
119
|
|
|
114
120
|
/**
|
|
115
121
|
* Sets Name of the Flow Network Security Policy.<br> It can have a maximum length of 63 characters.
|
|
116
|
-
* @param {} name Name of the Flow Network Security Policy.<br> It can have a maximum length of 63 characters.
|
|
122
|
+
* @param {string} name Name of the Flow Network Security Policy.<br> It can have a maximum length of 63 characters.
|
|
117
123
|
*/
|
|
118
124
|
}, {
|
|
119
125
|
key: "setName",
|
|
@@ -122,7 +128,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
/**
|
|
125
|
-
* @return {}
|
|
131
|
+
* @return {SecurityPolicyType}
|
|
126
132
|
*/
|
|
127
133
|
}, {
|
|
128
134
|
key: "getType",
|
|
@@ -131,7 +137,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
/**
|
|
134
|
-
* @param {} type
|
|
140
|
+
* @param {SecurityPolicyType} type
|
|
135
141
|
*/
|
|
136
142
|
}, {
|
|
137
143
|
key: "setType",
|
|
@@ -141,7 +147,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
141
147
|
|
|
142
148
|
/**
|
|
143
149
|
* Returns A user defined annotation for a policy.
|
|
144
|
-
* @return {}
|
|
150
|
+
* @return {string}
|
|
145
151
|
*/
|
|
146
152
|
}, {
|
|
147
153
|
key: "getDescription",
|
|
@@ -151,7 +157,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
151
157
|
|
|
152
158
|
/**
|
|
153
159
|
* Sets A user defined annotation for a policy.
|
|
154
|
-
* @param {} description A user defined annotation for a policy.
|
|
160
|
+
* @param {string} description A user defined annotation for a policy.
|
|
155
161
|
*/
|
|
156
162
|
}, {
|
|
157
163
|
key: "setDescription",
|
|
@@ -160,7 +166,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
160
166
|
}
|
|
161
167
|
|
|
162
168
|
/**
|
|
163
|
-
* @return {}
|
|
169
|
+
* @return {SecurityPolicyState}
|
|
164
170
|
*/
|
|
165
171
|
}, {
|
|
166
172
|
key: "getState",
|
|
@@ -169,7 +175,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
169
175
|
}
|
|
170
176
|
|
|
171
177
|
/**
|
|
172
|
-
* @param {} state
|
|
178
|
+
* @param {SecurityPolicyState} state
|
|
173
179
|
*/
|
|
174
180
|
}, {
|
|
175
181
|
key: "setState",
|
|
@@ -179,7 +185,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
179
185
|
|
|
180
186
|
/**
|
|
181
187
|
* Returns A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
|
|
182
|
-
* @return {}
|
|
188
|
+
* @return {NetworkSecurityPolicyRule[]}
|
|
183
189
|
*/
|
|
184
190
|
}, {
|
|
185
191
|
key: "getRules",
|
|
@@ -189,7 +195,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
189
195
|
|
|
190
196
|
/**
|
|
191
197
|
* Sets A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
|
|
192
|
-
* @param {} rules A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
|
|
198
|
+
* @param {NetworkSecurityPolicyRule[]} rules A list of rules that form a policy. For isolation policies, use isolation rules; for application or quarantine policies, use application rules.
|
|
193
199
|
*/
|
|
194
200
|
}, {
|
|
195
201
|
key: "setRules",
|
|
@@ -199,7 +205,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
199
205
|
|
|
200
206
|
/**
|
|
201
207
|
* Returns If Ipv6 Traffic is allowed.
|
|
202
|
-
* @return {}
|
|
208
|
+
* @return {boolean}
|
|
203
209
|
*/
|
|
204
210
|
}, {
|
|
205
211
|
key: "getIsIpv6TrafficAllowed",
|
|
@@ -209,7 +215,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
209
215
|
|
|
210
216
|
/**
|
|
211
217
|
* Sets If Ipv6 Traffic is allowed.
|
|
212
|
-
* @param {} isIpv6TrafficAllowed If Ipv6 Traffic is allowed.
|
|
218
|
+
* @param {boolean} isIpv6TrafficAllowed If Ipv6 Traffic is allowed.
|
|
213
219
|
*/
|
|
214
220
|
}, {
|
|
215
221
|
key: "setIsIpv6TrafficAllowed",
|
|
@@ -219,7 +225,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
219
225
|
|
|
220
226
|
/**
|
|
221
227
|
* Returns If Hitlog is enabled.
|
|
222
|
-
* @return {}
|
|
228
|
+
* @return {boolean}
|
|
223
229
|
*/
|
|
224
230
|
}, {
|
|
225
231
|
key: "getIsHitlogEnabled",
|
|
@@ -229,7 +235,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
229
235
|
|
|
230
236
|
/**
|
|
231
237
|
* Sets If Hitlog is enabled.
|
|
232
|
-
* @param {} isHitlogEnabled If Hitlog is enabled.
|
|
238
|
+
* @param {boolean} isHitlogEnabled If Hitlog is enabled.
|
|
233
239
|
*/
|
|
234
240
|
}, {
|
|
235
241
|
key: "setIsHitlogEnabled",
|
|
@@ -238,7 +244,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
238
244
|
}
|
|
239
245
|
|
|
240
246
|
/**
|
|
241
|
-
* @return {}
|
|
247
|
+
* @return {SecurityPolicyScope}
|
|
242
248
|
*/
|
|
243
249
|
}, {
|
|
244
250
|
key: "getScope",
|
|
@@ -247,7 +253,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
247
253
|
}
|
|
248
254
|
|
|
249
255
|
/**
|
|
250
|
-
* @param {} scope
|
|
256
|
+
* @param {SecurityPolicyScope} scope
|
|
251
257
|
*/
|
|
252
258
|
}, {
|
|
253
259
|
key: "setScope",
|
|
@@ -257,7 +263,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
257
263
|
|
|
258
264
|
/**
|
|
259
265
|
* Returns A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
|
|
260
|
-
* @return {}
|
|
266
|
+
* @return {string[]}
|
|
261
267
|
*/
|
|
262
268
|
}, {
|
|
263
269
|
key: "getVpcReferences",
|
|
@@ -267,7 +273,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
267
273
|
|
|
268
274
|
/**
|
|
269
275
|
* Sets A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
|
|
270
|
-
* @param {} vpcReferences A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
|
|
276
|
+
* @param {string[]} vpcReferences A list of external ids for VPCs, used only when the scope of policy is a list of VPCs.
|
|
271
277
|
*/
|
|
272
278
|
}, {
|
|
273
279
|
key: "setVpcReferences",
|
|
@@ -277,7 +283,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
277
283
|
|
|
278
284
|
/**
|
|
279
285
|
* Returns Uuids of the secured groups in the NSP.
|
|
280
|
-
* @return {}
|
|
286
|
+
* @return {string[]}
|
|
281
287
|
*/
|
|
282
288
|
}, {
|
|
283
289
|
key: "getSecuredGroups",
|
|
@@ -287,7 +293,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
287
293
|
|
|
288
294
|
/**
|
|
289
295
|
* Sets Uuids of the secured groups in the NSP.
|
|
290
|
-
* @param {} securedGroups Uuids of the secured groups in the NSP.
|
|
296
|
+
* @param {string[]} securedGroups Uuids of the secured groups in the NSP.
|
|
291
297
|
*/
|
|
292
298
|
}, {
|
|
293
299
|
key: "setSecuredGroups",
|
|
@@ -296,7 +302,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
296
302
|
}
|
|
297
303
|
|
|
298
304
|
/**
|
|
299
|
-
*
|
|
305
|
+
* Returns The timestamp when the Flow Network Security policy was last updated.
|
|
306
|
+
* @return {Date}
|
|
300
307
|
*/
|
|
301
308
|
}, {
|
|
302
309
|
key: "getLastUpdateTime",
|
|
@@ -305,7 +312,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
305
312
|
}
|
|
306
313
|
|
|
307
314
|
/**
|
|
308
|
-
*
|
|
315
|
+
* Sets The timestamp when the Flow Network Security policy was last updated.
|
|
316
|
+
* @param {Date} lastUpdateTime The timestamp when the Flow Network Security policy was last updated.
|
|
309
317
|
*/
|
|
310
318
|
}, {
|
|
311
319
|
key: "setLastUpdateTime",
|
|
@@ -314,7 +322,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
314
322
|
}
|
|
315
323
|
|
|
316
324
|
/**
|
|
317
|
-
*
|
|
325
|
+
* Returns The timestamp when the Flow Network Security policy was created.
|
|
326
|
+
* @return {Date}
|
|
318
327
|
*/
|
|
319
328
|
}, {
|
|
320
329
|
key: "getCreationTime",
|
|
@@ -323,7 +332,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
323
332
|
}
|
|
324
333
|
|
|
325
334
|
/**
|
|
326
|
-
*
|
|
335
|
+
* Sets The timestamp when the Flow Network Security policy was created.
|
|
336
|
+
* @param {Date} creationTime The timestamp when the Flow Network Security policy was created.
|
|
327
337
|
*/
|
|
328
338
|
}, {
|
|
329
339
|
key: "setCreationTime",
|
|
@@ -332,7 +342,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
332
342
|
}
|
|
333
343
|
|
|
334
344
|
/**
|
|
335
|
-
*
|
|
345
|
+
* Returns A flag indicating whether the Flow Network Security policy is system-defined or not.
|
|
346
|
+
* @return {boolean}
|
|
336
347
|
*/
|
|
337
348
|
}, {
|
|
338
349
|
key: "getIsSystemDefined",
|
|
@@ -341,7 +352,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
341
352
|
}
|
|
342
353
|
|
|
343
354
|
/**
|
|
344
|
-
*
|
|
355
|
+
* Sets A flag indicating whether the Flow Network Security policy is system-defined or not.
|
|
356
|
+
* @param {boolean} isSystemDefined A flag indicating whether the Flow Network Security policy is system-defined or not.
|
|
345
357
|
*/
|
|
346
358
|
}, {
|
|
347
359
|
key: "setIsSystemDefined",
|
|
@@ -350,7 +362,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
350
362
|
}
|
|
351
363
|
|
|
352
364
|
/**
|
|
353
|
-
*
|
|
365
|
+
* Returns The extId of the user responsible for creating the Network Security Policy.
|
|
366
|
+
* @return {string}
|
|
354
367
|
*/
|
|
355
368
|
}, {
|
|
356
369
|
key: "getCreatedBy",
|
|
@@ -359,7 +372,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
359
372
|
}
|
|
360
373
|
|
|
361
374
|
/**
|
|
362
|
-
*
|
|
375
|
+
* Sets The extId of the user responsible for creating the Network Security Policy.
|
|
376
|
+
* @param {string} createdBy The extId of the user responsible for creating the Network Security Policy.
|
|
363
377
|
*/
|
|
364
378
|
}, {
|
|
365
379
|
key: "setCreatedBy",
|
|
@@ -393,9 +407,9 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
393
407
|
} : {}), typeof this.getSecuredGroups() !== 'undefined' && this.getSecuredGroups() !== null ? {
|
|
394
408
|
'securedGroups': this.getSecuredGroups()
|
|
395
409
|
} : {}), typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {
|
|
396
|
-
'lastUpdateTime': this.getLastUpdateTime()
|
|
410
|
+
'lastUpdateTime': _assertClassBrand(_NetworkSecurityPolicy_brand, this, _handleDateType).call(this, this.getLastUpdateTime(), false)
|
|
397
411
|
} : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
|
|
398
|
-
'creationTime': this.getCreationTime()
|
|
412
|
+
'creationTime': _assertClassBrand(_NetworkSecurityPolicy_brand, this, _handleDateType).call(this, this.getCreationTime(), false)
|
|
399
413
|
} : {}), typeof this.getIsSystemDefined() !== 'undefined' && this.getIsSystemDefined() !== null ? {
|
|
400
414
|
'isSystemDefined': this.getIsSystemDefined()
|
|
401
415
|
} : {}), typeof this.getCreatedBy() !== 'undefined' && this.getCreatedBy() !== null ? {
|
|
@@ -414,7 +428,7 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
414
428
|
'$unknownFields': this.get$UnknownFields()
|
|
415
429
|
});
|
|
416
430
|
}
|
|
417
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(
|
|
431
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
418
432
|
'name': this.getName()
|
|
419
433
|
} : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
|
|
420
434
|
'type': this.getType()
|
|
@@ -434,8 +448,6 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
434
448
|
'scope': this.getScope()
|
|
435
449
|
} : {}), typeof this.getVpcReferences() !== 'undefined' && this.getVpcReferences() !== null ? {
|
|
436
450
|
'vpcReferences': this.getVpcReferences()
|
|
437
|
-
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
438
|
-
'extId': this.getExtId()
|
|
439
451
|
} : {}), {}, {
|
|
440
452
|
'$reserved': this.get$Reserved(),
|
|
441
453
|
'$objectType': this.get$ObjectType(),
|
|
@@ -484,6 +496,9 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
484
496
|
if (!_ValidationUtils["default"].validateMaxLength(this.name, 63)) {
|
|
485
497
|
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 63");
|
|
486
498
|
}
|
|
499
|
+
if (!_ValidationUtils["default"].validatePattern(this.name, /^\\s*[a-zA-Z0-9]([a-zA-Z0-9-_ \\\\.]*[a-zA-Z0-9])?\\s*$/)) {
|
|
500
|
+
return new _ValidationError["default"]("name", "does not satisfy required pattern: /^\\s*[a-zA-Z0-9]([a-zA-Z0-9-_ \\\\.]*[a-zA-Z0-9])?\\s*$/");
|
|
501
|
+
}
|
|
487
502
|
}
|
|
488
503
|
if (property === "type") {
|
|
489
504
|
if (typeof this.type === 'undefined' || this.type === null) {
|
|
@@ -497,6 +512,9 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
497
512
|
if (!_ValidationUtils["default"].validateMaxLength(this.description, 512)) {
|
|
498
513
|
return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 512");
|
|
499
514
|
}
|
|
515
|
+
if (!_ValidationUtils["default"].validatePattern(this.description, /^\\s*([a-zA-Z0-9 _:.()-]*)\\s*$/)) {
|
|
516
|
+
return new _ValidationError["default"]("description", "does not satisfy required pattern: /^\\s*([a-zA-Z0-9 _:.()-]*)\\s*$/");
|
|
517
|
+
}
|
|
500
518
|
}
|
|
501
519
|
if (property === "state") {
|
|
502
520
|
if (typeof this.state === 'undefined' || this.state === null) {
|
|
@@ -507,8 +525,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
507
525
|
if (typeof this.rules === 'undefined' || this.rules === null) {
|
|
508
526
|
return new _ValidationError["default"]("rules", "undefined or null");
|
|
509
527
|
}
|
|
510
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.rules,
|
|
511
|
-
return new _ValidationError["default"]("rules", "does not satisfy required maxItems constraint:
|
|
528
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.rules, 150)) {
|
|
529
|
+
return new _ValidationError["default"]("rules", "does not satisfy required maxItems constraint: 150");
|
|
512
530
|
}
|
|
513
531
|
if (!_ValidationUtils["default"].validateMinItems(this.rules, 1)) {
|
|
514
532
|
return new _ValidationError["default"]("rules", "does not satisfy required minItems constraint: 1");
|
|
@@ -578,7 +596,8 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
578
596
|
}
|
|
579
597
|
}], [{
|
|
580
598
|
key: "constructFromObject",
|
|
581
|
-
value: function constructFromObject(data
|
|
599
|
+
value: function constructFromObject(data) {
|
|
600
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
582
601
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
583
602
|
var items, item, i, itemArr, discriminator;
|
|
584
603
|
if (data) {
|
|
@@ -645,7 +664,11 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
645
664
|
if (!callFromChild) {
|
|
646
665
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
647
666
|
for (var property in data) {
|
|
648
|
-
if
|
|
667
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
668
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
669
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
670
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
671
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
649
672
|
obj.$unknownFields[property] = data[property];
|
|
650
673
|
}
|
|
651
674
|
}
|
|
@@ -653,6 +676,19 @@ var NetworkSecurityPolicy = exports["default"] = /*#__PURE__*/function (_Externa
|
|
|
653
676
|
}
|
|
654
677
|
return obj;
|
|
655
678
|
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Converts a given snake_case string to camelCase.
|
|
682
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
683
|
+
* @returns {string} - The converted string in camelCase format.
|
|
684
|
+
*/
|
|
685
|
+
}, {
|
|
686
|
+
key: "snakeToCamel",
|
|
687
|
+
value: function snakeToCamel(snakeStr) {
|
|
688
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
689
|
+
return match[1].toUpperCase();
|
|
690
|
+
});
|
|
691
|
+
}
|
|
656
692
|
}]);
|
|
657
693
|
}(_ExternalizableAbstractModel["default"]);
|
|
658
694
|
/**
|
|
@@ -674,6 +710,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
674
710
|
}
|
|
675
711
|
return obj;
|
|
676
712
|
}
|
|
713
|
+
/*
|
|
714
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
715
|
+
* @param {Object} obj Object to serialize
|
|
716
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
717
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
718
|
+
*/
|
|
719
|
+
function _handleDateType(obj, isDateOnly) {
|
|
720
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
721
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
722
|
+
}
|
|
723
|
+
return obj;
|
|
724
|
+
}
|
|
677
725
|
NetworkSecurityPolicy.prototype.name = undefined;
|
|
678
726
|
|
|
679
727
|
/**
|
|
@@ -728,23 +776,42 @@ NetworkSecurityPolicy.prototype.vpcReferences = undefined;
|
|
|
728
776
|
NetworkSecurityPolicy.prototype.securedGroups = undefined;
|
|
729
777
|
|
|
730
778
|
/**
|
|
779
|
+
* The timestamp when the Flow Network Security policy was last updated.
|
|
731
780
|
* @memberof NetworkSecurityPolicy
|
|
732
781
|
*/
|
|
733
782
|
NetworkSecurityPolicy.prototype.lastUpdateTime = undefined;
|
|
734
783
|
|
|
735
784
|
/**
|
|
785
|
+
* The timestamp when the Flow Network Security policy was created.
|
|
736
786
|
* @memberof NetworkSecurityPolicy
|
|
737
787
|
*/
|
|
738
788
|
NetworkSecurityPolicy.prototype.creationTime = undefined;
|
|
739
789
|
|
|
740
790
|
/**
|
|
791
|
+
* A flag indicating whether the Flow Network Security policy is system-defined or not.
|
|
741
792
|
* @memberof NetworkSecurityPolicy
|
|
742
793
|
*/
|
|
743
794
|
NetworkSecurityPolicy.prototype.isSystemDefined = undefined;
|
|
744
795
|
|
|
745
796
|
/**
|
|
797
|
+
* The extId of the user responsible for creating the Network Security Policy.
|
|
746
798
|
* @memberof NetworkSecurityPolicy
|
|
747
799
|
*/
|
|
748
800
|
NetworkSecurityPolicy.prototype.createdBy = undefined;
|
|
749
801
|
|
|
802
|
+
/**
|
|
803
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
804
|
+
* @memberof NetworkSecurityPolicy
|
|
805
|
+
*/
|
|
806
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
807
|
+
/**
|
|
808
|
+
* 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.
|
|
809
|
+
* @memberof NetworkSecurityPolicy
|
|
810
|
+
*/
|
|
811
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
812
|
+
/**
|
|
813
|
+
* 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).
|
|
814
|
+
* @memberof NetworkSecurityPolicy
|
|
815
|
+
*/
|
|
816
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
750
817
|
// Implement OneOfmicroseg.v4.config.GetNetworkSecurityPolicyApiResponsedata interface:
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The NetworkSecurityPolicyRule model module.
|
|
3
3
|
* @module Ntnx/NetworkSecurityPolicyRule
|
|
4
|
-
* @version 4.0.1
|
|
4
|
+
* @version 4.0.1
|
|
5
5
|
* @class NetworkSecurityPolicyRule
|
|
6
|
+
* @extends ExternalizableAbstractModel
|
|
6
7
|
*
|
|
7
8
|
* @param { RuleType } type
|
|
8
|
-
* @param { TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec } spec
|
|
9
|
+
* @param { TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec } spec The type of the Flow Network Security policy rule spec.
|
|
9
10
|
*
|
|
10
11
|
*/
|
|
11
12
|
export default class NetworkSecurityPolicyRule extends ExternalizableAbstractModel {
|
|
@@ -15,56 +16,63 @@ export default class NetworkSecurityPolicyRule extends ExternalizableAbstractMod
|
|
|
15
16
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
16
17
|
*
|
|
17
18
|
* @param { RuleType } type
|
|
18
|
-
* @param { TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec } spec
|
|
19
|
+
* @param { TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec } spec The type of the Flow Network Security policy rule spec.
|
|
19
20
|
*
|
|
20
21
|
*/
|
|
21
|
-
constructor(type: RuleType, spec: TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec);
|
|
22
|
+
constructor(type: RuleType, spec: TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec);
|
|
22
23
|
type: string;
|
|
23
|
-
spec: ApplicationRuleSpec | IntraEntityGroupRuleSpec | TwoEnvIsolationRuleSpec;
|
|
24
|
+
spec: ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec | TwoEnvIsolationRuleSpec;
|
|
24
25
|
/**
|
|
25
26
|
* Returns A user defined annotation for a rule.
|
|
26
|
-
* @return {}
|
|
27
|
+
* @return {string}
|
|
27
28
|
*/
|
|
28
|
-
getDescription():
|
|
29
|
+
getDescription(): string;
|
|
29
30
|
/**
|
|
30
31
|
* Sets A user defined annotation for a rule.
|
|
31
|
-
* @param {} description A user defined annotation for a rule.
|
|
32
|
+
* @param {string} description A user defined annotation for a rule.
|
|
32
33
|
*/
|
|
33
|
-
setDescription(description:
|
|
34
|
-
description:
|
|
34
|
+
setDescription(description: string): void;
|
|
35
|
+
description: string;
|
|
35
36
|
/**
|
|
36
|
-
* @return {}
|
|
37
|
+
* @return {RuleType}
|
|
37
38
|
*/
|
|
38
|
-
getType():
|
|
39
|
+
getType(): RuleType;
|
|
39
40
|
/**
|
|
40
|
-
* @param {} type
|
|
41
|
+
* @param {RuleType} type
|
|
41
42
|
*/
|
|
42
|
-
setType(type:
|
|
43
|
+
setType(type: RuleType): void;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* Returns The type of the Flow Network Security policy rule spec.
|
|
46
|
+
* @return {TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec}
|
|
45
47
|
*/
|
|
46
|
-
getSpec():
|
|
48
|
+
getSpec(): TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec;
|
|
47
49
|
/**
|
|
48
|
-
*
|
|
50
|
+
* Sets The type of the Flow Network Security policy rule spec.
|
|
51
|
+
* @param {TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec} spec The type of the Flow Network Security policy rule spec.
|
|
49
52
|
*/
|
|
50
|
-
setSpec(spec:
|
|
53
|
+
setSpec(spec: TwoEnvIsolationRuleSpec | ApplicationRuleSpec | IntraEntityGroupRuleSpec | MultiEnvIsolationRuleSpec): void;
|
|
51
54
|
toJson(forMutation: any): {
|
|
52
|
-
$reserved:
|
|
53
|
-
$fv: string;
|
|
54
|
-
};
|
|
55
|
+
$reserved: any;
|
|
55
56
|
$objectType: string;
|
|
56
|
-
$unknownFields:
|
|
57
|
-
tenantId?:
|
|
58
|
-
links?:
|
|
59
|
-
|
|
57
|
+
$unknownFields: any;
|
|
58
|
+
tenantId?: string;
|
|
59
|
+
links?: {
|
|
60
|
+
$reserved: any;
|
|
61
|
+
$objectType: string;
|
|
62
|
+
$unknownFields: any;
|
|
63
|
+
rel?: string;
|
|
64
|
+
href?: string;
|
|
65
|
+
}[];
|
|
66
|
+
extId?: string;
|
|
60
67
|
spec?: any;
|
|
61
|
-
type?:
|
|
62
|
-
description?:
|
|
68
|
+
type?: string;
|
|
69
|
+
description?: string;
|
|
63
70
|
};
|
|
64
71
|
#private;
|
|
65
72
|
}
|
|
66
73
|
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|
|
67
74
|
import ApplicationRuleSpec from "./ApplicationRuleSpec";
|
|
68
75
|
import IntraEntityGroupRuleSpec from "./IntraEntityGroupRuleSpec";
|
|
76
|
+
import MultiEnvIsolationRuleSpec from "./MultiEnvIsolationRuleSpec";
|
|
69
77
|
import TwoEnvIsolationRuleSpec from "./TwoEnvIsolationRuleSpec";
|
|
70
78
|
import RuleType from "./RuleType";
|