@nutanix-scratch/microseg-js-client 4.0.1-beta.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -49
- package/README.md +37 -21
- package/dist/Ntnx-Microseg-js-client-prod.js +1 -1
- package/dist/Ntnx-Microseg-js-client.js +147 -125
- package/dist/es/ApiClient.d.ts +8 -1
- package/dist/es/ApiClient.js +249 -189
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +10 -10
- package/dist/es/apis/addressgroups-endpoints.d.ts +1 -1
- package/dist/es/apis/addressgroups-endpoints.js +21 -21
- package/dist/es/apis/directoryserverconfigs-endpoints.d.ts +14 -1
- package/dist/es/apis/directoryserverconfigs-endpoints.js +48 -33
- package/dist/es/apis/networksecuritypolicies-endpoints.d.ts +27 -6
- package/dist/es/apis/networksecuritypolicies-endpoints.js +81 -48
- package/dist/es/apis/servicegroups-endpoints.d.ts +1 -1
- package/dist/es/apis/servicegroups-endpoints.js +21 -21
- package/dist/es/index.d.ts +11 -7
- package/dist/es/index.js +41 -25
- package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/es/models/common/v1/config/FQDN.js +57 -22
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +66 -22
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +56 -24
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv4Address.js +65 -24
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv6Address.js +65 -24
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +71 -25
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +58 -26
- package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/es/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +54 -22
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/es/models/microseg/v4/config/AdInfo.d.ts +43 -40
- package/dist/es/models/microseg/v4/config/AdInfo.js +62 -30
- package/dist/es/models/microseg/v4/config/AdStatus.js +8 -8
- package/dist/es/models/microseg/v4/config/AddressGroup.d.ts +66 -45
- package/dist/es/models/microseg/v4/config/AddressGroup.js +96 -40
- package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +68 -0
- package/dist/es/models/microseg/v4/config/AllToAllIsolationGroup.js +298 -0
- package/dist/es/models/microseg/v4/config/AllowType.js +8 -8
- package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.d.ts +151 -111
- package/dist/es/models/microseg/v4/config/ApplicationRuleSpec.js +91 -56
- package/dist/es/models/microseg/v4/config/CategoryMapping.d.ts +47 -34
- package/dist/es/models/microseg/v4/config/CategoryMapping.js +87 -40
- package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +67 -25
- package/dist/es/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +68 -25
- package/dist/es/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +73 -67
- package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/CreateServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +68 -25
- package/dist/es/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +67 -25
- package/dist/es/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/DirectoryServerConfig.d.ts +81 -38
- package/dist/es/models/microseg/v4/config/DirectoryServerConfig.js +83 -36
- package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/GetServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/IPv4Range.d.ts +34 -28
- package/dist/es/models/microseg/v4/config/IPv4Range.js +64 -26
- package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +38 -36
- package/dist/es/models/microseg/v4/config/IcmpTypeCodeSpec.js +63 -31
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleAction.js +8 -8
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +33 -29
- package/dist/es/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +59 -24
- package/dist/es/models/microseg/v4/config/IsolationGroup.d.ts +62 -0
- package/dist/{lib/models/microseg/v4/config/ImportEntity.js → es/models/microseg/v4/config/IsolationGroup.js} +105 -147
- package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListAddressGroupsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/ListServiceGroupsApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/MatchEntity.js +8 -8
- package/dist/es/models/microseg/v4/config/MatchField.js +8 -8
- package/dist/es/models/microseg/v4/config/MatchType.js +8 -8
- package/dist/es/models/microseg/v4/config/MatchingCriteria.d.ts +38 -36
- package/dist/es/models/microseg/v4/config/MatchingCriteria.js +58 -26
- package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +63 -0
- package/dist/es/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +298 -0
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +127 -95
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicy.js +129 -62
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +35 -27
- package/dist/es/models/microseg/v4/config/NetworkSecurityPolicyRule.js +90 -35
- package/dist/es/models/microseg/v4/config/RuleType.js +16 -10
- package/dist/es/models/microseg/v4/config/SecurityPolicyScope.js +8 -8
- package/dist/es/models/microseg/v4/config/SecurityPolicyState.js +8 -8
- package/dist/es/models/microseg/v4/config/SecurityPolicyType.js +8 -8
- package/dist/es/models/microseg/v4/config/ServiceGroup.d.ts +88 -59
- package/dist/es/models/microseg/v4/config/ServiceGroup.js +103 -47
- package/dist/es/models/microseg/v4/config/SyncPolicy.d.ts +87 -0
- package/dist/es/models/microseg/v4/config/SyncPolicy.js +410 -0
- package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.d.ts +34 -28
- package/dist/es/models/microseg/v4/config/TcpPortRangeSpec.js +64 -26
- package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +33 -31
- package/dist/es/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +58 -26
- package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.d.ts +34 -28
- package/dist/es/models/microseg/v4/config/UdpPortRangeSpec.js +64 -26
- package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +65 -25
- package/dist/es/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +60 -28
- package/dist/es/models/microseg/v4/error/AppMessage.d.ts +57 -48
- package/dist/es/models/microseg/v4/error/AppMessage.js +62 -30
- package/dist/es/models/microseg/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/microseg/v4/error/ErrorResponse.js +53 -21
- package/dist/es/models/microseg/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/microseg/v4/error/SchemaValidationError.js +63 -30
- package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/microseg/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/es/models/microseg/v4/operation/DryRunSpec.d.ts +28 -26
- package/dist/es/models/microseg/v4/operation/DryRunSpec.js +55 -23
- package/dist/es/models/microseg/v4/operation/DryRunSummary.d.ts +127 -32
- package/dist/es/models/microseg/v4/operation/DryRunSummary.js +86 -35
- package/dist/es/models/microseg/v4/operation/PolicyCount.d.ts +31 -29
- package/dist/es/models/microseg/v4/operation/PolicyCount.js +56 -24
- package/dist/es/models/microseg/v4/operation/PolicyCountByType.d.ts +35 -25
- package/dist/es/models/microseg/v4/operation/PolicyCountByType.js +54 -22
- package/dist/es/models/microseg/v4/operation/PolicyMetadata.d.ts +69 -60
- package/dist/es/models/microseg/v4/operation/PolicyMetadata.js +71 -35
- package/dist/es/models/microseg/v4/operation/PolicyPreview.d.ts +112 -20
- package/dist/es/models/microseg/v4/operation/PolicyPreview.js +79 -31
- package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +70 -32
- package/dist/es/models/microseg/v4/operation/PolicyUpgradeSummary.js +58 -26
- package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +32 -26
- package/dist/es/models/microseg/v4/operation/SecurityPolicyOptions.js +60 -22
- package/dist/es/models/microseg/v4/operation/SecurityPolicyType.js +8 -8
- package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +33 -31
- package/dist/es/models/microseg/v4/operation/SubnetUpgradeSummary.js +56 -24
- package/dist/es/models/microseg/v4/operation/TotalPolicyCount.d.ts +48 -25
- package/dist/es/models/microseg/v4/operation/TotalPolicyCount.js +54 -22
- package/dist/es/models/microseg/v4/operation/UpgradeJob.d.ts +25 -33
- package/dist/es/models/microseg/v4/operation/UpgradeJob.js +62 -66
- package/dist/es/models/microseg/v4/operation/UpgradeSpec.d.ts +29 -27
- package/dist/es/models/microseg/v4/operation/UpgradeSpec.js +56 -24
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/es/models/prism/v4/config/TaskReference.js +52 -20
- package/dist/es/models/validation/ValidationError.js +6 -6
- package/dist/es/utils/ValidationUtils.js +6 -6
- package/dist/lib/ApiClient.d.ts +8 -1
- package/dist/lib/ApiClient.js +249 -189
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +10 -10
- package/dist/lib/apis/addressgroups-endpoints.d.ts +1 -1
- package/dist/lib/apis/addressgroups-endpoints.js +21 -21
- package/dist/lib/apis/directoryserverconfigs-endpoints.d.ts +14 -1
- package/dist/lib/apis/directoryserverconfigs-endpoints.js +48 -33
- package/dist/lib/apis/networksecuritypolicies-endpoints.d.ts +27 -6
- package/dist/lib/apis/networksecuritypolicies-endpoints.js +81 -48
- package/dist/lib/apis/servicegroups-endpoints.d.ts +1 -1
- package/dist/lib/apis/servicegroups-endpoints.js +21 -21
- package/dist/lib/index.d.ts +11 -7
- package/dist/lib/index.js +41 -25
- package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/lib/models/common/v1/config/FQDN.js +57 -22
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +66 -22
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +56 -24
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv4Address.js +65 -24
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv6Address.js +65 -24
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +71 -25
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +58 -26
- package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +52 -20
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/lib/models/microseg/v4/config/AdInfo.d.ts +43 -40
- package/dist/lib/models/microseg/v4/config/AdInfo.js +62 -30
- package/dist/lib/models/microseg/v4/config/AdStatus.js +8 -8
- package/dist/lib/models/microseg/v4/config/AddressGroup.d.ts +66 -45
- package/dist/lib/models/microseg/v4/config/AddressGroup.js +96 -40
- package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.d.ts +68 -0
- package/dist/lib/models/microseg/v4/config/AllToAllIsolationGroup.js +298 -0
- package/dist/lib/models/microseg/v4/config/AllowType.js +8 -8
- package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.d.ts +151 -111
- package/dist/lib/models/microseg/v4/config/ApplicationRuleSpec.js +91 -56
- package/dist/lib/models/microseg/v4/config/CategoryMapping.d.ts +47 -34
- package/dist/lib/models/microseg/v4/config/CategoryMapping.js +87 -40
- package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.d.ts +67 -25
- package/dist/lib/models/microseg/v4/config/CreateDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyExportApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.d.ts +68 -25
- package/dist/lib/models/microseg/v4/config/CreateNetworkSecurityPolicyImportApiResponse.js +73 -67
- package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/CreateServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/DeleteAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/DeleteDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.d.ts +68 -25
- package/dist/lib/models/microseg/v4/config/DeleteDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.d.ts +67 -25
- package/dist/lib/models/microseg/v4/config/DeleteNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/DeleteServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.d.ts +81 -38
- package/dist/lib/models/microseg/v4/config/DirectoryServerConfig.js +83 -36
- package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/GetServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/IPv4Range.d.ts +34 -28
- package/dist/lib/models/microseg/v4/config/IPv4Range.js +64 -26
- package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.d.ts +38 -36
- package/dist/lib/models/microseg/v4/config/IcmpTypeCodeSpec.js +63 -31
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleAction.js +8 -8
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.d.ts +33 -29
- package/dist/lib/models/microseg/v4/config/IntraEntityGroupRuleSpec.js +59 -24
- package/dist/lib/models/microseg/v4/config/IsolationGroup.d.ts +62 -0
- package/dist/{es/models/microseg/v4/config/ImportEntity.js → lib/models/microseg/v4/config/IsolationGroup.js} +105 -147
- package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListAddressGroupsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListDirectoryServerConfigsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListDsCategoryMappingsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPoliciesApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListNetworkSecurityPolicyRulesApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/ListServiceGroupsApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/MatchEntity.js +8 -8
- package/dist/lib/models/microseg/v4/config/MatchField.js +8 -8
- package/dist/lib/models/microseg/v4/config/MatchType.js +8 -8
- package/dist/lib/models/microseg/v4/config/MatchingCriteria.d.ts +38 -36
- package/dist/lib/models/microseg/v4/config/MatchingCriteria.js +58 -26
- package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.d.ts +63 -0
- package/dist/lib/models/microseg/v4/config/MultiEnvIsolationRuleSpec.js +298 -0
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.d.ts +127 -95
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicy.js +129 -62
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.d.ts +35 -27
- package/dist/lib/models/microseg/v4/config/NetworkSecurityPolicyRule.js +90 -35
- package/dist/lib/models/microseg/v4/config/RuleType.js +16 -10
- package/dist/lib/models/microseg/v4/config/SecurityPolicyScope.js +8 -8
- package/dist/lib/models/microseg/v4/config/SecurityPolicyState.js +8 -8
- package/dist/lib/models/microseg/v4/config/SecurityPolicyType.js +8 -8
- package/dist/lib/models/microseg/v4/config/ServiceGroup.d.ts +88 -59
- package/dist/lib/models/microseg/v4/config/ServiceGroup.js +103 -47
- package/dist/lib/models/microseg/v4/config/SyncPolicy.d.ts +87 -0
- package/dist/lib/models/microseg/v4/config/SyncPolicy.js +410 -0
- package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.d.ts +34 -28
- package/dist/lib/models/microseg/v4/config/TcpPortRangeSpec.js +64 -26
- package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.d.ts +33 -31
- package/dist/lib/models/microseg/v4/config/TwoEnvIsolationRuleSpec.js +58 -26
- package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.d.ts +34 -28
- package/dist/lib/models/microseg/v4/config/UdpPortRangeSpec.js +64 -26
- package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateAddressGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateDirectoryServerConfigApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateDsCategoryMappingApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateNetworkSecurityPolicyApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.d.ts +65 -25
- package/dist/lib/models/microseg/v4/config/UpdateServiceGroupApiResponse.js +60 -28
- package/dist/lib/models/microseg/v4/error/AppMessage.d.ts +57 -48
- package/dist/lib/models/microseg/v4/error/AppMessage.js +62 -30
- package/dist/lib/models/microseg/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/microseg/v4/error/ErrorResponse.js +53 -21
- package/dist/lib/models/microseg/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/microseg/v4/error/SchemaValidationError.js +63 -30
- package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/microseg/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/lib/models/microseg/v4/operation/DryRunSpec.d.ts +28 -26
- package/dist/lib/models/microseg/v4/operation/DryRunSpec.js +55 -23
- package/dist/lib/models/microseg/v4/operation/DryRunSummary.d.ts +127 -32
- package/dist/lib/models/microseg/v4/operation/DryRunSummary.js +86 -35
- package/dist/lib/models/microseg/v4/operation/PolicyCount.d.ts +31 -29
- package/dist/lib/models/microseg/v4/operation/PolicyCount.js +56 -24
- package/dist/lib/models/microseg/v4/operation/PolicyCountByType.d.ts +35 -25
- package/dist/lib/models/microseg/v4/operation/PolicyCountByType.js +54 -22
- package/dist/lib/models/microseg/v4/operation/PolicyMetadata.d.ts +69 -60
- package/dist/lib/models/microseg/v4/operation/PolicyMetadata.js +71 -35
- package/dist/lib/models/microseg/v4/operation/PolicyPreview.d.ts +112 -20
- package/dist/lib/models/microseg/v4/operation/PolicyPreview.js +79 -31
- package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.d.ts +70 -32
- package/dist/lib/models/microseg/v4/operation/PolicyUpgradeSummary.js +58 -26
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.d.ts +32 -26
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyOptions.js +60 -22
- package/dist/lib/models/microseg/v4/operation/SecurityPolicyType.js +8 -8
- package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.d.ts +33 -31
- package/dist/lib/models/microseg/v4/operation/SubnetUpgradeSummary.js +56 -24
- package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.d.ts +48 -25
- package/dist/lib/models/microseg/v4/operation/TotalPolicyCount.js +54 -22
- package/dist/lib/models/microseg/v4/operation/UpgradeJob.d.ts +25 -33
- package/dist/lib/models/microseg/v4/operation/UpgradeJob.js +62 -66
- package/dist/lib/models/microseg/v4/operation/UpgradeSpec.d.ts +29 -27
- package/dist/lib/models/microseg/v4/operation/UpgradeSpec.js +56 -24
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/lib/models/prism/v4/config/TaskReference.js +52 -20
- package/dist/lib/models/validation/ValidationError.js +6 -6
- package/dist/lib/utils/ValidationUtils.js +6 -6
- package/package.json +3 -3
- package/dist/es/models/microseg/v4/config/ImportEntity.d.ts +0 -90
- package/dist/es/models/microseg/v4/config/ImportEntityType.d.ts +0 -19
- package/dist/es/models/microseg/v4/config/ImportEntityType.js +0 -103
- package/dist/es/models/microseg/v4/config/ImportEntityUpdateType.d.ts +0 -19
- package/dist/es/models/microseg/v4/config/ImportEntityUpdateType.js +0 -91
- package/dist/lib/models/microseg/v4/config/ImportEntity.d.ts +0 -90
- package/dist/lib/models/microseg/v4/config/ImportEntityType.d.ts +0 -19
- package/dist/lib/models/microseg/v4/config/ImportEntityType.js +0 -103
- package/dist/lib/models/microseg/v4/config/ImportEntityUpdateType.d.ts +0 -19
- package/dist/lib/models/microseg/v4/config/ImportEntityUpdateType.js +0 -91
|
@@ -4,44 +4,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
7
8
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
8
9
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
9
10
|
var _AdInfo = _interopRequireDefault(require("./AdInfo"));
|
|
10
11
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
11
12
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
13
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
15
|
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); }
|
|
15
|
-
function _slicedToArray(
|
|
16
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
17
|
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(
|
|
18
|
+
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; } }
|
|
19
|
+
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
20
|
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(
|
|
21
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
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; }
|
|
22
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; }
|
|
23
|
-
function _defineProperty(
|
|
24
|
-
function _classCallCheck(
|
|
25
|
-
function _defineProperties(
|
|
26
|
-
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; }
|
|
27
28
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
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); }
|
|
29
30
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
30
|
-
function _possibleConstructorReturn(
|
|
31
|
-
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; }
|
|
32
33
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33
|
-
function _getPrototypeOf(
|
|
34
|
-
function _inherits(
|
|
35
|
-
function _setPrototypeOf(
|
|
36
|
-
function _classPrivateMethodInitSpec(
|
|
37
|
-
function _checkPrivateRedeclaration(
|
|
38
|
-
* Nutanix
|
|
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
|
+
* Nutanix Flow Management APIs
|
|
39
40
|
*
|
|
40
|
-
* OpenAPI spec version: 4.0.1
|
|
41
|
+
* OpenAPI spec version: 4.0.1
|
|
41
42
|
*
|
|
42
43
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
43
44
|
*
|
|
44
|
-
* Open API Dev Platform Codegen version: 16.
|
|
45
|
+
* Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
|
|
45
46
|
*
|
|
46
47
|
* Do not edit the class manually.
|
|
47
48
|
*
|
|
@@ -49,14 +50,15 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
|
|
|
49
50
|
/**
|
|
50
51
|
* The CategoryMapping model module.
|
|
51
52
|
* @module Ntnx/CategoryMapping
|
|
52
|
-
* @version 4.0.1
|
|
53
|
+
* @version 4.0.1
|
|
53
54
|
* @class CategoryMapping
|
|
55
|
+
* @extends ExternalizableAbstractModel
|
|
54
56
|
*
|
|
55
|
-
* @param {
|
|
57
|
+
* @param { string } name Name of Category Mapping.
|
|
56
58
|
*
|
|
57
|
-
* @param {
|
|
59
|
+
* @param { string } categoryName The name for the category that this mapping is for.
|
|
58
60
|
*
|
|
59
|
-
* @param {
|
|
61
|
+
* @param { string } categoryValue The value for the category that this mapping is for.
|
|
60
62
|
*
|
|
61
63
|
* @param { AdInfo } adInfo
|
|
62
64
|
*/
|
|
@@ -67,11 +69,11 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
67
69
|
* @alias module:Ntnx/CategoryMapping
|
|
68
70
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
69
71
|
*
|
|
70
|
-
* @param {
|
|
72
|
+
* @param { string } name Name of Category Mapping.
|
|
71
73
|
*
|
|
72
|
-
* @param {
|
|
74
|
+
* @param { string } categoryName The name for the category that this mapping is for.
|
|
73
75
|
*
|
|
74
|
-
* @param {
|
|
76
|
+
* @param { string } categoryValue The value for the category that this mapping is for.
|
|
75
77
|
*
|
|
76
78
|
* @param { AdInfo } adInfo
|
|
77
79
|
*/
|
|
@@ -91,9 +93,11 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
91
93
|
_this.categoryValue = categoryValue;
|
|
92
94
|
_this.adInfo = adInfo;
|
|
93
95
|
_this.$objectType = "microseg.v4.config.CategoryMapping";
|
|
96
|
+
/** @type {object<string, any>} */
|
|
94
97
|
_this.$reserved = {
|
|
95
|
-
'$fv': "v4.r0
|
|
98
|
+
'$fv': "v4.r0"
|
|
96
99
|
};
|
|
100
|
+
/** @type {object<string, any>} */
|
|
97
101
|
_this.$unknownFields = {};
|
|
98
102
|
return _this;
|
|
99
103
|
}
|
|
@@ -112,7 +116,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
112
116
|
value:
|
|
113
117
|
/**
|
|
114
118
|
* Returns Name of Category Mapping.
|
|
115
|
-
* @return {}
|
|
119
|
+
* @return {string}
|
|
116
120
|
*/
|
|
117
121
|
function getName() {
|
|
118
122
|
return this.name;
|
|
@@ -120,7 +124,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
120
124
|
|
|
121
125
|
/**
|
|
122
126
|
* Sets Name of Category Mapping.
|
|
123
|
-
* @param {} name Name of Category Mapping.
|
|
127
|
+
* @param {string} name Name of Category Mapping.
|
|
124
128
|
*/
|
|
125
129
|
}, {
|
|
126
130
|
key: "setName",
|
|
@@ -130,7 +134,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
130
134
|
|
|
131
135
|
/**
|
|
132
136
|
* Returns The name for the category that this mapping is for.
|
|
133
|
-
* @return {}
|
|
137
|
+
* @return {string}
|
|
134
138
|
*/
|
|
135
139
|
}, {
|
|
136
140
|
key: "getCategoryName",
|
|
@@ -140,7 +144,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
140
144
|
|
|
141
145
|
/**
|
|
142
146
|
* Sets The name for the category that this mapping is for.
|
|
143
|
-
* @param {} categoryName The name for the category that this mapping is for.
|
|
147
|
+
* @param {string} categoryName The name for the category that this mapping is for.
|
|
144
148
|
*/
|
|
145
149
|
}, {
|
|
146
150
|
key: "setCategoryName",
|
|
@@ -150,7 +154,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
150
154
|
|
|
151
155
|
/**
|
|
152
156
|
* Returns The value for the category that this mapping is for.
|
|
153
|
-
* @return {}
|
|
157
|
+
* @return {string}
|
|
154
158
|
*/
|
|
155
159
|
}, {
|
|
156
160
|
key: "getCategoryValue",
|
|
@@ -160,7 +164,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
160
164
|
|
|
161
165
|
/**
|
|
162
166
|
* Sets The value for the category that this mapping is for.
|
|
163
|
-
* @param {} categoryValue The value for the category that this mapping is for.
|
|
167
|
+
* @param {string} categoryValue The value for the category that this mapping is for.
|
|
164
168
|
*/
|
|
165
169
|
}, {
|
|
166
170
|
key: "setCategoryValue",
|
|
@@ -169,7 +173,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
/**
|
|
172
|
-
* @return {}
|
|
176
|
+
* @return {AdInfo}
|
|
173
177
|
*/
|
|
174
178
|
}, {
|
|
175
179
|
key: "getAdInfo",
|
|
@@ -178,7 +182,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
178
182
|
}
|
|
179
183
|
|
|
180
184
|
/**
|
|
181
|
-
* @param {} adInfo
|
|
185
|
+
* @param {AdInfo} adInfo
|
|
182
186
|
*/
|
|
183
187
|
}, {
|
|
184
188
|
key: "setAdInfo",
|
|
@@ -211,7 +215,7 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
211
215
|
'$unknownFields': this.get$UnknownFields()
|
|
212
216
|
});
|
|
213
217
|
}
|
|
214
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(
|
|
218
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
215
219
|
'name': this.getName()
|
|
216
220
|
} : {}), typeof this.getCategoryName() !== 'undefined' && this.getCategoryName() !== null ? {
|
|
217
221
|
'categoryName': this.getCategoryName()
|
|
@@ -219,8 +223,6 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
219
223
|
'categoryValue': this.getCategoryValue()
|
|
220
224
|
} : {}), typeof this.getAdInfo() !== 'undefined' && this.getAdInfo() !== null ? {
|
|
221
225
|
'adInfo': this.getAdInfo().toJson(false)
|
|
222
|
-
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
223
|
-
'extId': this.getExtId()
|
|
224
226
|
} : {}), {}, {
|
|
225
227
|
'$reserved': this.get$Reserved(),
|
|
226
228
|
'$objectType': this.get$ObjectType(),
|
|
@@ -295,7 +297,8 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
295
297
|
}
|
|
296
298
|
}], [{
|
|
297
299
|
key: "constructFromObject",
|
|
298
|
-
value: function constructFromObject(data
|
|
300
|
+
value: function constructFromObject(data) {
|
|
301
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
299
302
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
300
303
|
var items, item, i, itemArr, discriminator;
|
|
301
304
|
if (data) {
|
|
@@ -316,7 +319,11 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
316
319
|
if (!callFromChild) {
|
|
317
320
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
318
321
|
for (var property in data) {
|
|
319
|
-
if
|
|
322
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
323
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
324
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
325
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
326
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
320
327
|
obj.$unknownFields[property] = data[property];
|
|
321
328
|
}
|
|
322
329
|
}
|
|
@@ -324,6 +331,19 @@ var CategoryMapping = exports["default"] = /*#__PURE__*/function (_Externalizabl
|
|
|
324
331
|
}
|
|
325
332
|
return obj;
|
|
326
333
|
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Converts a given snake_case string to camelCase.
|
|
337
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
338
|
+
* @returns {string} - The converted string in camelCase format.
|
|
339
|
+
*/
|
|
340
|
+
}, {
|
|
341
|
+
key: "snakeToCamel",
|
|
342
|
+
value: function snakeToCamel(snakeStr) {
|
|
343
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
344
|
+
return match[1].toUpperCase();
|
|
345
|
+
});
|
|
346
|
+
}
|
|
327
347
|
}]);
|
|
328
348
|
}(_ExternalizableAbstractModel["default"]);
|
|
329
349
|
/**
|
|
@@ -345,6 +365,18 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
345
365
|
}
|
|
346
366
|
return obj;
|
|
347
367
|
}
|
|
368
|
+
/*
|
|
369
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
370
|
+
* @param {Object} obj Object to serialize
|
|
371
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
372
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
373
|
+
*/
|
|
374
|
+
function _handleDateType(obj, isDateOnly) {
|
|
375
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
376
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
377
|
+
}
|
|
378
|
+
return obj;
|
|
379
|
+
}
|
|
348
380
|
CategoryMapping.prototype.name = undefined;
|
|
349
381
|
|
|
350
382
|
/**
|
|
@@ -364,4 +396,19 @@ CategoryMapping.prototype.categoryValue = undefined;
|
|
|
364
396
|
*/
|
|
365
397
|
CategoryMapping.prototype.adInfo = undefined;
|
|
366
398
|
|
|
399
|
+
/**
|
|
400
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
401
|
+
* @memberof CategoryMapping
|
|
402
|
+
*/
|
|
403
|
+
_ExternalizableAbstractModel["default"].prototype.extId = undefined;
|
|
404
|
+
/**
|
|
405
|
+
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
406
|
+
* @memberof CategoryMapping
|
|
407
|
+
*/
|
|
408
|
+
_ExternalizableAbstractModel["default"].prototype.links = undefined;
|
|
409
|
+
/**
|
|
410
|
+
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
411
|
+
* @memberof CategoryMapping
|
|
412
|
+
*/
|
|
413
|
+
_TenantAwareModel["default"].prototype.tenantId = undefined;
|
|
367
414
|
// Implement OneOfmicroseg.v4.config.GetDsCategoryMappingApiResponsedata interface:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The CreateAddressGroupApiResponse model module.
|
|
3
3
|
* @module Ntnx/CreateAddressGroupApiResponse
|
|
4
|
-
* @version 4.0.1
|
|
4
|
+
* @version 4.0.1
|
|
5
5
|
* @class CreateAddressGroupApiResponse
|
|
6
6
|
*/
|
|
7
7
|
export default class CreateAddressGroupApiResponse extends Paginable {
|
|
@@ -13,47 +13,87 @@ export default class CreateAddressGroupApiResponse extends Paginable {
|
|
|
13
13
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
14
|
* @return {module:Ntnx/CreateAddressGroupApiResponse} The populated <code>CreateAddressGroupApiResponse</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 CreateAddressGroupApiResponse model module.
|
|
53
53
|
* @module Ntnx/CreateAddressGroupApiResponse
|
|
54
|
-
* @version 4.0.1
|
|
54
|
+
* @version 4.0.1
|
|
55
55
|
* @class CreateAddressGroupApiResponse
|
|
56
56
|
*/
|
|
57
57
|
var _CreateAddressGroupApiResponse_brand = /*#__PURE__*/new WeakSet();
|
|
58
58
|
var CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (_Paginable) {
|
|
59
59
|
/**
|
|
60
60
|
* Constructs a new <code>CreateAddressGroupApiResponse</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/address-groups Post operation
|
|
62
62
|
* @alias module:Ntnx/CreateAddressGroupApiResponse
|
|
63
63
|
*/
|
|
64
64
|
function CreateAddressGroupApiResponse() {
|
|
@@ -73,9 +73,11 @@ var CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (
|
|
|
73
73
|
*/
|
|
74
74
|
_classPrivateMethodInitSpec(_this, _CreateAddressGroupApiResponse_brand);
|
|
75
75
|
_this.$objectType = "microseg.v4.config.CreateAddressGroupApiResponse";
|
|
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 CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (
|
|
|
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 CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (
|
|
|
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 CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (
|
|
|
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 CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (
|
|
|
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 CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (
|
|
|
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 CreateAddressGroupApiResponse = exports["default"] = /*#__PURE__*/function (
|
|
|
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
|
CreateAddressGroupApiResponse.prototype.metadata = undefined;
|
|
304
336
|
|
|
305
337
|
/**
|