@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The CreateNetworkSecurityPolicyApiResponse model module.
|
|
3
3
|
* @module Ntnx/CreateNetworkSecurityPolicyApiResponse
|
|
4
|
-
* @version 4.0.1
|
|
4
|
+
* @version 4.0.1
|
|
5
5
|
* @class CreateNetworkSecurityPolicyApiResponse
|
|
6
6
|
*/
|
|
7
7
|
export default class CreateNetworkSecurityPolicyApiResponse extends Paginable {
|
|
@@ -13,47 +13,87 @@ export default class CreateNetworkSecurityPolicyApiResponse extends Paginable {
|
|
|
13
13
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
14
|
* @return {module:Ntnx/CreateNetworkSecurityPolicyApiResponse} The populated <code>CreateNetworkSecurityPolicyApiResponse</code> instance.
|
|
15
15
|
*/
|
|
16
|
-
static constructFromObject(data: any, obj
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
17
23
|
$objectType: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
$unknownFields:
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
22
28
|
/**
|
|
23
|
-
* @return {}
|
|
29
|
+
* @return {ApiResponseMetadata}
|
|
24
30
|
*/
|
|
25
|
-
getMetadata():
|
|
31
|
+
getMetadata(): ApiResponseMetadata;
|
|
26
32
|
/**
|
|
27
|
-
* @param {} metadata
|
|
33
|
+
* @param {ApiResponseMetadata} metadata
|
|
28
34
|
*/
|
|
29
|
-
setMetadata(metadata:
|
|
30
|
-
metadata:
|
|
35
|
+
setMetadata(metadata: ApiResponseMetadata): void;
|
|
36
|
+
metadata: ApiResponseMetadata;
|
|
31
37
|
/**
|
|
32
|
-
* @return {}
|
|
38
|
+
* @return {TaskReference | ErrorResponse}
|
|
33
39
|
*/
|
|
34
|
-
getData():
|
|
40
|
+
getData(): TaskReference | ErrorResponse;
|
|
35
41
|
/**
|
|
36
|
-
* @param {} data
|
|
42
|
+
* @param {TaskReference | ErrorResponse} data
|
|
37
43
|
*/
|
|
38
|
-
setData(data:
|
|
39
|
-
data:
|
|
40
|
-
get$Reserved():
|
|
41
|
-
$fv: string;
|
|
42
|
-
};
|
|
44
|
+
setData(data: TaskReference | ErrorResponse): void;
|
|
45
|
+
data: ErrorResponse | TaskReference;
|
|
46
|
+
get$Reserved(): any;
|
|
43
47
|
get$ObjectType(): string;
|
|
44
|
-
get$UnknownFields():
|
|
48
|
+
get$UnknownFields(): any;
|
|
45
49
|
toJson(forMutation: any): {
|
|
46
|
-
$reserved:
|
|
47
|
-
$fv: string;
|
|
48
|
-
};
|
|
50
|
+
$reserved: any;
|
|
49
51
|
$objectType: string;
|
|
50
|
-
$unknownFields:
|
|
52
|
+
$unknownFields: any;
|
|
51
53
|
data?: any;
|
|
52
|
-
metadata?:
|
|
54
|
+
metadata?: {
|
|
55
|
+
$reserved: any;
|
|
56
|
+
$objectType: string;
|
|
57
|
+
$unknownFields: any;
|
|
58
|
+
extraInfo?: {
|
|
59
|
+
$reserved: any;
|
|
60
|
+
$objectType: string;
|
|
61
|
+
$unknownFields: any;
|
|
62
|
+
value?: any;
|
|
63
|
+
name?: string;
|
|
64
|
+
}[];
|
|
65
|
+
messages?: {
|
|
66
|
+
$reserved: any;
|
|
67
|
+
$objectType: string;
|
|
68
|
+
$unknownFields: any;
|
|
69
|
+
severity?: string;
|
|
70
|
+
locale?: string;
|
|
71
|
+
message?: string;
|
|
72
|
+
code?: string;
|
|
73
|
+
}[];
|
|
74
|
+
totalAvailableResults?: number;
|
|
75
|
+
links?: {
|
|
76
|
+
$reserved: any;
|
|
77
|
+
$objectType: string;
|
|
78
|
+
$unknownFields: any;
|
|
79
|
+
rel?: string;
|
|
80
|
+
href?: string;
|
|
81
|
+
}[];
|
|
82
|
+
flags?: {
|
|
83
|
+
$reserved: any;
|
|
84
|
+
$objectType: string;
|
|
85
|
+
$unknownFields: any;
|
|
86
|
+
value?: boolean;
|
|
87
|
+
name?: string;
|
|
88
|
+
}[];
|
|
89
|
+
};
|
|
53
90
|
};
|
|
54
91
|
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
55
92
|
validateProperty(scope: any, property: any): ValidationError;
|
|
56
93
|
#private;
|
|
57
94
|
}
|
|
58
95
|
import Paginable from "../../../../Paginable";
|
|
96
|
+
import ApiResponseMetadata from "../../../common/v1/response/ApiResponseMetadata";
|
|
97
|
+
import TaskReference from "../../../prism/v4/config/TaskReference";
|
|
98
|
+
import ErrorResponse from "../error/ErrorResponse";
|
|
59
99
|
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -11,39 +11,39 @@ var _ValidationScopes = _interopRequireDefault(require("../../../validation/Vali
|
|
|
11
11
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
12
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
13
|
var _Paginable2 = _interopRequireDefault(require("../../../../Paginable"));
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _slicedToArray(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
16
|
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."); }
|
|
17
|
-
function _unsupportedIterableToArray(
|
|
18
|
-
function _arrayLikeToArray(
|
|
17
|
+
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; } }
|
|
18
|
+
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; }
|
|
19
19
|
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; } }
|
|
20
|
-
function _arrayWithHoles(
|
|
20
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
21
|
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); }
|
|
22
22
|
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; }
|
|
23
23
|
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; }
|
|
24
|
-
function _defineProperty(
|
|
25
|
-
function _classCallCheck(
|
|
26
|
-
function _defineProperties(
|
|
27
|
-
function _createClass(
|
|
24
|
+
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; }
|
|
25
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
+
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); } }
|
|
27
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
28
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
29
|
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); }
|
|
30
30
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
-
function _possibleConstructorReturn(
|
|
32
|
-
function _assertThisInitialized(
|
|
31
|
+
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); }
|
|
32
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
33
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
-
function _getPrototypeOf(
|
|
35
|
-
function _inherits(
|
|
36
|
-
function _setPrototypeOf(
|
|
37
|
-
function _classPrivateMethodInitSpec(
|
|
38
|
-
function _checkPrivateRedeclaration(
|
|
34
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
35
|
+
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); }
|
|
36
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
37
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
38
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
39
39
|
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"); } /*
|
|
40
|
-
* Nutanix
|
|
40
|
+
* Nutanix Flow Management APIs
|
|
41
41
|
*
|
|
42
|
-
* OpenAPI spec version: 4.0.1
|
|
42
|
+
* OpenAPI spec version: 4.0.1
|
|
43
43
|
*
|
|
44
44
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
45
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version: 16.
|
|
46
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
47
47
|
*
|
|
48
48
|
* Do not edit the class manually.
|
|
49
49
|
*
|
|
@@ -51,14 +51,14 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
51
51
|
/**
|
|
52
52
|
* The CreateNetworkSecurityPolicyApiResponse model module.
|
|
53
53
|
* @module Ntnx/CreateNetworkSecurityPolicyApiResponse
|
|
54
|
-
* @version 4.0.1
|
|
54
|
+
* @version 4.0.1
|
|
55
55
|
* @class CreateNetworkSecurityPolicyApiResponse
|
|
56
56
|
*/
|
|
57
57
|
var _CreateNetworkSecurityPolicyApiResponse_brand = /*#__PURE__*/new WeakSet();
|
|
58
58
|
var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/function (_Paginable) {
|
|
59
59
|
/**
|
|
60
60
|
* Constructs a new <code>CreateNetworkSecurityPolicyApiResponse</code>.
|
|
61
|
-
* REST response for all response codes in API path /microseg/v4.0
|
|
61
|
+
* REST response for all response codes in API path /microseg/v4.0/config/policies Post operation
|
|
62
62
|
* @alias module:Ntnx/CreateNetworkSecurityPolicyApiResponse
|
|
63
63
|
*/
|
|
64
64
|
function CreateNetworkSecurityPolicyApiResponse() {
|
|
@@ -73,9 +73,11 @@ var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/f
|
|
|
73
73
|
*/
|
|
74
74
|
_classPrivateMethodInitSpec(_this, _CreateNetworkSecurityPolicyApiResponse_brand);
|
|
75
75
|
_this.$objectType = "microseg.v4.config.CreateNetworkSecurityPolicyApiResponse";
|
|
76
|
+
/** @type {object<string, any>} */
|
|
76
77
|
_this.$reserved = {
|
|
77
|
-
'$fv': "v4.r0
|
|
78
|
+
'$fv': "v4.r0"
|
|
78
79
|
};
|
|
80
|
+
/** @type {object<string, any>} */
|
|
79
81
|
_this.$unknownFields = {};
|
|
80
82
|
return _this;
|
|
81
83
|
}
|
|
@@ -93,14 +95,14 @@ var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/f
|
|
|
93
95
|
key: "getMetadata",
|
|
94
96
|
value:
|
|
95
97
|
/**
|
|
96
|
-
* @return {}
|
|
98
|
+
* @return {ApiResponseMetadata}
|
|
97
99
|
*/
|
|
98
100
|
function getMetadata() {
|
|
99
101
|
return this.metadata;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
/**
|
|
103
|
-
* @param {} metadata
|
|
105
|
+
* @param {ApiResponseMetadata} metadata
|
|
104
106
|
*/
|
|
105
107
|
}, {
|
|
106
108
|
key: "setMetadata",
|
|
@@ -109,7 +111,7 @@ var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/f
|
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
/**
|
|
112
|
-
* @return {}
|
|
114
|
+
* @return {TaskReference | ErrorResponse}
|
|
113
115
|
*/
|
|
114
116
|
}, {
|
|
115
117
|
key: "getData",
|
|
@@ -118,7 +120,7 @@ var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/f
|
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
/**
|
|
121
|
-
* @param {} data
|
|
123
|
+
* @param {TaskReference | ErrorResponse} data
|
|
122
124
|
*/
|
|
123
125
|
}, {
|
|
124
126
|
key: "setData",
|
|
@@ -232,7 +234,8 @@ var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/f
|
|
|
232
234
|
}
|
|
233
235
|
}], [{
|
|
234
236
|
key: "constructFromObject",
|
|
235
|
-
value: function constructFromObject(data
|
|
237
|
+
value: function constructFromObject(data) {
|
|
238
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
236
239
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
237
240
|
var items, item, i, itemArr, discriminator;
|
|
238
241
|
if (data) {
|
|
@@ -272,7 +275,11 @@ var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/f
|
|
|
272
275
|
if (!callFromChild) {
|
|
273
276
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
274
277
|
for (var property in data) {
|
|
275
|
-
if
|
|
278
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
279
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
280
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
281
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
282
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
276
283
|
obj.$unknownFields[property] = data[property];
|
|
277
284
|
}
|
|
278
285
|
}
|
|
@@ -280,6 +287,19 @@ var CreateNetworkSecurityPolicyApiResponse = exports["default"] = /*#__PURE__*/f
|
|
|
280
287
|
}
|
|
281
288
|
return obj;
|
|
282
289
|
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Converts a given snake_case string to camelCase.
|
|
293
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
294
|
+
* @returns {string} - The converted string in camelCase format.
|
|
295
|
+
*/
|
|
296
|
+
}, {
|
|
297
|
+
key: "snakeToCamel",
|
|
298
|
+
value: function snakeToCamel(snakeStr) {
|
|
299
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
300
|
+
return match[1].toUpperCase();
|
|
301
|
+
});
|
|
302
|
+
}
|
|
283
303
|
}]);
|
|
284
304
|
}(_Paginable2["default"]);
|
|
285
305
|
/**
|
|
@@ -300,6 +320,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
300
320
|
}
|
|
301
321
|
return obj;
|
|
302
322
|
}
|
|
323
|
+
/*
|
|
324
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
325
|
+
* @param {Object} obj Object to serialize
|
|
326
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
327
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
328
|
+
*/
|
|
329
|
+
function _handleDateType(obj, isDateOnly) {
|
|
330
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
331
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
332
|
+
}
|
|
333
|
+
return obj;
|
|
334
|
+
}
|
|
303
335
|
CreateNetworkSecurityPolicyApiResponse.prototype.metadata = undefined;
|
|
304
336
|
|
|
305
337
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The CreateNetworkSecurityPolicyExportApiResponse model module.
|
|
3
3
|
* @module Ntnx/CreateNetworkSecurityPolicyExportApiResponse
|
|
4
|
-
* @version 4.0.1
|
|
4
|
+
* @version 4.0.1
|
|
5
5
|
* @class CreateNetworkSecurityPolicyExportApiResponse
|
|
6
6
|
*/
|
|
7
7
|
export default class CreateNetworkSecurityPolicyExportApiResponse extends Paginable {
|
|
@@ -13,47 +13,87 @@ export default class CreateNetworkSecurityPolicyExportApiResponse extends Pagina
|
|
|
13
13
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
14
|
* @return {module:Ntnx/CreateNetworkSecurityPolicyExportApiResponse} The populated <code>CreateNetworkSecurityPolicyExportApiResponse</code> instance.
|
|
15
15
|
*/
|
|
16
|
-
static constructFromObject(data: any, obj
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
17
23
|
$objectType: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
$unknownFields:
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
22
28
|
/**
|
|
23
|
-
* @return {}
|
|
29
|
+
* @return {ApiResponseMetadata}
|
|
24
30
|
*/
|
|
25
|
-
getMetadata():
|
|
31
|
+
getMetadata(): ApiResponseMetadata;
|
|
26
32
|
/**
|
|
27
|
-
* @param {} metadata
|
|
33
|
+
* @param {ApiResponseMetadata} metadata
|
|
28
34
|
*/
|
|
29
|
-
setMetadata(metadata:
|
|
30
|
-
metadata:
|
|
35
|
+
setMetadata(metadata: ApiResponseMetadata): void;
|
|
36
|
+
metadata: ApiResponseMetadata;
|
|
31
37
|
/**
|
|
32
|
-
* @return {}
|
|
38
|
+
* @return {TaskReference | ErrorResponse}
|
|
33
39
|
*/
|
|
34
|
-
getData():
|
|
40
|
+
getData(): TaskReference | ErrorResponse;
|
|
35
41
|
/**
|
|
36
|
-
* @param {} data
|
|
42
|
+
* @param {TaskReference | ErrorResponse} data
|
|
37
43
|
*/
|
|
38
|
-
setData(data:
|
|
39
|
-
data:
|
|
40
|
-
get$Reserved():
|
|
41
|
-
$fv: string;
|
|
42
|
-
};
|
|
44
|
+
setData(data: TaskReference | ErrorResponse): void;
|
|
45
|
+
data: ErrorResponse | TaskReference;
|
|
46
|
+
get$Reserved(): any;
|
|
43
47
|
get$ObjectType(): string;
|
|
44
|
-
get$UnknownFields():
|
|
48
|
+
get$UnknownFields(): any;
|
|
45
49
|
toJson(forMutation: any): {
|
|
46
|
-
$reserved:
|
|
47
|
-
$fv: string;
|
|
48
|
-
};
|
|
50
|
+
$reserved: any;
|
|
49
51
|
$objectType: string;
|
|
50
|
-
$unknownFields:
|
|
52
|
+
$unknownFields: any;
|
|
51
53
|
data?: any;
|
|
52
|
-
metadata?:
|
|
54
|
+
metadata?: {
|
|
55
|
+
$reserved: any;
|
|
56
|
+
$objectType: string;
|
|
57
|
+
$unknownFields: any;
|
|
58
|
+
extraInfo?: {
|
|
59
|
+
$reserved: any;
|
|
60
|
+
$objectType: string;
|
|
61
|
+
$unknownFields: any;
|
|
62
|
+
value?: any;
|
|
63
|
+
name?: string;
|
|
64
|
+
}[];
|
|
65
|
+
messages?: {
|
|
66
|
+
$reserved: any;
|
|
67
|
+
$objectType: string;
|
|
68
|
+
$unknownFields: any;
|
|
69
|
+
severity?: string;
|
|
70
|
+
locale?: string;
|
|
71
|
+
message?: string;
|
|
72
|
+
code?: string;
|
|
73
|
+
}[];
|
|
74
|
+
totalAvailableResults?: number;
|
|
75
|
+
links?: {
|
|
76
|
+
$reserved: any;
|
|
77
|
+
$objectType: string;
|
|
78
|
+
$unknownFields: any;
|
|
79
|
+
rel?: string;
|
|
80
|
+
href?: string;
|
|
81
|
+
}[];
|
|
82
|
+
flags?: {
|
|
83
|
+
$reserved: any;
|
|
84
|
+
$objectType: string;
|
|
85
|
+
$unknownFields: any;
|
|
86
|
+
value?: boolean;
|
|
87
|
+
name?: string;
|
|
88
|
+
}[];
|
|
89
|
+
};
|
|
53
90
|
};
|
|
54
91
|
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
55
92
|
validateProperty(scope: any, property: any): ValidationError;
|
|
56
93
|
#private;
|
|
57
94
|
}
|
|
58
95
|
import Paginable from "../../../../Paginable";
|
|
96
|
+
import ApiResponseMetadata from "../../../common/v1/response/ApiResponseMetadata";
|
|
97
|
+
import TaskReference from "../../../prism/v4/config/TaskReference";
|
|
98
|
+
import ErrorResponse from "../error/ErrorResponse";
|
|
59
99
|
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -11,39 +11,39 @@ var _ValidationScopes = _interopRequireDefault(require("../../../validation/Vali
|
|
|
11
11
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
12
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
13
|
var _Paginable2 = _interopRequireDefault(require("../../../../Paginable"));
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _slicedToArray(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
16
|
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."); }
|
|
17
|
-
function _unsupportedIterableToArray(
|
|
18
|
-
function _arrayLikeToArray(
|
|
17
|
+
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; } }
|
|
18
|
+
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; }
|
|
19
19
|
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; } }
|
|
20
|
-
function _arrayWithHoles(
|
|
20
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
21
|
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); }
|
|
22
22
|
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; }
|
|
23
23
|
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; }
|
|
24
|
-
function _defineProperty(
|
|
25
|
-
function _classCallCheck(
|
|
26
|
-
function _defineProperties(
|
|
27
|
-
function _createClass(
|
|
24
|
+
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; }
|
|
25
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
+
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); } }
|
|
27
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
28
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
29
|
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); }
|
|
30
30
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
-
function _possibleConstructorReturn(
|
|
32
|
-
function _assertThisInitialized(
|
|
31
|
+
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); }
|
|
32
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
33
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
-
function _getPrototypeOf(
|
|
35
|
-
function _inherits(
|
|
36
|
-
function _setPrototypeOf(
|
|
37
|
-
function _classPrivateMethodInitSpec(
|
|
38
|
-
function _checkPrivateRedeclaration(
|
|
34
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
35
|
+
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); }
|
|
36
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
37
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
38
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
39
39
|
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"); } /*
|
|
40
|
-
* Nutanix
|
|
40
|
+
* Nutanix Flow Management APIs
|
|
41
41
|
*
|
|
42
|
-
* OpenAPI spec version: 4.0.1
|
|
42
|
+
* OpenAPI spec version: 4.0.1
|
|
43
43
|
*
|
|
44
44
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
45
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version: 16.
|
|
46
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
47
47
|
*
|
|
48
48
|
* Do not edit the class manually.
|
|
49
49
|
*
|
|
@@ -51,14 +51,14 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
51
51
|
/**
|
|
52
52
|
* The CreateNetworkSecurityPolicyExportApiResponse model module.
|
|
53
53
|
* @module Ntnx/CreateNetworkSecurityPolicyExportApiResponse
|
|
54
|
-
* @version 4.0.1
|
|
54
|
+
* @version 4.0.1
|
|
55
55
|
* @class CreateNetworkSecurityPolicyExportApiResponse
|
|
56
56
|
*/
|
|
57
57
|
var _CreateNetworkSecurityPolicyExportApiResponse_brand = /*#__PURE__*/new WeakSet();
|
|
58
58
|
var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PURE__*/function (_Paginable) {
|
|
59
59
|
/**
|
|
60
60
|
* Constructs a new <code>CreateNetworkSecurityPolicyExportApiResponse</code>.
|
|
61
|
-
* REST response for all response codes in API path /microseg/v4.0
|
|
61
|
+
* REST response for all response codes in API path /microseg/v4.0/config/policies/$actions/prepare-export Post operation
|
|
62
62
|
* @alias module:Ntnx/CreateNetworkSecurityPolicyExportApiResponse
|
|
63
63
|
*/
|
|
64
64
|
function CreateNetworkSecurityPolicyExportApiResponse() {
|
|
@@ -73,9 +73,11 @@ var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PUR
|
|
|
73
73
|
*/
|
|
74
74
|
_classPrivateMethodInitSpec(_this, _CreateNetworkSecurityPolicyExportApiResponse_brand);
|
|
75
75
|
_this.$objectType = "microseg.v4.config.CreateNetworkSecurityPolicyExportApiResponse";
|
|
76
|
+
/** @type {object<string, any>} */
|
|
76
77
|
_this.$reserved = {
|
|
77
|
-
'$fv': "v4.r0
|
|
78
|
+
'$fv': "v4.r0"
|
|
78
79
|
};
|
|
80
|
+
/** @type {object<string, any>} */
|
|
79
81
|
_this.$unknownFields = {};
|
|
80
82
|
return _this;
|
|
81
83
|
}
|
|
@@ -93,14 +95,14 @@ var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PUR
|
|
|
93
95
|
key: "getMetadata",
|
|
94
96
|
value:
|
|
95
97
|
/**
|
|
96
|
-
* @return {}
|
|
98
|
+
* @return {ApiResponseMetadata}
|
|
97
99
|
*/
|
|
98
100
|
function getMetadata() {
|
|
99
101
|
return this.metadata;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
/**
|
|
103
|
-
* @param {} metadata
|
|
105
|
+
* @param {ApiResponseMetadata} metadata
|
|
104
106
|
*/
|
|
105
107
|
}, {
|
|
106
108
|
key: "setMetadata",
|
|
@@ -109,7 +111,7 @@ var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PUR
|
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
/**
|
|
112
|
-
* @return {}
|
|
114
|
+
* @return {TaskReference | ErrorResponse}
|
|
113
115
|
*/
|
|
114
116
|
}, {
|
|
115
117
|
key: "getData",
|
|
@@ -118,7 +120,7 @@ var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PUR
|
|
|
118
120
|
}
|
|
119
121
|
|
|
120
122
|
/**
|
|
121
|
-
* @param {} data
|
|
123
|
+
* @param {TaskReference | ErrorResponse} data
|
|
122
124
|
*/
|
|
123
125
|
}, {
|
|
124
126
|
key: "setData",
|
|
@@ -232,7 +234,8 @@ var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PUR
|
|
|
232
234
|
}
|
|
233
235
|
}], [{
|
|
234
236
|
key: "constructFromObject",
|
|
235
|
-
value: function constructFromObject(data
|
|
237
|
+
value: function constructFromObject(data) {
|
|
238
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
236
239
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
237
240
|
var items, item, i, itemArr, discriminator;
|
|
238
241
|
if (data) {
|
|
@@ -272,7 +275,11 @@ var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PUR
|
|
|
272
275
|
if (!callFromChild) {
|
|
273
276
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
274
277
|
for (var property in data) {
|
|
275
|
-
if
|
|
278
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
279
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
280
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
281
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
282
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
276
283
|
obj.$unknownFields[property] = data[property];
|
|
277
284
|
}
|
|
278
285
|
}
|
|
@@ -280,6 +287,19 @@ var CreateNetworkSecurityPolicyExportApiResponse = exports["default"] = /*#__PUR
|
|
|
280
287
|
}
|
|
281
288
|
return obj;
|
|
282
289
|
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Converts a given snake_case string to camelCase.
|
|
293
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
294
|
+
* @returns {string} - The converted string in camelCase format.
|
|
295
|
+
*/
|
|
296
|
+
}, {
|
|
297
|
+
key: "snakeToCamel",
|
|
298
|
+
value: function snakeToCamel(snakeStr) {
|
|
299
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
300
|
+
return match[1].toUpperCase();
|
|
301
|
+
});
|
|
302
|
+
}
|
|
283
303
|
}]);
|
|
284
304
|
}(_Paginable2["default"]);
|
|
285
305
|
/**
|
|
@@ -300,6 +320,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
300
320
|
}
|
|
301
321
|
return obj;
|
|
302
322
|
}
|
|
323
|
+
/*
|
|
324
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
325
|
+
* @param {Object} obj Object to serialize
|
|
326
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
327
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
328
|
+
*/
|
|
329
|
+
function _handleDateType(obj, isDateOnly) {
|
|
330
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
331
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
332
|
+
}
|
|
333
|
+
return obj;
|
|
334
|
+
}
|
|
303
335
|
CreateNetworkSecurityPolicyExportApiResponse.prototype.metadata = undefined;
|
|
304
336
|
|
|
305
337
|
/**
|