@nutanix-scratch/microseg-js-client 4.0.1 → 4.1.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/README.md +21 -20
- package/dist/Ntnx-Microseg-js-client-prod.js +1 -1
- package/dist/Ntnx-Microseg-js-client.js +250 -107
- package/dist/es/ApiClient.d.ts +7 -1
- package/dist/es/ApiClient.js +16 -25
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +3 -3
- package/dist/es/apis/addressgroups-endpoints.d.ts +3 -21
- package/dist/es/apis/addressgroups-endpoints.js +11 -28
- package/dist/es/apis/directoryserverconfigs-endpoints.d.ts +3 -31
- package/dist/es/apis/directoryserverconfigs-endpoints.js +19 -45
- package/dist/es/apis/entitygroups-endpoints.d.ts +84 -0
- package/dist/es/apis/entitygroups-endpoints.js +281 -0
- package/dist/es/apis/networksecuritypolicies-endpoints.d.ts +10 -53
- package/dist/es/apis/networksecuritypolicies-endpoints.js +34 -68
- package/dist/es/apis/servicegroups-endpoints.d.ts +3 -25
- package/dist/es/apis/servicegroups-endpoints.js +11 -32
- package/dist/es/index.d.ts +27 -1
- package/dist/es/index.js +104 -0
- package/dist/es/models/common/v1/config/FQDN.d.ts +1 -1
- package/dist/es/models/common/v1/config/FQDN.js +5 -5
- package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/es/models/common/v1/config/Flag.js +3 -3
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +1 -1
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +3 -3
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +1 -1
- package/dist/es/models/common/v1/config/IPv4Address.js +3 -3
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +1 -1
- package/dist/es/models/common/v1/config/IPv6Address.js +3 -3
- package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/es/models/common/v1/config/KVPair.js +3 -3
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/es/models/common/v1/config/Message.d.ts +1 -1
- package/dist/es/models/common/v1/config/Message.js +3 -3
- package/dist/es/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/es/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiLink.js +3 -3
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/es/models/microseg/v4/config/AdInfo.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/AdInfo.js +4 -4
- package/dist/es/models/microseg/v4/config/AdStatus.js +2 -2
- package/dist/es/models/microseg/v4/config/AddressGroup.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/AddressGroup.js +9 -9
- package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +3 -1
- package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.js +4 -4
- package/dist/es/models/microseg/v4/config/AllowType.js +2 -2
- package/dist/es/models/microseg/v4/config/AllowedConfig.d.ts +61 -0
- package/dist/es/models/microseg/v4/config/AllowedConfig.js +291 -0
- package/dist/es/models/microseg/v4/config/AllowedEntity.d.ts +86 -0
- package/dist/es/models/microseg/v4/config/AllowedEntity.js +406 -0
- package/dist/es/models/microseg/v4/config/AllowedSelectBy.d.ts +19 -0
- package/dist/es/models/microseg/v4/config/AllowedSelectBy.js +97 -0
- package/dist/es/models/microseg/v4/config/AllowedType.d.ts +19 -0
- package/dist/es/models/microseg/v4/config/AllowedType.js +115 -0
- package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.d.ts +81 -12
- package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.js +281 -16
- package/dist/es/models/microseg/v4/config/CategoryAssociatedEntityType.d.ts +19 -0
- package/dist/es/models/microseg/v4/config/CategoryAssociatedEntityType.js +91 -0
- package/dist/es/models/microseg/v4/config/CategoryMapping.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CategoryMapping.js +5 -5
- package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/CreateEntityGroupApiResponse.d.ts +99 -0
- package/dist/es/models/microseg/v4/config/CreateEntityGroupApiResponse.js +343 -0
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/DeleteEntityGroupApiResponse.d.ts +99 -0
- package/dist/es/models/microseg/v4/config/DeleteEntityGroupApiResponse.js +343 -0
- package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/DirectoryServerConfig.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/DirectoryServerConfig.js +5 -5
- package/dist/es/models/microseg/v4/config/EntityGroup.d.ts +107 -0
- package/dist/es/models/microseg/v4/config/EntityGroup.js +450 -0
- package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/GetEntityGroupApiResponse.d.ts +102 -0
- package/dist/es/models/microseg/v4/config/GetEntityGroupApiResponse.js +343 -0
- package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/IPv4Range.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/IPv4Range.js +4 -4
- package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.js +4 -4
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleAction.js +2 -2
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +93 -8
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +285 -17
- package/dist/es/models/microseg/v4/config/IsolationGroup.d.ts +25 -12
- package/dist/es/models/microseg/v4/config/IsolationGroup.js +89 -17
- package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/ListEntityGroupsApiResponse.d.ts +99 -0
- package/dist/es/models/microseg/v4/config/ListEntityGroupsApiResponse.js +365 -0
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/MatchEntity.js +2 -2
- package/dist/es/models/microseg/v4/config/MatchField.js +2 -2
- package/dist/es/models/microseg/v4/config/MatchType.js +2 -2
- package/dist/es/models/microseg/v4/config/MatchingCriteria.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/MatchingCriteria.js +4 -4
- package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +4 -4
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +43 -7
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.js +157 -17
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.d.ts +52 -0
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.js +285 -0
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.js +5 -5
- package/dist/es/models/microseg/v4/config/RuleType.js +12 -6
- package/dist/es/models/microseg/v4/config/SecurityPolicyScope.js +18 -6
- package/dist/es/models/microseg/v4/config/SecurityPolicyState.js +2 -2
- package/dist/es/models/microseg/v4/config/SecurityPolicyType.js +10 -4
- package/dist/es/models/microseg/v4/config/ServiceGroup.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/ServiceGroup.js +5 -5
- package/dist/es/models/microseg/v4/config/SyncPolicy.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/SyncPolicy.js +5 -5
- package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.js +4 -4
- package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +4 -4
- package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.js +4 -4
- package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/UpdateEntityGroupApiResponse.d.ts +99 -0
- package/dist/es/models/microseg/v4/config/UpdateEntityGroupApiResponse.js +343 -0
- package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +5 -5
- package/dist/es/models/microseg/v4/error/AppMessage.d.ts +4 -4
- package/dist/es/models/microseg/v4/error/AppMessage.js +8 -8
- package/dist/es/models/microseg/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/es/models/microseg/v4/error/ErrorResponse.js +9 -4
- package/dist/es/models/microseg/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/es/models/microseg/v4/error/SchemaValidationError.js +4 -4
- package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/es/models/microseg/v4/operation/DryRunSpec.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/DryRunSpec.js +4 -4
- package/dist/es/models/microseg/v4/operation/DryRunSummary.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/DryRunSummary.js +5 -5
- package/dist/es/models/microseg/v4/operation/PolicyCount.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/PolicyCount.js +4 -4
- package/dist/es/models/microseg/v4/operation/PolicyCountByType.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/PolicyCountByType.js +4 -4
- package/dist/es/models/microseg/v4/operation/PolicyMetadata.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/PolicyMetadata.js +4 -4
- package/dist/es/models/microseg/v4/operation/PolicyPreview.d.ts +7 -1
- package/dist/es/models/microseg/v4/operation/PolicyPreview.js +5 -5
- package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.js +4 -4
- package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.js +4 -4
- package/dist/es/models/microseg/v4/operation/SecurityPolicyType.js +2 -2
- package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.js +4 -4
- package/dist/es/models/microseg/v4/operation/TotalPolicyCount.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/TotalPolicyCount.js +4 -4
- package/dist/es/models/microseg/v4/operation/UpgradeJob.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/UpgradeJob.js +4 -4
- package/dist/es/models/microseg/v4/operation/UpgradeSpec.d.ts +1 -1
- package/dist/es/models/microseg/v4/operation/UpgradeSpec.js +4 -4
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/es/models/prism/v4/config/TaskReference.js +11 -8
- package/dist/es/models/validation/ValidationError.js +2 -2
- package/dist/es/utils/ValidationUtils.js +2 -2
- package/dist/lib/ApiClient.d.ts +7 -1
- package/dist/lib/ApiClient.js +16 -25
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +3 -3
- package/dist/lib/apis/addressgroups-endpoints.d.ts +3 -21
- package/dist/lib/apis/addressgroups-endpoints.js +11 -28
- package/dist/lib/apis/directoryserverconfigs-endpoints.d.ts +3 -31
- package/dist/lib/apis/directoryserverconfigs-endpoints.js +19 -45
- package/dist/lib/apis/entitygroups-endpoints.d.ts +84 -0
- package/dist/lib/apis/entitygroups-endpoints.js +281 -0
- package/dist/lib/apis/networksecuritypolicies-endpoints.d.ts +10 -53
- package/dist/lib/apis/networksecuritypolicies-endpoints.js +34 -68
- package/dist/lib/apis/servicegroups-endpoints.d.ts +3 -25
- package/dist/lib/apis/servicegroups-endpoints.js +11 -32
- package/dist/lib/index.d.ts +27 -1
- package/dist/lib/index.js +104 -0
- package/dist/lib/models/common/v1/config/FQDN.d.ts +1 -1
- package/dist/lib/models/common/v1/config/FQDN.js +5 -5
- package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Flag.js +3 -3
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +1 -1
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +3 -3
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +1 -1
- package/dist/lib/models/common/v1/config/IPv4Address.js +3 -3
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +1 -1
- package/dist/lib/models/common/v1/config/IPv6Address.js +3 -3
- package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/lib/models/common/v1/config/KVPair.js +3 -3
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Message.js +3 -3
- package/dist/lib/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiLink.js +3 -3
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/lib/models/microseg/v4/config/AdInfo.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/AdInfo.js +4 -4
- package/dist/lib/models/microseg/v4/config/AdStatus.js +2 -2
- package/dist/lib/models/microseg/v4/config/AddressGroup.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/AddressGroup.js +9 -9
- package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +3 -1
- package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.js +4 -4
- package/dist/lib/models/microseg/v4/config/AllowType.js +2 -2
- package/dist/lib/models/microseg/v4/config/AllowedConfig.d.ts +61 -0
- package/dist/lib/models/microseg/v4/config/AllowedConfig.js +291 -0
- package/dist/lib/models/microseg/v4/config/AllowedEntity.d.ts +86 -0
- package/dist/lib/models/microseg/v4/config/AllowedEntity.js +406 -0
- package/dist/lib/models/microseg/v4/config/AllowedSelectBy.d.ts +19 -0
- package/dist/lib/models/microseg/v4/config/AllowedSelectBy.js +97 -0
- package/dist/lib/models/microseg/v4/config/AllowedType.d.ts +19 -0
- package/dist/lib/models/microseg/v4/config/AllowedType.js +115 -0
- package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.d.ts +81 -12
- package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.js +281 -16
- package/dist/lib/models/microseg/v4/config/CategoryAssociatedEntityType.d.ts +19 -0
- package/dist/lib/models/microseg/v4/config/CategoryAssociatedEntityType.js +91 -0
- package/dist/lib/models/microseg/v4/config/CategoryMapping.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CategoryMapping.js +5 -5
- package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/CreateEntityGroupApiResponse.d.ts +99 -0
- package/dist/lib/models/microseg/v4/config/CreateEntityGroupApiResponse.js +343 -0
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/DeleteEntityGroupApiResponse.d.ts +99 -0
- package/dist/lib/models/microseg/v4/config/DeleteEntityGroupApiResponse.js +343 -0
- package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.js +5 -5
- package/dist/lib/models/microseg/v4/config/EntityGroup.d.ts +107 -0
- package/dist/lib/models/microseg/v4/config/EntityGroup.js +450 -0
- package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/GetEntityGroupApiResponse.d.ts +102 -0
- package/dist/lib/models/microseg/v4/config/GetEntityGroupApiResponse.js +343 -0
- package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/IPv4Range.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/IPv4Range.js +4 -4
- package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.js +4 -4
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleAction.js +2 -2
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +93 -8
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +285 -17
- package/dist/lib/models/microseg/v4/config/IsolationGroup.d.ts +25 -12
- package/dist/lib/models/microseg/v4/config/IsolationGroup.js +89 -17
- package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/ListEntityGroupsApiResponse.d.ts +99 -0
- package/dist/lib/models/microseg/v4/config/ListEntityGroupsApiResponse.js +365 -0
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/MatchEntity.js +2 -2
- package/dist/lib/models/microseg/v4/config/MatchField.js +2 -2
- package/dist/lib/models/microseg/v4/config/MatchType.js +2 -2
- package/dist/lib/models/microseg/v4/config/MatchingCriteria.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/MatchingCriteria.js +4 -4
- package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +4 -4
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +43 -7
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.js +157 -17
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.d.ts +52 -0
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyExportSpec.js +285 -0
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.js +5 -5
- package/dist/lib/models/microseg/v4/config/RuleType.js +12 -6
- package/dist/lib/models/microseg/v4/config/SecurityPolicyScope.js +18 -6
- package/dist/lib/models/microseg/v4/config/SecurityPolicyState.js +2 -2
- package/dist/lib/models/microseg/v4/config/SecurityPolicyType.js +10 -4
- package/dist/lib/models/microseg/v4/config/ServiceGroup.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/ServiceGroup.js +5 -5
- package/dist/lib/models/microseg/v4/config/SyncPolicy.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/SyncPolicy.js +5 -5
- package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.js +4 -4
- package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +4 -4
- package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.js +4 -4
- package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/UpdateEntityGroupApiResponse.d.ts +99 -0
- package/dist/lib/models/microseg/v4/config/UpdateEntityGroupApiResponse.js +343 -0
- package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +5 -5
- package/dist/lib/models/microseg/v4/error/AppMessage.d.ts +4 -4
- package/dist/lib/models/microseg/v4/error/AppMessage.js +8 -8
- package/dist/lib/models/microseg/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/lib/models/microseg/v4/error/ErrorResponse.js +9 -4
- package/dist/lib/models/microseg/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/lib/models/microseg/v4/error/SchemaValidationError.js +4 -4
- package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/lib/models/microseg/v4/operation/DryRunSpec.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/DryRunSpec.js +4 -4
- package/dist/lib/models/microseg/v4/operation/DryRunSummary.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/DryRunSummary.js +5 -5
- package/dist/lib/models/microseg/v4/operation/PolicyCount.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/PolicyCount.js +4 -4
- package/dist/lib/models/microseg/v4/operation/PolicyCountByType.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/PolicyCountByType.js +4 -4
- package/dist/lib/models/microseg/v4/operation/PolicyMetadata.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/PolicyMetadata.js +4 -4
- package/dist/lib/models/microseg/v4/operation/PolicyPreview.d.ts +7 -1
- package/dist/lib/models/microseg/v4/operation/PolicyPreview.js +5 -5
- package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.js +4 -4
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.js +4 -4
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyType.js +2 -2
- package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.js +4 -4
- package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.js +4 -4
- package/dist/lib/models/microseg/v4/operation/UpgradeJob.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/UpgradeJob.js +4 -4
- package/dist/lib/models/microseg/v4/operation/UpgradeSpec.d.ts +1 -1
- package/dist/lib/models/microseg/v4/operation/UpgradeSpec.js +4 -4
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/lib/models/prism/v4/config/TaskReference.js +11 -8
- package/dist/lib/models/validation/ValidationError.js +2 -2
- package/dist/lib/utils/ValidationUtils.js +2 -2
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
|
|
8
8
|
var _AllowType = _interopRequireDefault(require("./AllowType"));
|
|
9
|
+
var _CategoryAssociatedEntityType = _interopRequireDefault(require("./CategoryAssociatedEntityType"));
|
|
9
10
|
var _IcmpTypeCodeSpec = _interopRequireDefault(require("./IcmpTypeCodeSpec"));
|
|
10
11
|
var _TcpPortRangeSpec = _interopRequireDefault(require("./TcpPortRangeSpec"));
|
|
11
12
|
var _UdpPortRangeSpec = _interopRequireDefault(require("./UdpPortRangeSpec"));
|
|
@@ -32,11 +33,11 @@ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a
|
|
|
32
33
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
33
34
|
* Nutanix Flow Management APIs
|
|
34
35
|
*
|
|
35
|
-
* OpenAPI spec version: 4.
|
|
36
|
+
* OpenAPI spec version: 4.1.1
|
|
36
37
|
*
|
|
37
38
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
38
39
|
*
|
|
39
|
-
* Open API Dev Platform Codegen version:
|
|
40
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
40
41
|
*
|
|
41
42
|
* Do not edit the class manually.
|
|
42
43
|
*
|
|
@@ -44,10 +45,8 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
44
45
|
/**
|
|
45
46
|
* The ApplicationRuleSpec model module.
|
|
46
47
|
* @module Ntnx/ApplicationRuleSpec
|
|
47
|
-
* @version 4.
|
|
48
|
+
* @version 4.1.1
|
|
48
49
|
* @class ApplicationRuleSpec
|
|
49
|
-
*
|
|
50
|
-
* @param { string[] } securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
51
50
|
*/
|
|
52
51
|
var _ApplicationRuleSpec_brand = /*#__PURE__*/new WeakSet();
|
|
53
52
|
var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
@@ -55,10 +54,8 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
55
54
|
* Constructs a new <code>ApplicationRuleSpec</code>.
|
|
56
55
|
* A rule for specifying allowed traffic for an application.
|
|
57
56
|
* @alias module:Ntnx/ApplicationRuleSpec
|
|
58
|
-
*
|
|
59
|
-
* @param { string[] } securedGroupCategoryReferences A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
60
57
|
*/
|
|
61
|
-
function ApplicationRuleSpec(
|
|
58
|
+
function ApplicationRuleSpec() {
|
|
62
59
|
_classCallCheck(this, ApplicationRuleSpec);
|
|
63
60
|
/*
|
|
64
61
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
@@ -67,11 +64,10 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
64
|
* Otherwise, just returns the input object.
|
|
68
65
|
*/
|
|
69
66
|
_classPrivateMethodInitSpec(this, _ApplicationRuleSpec_brand);
|
|
70
|
-
this.securedGroupCategoryReferences = securedGroupCategoryReferences;
|
|
71
67
|
this.$objectType = "microseg.v4.config.ApplicationRuleSpec";
|
|
72
68
|
/** @type {object<string, any>} */
|
|
73
69
|
this.$reserved = {
|
|
74
|
-
'$fv': "v4.
|
|
70
|
+
'$fv': "v4.r1"
|
|
75
71
|
};
|
|
76
72
|
/** @type {object<string, any>} */
|
|
77
73
|
this.$unknownFields = {};
|
|
@@ -86,13 +82,31 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
82
|
* @return {module:Ntnx/ApplicationRuleSpec} The populated <code>ApplicationRuleSpec</code> instance.
|
|
87
83
|
*/
|
|
88
84
|
return _createClass(ApplicationRuleSpec, [{
|
|
89
|
-
key: "
|
|
85
|
+
key: "getSecuredGroupCategoryAssociatedEntityType",
|
|
90
86
|
value:
|
|
87
|
+
/**
|
|
88
|
+
* @return {CategoryAssociatedEntityType}
|
|
89
|
+
*/
|
|
90
|
+
function getSecuredGroupCategoryAssociatedEntityType() {
|
|
91
|
+
return this.securedGroupCategoryAssociatedEntityType;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @param {CategoryAssociatedEntityType} securedGroupCategoryAssociatedEntityType
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "setSecuredGroupCategoryAssociatedEntityType",
|
|
99
|
+
value: function setSecuredGroupCategoryAssociatedEntityType(securedGroupCategoryAssociatedEntityType) {
|
|
100
|
+
this.securedGroupCategoryAssociatedEntityType = securedGroupCategoryAssociatedEntityType;
|
|
101
|
+
}
|
|
102
|
+
|
|
91
103
|
/**
|
|
92
104
|
* Returns A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
93
105
|
* @return {string[]}
|
|
94
106
|
*/
|
|
95
|
-
|
|
107
|
+
}, {
|
|
108
|
+
key: "getSecuredGroupCategoryReferences",
|
|
109
|
+
value: function getSecuredGroupCategoryReferences() {
|
|
96
110
|
return this.securedGroupCategoryReferences;
|
|
97
111
|
}
|
|
98
112
|
|
|
@@ -106,6 +120,26 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
106
120
|
this.securedGroupCategoryReferences = securedGroupCategoryReferences;
|
|
107
121
|
}
|
|
108
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Returns External identifier of the entity group belonging to the secured group.
|
|
125
|
+
* @return {string}
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "getSecuredGroupEntityGroupReference",
|
|
129
|
+
value: function getSecuredGroupEntityGroupReference() {
|
|
130
|
+
return this.securedGroupEntityGroupReference;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Sets External identifier of the entity group belonging to the secured group.
|
|
135
|
+
* @param {string} securedGroupEntityGroupReference External identifier of the entity group belonging to the secured group.
|
|
136
|
+
*/
|
|
137
|
+
}, {
|
|
138
|
+
key: "setSecuredGroupEntityGroupReference",
|
|
139
|
+
value: function setSecuredGroupEntityGroupReference(securedGroupEntityGroupReference) {
|
|
140
|
+
this.securedGroupEntityGroupReference = securedGroupEntityGroupReference;
|
|
141
|
+
}
|
|
142
|
+
|
|
109
143
|
/**
|
|
110
144
|
* @return {AllowType}
|
|
111
145
|
*/
|
|
@@ -142,6 +176,24 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
142
176
|
this.destAllowSpec = destAllowSpec;
|
|
143
177
|
}
|
|
144
178
|
|
|
179
|
+
/**
|
|
180
|
+
* @return {CategoryAssociatedEntityType}
|
|
181
|
+
*/
|
|
182
|
+
}, {
|
|
183
|
+
key: "getSrcCategoryAssociatedEntityType",
|
|
184
|
+
value: function getSrcCategoryAssociatedEntityType() {
|
|
185
|
+
return this.srcCategoryAssociatedEntityType;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @param {CategoryAssociatedEntityType} srcCategoryAssociatedEntityType
|
|
190
|
+
*/
|
|
191
|
+
}, {
|
|
192
|
+
key: "setSrcCategoryAssociatedEntityType",
|
|
193
|
+
value: function setSrcCategoryAssociatedEntityType(srcCategoryAssociatedEntityType) {
|
|
194
|
+
this.srcCategoryAssociatedEntityType = srcCategoryAssociatedEntityType;
|
|
195
|
+
}
|
|
196
|
+
|
|
145
197
|
/**
|
|
146
198
|
* Returns List of categories that define a set of network endpoints as inbound.
|
|
147
199
|
* @return {string[]}
|
|
@@ -162,6 +214,44 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
162
214
|
this.srcCategoryReferences = srcCategoryReferences;
|
|
163
215
|
}
|
|
164
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Returns External identifier of the entity group belonging to the source group.
|
|
219
|
+
* @return {string}
|
|
220
|
+
*/
|
|
221
|
+
}, {
|
|
222
|
+
key: "getSrcEntityGroupReference",
|
|
223
|
+
value: function getSrcEntityGroupReference() {
|
|
224
|
+
return this.srcEntityGroupReference;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Sets External identifier of the entity group belonging to the source group.
|
|
229
|
+
* @param {string} srcEntityGroupReference External identifier of the entity group belonging to the source group.
|
|
230
|
+
*/
|
|
231
|
+
}, {
|
|
232
|
+
key: "setSrcEntityGroupReference",
|
|
233
|
+
value: function setSrcEntityGroupReference(srcEntityGroupReference) {
|
|
234
|
+
this.srcEntityGroupReference = srcEntityGroupReference;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @return {CategoryAssociatedEntityType}
|
|
239
|
+
*/
|
|
240
|
+
}, {
|
|
241
|
+
key: "getDestCategoryAssociatedEntityType",
|
|
242
|
+
value: function getDestCategoryAssociatedEntityType() {
|
|
243
|
+
return this.destCategoryAssociatedEntityType;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @param {CategoryAssociatedEntityType} destCategoryAssociatedEntityType
|
|
248
|
+
*/
|
|
249
|
+
}, {
|
|
250
|
+
key: "setDestCategoryAssociatedEntityType",
|
|
251
|
+
value: function setDestCategoryAssociatedEntityType(destCategoryAssociatedEntityType) {
|
|
252
|
+
this.destCategoryAssociatedEntityType = destCategoryAssociatedEntityType;
|
|
253
|
+
}
|
|
254
|
+
|
|
165
255
|
/**
|
|
166
256
|
* Returns List of categories that define a set of network endpoints as outbound.
|
|
167
257
|
* @return {string[]}
|
|
@@ -182,6 +272,26 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
182
272
|
this.destCategoryReferences = destCategoryReferences;
|
|
183
273
|
}
|
|
184
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Returns External identifier of the entity group belonging to the destination group.
|
|
277
|
+
* @return {string}
|
|
278
|
+
*/
|
|
279
|
+
}, {
|
|
280
|
+
key: "getDestEntityGroupReference",
|
|
281
|
+
value: function getDestEntityGroupReference() {
|
|
282
|
+
return this.destEntityGroupReference;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Sets External identifier of the entity group belonging to the destination group.
|
|
287
|
+
* @param {string} destEntityGroupReference External identifier of the entity group belonging to the destination group.
|
|
288
|
+
*/
|
|
289
|
+
}, {
|
|
290
|
+
key: "setDestEntityGroupReference",
|
|
291
|
+
value: function setDestEntityGroupReference(destEntityGroupReference) {
|
|
292
|
+
this.destEntityGroupReference = destEntityGroupReference;
|
|
293
|
+
}
|
|
294
|
+
|
|
185
295
|
/**
|
|
186
296
|
* @return {IPv4Address}
|
|
187
297
|
*/
|
|
@@ -373,6 +483,26 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
373
483
|
value: function setNetworkFunctionChainReference(networkFunctionChainReference) {
|
|
374
484
|
this.networkFunctionChainReference = networkFunctionChainReference;
|
|
375
485
|
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Returns A reference to the network function in the rule.
|
|
489
|
+
* @return {string}
|
|
490
|
+
*/
|
|
491
|
+
}, {
|
|
492
|
+
key: "getNetworkFunctionReference",
|
|
493
|
+
value: function getNetworkFunctionReference() {
|
|
494
|
+
return this.networkFunctionReference;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Sets A reference to the network function in the rule.
|
|
499
|
+
* @param {string} networkFunctionReference A reference to the network function in the rule.
|
|
500
|
+
*/
|
|
501
|
+
}, {
|
|
502
|
+
key: "setNetworkFunctionReference",
|
|
503
|
+
value: function setNetworkFunctionReference(networkFunctionReference) {
|
|
504
|
+
this.networkFunctionReference = networkFunctionReference;
|
|
505
|
+
}
|
|
376
506
|
}, {
|
|
377
507
|
key: "get$Reserved",
|
|
378
508
|
value: function get$Reserved() {
|
|
@@ -392,16 +522,28 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
392
522
|
key: "toJson",
|
|
393
523
|
value: function toJson(forMutation) {
|
|
394
524
|
if (forMutation === false) {
|
|
395
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.
|
|
525
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getSecuredGroupCategoryAssociatedEntityType() !== 'undefined' && this.getSecuredGroupCategoryAssociatedEntityType() !== null ? {
|
|
526
|
+
'securedGroupCategoryAssociatedEntityType': this.getSecuredGroupCategoryAssociatedEntityType()
|
|
527
|
+
} : {}), typeof this.getSecuredGroupCategoryReferences() !== 'undefined' && this.getSecuredGroupCategoryReferences() !== null ? {
|
|
396
528
|
'securedGroupCategoryReferences': this.getSecuredGroupCategoryReferences()
|
|
529
|
+
} : {}), typeof this.getSecuredGroupEntityGroupReference() !== 'undefined' && this.getSecuredGroupEntityGroupReference() !== null ? {
|
|
530
|
+
'securedGroupEntityGroupReference': this.getSecuredGroupEntityGroupReference()
|
|
397
531
|
} : {}), typeof this.getSrcAllowSpec() !== 'undefined' && this.getSrcAllowSpec() !== null ? {
|
|
398
532
|
'srcAllowSpec': this.getSrcAllowSpec()
|
|
399
533
|
} : {}), typeof this.getDestAllowSpec() !== 'undefined' && this.getDestAllowSpec() !== null ? {
|
|
400
534
|
'destAllowSpec': this.getDestAllowSpec()
|
|
535
|
+
} : {}), typeof this.getSrcCategoryAssociatedEntityType() !== 'undefined' && this.getSrcCategoryAssociatedEntityType() !== null ? {
|
|
536
|
+
'srcCategoryAssociatedEntityType': this.getSrcCategoryAssociatedEntityType()
|
|
401
537
|
} : {}), typeof this.getSrcCategoryReferences() !== 'undefined' && this.getSrcCategoryReferences() !== null ? {
|
|
402
538
|
'srcCategoryReferences': this.getSrcCategoryReferences()
|
|
539
|
+
} : {}), typeof this.getSrcEntityGroupReference() !== 'undefined' && this.getSrcEntityGroupReference() !== null ? {
|
|
540
|
+
'srcEntityGroupReference': this.getSrcEntityGroupReference()
|
|
541
|
+
} : {}), typeof this.getDestCategoryAssociatedEntityType() !== 'undefined' && this.getDestCategoryAssociatedEntityType() !== null ? {
|
|
542
|
+
'destCategoryAssociatedEntityType': this.getDestCategoryAssociatedEntityType()
|
|
403
543
|
} : {}), typeof this.getDestCategoryReferences() !== 'undefined' && this.getDestCategoryReferences() !== null ? {
|
|
404
544
|
'destCategoryReferences': this.getDestCategoryReferences()
|
|
545
|
+
} : {}), typeof this.getDestEntityGroupReference() !== 'undefined' && this.getDestEntityGroupReference() !== null ? {
|
|
546
|
+
'destEntityGroupReference': this.getDestEntityGroupReference()
|
|
405
547
|
} : {}), typeof this.getSrcSubnet() !== 'undefined' && this.getSrcSubnet() !== null ? {
|
|
406
548
|
'srcSubnet': this.getSrcSubnet().toJson(false)
|
|
407
549
|
} : {}), typeof this.getDestSubnet() !== 'undefined' && this.getDestSubnet() !== null ? {
|
|
@@ -428,22 +570,36 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
428
570
|
})
|
|
429
571
|
} : {}), typeof this.getNetworkFunctionChainReference() !== 'undefined' && this.getNetworkFunctionChainReference() !== null ? {
|
|
430
572
|
'networkFunctionChainReference': this.getNetworkFunctionChainReference()
|
|
573
|
+
} : {}), typeof this.getNetworkFunctionReference() !== 'undefined' && this.getNetworkFunctionReference() !== null ? {
|
|
574
|
+
'networkFunctionReference': this.getNetworkFunctionReference()
|
|
431
575
|
} : {}), {}, {
|
|
432
576
|
'$reserved': this.get$Reserved(),
|
|
433
577
|
'$objectType': this.get$ObjectType(),
|
|
434
578
|
'$unknownFields': this.get$UnknownFields()
|
|
435
579
|
});
|
|
436
580
|
}
|
|
437
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.
|
|
581
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getSecuredGroupCategoryAssociatedEntityType() !== 'undefined' && this.getSecuredGroupCategoryAssociatedEntityType() !== null ? {
|
|
582
|
+
'securedGroupCategoryAssociatedEntityType': this.getSecuredGroupCategoryAssociatedEntityType()
|
|
583
|
+
} : {}), typeof this.getSecuredGroupCategoryReferences() !== 'undefined' && this.getSecuredGroupCategoryReferences() !== null ? {
|
|
438
584
|
'securedGroupCategoryReferences': this.getSecuredGroupCategoryReferences()
|
|
585
|
+
} : {}), typeof this.getSecuredGroupEntityGroupReference() !== 'undefined' && this.getSecuredGroupEntityGroupReference() !== null ? {
|
|
586
|
+
'securedGroupEntityGroupReference': this.getSecuredGroupEntityGroupReference()
|
|
439
587
|
} : {}), typeof this.getSrcAllowSpec() !== 'undefined' && this.getSrcAllowSpec() !== null ? {
|
|
440
588
|
'srcAllowSpec': this.getSrcAllowSpec()
|
|
441
589
|
} : {}), typeof this.getDestAllowSpec() !== 'undefined' && this.getDestAllowSpec() !== null ? {
|
|
442
590
|
'destAllowSpec': this.getDestAllowSpec()
|
|
591
|
+
} : {}), typeof this.getSrcCategoryAssociatedEntityType() !== 'undefined' && this.getSrcCategoryAssociatedEntityType() !== null ? {
|
|
592
|
+
'srcCategoryAssociatedEntityType': this.getSrcCategoryAssociatedEntityType()
|
|
443
593
|
} : {}), typeof this.getSrcCategoryReferences() !== 'undefined' && this.getSrcCategoryReferences() !== null ? {
|
|
444
594
|
'srcCategoryReferences': this.getSrcCategoryReferences()
|
|
595
|
+
} : {}), typeof this.getSrcEntityGroupReference() !== 'undefined' && this.getSrcEntityGroupReference() !== null ? {
|
|
596
|
+
'srcEntityGroupReference': this.getSrcEntityGroupReference()
|
|
597
|
+
} : {}), typeof this.getDestCategoryAssociatedEntityType() !== 'undefined' && this.getDestCategoryAssociatedEntityType() !== null ? {
|
|
598
|
+
'destCategoryAssociatedEntityType': this.getDestCategoryAssociatedEntityType()
|
|
445
599
|
} : {}), typeof this.getDestCategoryReferences() !== 'undefined' && this.getDestCategoryReferences() !== null ? {
|
|
446
600
|
'destCategoryReferences': this.getDestCategoryReferences()
|
|
601
|
+
} : {}), typeof this.getDestEntityGroupReference() !== 'undefined' && this.getDestEntityGroupReference() !== null ? {
|
|
602
|
+
'destEntityGroupReference': this.getDestEntityGroupReference()
|
|
447
603
|
} : {}), typeof this.getSrcSubnet() !== 'undefined' && this.getSrcSubnet() !== null ? {
|
|
448
604
|
'srcSubnet': this.getSrcSubnet().toJson(false)
|
|
449
605
|
} : {}), typeof this.getDestSubnet() !== 'undefined' && this.getDestSubnet() !== null ? {
|
|
@@ -470,6 +626,8 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
470
626
|
})
|
|
471
627
|
} : {}), typeof this.getNetworkFunctionChainReference() !== 'undefined' && this.getNetworkFunctionChainReference() !== null ? {
|
|
472
628
|
'networkFunctionChainReference': this.getNetworkFunctionChainReference()
|
|
629
|
+
} : {}), typeof this.getNetworkFunctionReference() !== 'undefined' && this.getNetworkFunctionReference() !== null ? {
|
|
630
|
+
'networkFunctionReference': this.getNetworkFunctionReference()
|
|
473
631
|
} : {}), {}, {
|
|
474
632
|
'$reserved': this.get$Reserved(),
|
|
475
633
|
'$objectType': this.get$ObjectType(),
|
|
@@ -483,7 +641,7 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
483
641
|
var propList = [];
|
|
484
642
|
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
485
643
|
//cases validate() and validate(scope)
|
|
486
|
-
propList = [
|
|
644
|
+
propList = [];
|
|
487
645
|
} else if (arguments.length === 1) {
|
|
488
646
|
//case validate(properties)
|
|
489
647
|
propList = arguments[0];
|
|
@@ -511,6 +669,11 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
511
669
|
}, {
|
|
512
670
|
key: "validateProperty",
|
|
513
671
|
value: function validateProperty(scope, property) {
|
|
672
|
+
if (property === "securedGroupCategoryAssociatedEntityType") {
|
|
673
|
+
if (typeof this.securedGroupCategoryAssociatedEntityType === 'undefined' || this.securedGroupCategoryAssociatedEntityType === null) {
|
|
674
|
+
return new _ValidationError["default"]("securedGroupCategoryAssociatedEntityType", "undefined or null");
|
|
675
|
+
}
|
|
676
|
+
}
|
|
514
677
|
if (property === "securedGroupCategoryReferences") {
|
|
515
678
|
if (typeof this.securedGroupCategoryReferences === 'undefined' || this.securedGroupCategoryReferences === null) {
|
|
516
679
|
return new _ValidationError["default"]("securedGroupCategoryReferences", "undefined or null");
|
|
@@ -522,6 +685,14 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
522
685
|
return new _ValidationError["default"]("securedGroupCategoryReferences", "does not satisfy required minItems constraint: 1");
|
|
523
686
|
}
|
|
524
687
|
}
|
|
688
|
+
if (property === "securedGroupEntityGroupReference") {
|
|
689
|
+
if (typeof this.securedGroupEntityGroupReference === 'undefined' || this.securedGroupEntityGroupReference === null) {
|
|
690
|
+
return new _ValidationError["default"]("securedGroupEntityGroupReference", "undefined or null");
|
|
691
|
+
}
|
|
692
|
+
if (!_ValidationUtils["default"].validatePattern(this.securedGroupEntityGroupReference, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
693
|
+
return new _ValidationError["default"]("securedGroupEntityGroupReference", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
694
|
+
}
|
|
695
|
+
}
|
|
525
696
|
if (property === "srcAllowSpec") {
|
|
526
697
|
if (typeof this.srcAllowSpec === 'undefined' || this.srcAllowSpec === null) {
|
|
527
698
|
return new _ValidationError["default"]("srcAllowSpec", "undefined or null");
|
|
@@ -532,6 +703,11 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
532
703
|
return new _ValidationError["default"]("destAllowSpec", "undefined or null");
|
|
533
704
|
}
|
|
534
705
|
}
|
|
706
|
+
if (property === "srcCategoryAssociatedEntityType") {
|
|
707
|
+
if (typeof this.srcCategoryAssociatedEntityType === 'undefined' || this.srcCategoryAssociatedEntityType === null) {
|
|
708
|
+
return new _ValidationError["default"]("srcCategoryAssociatedEntityType", "undefined or null");
|
|
709
|
+
}
|
|
710
|
+
}
|
|
535
711
|
if (property === "srcCategoryReferences") {
|
|
536
712
|
if (typeof this.srcCategoryReferences === 'undefined' || this.srcCategoryReferences === null) {
|
|
537
713
|
return new _ValidationError["default"]("srcCategoryReferences", "undefined or null");
|
|
@@ -543,6 +719,19 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
543
719
|
return new _ValidationError["default"]("srcCategoryReferences", "does not satisfy required minItems constraint: 1");
|
|
544
720
|
}
|
|
545
721
|
}
|
|
722
|
+
if (property === "srcEntityGroupReference") {
|
|
723
|
+
if (typeof this.srcEntityGroupReference === 'undefined' || this.srcEntityGroupReference === null) {
|
|
724
|
+
return new _ValidationError["default"]("srcEntityGroupReference", "undefined or null");
|
|
725
|
+
}
|
|
726
|
+
if (!_ValidationUtils["default"].validatePattern(this.srcEntityGroupReference, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
727
|
+
return new _ValidationError["default"]("srcEntityGroupReference", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if (property === "destCategoryAssociatedEntityType") {
|
|
731
|
+
if (typeof this.destCategoryAssociatedEntityType === 'undefined' || this.destCategoryAssociatedEntityType === null) {
|
|
732
|
+
return new _ValidationError["default"]("destCategoryAssociatedEntityType", "undefined or null");
|
|
733
|
+
}
|
|
734
|
+
}
|
|
546
735
|
if (property === "destCategoryReferences") {
|
|
547
736
|
if (typeof this.destCategoryReferences === 'undefined' || this.destCategoryReferences === null) {
|
|
548
737
|
return new _ValidationError["default"]("destCategoryReferences", "undefined or null");
|
|
@@ -554,6 +743,14 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
554
743
|
return new _ValidationError["default"]("destCategoryReferences", "does not satisfy required minItems constraint: 1");
|
|
555
744
|
}
|
|
556
745
|
}
|
|
746
|
+
if (property === "destEntityGroupReference") {
|
|
747
|
+
if (typeof this.destEntityGroupReference === 'undefined' || this.destEntityGroupReference === null) {
|
|
748
|
+
return new _ValidationError["default"]("destEntityGroupReference", "undefined or null");
|
|
749
|
+
}
|
|
750
|
+
if (!_ValidationUtils["default"].validatePattern(this.destEntityGroupReference, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
751
|
+
return new _ValidationError["default"]("destEntityGroupReference", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
752
|
+
}
|
|
753
|
+
}
|
|
557
754
|
if (property === "srcSubnet") {
|
|
558
755
|
if (typeof this.srcSubnet === 'undefined' || this.srcSubnet === null) {
|
|
559
756
|
return new _ValidationError["default"]("srcSubnet", "undefined or null");
|
|
@@ -631,6 +828,14 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
631
828
|
return new _ValidationError["default"]("networkFunctionChainReference", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
632
829
|
}
|
|
633
830
|
}
|
|
831
|
+
if (property === "networkFunctionReference") {
|
|
832
|
+
if (typeof this.networkFunctionReference === 'undefined' || this.networkFunctionReference === null) {
|
|
833
|
+
return new _ValidationError["default"]("networkFunctionReference", "undefined or null");
|
|
834
|
+
}
|
|
835
|
+
if (!_ValidationUtils["default"].validatePattern(this.networkFunctionReference, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
836
|
+
return new _ValidationError["default"]("networkFunctionReference", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
837
|
+
}
|
|
838
|
+
}
|
|
634
839
|
if (property === "$reserved") {
|
|
635
840
|
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
636
841
|
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
@@ -656,6 +861,9 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
656
861
|
var items, item, i, itemArr, discriminator;
|
|
657
862
|
if (data) {
|
|
658
863
|
obj = obj || new ApplicationRuleSpec();
|
|
864
|
+
if (data.hasOwnProperty('securedGroupCategoryAssociatedEntityType') && data.securedGroupCategoryAssociatedEntityType !== null && data.securedGroupCategoryAssociatedEntityType !== undefined) {
|
|
865
|
+
obj.setSecuredGroupCategoryAssociatedEntityType(_CategoryAssociatedEntityType["default"].constructFromObject(data['securedGroupCategoryAssociatedEntityType']));
|
|
866
|
+
}
|
|
659
867
|
if (data.hasOwnProperty('securedGroupCategoryReferences') && data.securedGroupCategoryReferences !== null && data.securedGroupCategoryReferences !== undefined) {
|
|
660
868
|
itemArr = [];
|
|
661
869
|
items = data.securedGroupCategoryReferences;
|
|
@@ -664,12 +872,18 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
664
872
|
}
|
|
665
873
|
obj.setSecuredGroupCategoryReferences(itemArr);
|
|
666
874
|
}
|
|
875
|
+
if (data.hasOwnProperty('securedGroupEntityGroupReference') && data.securedGroupEntityGroupReference !== null && data.securedGroupEntityGroupReference !== undefined) {
|
|
876
|
+
obj.setSecuredGroupEntityGroupReference(data['securedGroupEntityGroupReference']);
|
|
877
|
+
}
|
|
667
878
|
if (data.hasOwnProperty('srcAllowSpec') && data.srcAllowSpec !== null && data.srcAllowSpec !== undefined) {
|
|
668
879
|
obj.setSrcAllowSpec(_AllowType["default"].constructFromObject(data['srcAllowSpec']));
|
|
669
880
|
}
|
|
670
881
|
if (data.hasOwnProperty('destAllowSpec') && data.destAllowSpec !== null && data.destAllowSpec !== undefined) {
|
|
671
882
|
obj.setDestAllowSpec(_AllowType["default"].constructFromObject(data['destAllowSpec']));
|
|
672
883
|
}
|
|
884
|
+
if (data.hasOwnProperty('srcCategoryAssociatedEntityType') && data.srcCategoryAssociatedEntityType !== null && data.srcCategoryAssociatedEntityType !== undefined) {
|
|
885
|
+
obj.setSrcCategoryAssociatedEntityType(_CategoryAssociatedEntityType["default"].constructFromObject(data['srcCategoryAssociatedEntityType']));
|
|
886
|
+
}
|
|
673
887
|
if (data.hasOwnProperty('srcCategoryReferences') && data.srcCategoryReferences !== null && data.srcCategoryReferences !== undefined) {
|
|
674
888
|
itemArr = [];
|
|
675
889
|
items = data.srcCategoryReferences;
|
|
@@ -678,6 +892,12 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
678
892
|
}
|
|
679
893
|
obj.setSrcCategoryReferences(itemArr);
|
|
680
894
|
}
|
|
895
|
+
if (data.hasOwnProperty('srcEntityGroupReference') && data.srcEntityGroupReference !== null && data.srcEntityGroupReference !== undefined) {
|
|
896
|
+
obj.setSrcEntityGroupReference(data['srcEntityGroupReference']);
|
|
897
|
+
}
|
|
898
|
+
if (data.hasOwnProperty('destCategoryAssociatedEntityType') && data.destCategoryAssociatedEntityType !== null && data.destCategoryAssociatedEntityType !== undefined) {
|
|
899
|
+
obj.setDestCategoryAssociatedEntityType(_CategoryAssociatedEntityType["default"].constructFromObject(data['destCategoryAssociatedEntityType']));
|
|
900
|
+
}
|
|
681
901
|
if (data.hasOwnProperty('destCategoryReferences') && data.destCategoryReferences !== null && data.destCategoryReferences !== undefined) {
|
|
682
902
|
itemArr = [];
|
|
683
903
|
items = data.destCategoryReferences;
|
|
@@ -686,6 +906,9 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
686
906
|
}
|
|
687
907
|
obj.setDestCategoryReferences(itemArr);
|
|
688
908
|
}
|
|
909
|
+
if (data.hasOwnProperty('destEntityGroupReference') && data.destEntityGroupReference !== null && data.destEntityGroupReference !== undefined) {
|
|
910
|
+
obj.setDestEntityGroupReference(data['destEntityGroupReference']);
|
|
911
|
+
}
|
|
689
912
|
if (data.hasOwnProperty('srcSubnet') && data.srcSubnet !== null && data.srcSubnet !== undefined) {
|
|
690
913
|
obj.setSrcSubnet(_IPv4Address["default"].constructFromObject(data['srcSubnet']));
|
|
691
914
|
}
|
|
@@ -749,6 +972,9 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
749
972
|
if (data.hasOwnProperty('networkFunctionChainReference') && data.networkFunctionChainReference !== null && data.networkFunctionChainReference !== undefined) {
|
|
750
973
|
obj.setNetworkFunctionChainReference(data['networkFunctionChainReference']);
|
|
751
974
|
}
|
|
975
|
+
if (data.hasOwnProperty('networkFunctionReference') && data.networkFunctionReference !== null && data.networkFunctionReference !== undefined) {
|
|
976
|
+
obj.setNetworkFunctionReference(data['networkFunctionReference']);
|
|
977
|
+
}
|
|
752
978
|
if (data.hasOwnProperty('$reserved')) {
|
|
753
979
|
obj.$reserved = data['$reserved'];
|
|
754
980
|
}
|
|
@@ -789,7 +1015,6 @@ var ApplicationRuleSpec = exports["default"] = /*#__PURE__*/function () {
|
|
|
789
1015
|
}]);
|
|
790
1016
|
}();
|
|
791
1017
|
/**
|
|
792
|
-
* A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
793
1018
|
* @memberof ApplicationRuleSpec
|
|
794
1019
|
*/
|
|
795
1020
|
function _toJsonMapType(obj, forMutation) {
|
|
@@ -819,8 +1044,20 @@ function _handleDateType(obj, isDateOnly) {
|
|
|
819
1044
|
}
|
|
820
1045
|
return obj;
|
|
821
1046
|
}
|
|
1047
|
+
ApplicationRuleSpec.prototype.securedGroupCategoryAssociatedEntityType = undefined;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* A set of network endpoints which is protected by a Network Security Policy and defined as a list of categories.
|
|
1051
|
+
* @memberof ApplicationRuleSpec
|
|
1052
|
+
*/
|
|
822
1053
|
ApplicationRuleSpec.prototype.securedGroupCategoryReferences = undefined;
|
|
823
1054
|
|
|
1055
|
+
/**
|
|
1056
|
+
* External identifier of the entity group belonging to the secured group.
|
|
1057
|
+
* @memberof ApplicationRuleSpec
|
|
1058
|
+
*/
|
|
1059
|
+
ApplicationRuleSpec.prototype.securedGroupEntityGroupReference = undefined;
|
|
1060
|
+
|
|
824
1061
|
/**
|
|
825
1062
|
* @memberof ApplicationRuleSpec
|
|
826
1063
|
*/
|
|
@@ -831,18 +1068,40 @@ ApplicationRuleSpec.prototype.srcAllowSpec = undefined;
|
|
|
831
1068
|
*/
|
|
832
1069
|
ApplicationRuleSpec.prototype.destAllowSpec = undefined;
|
|
833
1070
|
|
|
1071
|
+
/**
|
|
1072
|
+
* @memberof ApplicationRuleSpec
|
|
1073
|
+
*/
|
|
1074
|
+
ApplicationRuleSpec.prototype.srcCategoryAssociatedEntityType = undefined;
|
|
1075
|
+
|
|
834
1076
|
/**
|
|
835
1077
|
* List of categories that define a set of network endpoints as inbound.
|
|
836
1078
|
* @memberof ApplicationRuleSpec
|
|
837
1079
|
*/
|
|
838
1080
|
ApplicationRuleSpec.prototype.srcCategoryReferences = undefined;
|
|
839
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* External identifier of the entity group belonging to the source group.
|
|
1084
|
+
* @memberof ApplicationRuleSpec
|
|
1085
|
+
*/
|
|
1086
|
+
ApplicationRuleSpec.prototype.srcEntityGroupReference = undefined;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @memberof ApplicationRuleSpec
|
|
1090
|
+
*/
|
|
1091
|
+
ApplicationRuleSpec.prototype.destCategoryAssociatedEntityType = undefined;
|
|
1092
|
+
|
|
840
1093
|
/**
|
|
841
1094
|
* List of categories that define a set of network endpoints as outbound.
|
|
842
1095
|
* @memberof ApplicationRuleSpec
|
|
843
1096
|
*/
|
|
844
1097
|
ApplicationRuleSpec.prototype.destCategoryReferences = undefined;
|
|
845
1098
|
|
|
1099
|
+
/**
|
|
1100
|
+
* External identifier of the entity group belonging to the destination group.
|
|
1101
|
+
* @memberof ApplicationRuleSpec
|
|
1102
|
+
*/
|
|
1103
|
+
ApplicationRuleSpec.prototype.destEntityGroupReference = undefined;
|
|
1104
|
+
|
|
846
1105
|
/**
|
|
847
1106
|
* @memberof ApplicationRuleSpec
|
|
848
1107
|
*/
|
|
@@ -898,6 +1157,12 @@ ApplicationRuleSpec.prototype.icmpServices = undefined;
|
|
|
898
1157
|
* @memberof ApplicationRuleSpec
|
|
899
1158
|
*/
|
|
900
1159
|
ApplicationRuleSpec.prototype.networkFunctionChainReference = undefined;
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* A reference to the network function in the rule.
|
|
1163
|
+
* @memberof ApplicationRuleSpec
|
|
1164
|
+
*/
|
|
1165
|
+
ApplicationRuleSpec.prototype.networkFunctionReference = undefined;
|
|
901
1166
|
ApplicationRuleSpec.prototype.$reserved = undefined;
|
|
902
1167
|
ApplicationRuleSpec.prototype.$objectType = undefined;
|
|
903
1168
|
ApplicationRuleSpec.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default CategoryAssociatedEntityType;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type CategoryAssociatedEntityType = string;
|
|
6
|
+
declare namespace CategoryAssociatedEntityType {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>CategoryAssociatedEntityType</code> enum value from a JavaScript object name.
|
|
9
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
+
* @return {CategoryAssociatedEntityType} The enum <code>CategoryAssociatedEntityType</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>CategoryAssociatedEntityType</code> enum value.
|
|
15
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
|
+
* @return {null} Throws error for invalid value.
|
|
17
|
+
*/
|
|
18
|
+
function validate(obj: any): null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Flow Management APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 4.1.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class CategoryAssociatedEntityType.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var CategoryAssociatedEntityType = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* Virtual machine.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
VM: "VM",
|
|
45
|
+
/**
|
|
46
|
+
* Virtual private cloud.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
VPC: "VPC",
|
|
50
|
+
/**
|
|
51
|
+
* Subnet.
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
SUBNET: "SUBNET"
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Returns a <code>CategoryAssociatedEntityType</code> enum value from a JavaScript object name.
|
|
59
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
60
|
+
* @return {CategoryAssociatedEntityType} The enum <code>CategoryAssociatedEntityType</code> value.
|
|
61
|
+
*/
|
|
62
|
+
CategoryAssociatedEntityType.constructFromObject = function (obj) {
|
|
63
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
64
|
+
var enumVal = Object.keys(CategoryAssociatedEntityType).find(function (key) {
|
|
65
|
+
return CategoryAssociatedEntityType[key] === obj;
|
|
66
|
+
});
|
|
67
|
+
return enumVal === undefined || enumVal === null ? CategoryAssociatedEntityType.$UNKNOWN : CategoryAssociatedEntityType[enumVal];
|
|
68
|
+
} else {
|
|
69
|
+
throw new Error("Received object name is not an instance of String");
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Validates <code>CategoryAssociatedEntityType</code> enum value.
|
|
75
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
76
|
+
* @return {null} Throws error for invalid value.
|
|
77
|
+
*/
|
|
78
|
+
CategoryAssociatedEntityType.validate = function (obj) {
|
|
79
|
+
switch (obj) {
|
|
80
|
+
case CategoryAssociatedEntityType.$UNKNOWN:
|
|
81
|
+
case CategoryAssociatedEntityType.$REDACTED:
|
|
82
|
+
case CategoryAssociatedEntityType.VM:
|
|
83
|
+
case CategoryAssociatedEntityType.VPC:
|
|
84
|
+
case CategoryAssociatedEntityType.SUBNET:
|
|
85
|
+
return;
|
|
86
|
+
default:
|
|
87
|
+
throw new Error("Invalid : must be CategoryAssociatedEntityType.{ $UNKNOWN|$REDACTED|VM|VPC|SUBNET }");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
Object.freeze(CategoryAssociatedEntityType);
|
|
91
|
+
var _default = exports["default"] = CategoryAssociatedEntityType;
|