@nutanix-scratch/networking-js-client 4.0.1-alpha.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 +49 -0
- package/README.md +194 -0
- package/dist/Ntnx-Networking-js-client-prod.js +11 -0
- package/dist/Ntnx-Networking-js-client.js +3491 -0
- package/dist/es/ApiClient.d.ts +158 -0
- package/dist/es/ApiClient.js +980 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +278 -0
- package/dist/es/apis/bgpsession-endpoints.d.ts +74 -0
- package/dist/es/apis/bgpsession-endpoints.js +244 -0
- package/dist/es/apis/floatingip-endpoints.d.ts +76 -0
- package/dist/es/apis/floatingip-endpoints.js +246 -0
- package/dist/es/apis/ipfixexporter-endpoints.d.ts +58 -0
- package/dist/es/apis/ipfixexporter-endpoints.js +221 -0
- package/dist/es/apis/layer2stretch-endpoints.d.ts +79 -0
- package/dist/es/apis/layer2stretch-endpoints.js +275 -0
- package/dist/es/apis/layer2stretchstats-endpoints.d.ts +48 -0
- package/dist/es/apis/layer2stretchstats-endpoints.js +108 -0
- package/dist/es/apis/networkcontroller-endpoints.d.ts +56 -0
- package/dist/es/apis/networkcontroller-endpoints.js +186 -0
- package/dist/es/apis/networkgateway-endpoints.d.ts +83 -0
- package/dist/es/apis/networkgateway-endpoints.js +278 -0
- package/dist/es/apis/routetable-endpoints.d.ts +54 -0
- package/dist/es/apis/routetable-endpoints.js +168 -0
- package/dist/es/apis/routingpolicy-endpoints.d.ts +74 -0
- package/dist/es/apis/routingpolicy-endpoints.js +244 -0
- package/dist/es/apis/routingpolicystats-endpoints.d.ts +37 -0
- package/dist/es/apis/routingpolicystats-endpoints.js +118 -0
- package/dist/es/apis/subnet-endpoints.d.ts +74 -0
- package/dist/es/apis/subnet-endpoints.js +244 -0
- package/dist/es/apis/subnetmigration-endpoints.d.ts +30 -0
- package/dist/es/apis/subnetmigration-endpoints.js +86 -0
- package/dist/es/apis/subnetreserveunreserveip-endpoints.d.ts +47 -0
- package/dist/es/apis/subnetreserveunreserveip-endpoints.js +172 -0
- package/dist/es/apis/virtualswitch-endpoints.d.ts +63 -0
- package/dist/es/apis/virtualswitch-endpoints.js +257 -0
- package/dist/es/apis/vpc-endpoints.d.ts +70 -0
- package/dist/es/apis/vpc-endpoints.js +240 -0
- package/dist/es/apis/vpcnsstats-endpoints.d.ts +54 -0
- package/dist/es/apis/vpcnsstats-endpoints.js +119 -0
- package/dist/es/apis/vpnconnection-endpoints.d.ts +74 -0
- package/dist/es/apis/vpnconnection-endpoints.js +244 -0
- package/dist/es/apis/vpnconnectionstats-endpoints.d.ts +47 -0
- package/dist/es/apis/vpnconnectionstats-endpoints.js +107 -0
- package/dist/es/apis/vpnvendorconfig-endpoints.d.ts +46 -0
- package/dist/es/apis/vpnvendorconfig-endpoints.js +136 -0
- package/dist/es/index.d.ts +430 -0
- package/dist/es/index.js +1717 -0
- package/dist/es/models/common/v1/config/EntityReference.d.ts +77 -0
- package/dist/es/models/common/v1/config/EntityReference.js +312 -0
- package/dist/es/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/es/models/common/v1/config/EntityType.js +206 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +57 -0
- package/dist/es/models/common/v1/config/Flag.js +235 -0
- package/dist/es/models/common/v1/config/IPAddress.d.ts +60 -0
- package/dist/es/models/common/v1/config/IPAddress.js +251 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +61 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +248 -0
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +61 -0
- package/dist/es/models/common/v1/config/IPv6Address.js +248 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +63 -0
- package/dist/es/models/common/v1/config/KVPair.js +271 -0
- package/dist/es/models/common/v1/config/Message.d.ts +81 -0
- package/dist/es/models/common/v1/config/Message.js +311 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +92 -0
- package/dist/es/models/common/v1/config/Metadata.d.ts +97 -0
- package/dist/es/models/common/v1/config/Metadata.js +371 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +49 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +203 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +61 -0
- package/dist/es/models/common/v1/response/ApiLink.js +240 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +89 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +386 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +41 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +235 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +110 -0
- package/dist/es/models/networking/v4/config/AddressAssignmentInfo.d.ts +107 -0
- package/dist/es/models/networking/v4/config/AddressAssignmentInfo.js +423 -0
- package/dist/es/models/networking/v4/config/AddressType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/AddressType.js +86 -0
- package/dist/es/models/networking/v4/config/AddressTypeObject.d.ts +54 -0
- package/dist/es/models/networking/v4/config/AddressTypeObject.js +202 -0
- package/dist/es/models/networking/v4/config/AncConfig.d.ts +80 -0
- package/dist/es/models/networking/v4/config/AncConfig.js +358 -0
- package/dist/es/models/networking/v4/config/AncConfigApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/AncConfigApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/AssignedAddressInfo.d.ts +57 -0
- package/dist/es/models/networking/v4/config/AssignedAddressInfo.js +236 -0
- package/dist/es/models/networking/v4/config/AuthenticationAlgorithm.d.ts +19 -0
- package/dist/es/models/networking/v4/config/AuthenticationAlgorithm.js +104 -0
- package/dist/es/models/networking/v4/config/AuthenticationType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/AuthenticationType.js +86 -0
- package/dist/es/models/networking/v4/config/AzureConfig.d.ts +56 -0
- package/dist/es/models/networking/v4/config/AzureConfig.js +221 -0
- package/dist/es/models/networking/v4/config/AzureExternalSubnetBinding.d.ts +99 -0
- package/dist/es/models/networking/v4/config/AzureExternalSubnetBinding.js +354 -0
- package/dist/es/models/networking/v4/config/AzureExternalSubnetConfig.d.ts +78 -0
- package/dist/es/models/networking/v4/config/AzureExternalSubnetConfig.js +292 -0
- package/dist/es/models/networking/v4/config/BgpConfig.d.ts +75 -0
- package/dist/es/models/networking/v4/config/BgpConfig.js +287 -0
- package/dist/es/models/networking/v4/config/BgpSession.d.ts +150 -0
- package/dist/es/models/networking/v4/config/BgpSession.js +575 -0
- package/dist/es/models/networking/v4/config/BgpSessionApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/BgpSessionApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/BgpSessionListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/BgpSessionListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/BondModeType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/BondModeType.js +98 -0
- package/dist/es/models/networking/v4/config/CloudNetwork.d.ts +44 -0
- package/dist/es/models/networking/v4/config/CloudNetwork.js +237 -0
- package/dist/es/models/networking/v4/config/CloudNetworkApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/CloudNetworkApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/CloudNetworkListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/CloudNetworkListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/CloudSubstrate.d.ts +19 -0
- package/dist/es/models/networking/v4/config/CloudSubstrate.js +80 -0
- package/dist/es/models/networking/v4/config/Cluster.d.ts +69 -0
- package/dist/es/models/networking/v4/config/Cluster.js +258 -0
- package/dist/es/models/networking/v4/config/ClusterFlowStatus.d.ts +49 -0
- package/dist/es/models/networking/v4/config/ClusterFlowStatus.js +211 -0
- package/dist/es/models/networking/v4/config/ClusterFlowStatusApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/ClusterFlowStatusApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/ClusterStatus.d.ts +61 -0
- package/dist/es/models/networking/v4/config/ClusterStatus.js +243 -0
- package/dist/es/models/networking/v4/config/ControllerStatus.d.ts +19 -0
- package/dist/es/models/networking/v4/config/ControllerStatus.js +92 -0
- package/dist/es/models/networking/v4/config/DhcpOptions.d.ts +109 -0
- package/dist/es/models/networking/v4/config/DhcpOptions.js +430 -0
- package/dist/es/models/networking/v4/config/DpdConfig.d.ts +71 -0
- package/dist/es/models/networking/v4/config/DpdConfig.js +276 -0
- package/dist/es/models/networking/v4/config/DpdOperation.d.ts +19 -0
- package/dist/es/models/networking/v4/config/DpdOperation.js +92 -0
- package/dist/es/models/networking/v4/config/EncryptionAlgorithm.d.ts +19 -0
- package/dist/es/models/networking/v4/config/EncryptionAlgorithm.js +92 -0
- package/dist/es/models/networking/v4/config/ExportScope.d.ts +57 -0
- package/dist/es/models/networking/v4/config/ExportScope.js +238 -0
- package/dist/es/models/networking/v4/config/ExporterProtocol.d.ts +19 -0
- package/dist/es/models/networking/v4/config/ExporterProtocol.js +86 -0
- package/dist/es/models/networking/v4/config/ExternalSubnet.d.ts +90 -0
- package/dist/es/models/networking/v4/config/ExternalSubnet.js +337 -0
- package/dist/es/models/networking/v4/config/FloatingIPAddress.d.ts +60 -0
- package/dist/es/models/networking/v4/config/FloatingIPAddress.js +251 -0
- package/dist/es/models/networking/v4/config/FloatingIPv4Address.d.ts +61 -0
- package/dist/es/models/networking/v4/config/FloatingIPv4Address.js +248 -0
- package/dist/es/models/networking/v4/config/FloatingIPv6Address.d.ts +61 -0
- package/dist/es/models/networking/v4/config/FloatingIPv6Address.js +248 -0
- package/dist/es/models/networking/v4/config/FloatingIp.d.ts +80 -0
- package/dist/es/models/networking/v4/config/FloatingIp.js +387 -0
- package/dist/es/models/networking/v4/config/FloatingIpApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/FloatingIpApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/FloatingIpListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/FloatingIpListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/FlowGateway.d.ts +74 -0
- package/dist/es/models/networking/v4/config/FlowGateway.js +332 -0
- package/dist/es/models/networking/v4/config/FlowGatewayApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/FlowGatewayApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/FlowGatewayKeepAliveRequest.d.ts +72 -0
- package/dist/es/models/networking/v4/config/FlowGatewayKeepAliveRequest.js +326 -0
- package/dist/es/models/networking/v4/config/FlowGatewayKeepAliveResponse.d.ts +31 -0
- package/dist/es/models/networking/v4/config/FlowGatewayKeepAliveResponse.js +191 -0
- package/dist/es/models/networking/v4/config/FlowGatewayKeepAliveResponseApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/FlowGatewayKeepAliveResponseApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/FlowGatewayListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/FlowGatewayListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/FlowGatewayState.d.ts +19 -0
- package/dist/es/models/networking/v4/config/FlowGatewayState.js +98 -0
- package/dist/es/models/networking/v4/config/FlowGatewayStatus.d.ts +59 -0
- package/dist/es/models/networking/v4/config/FlowGatewayStatus.js +238 -0
- package/dist/es/models/networking/v4/config/GatewayNodeReference.d.ts +57 -0
- package/dist/es/models/networking/v4/config/GatewayNodeReference.js +238 -0
- package/dist/es/models/networking/v4/config/GatewayRole.d.ts +19 -0
- package/dist/es/models/networking/v4/config/GatewayRole.js +86 -0
- package/dist/es/models/networking/v4/config/Host.d.ts +81 -0
- package/dist/es/models/networking/v4/config/Host.js +293 -0
- package/dist/es/models/networking/v4/config/ICMP.d.ts +61 -0
- package/dist/es/models/networking/v4/config/ICMP.js +250 -0
- package/dist/es/models/networking/v4/config/ICMPObject.d.ts +54 -0
- package/dist/es/models/networking/v4/config/ICMPObject.js +204 -0
- package/dist/es/models/networking/v4/config/IPConfig.d.ts +60 -0
- package/dist/es/models/networking/v4/config/IPConfig.js +251 -0
- package/dist/es/models/networking/v4/config/IPFIXExporter.d.ts +113 -0
- package/dist/es/models/networking/v4/config/IPFIXExporter.js +445 -0
- package/dist/es/models/networking/v4/config/IPFIXExporterApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/IPFIXExporterApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/IPFIXExporterListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/IPFIXExporterListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/IPSubnet.d.ts +60 -0
- package/dist/es/models/networking/v4/config/IPSubnet.js +250 -0
- package/dist/es/models/networking/v4/config/IPSubnetObject.d.ts +54 -0
- package/dist/es/models/networking/v4/config/IPSubnetObject.js +202 -0
- package/dist/es/models/networking/v4/config/IPv4Config.d.ts +86 -0
- package/dist/es/models/networking/v4/config/IPv4Config.js +322 -0
- package/dist/es/models/networking/v4/config/IPv4Pool.d.ts +65 -0
- package/dist/es/models/networking/v4/config/IPv4Pool.js +239 -0
- package/dist/es/models/networking/v4/config/IPv4Subnet.d.ts +66 -0
- package/dist/es/models/networking/v4/config/IPv4Subnet.js +246 -0
- package/dist/es/models/networking/v4/config/IPv6Config.d.ts +86 -0
- package/dist/es/models/networking/v4/config/IPv6Config.js +322 -0
- package/dist/es/models/networking/v4/config/IPv6Pool.d.ts +65 -0
- package/dist/es/models/networking/v4/config/IPv6Pool.js +239 -0
- package/dist/es/models/networking/v4/config/IPv6Subnet.d.ts +66 -0
- package/dist/es/models/networking/v4/config/IPv6Subnet.js +246 -0
- package/dist/es/models/networking/v4/config/IbgpConfig.d.ts +29 -0
- package/dist/es/models/networking/v4/config/IbgpConfig.js +185 -0
- package/dist/es/models/networking/v4/config/InternalRoutingConfig.d.ts +71 -0
- package/dist/es/models/networking/v4/config/InternalRoutingConfig.js +298 -0
- package/dist/es/models/networking/v4/config/IpReserveInput.d.ts +98 -0
- package/dist/es/models/networking/v4/config/IpReserveInput.js +359 -0
- package/dist/es/models/networking/v4/config/IpReserveOutput.d.ts +47 -0
- package/dist/es/models/networking/v4/config/IpReserveOutput.js +210 -0
- package/dist/es/models/networking/v4/config/IpUnreserveInput.d.ts +98 -0
- package/dist/es/models/networking/v4/config/IpUnreserveInput.js +359 -0
- package/dist/es/models/networking/v4/config/IpsecConfig.d.ts +176 -0
- package/dist/es/models/networking/v4/config/IpsecConfig.js +607 -0
- package/dist/es/models/networking/v4/config/Layer2Stretch.d.ts +129 -0
- package/dist/es/models/networking/v4/config/Layer2Stretch.js +512 -0
- package/dist/es/models/networking/v4/config/Layer2StretchApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/Layer2StretchApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/Layer2StretchListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/Layer2StretchListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/Layer2StretchRelatedEntities.d.ts +67 -0
- package/dist/es/models/networking/v4/config/Layer2StretchRelatedEntities.js +304 -0
- package/dist/es/models/networking/v4/config/Layer2StretchRelatedEntitiesApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/Layer2StretchRelatedEntitiesApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/Layer2StretchSubnetInfo.d.ts +99 -0
- package/dist/es/models/networking/v4/config/Layer2StretchSubnetInfo.js +380 -0
- package/dist/es/models/networking/v4/config/Layer2StretchVpnConnectionInfo.d.ts +87 -0
- package/dist/es/models/networking/v4/config/Layer2StretchVpnConnectionInfo.js +341 -0
- package/dist/es/models/networking/v4/config/Layer2StretchVtepGatewayInfo.d.ts +115 -0
- package/dist/es/models/networking/v4/config/Layer2StretchVtepGatewayInfo.js +436 -0
- package/dist/es/models/networking/v4/config/LearnedAddressInfo.d.ts +69 -0
- package/dist/es/models/networking/v4/config/LearnedAddressInfo.js +274 -0
- package/dist/es/models/networking/v4/config/LocalBgpService.d.ts +95 -0
- package/dist/es/models/networking/v4/config/LocalBgpService.js +336 -0
- package/dist/es/models/networking/v4/config/LocalNetworkServices.d.ts +77 -0
- package/dist/es/models/networking/v4/config/LocalNetworkServices.js +310 -0
- package/dist/es/models/networking/v4/config/LocalVpnService.d.ts +57 -0
- package/dist/es/models/networking/v4/config/LocalVpnService.js +236 -0
- package/dist/es/models/networking/v4/config/LocalVtepService.d.ts +58 -0
- package/dist/es/models/networking/v4/config/LocalVtepService.js +212 -0
- package/dist/es/models/networking/v4/config/MacAddress.d.ts +54 -0
- package/dist/es/models/networking/v4/config/MacAddress.js +204 -0
- package/dist/es/models/networking/v4/config/NetworkCloudConfig.d.ts +37 -0
- package/dist/es/models/networking/v4/config/NetworkCloudConfig.js +195 -0
- package/dist/es/models/networking/v4/config/NetworkCloudConfigApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/NetworkCloudConfigApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/NetworkCloudConfigListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/NetworkCloudConfigListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/NetworkController.d.ts +76 -0
- package/dist/es/models/networking/v4/config/NetworkController.js +337 -0
- package/dist/es/models/networking/v4/config/NetworkControllerApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/NetworkControllerApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/NetworkControllerListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/NetworkControllerListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/NetworkGateway.d.ts +148 -0
- package/dist/es/models/networking/v4/config/NetworkGateway.js +605 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayDeployment.d.ts +71 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayDeployment.js +281 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayManagementInterface.d.ts +95 -0
- package/dist/es/models/networking/v4/config/NetworkGatewayManagementInterface.js +360 -0
- package/dist/es/models/networking/v4/config/NetworkingBaseModel.d.ts +29 -0
- package/dist/es/models/networking/v4/config/NetworkingBaseModel.js +188 -0
- package/dist/es/models/networking/v4/config/NexthopType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/NexthopType.js +104 -0
- package/dist/es/models/networking/v4/config/NodeSchedulableStatus.d.ts +69 -0
- package/dist/es/models/networking/v4/config/NodeSchedulableStatus.js +247 -0
- package/dist/es/models/networking/v4/config/NodeSchedulableStatusApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/NodeSchedulableStatusApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/OspfConfig.d.ts +71 -0
- package/dist/es/models/networking/v4/config/OspfConfig.js +279 -0
- package/dist/es/models/networking/v4/config/PortRange.d.ts +69 -0
- package/dist/es/models/networking/v4/config/PortRange.js +254 -0
- package/dist/es/models/networking/v4/config/PrivateIpAssociation.d.ts +67 -0
- package/dist/es/models/networking/v4/config/PrivateIpAssociation.js +247 -0
- package/dist/es/models/networking/v4/config/ProtocolNumberObject.d.ts +55 -0
- package/dist/es/models/networking/v4/config/ProtocolNumberObject.js +210 -0
- package/dist/es/models/networking/v4/config/ProtocolType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/ProtocolType.js +104 -0
- package/dist/es/models/networking/v4/config/PublicIpMapping.d.ts +64 -0
- package/dist/es/models/networking/v4/config/PublicIpMapping.js +238 -0
- package/dist/es/models/networking/v4/config/QosConfig.d.ts +61 -0
- package/dist/es/models/networking/v4/config/QosConfig.js +240 -0
- package/dist/es/models/networking/v4/config/RemoteBgpService.d.ts +69 -0
- package/dist/es/models/networking/v4/config/RemoteBgpService.js +250 -0
- package/dist/es/models/networking/v4/config/RemoteNetworkServices.d.ts +67 -0
- package/dist/es/models/networking/v4/config/RemoteNetworkServices.js +274 -0
- package/dist/es/models/networking/v4/config/RemoteVpnService.d.ts +79 -0
- package/dist/es/models/networking/v4/config/RemoteVpnService.js +311 -0
- package/dist/es/models/networking/v4/config/RemoteVtepService.d.ts +63 -0
- package/dist/es/models/networking/v4/config/RemoteVtepService.js +260 -0
- package/dist/es/models/networking/v4/config/RemoteVtepStretchStatus.d.ts +67 -0
- package/dist/es/models/networking/v4/config/RemoteVtepStretchStatus.js +282 -0
- package/dist/es/models/networking/v4/config/RerouteFallbackAction.d.ts +19 -0
- package/dist/es/models/networking/v4/config/RerouteFallbackAction.js +92 -0
- package/dist/es/models/networking/v4/config/RerouteParam.d.ts +64 -0
- package/dist/es/models/networking/v4/config/RerouteParam.js +238 -0
- package/dist/es/models/networking/v4/config/ReserveType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/ReserveType.js +92 -0
- package/dist/es/models/networking/v4/config/ReservedAddressInfo.d.ts +49 -0
- package/dist/es/models/networking/v4/config/ReservedAddressInfo.js +202 -0
- package/dist/es/models/networking/v4/config/RollingRestartStatus.d.ts +56 -0
- package/dist/es/models/networking/v4/config/RollingRestartStatus.js +206 -0
- package/dist/es/models/networking/v4/config/RollingRestartStatusApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/RollingRestartStatusApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/Route.d.ts +135 -0
- package/dist/es/models/networking/v4/config/Route.js +461 -0
- package/dist/es/models/networking/v4/config/RouteTable.d.ts +80 -0
- package/dist/es/models/networking/v4/config/RouteTable.js +381 -0
- package/dist/es/models/networking/v4/config/RouteTableApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/RouteTableApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/RouteTableListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/RouteTableListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/RoutingPolicy.d.ts +91 -0
- package/dist/es/models/networking/v4/config/RoutingPolicy.js +387 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyAction.d.ts +64 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyAction.js +251 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyActionType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyActionType.js +92 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyMatchCondition.d.ts +96 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyMatchCondition.js +430 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyRule.d.ts +77 -0
- package/dist/es/models/networking/v4/config/RoutingPolicyRule.js +279 -0
- package/dist/es/models/networking/v4/config/ScopeType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/ScopeType.js +86 -0
- package/dist/es/models/networking/v4/config/SiteParams.d.ts +139 -0
- package/dist/es/models/networking/v4/config/SiteParams.js +516 -0
- package/dist/es/models/networking/v4/config/State.d.ts +19 -0
- package/dist/es/models/networking/v4/config/State.js +86 -0
- package/dist/es/models/networking/v4/config/Status.d.ts +57 -0
- package/dist/es/models/networking/v4/config/Status.js +235 -0
- package/dist/es/models/networking/v4/config/StretchConnectionType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/StretchConnectionType.js +86 -0
- package/dist/es/models/networking/v4/config/StretchState.d.ts +19 -0
- package/dist/es/models/networking/v4/config/StretchState.js +86 -0
- package/dist/es/models/networking/v4/config/StretchStatus.d.ts +91 -0
- package/dist/es/models/networking/v4/config/StretchStatus.js +347 -0
- package/dist/es/models/networking/v4/config/Subnet.d.ts +218 -0
- package/dist/es/models/networking/v4/config/Subnet.js +830 -0
- package/dist/es/models/networking/v4/config/SubnetAddressAssignmentListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/SubnetAddressAssignmentListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/SubnetApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/SubnetApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/SubnetListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/SubnetListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/SubnetMigration.d.ts +56 -0
- package/dist/es/models/networking/v4/config/SubnetMigration.js +215 -0
- package/dist/es/models/networking/v4/config/SubnetMigrationItem.d.ts +78 -0
- package/dist/es/models/networking/v4/config/SubnetMigrationItem.js +295 -0
- package/dist/es/models/networking/v4/config/SubnetType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/SubnetType.js +86 -0
- package/dist/es/models/networking/v4/config/TCP.d.ts +57 -0
- package/dist/es/models/networking/v4/config/TCP.js +255 -0
- package/dist/es/models/networking/v4/config/TCPObject.d.ts +54 -0
- package/dist/es/models/networking/v4/config/TCPObject.js +204 -0
- package/dist/es/models/networking/v4/config/Task.d.ts +49 -0
- package/dist/es/models/networking/v4/config/Task.js +205 -0
- package/dist/es/models/networking/v4/config/TaskReferenceApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/TaskReferenceApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/UDP.d.ts +57 -0
- package/dist/es/models/networking/v4/config/UDP.js +255 -0
- package/dist/es/models/networking/v4/config/UDPObject.d.ts +54 -0
- package/dist/es/models/networking/v4/config/UDPObject.js +204 -0
- package/dist/es/models/networking/v4/config/UnreserveType.d.ts +19 -0
- package/dist/es/models/networking/v4/config/UnreserveType.js +92 -0
- package/dist/es/models/networking/v4/config/VirtualSwitch.d.ts +123 -0
- package/dist/es/models/networking/v4/config/VirtualSwitch.js +479 -0
- package/dist/es/models/networking/v4/config/VirtualSwitchApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/VirtualSwitchApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/VirtualSwitchListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/VirtualSwitchListApiResponse.js +305 -0
- package/dist/es/models/networking/v4/config/VirtualSwitchProjection.d.ts +9 -0
- package/dist/es/models/networking/v4/config/VirtualSwitchProjection.js +126 -0
- package/dist/es/models/networking/v4/config/VmNicAssociation.d.ts +68 -0
- package/dist/es/models/networking/v4/config/VmNicAssociation.js +248 -0
- package/dist/es/models/networking/v4/config/Vpc.d.ts +109 -0
- package/dist/es/models/networking/v4/config/Vpc.js +461 -0
- package/dist/es/models/networking/v4/config/VpcApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/VpcApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/VpcDhcpOptions.d.ts +49 -0
- package/dist/es/models/networking/v4/config/VpcDhcpOptions.js +216 -0
- package/dist/es/models/networking/v4/config/VpcListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/VpcListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/VpnConnection.d.ts +177 -0
- package/dist/es/models/networking/v4/config/VpnConnection.js +680 -0
- package/dist/es/models/networking/v4/config/VpnConnectionApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/VpnConnectionApiResponse.js +284 -0
- package/dist/es/models/networking/v4/config/VpnConnectionListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/VpnConnectionListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/VpnVendor.d.ts +61 -0
- package/dist/es/models/networking/v4/config/VpnVendor.js +245 -0
- package/dist/es/models/networking/v4/config/VpnVendorListApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/config/VpnVendorListApiResponse.js +292 -0
- package/dist/es/models/networking/v4/config/Vtep.d.ts +47 -0
- package/dist/es/models/networking/v4/config/Vtep.js +200 -0
- package/dist/es/models/networking/v4/error/AppMessage.d.ts +99 -0
- package/dist/es/models/networking/v4/error/AppMessage.js +379 -0
- package/dist/es/models/networking/v4/error/ErrorResponse.d.ts +49 -0
- package/dist/es/models/networking/v4/error/ErrorResponse.js +284 -0
- package/dist/es/models/networking/v4/error/SchemaValidationError.d.ts +87 -0
- package/dist/es/models/networking/v4/error/SchemaValidationError.js +352 -0
- package/dist/es/models/networking/v4/error/SchemaValidationErrorMessage.d.ts +67 -0
- package/dist/es/models/networking/v4/error/SchemaValidationErrorMessage.js +269 -0
- package/dist/es/models/networking/v4/stats/Layer2StretchStats.d.ts +57 -0
- package/dist/es/models/networking/v4/stats/Layer2StretchStats.js +291 -0
- package/dist/es/models/networking/v4/stats/Layer2StretchStatsApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/stats/Layer2StretchStatsApiResponse.js +284 -0
- package/dist/es/models/networking/v4/stats/RoutingPolicyClearCounterResult.d.ts +31 -0
- package/dist/es/models/networking/v4/stats/RoutingPolicyClearCounterResult.js +192 -0
- package/dist/es/models/networking/v4/stats/RoutingPolicyClearCountersApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/stats/RoutingPolicyClearCountersApiResponse.js +284 -0
- package/dist/es/models/networking/v4/stats/RoutingPolicyClearCountersBody.d.ts +37 -0
- package/dist/es/models/networking/v4/stats/RoutingPolicyClearCountersBody.js +189 -0
- package/dist/es/models/networking/v4/stats/StatsQueryResponseBase.d.ts +41 -0
- package/dist/es/models/networking/v4/stats/StatsQueryResponseBase.js +229 -0
- package/dist/es/models/networking/v4/stats/VpcNsStats.d.ts +117 -0
- package/dist/es/models/networking/v4/stats/VpcNsStats.js +506 -0
- package/dist/es/models/networking/v4/stats/VpcNsStatsApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/stats/VpcNsStatsApiResponse.js +284 -0
- package/dist/es/models/networking/v4/stats/VpnConnectionStats.d.ts +45 -0
- package/dist/es/models/networking/v4/stats/VpnConnectionStats.js +248 -0
- package/dist/es/models/networking/v4/stats/VpnConnectionStatsApiResponse.d.ts +60 -0
- package/dist/es/models/networking/v4/stats/VpnConnectionStatsApiResponse.js +284 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +49 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +207 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +62 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +39 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +87 -0
- package/dist/lib/ApiClient.d.ts +158 -0
- package/dist/lib/ApiClient.js +980 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +278 -0
- package/dist/lib/apis/bgpsession-endpoints.d.ts +74 -0
- package/dist/lib/apis/bgpsession-endpoints.js +244 -0
- package/dist/lib/apis/floatingip-endpoints.d.ts +76 -0
- package/dist/lib/apis/floatingip-endpoints.js +246 -0
- package/dist/lib/apis/ipfixexporter-endpoints.d.ts +58 -0
- package/dist/lib/apis/ipfixexporter-endpoints.js +221 -0
- package/dist/lib/apis/layer2stretch-endpoints.d.ts +79 -0
- package/dist/lib/apis/layer2stretch-endpoints.js +275 -0
- package/dist/lib/apis/layer2stretchstats-endpoints.d.ts +48 -0
- package/dist/lib/apis/layer2stretchstats-endpoints.js +108 -0
- package/dist/lib/apis/networkcontroller-endpoints.d.ts +56 -0
- package/dist/lib/apis/networkcontroller-endpoints.js +186 -0
- package/dist/lib/apis/networkgateway-endpoints.d.ts +83 -0
- package/dist/lib/apis/networkgateway-endpoints.js +278 -0
- package/dist/lib/apis/routetable-endpoints.d.ts +54 -0
- package/dist/lib/apis/routetable-endpoints.js +168 -0
- package/dist/lib/apis/routingpolicy-endpoints.d.ts +74 -0
- package/dist/lib/apis/routingpolicy-endpoints.js +244 -0
- package/dist/lib/apis/routingpolicystats-endpoints.d.ts +37 -0
- package/dist/lib/apis/routingpolicystats-endpoints.js +118 -0
- package/dist/lib/apis/subnet-endpoints.d.ts +74 -0
- package/dist/lib/apis/subnet-endpoints.js +244 -0
- package/dist/lib/apis/subnetmigration-endpoints.d.ts +30 -0
- package/dist/lib/apis/subnetmigration-endpoints.js +86 -0
- package/dist/lib/apis/subnetreserveunreserveip-endpoints.d.ts +47 -0
- package/dist/lib/apis/subnetreserveunreserveip-endpoints.js +172 -0
- package/dist/lib/apis/virtualswitch-endpoints.d.ts +63 -0
- package/dist/lib/apis/virtualswitch-endpoints.js +257 -0
- package/dist/lib/apis/vpc-endpoints.d.ts +70 -0
- package/dist/lib/apis/vpc-endpoints.js +240 -0
- package/dist/lib/apis/vpcnsstats-endpoints.d.ts +54 -0
- package/dist/lib/apis/vpcnsstats-endpoints.js +119 -0
- package/dist/lib/apis/vpnconnection-endpoints.d.ts +74 -0
- package/dist/lib/apis/vpnconnection-endpoints.js +244 -0
- package/dist/lib/apis/vpnconnectionstats-endpoints.d.ts +47 -0
- package/dist/lib/apis/vpnconnectionstats-endpoints.js +107 -0
- package/dist/lib/apis/vpnvendorconfig-endpoints.d.ts +46 -0
- package/dist/lib/apis/vpnvendorconfig-endpoints.js +136 -0
- package/dist/lib/index.d.ts +430 -0
- package/dist/lib/index.js +1717 -0
- package/dist/lib/models/common/v1/config/EntityReference.d.ts +77 -0
- package/dist/lib/models/common/v1/config/EntityReference.js +312 -0
- package/dist/lib/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/lib/models/common/v1/config/EntityType.js +206 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +57 -0
- package/dist/lib/models/common/v1/config/Flag.js +235 -0
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +60 -0
- package/dist/lib/models/common/v1/config/IPAddress.js +251 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +61 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +248 -0
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +61 -0
- package/dist/lib/models/common/v1/config/IPv6Address.js +248 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +63 -0
- package/dist/lib/models/common/v1/config/KVPair.js +271 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +81 -0
- package/dist/lib/models/common/v1/config/Message.js +311 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +92 -0
- package/dist/lib/models/common/v1/config/Metadata.d.ts +97 -0
- package/dist/lib/models/common/v1/config/Metadata.js +371 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +49 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +203 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +61 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +240 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +89 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +386 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +41 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +235 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +110 -0
- package/dist/lib/models/networking/v4/config/AddressAssignmentInfo.d.ts +107 -0
- package/dist/lib/models/networking/v4/config/AddressAssignmentInfo.js +423 -0
- package/dist/lib/models/networking/v4/config/AddressType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/AddressType.js +86 -0
- package/dist/lib/models/networking/v4/config/AddressTypeObject.d.ts +54 -0
- package/dist/lib/models/networking/v4/config/AddressTypeObject.js +202 -0
- package/dist/lib/models/networking/v4/config/AncConfig.d.ts +80 -0
- package/dist/lib/models/networking/v4/config/AncConfig.js +358 -0
- package/dist/lib/models/networking/v4/config/AncConfigApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/AncConfigApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/AssignedAddressInfo.d.ts +57 -0
- package/dist/lib/models/networking/v4/config/AssignedAddressInfo.js +236 -0
- package/dist/lib/models/networking/v4/config/AuthenticationAlgorithm.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/AuthenticationAlgorithm.js +104 -0
- package/dist/lib/models/networking/v4/config/AuthenticationType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/AuthenticationType.js +86 -0
- package/dist/lib/models/networking/v4/config/AzureConfig.d.ts +56 -0
- package/dist/lib/models/networking/v4/config/AzureConfig.js +221 -0
- package/dist/lib/models/networking/v4/config/AzureExternalSubnetBinding.d.ts +99 -0
- package/dist/lib/models/networking/v4/config/AzureExternalSubnetBinding.js +354 -0
- package/dist/lib/models/networking/v4/config/AzureExternalSubnetConfig.d.ts +78 -0
- package/dist/lib/models/networking/v4/config/AzureExternalSubnetConfig.js +292 -0
- package/dist/lib/models/networking/v4/config/BgpConfig.d.ts +75 -0
- package/dist/lib/models/networking/v4/config/BgpConfig.js +287 -0
- package/dist/lib/models/networking/v4/config/BgpSession.d.ts +150 -0
- package/dist/lib/models/networking/v4/config/BgpSession.js +575 -0
- package/dist/lib/models/networking/v4/config/BgpSessionApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/BgpSessionApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/BgpSessionListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/BgpSessionListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/BondModeType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/BondModeType.js +98 -0
- package/dist/lib/models/networking/v4/config/CloudNetwork.d.ts +44 -0
- package/dist/lib/models/networking/v4/config/CloudNetwork.js +237 -0
- package/dist/lib/models/networking/v4/config/CloudNetworkApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/CloudNetworkApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/CloudNetworkListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/CloudNetworkListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/CloudSubstrate.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/CloudSubstrate.js +80 -0
- package/dist/lib/models/networking/v4/config/Cluster.d.ts +69 -0
- package/dist/lib/models/networking/v4/config/Cluster.js +258 -0
- package/dist/lib/models/networking/v4/config/ClusterFlowStatus.d.ts +49 -0
- package/dist/lib/models/networking/v4/config/ClusterFlowStatus.js +211 -0
- package/dist/lib/models/networking/v4/config/ClusterFlowStatusApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/ClusterFlowStatusApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/ClusterStatus.d.ts +61 -0
- package/dist/lib/models/networking/v4/config/ClusterStatus.js +243 -0
- package/dist/lib/models/networking/v4/config/ControllerStatus.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/ControllerStatus.js +92 -0
- package/dist/lib/models/networking/v4/config/DhcpOptions.d.ts +109 -0
- package/dist/lib/models/networking/v4/config/DhcpOptions.js +430 -0
- package/dist/lib/models/networking/v4/config/DpdConfig.d.ts +71 -0
- package/dist/lib/models/networking/v4/config/DpdConfig.js +276 -0
- package/dist/lib/models/networking/v4/config/DpdOperation.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/DpdOperation.js +92 -0
- package/dist/lib/models/networking/v4/config/EncryptionAlgorithm.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/EncryptionAlgorithm.js +92 -0
- package/dist/lib/models/networking/v4/config/ExportScope.d.ts +57 -0
- package/dist/lib/models/networking/v4/config/ExportScope.js +238 -0
- package/dist/lib/models/networking/v4/config/ExporterProtocol.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/ExporterProtocol.js +86 -0
- package/dist/lib/models/networking/v4/config/ExternalSubnet.d.ts +90 -0
- package/dist/lib/models/networking/v4/config/ExternalSubnet.js +337 -0
- package/dist/lib/models/networking/v4/config/FloatingIPAddress.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/FloatingIPAddress.js +251 -0
- package/dist/lib/models/networking/v4/config/FloatingIPv4Address.d.ts +61 -0
- package/dist/lib/models/networking/v4/config/FloatingIPv4Address.js +248 -0
- package/dist/lib/models/networking/v4/config/FloatingIPv6Address.d.ts +61 -0
- package/dist/lib/models/networking/v4/config/FloatingIPv6Address.js +248 -0
- package/dist/lib/models/networking/v4/config/FloatingIp.d.ts +80 -0
- package/dist/lib/models/networking/v4/config/FloatingIp.js +387 -0
- package/dist/lib/models/networking/v4/config/FloatingIpApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/FloatingIpApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/FloatingIpListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/FloatingIpListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/FlowGateway.d.ts +74 -0
- package/dist/lib/models/networking/v4/config/FlowGateway.js +332 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayKeepAliveRequest.d.ts +72 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayKeepAliveRequest.js +326 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayKeepAliveResponse.d.ts +31 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayKeepAliveResponse.js +191 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayKeepAliveResponseApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayKeepAliveResponseApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayState.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayState.js +98 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayStatus.d.ts +59 -0
- package/dist/lib/models/networking/v4/config/FlowGatewayStatus.js +238 -0
- package/dist/lib/models/networking/v4/config/GatewayNodeReference.d.ts +57 -0
- package/dist/lib/models/networking/v4/config/GatewayNodeReference.js +238 -0
- package/dist/lib/models/networking/v4/config/GatewayRole.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/GatewayRole.js +86 -0
- package/dist/lib/models/networking/v4/config/Host.d.ts +81 -0
- package/dist/lib/models/networking/v4/config/Host.js +293 -0
- package/dist/lib/models/networking/v4/config/ICMP.d.ts +61 -0
- package/dist/lib/models/networking/v4/config/ICMP.js +250 -0
- package/dist/lib/models/networking/v4/config/ICMPObject.d.ts +54 -0
- package/dist/lib/models/networking/v4/config/ICMPObject.js +204 -0
- package/dist/lib/models/networking/v4/config/IPConfig.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/IPConfig.js +251 -0
- package/dist/lib/models/networking/v4/config/IPFIXExporter.d.ts +113 -0
- package/dist/lib/models/networking/v4/config/IPFIXExporter.js +445 -0
- package/dist/lib/models/networking/v4/config/IPFIXExporterApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/IPFIXExporterApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/IPFIXExporterListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/IPFIXExporterListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/IPSubnet.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/IPSubnet.js +250 -0
- package/dist/lib/models/networking/v4/config/IPSubnetObject.d.ts +54 -0
- package/dist/lib/models/networking/v4/config/IPSubnetObject.js +202 -0
- package/dist/lib/models/networking/v4/config/IPv4Config.d.ts +86 -0
- package/dist/lib/models/networking/v4/config/IPv4Config.js +322 -0
- package/dist/lib/models/networking/v4/config/IPv4Pool.d.ts +65 -0
- package/dist/lib/models/networking/v4/config/IPv4Pool.js +239 -0
- package/dist/lib/models/networking/v4/config/IPv4Subnet.d.ts +66 -0
- package/dist/lib/models/networking/v4/config/IPv4Subnet.js +246 -0
- package/dist/lib/models/networking/v4/config/IPv6Config.d.ts +86 -0
- package/dist/lib/models/networking/v4/config/IPv6Config.js +322 -0
- package/dist/lib/models/networking/v4/config/IPv6Pool.d.ts +65 -0
- package/dist/lib/models/networking/v4/config/IPv6Pool.js +239 -0
- package/dist/lib/models/networking/v4/config/IPv6Subnet.d.ts +66 -0
- package/dist/lib/models/networking/v4/config/IPv6Subnet.js +246 -0
- package/dist/lib/models/networking/v4/config/IbgpConfig.d.ts +29 -0
- package/dist/lib/models/networking/v4/config/IbgpConfig.js +185 -0
- package/dist/lib/models/networking/v4/config/InternalRoutingConfig.d.ts +71 -0
- package/dist/lib/models/networking/v4/config/InternalRoutingConfig.js +298 -0
- package/dist/lib/models/networking/v4/config/IpReserveInput.d.ts +98 -0
- package/dist/lib/models/networking/v4/config/IpReserveInput.js +359 -0
- package/dist/lib/models/networking/v4/config/IpReserveOutput.d.ts +47 -0
- package/dist/lib/models/networking/v4/config/IpReserveOutput.js +210 -0
- package/dist/lib/models/networking/v4/config/IpUnreserveInput.d.ts +98 -0
- package/dist/lib/models/networking/v4/config/IpUnreserveInput.js +359 -0
- package/dist/lib/models/networking/v4/config/IpsecConfig.d.ts +176 -0
- package/dist/lib/models/networking/v4/config/IpsecConfig.js +607 -0
- package/dist/lib/models/networking/v4/config/Layer2Stretch.d.ts +129 -0
- package/dist/lib/models/networking/v4/config/Layer2Stretch.js +512 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchRelatedEntities.d.ts +67 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchRelatedEntities.js +304 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchRelatedEntitiesApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchRelatedEntitiesApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchSubnetInfo.d.ts +99 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchSubnetInfo.js +380 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchVpnConnectionInfo.d.ts +87 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchVpnConnectionInfo.js +341 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchVtepGatewayInfo.d.ts +115 -0
- package/dist/lib/models/networking/v4/config/Layer2StretchVtepGatewayInfo.js +436 -0
- package/dist/lib/models/networking/v4/config/LearnedAddressInfo.d.ts +69 -0
- package/dist/lib/models/networking/v4/config/LearnedAddressInfo.js +274 -0
- package/dist/lib/models/networking/v4/config/LocalBgpService.d.ts +95 -0
- package/dist/lib/models/networking/v4/config/LocalBgpService.js +336 -0
- package/dist/lib/models/networking/v4/config/LocalNetworkServices.d.ts +77 -0
- package/dist/lib/models/networking/v4/config/LocalNetworkServices.js +310 -0
- package/dist/lib/models/networking/v4/config/LocalVpnService.d.ts +57 -0
- package/dist/lib/models/networking/v4/config/LocalVpnService.js +236 -0
- package/dist/lib/models/networking/v4/config/LocalVtepService.d.ts +58 -0
- package/dist/lib/models/networking/v4/config/LocalVtepService.js +212 -0
- package/dist/lib/models/networking/v4/config/MacAddress.d.ts +54 -0
- package/dist/lib/models/networking/v4/config/MacAddress.js +204 -0
- package/dist/lib/models/networking/v4/config/NetworkCloudConfig.d.ts +37 -0
- package/dist/lib/models/networking/v4/config/NetworkCloudConfig.js +195 -0
- package/dist/lib/models/networking/v4/config/NetworkCloudConfigApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/NetworkCloudConfigApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/NetworkCloudConfigListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/NetworkCloudConfigListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/NetworkController.d.ts +76 -0
- package/dist/lib/models/networking/v4/config/NetworkController.js +337 -0
- package/dist/lib/models/networking/v4/config/NetworkControllerApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/NetworkControllerApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/NetworkControllerListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/NetworkControllerListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/NetworkGateway.d.ts +148 -0
- package/dist/lib/models/networking/v4/config/NetworkGateway.js +605 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayDeployment.d.ts +71 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayDeployment.js +281 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayManagementInterface.d.ts +95 -0
- package/dist/lib/models/networking/v4/config/NetworkGatewayManagementInterface.js +360 -0
- package/dist/lib/models/networking/v4/config/NetworkingBaseModel.d.ts +29 -0
- package/dist/lib/models/networking/v4/config/NetworkingBaseModel.js +188 -0
- package/dist/lib/models/networking/v4/config/NexthopType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/NexthopType.js +104 -0
- package/dist/lib/models/networking/v4/config/NodeSchedulableStatus.d.ts +69 -0
- package/dist/lib/models/networking/v4/config/NodeSchedulableStatus.js +247 -0
- package/dist/lib/models/networking/v4/config/NodeSchedulableStatusApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/NodeSchedulableStatusApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/OspfConfig.d.ts +71 -0
- package/dist/lib/models/networking/v4/config/OspfConfig.js +279 -0
- package/dist/lib/models/networking/v4/config/PortRange.d.ts +69 -0
- package/dist/lib/models/networking/v4/config/PortRange.js +254 -0
- package/dist/lib/models/networking/v4/config/PrivateIpAssociation.d.ts +67 -0
- package/dist/lib/models/networking/v4/config/PrivateIpAssociation.js +247 -0
- package/dist/lib/models/networking/v4/config/ProtocolNumberObject.d.ts +55 -0
- package/dist/lib/models/networking/v4/config/ProtocolNumberObject.js +210 -0
- package/dist/lib/models/networking/v4/config/ProtocolType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/ProtocolType.js +104 -0
- package/dist/lib/models/networking/v4/config/PublicIpMapping.d.ts +64 -0
- package/dist/lib/models/networking/v4/config/PublicIpMapping.js +238 -0
- package/dist/lib/models/networking/v4/config/QosConfig.d.ts +61 -0
- package/dist/lib/models/networking/v4/config/QosConfig.js +240 -0
- package/dist/lib/models/networking/v4/config/RemoteBgpService.d.ts +69 -0
- package/dist/lib/models/networking/v4/config/RemoteBgpService.js +250 -0
- package/dist/lib/models/networking/v4/config/RemoteNetworkServices.d.ts +67 -0
- package/dist/lib/models/networking/v4/config/RemoteNetworkServices.js +274 -0
- package/dist/lib/models/networking/v4/config/RemoteVpnService.d.ts +79 -0
- package/dist/lib/models/networking/v4/config/RemoteVpnService.js +311 -0
- package/dist/lib/models/networking/v4/config/RemoteVtepService.d.ts +63 -0
- package/dist/lib/models/networking/v4/config/RemoteVtepService.js +260 -0
- package/dist/lib/models/networking/v4/config/RemoteVtepStretchStatus.d.ts +67 -0
- package/dist/lib/models/networking/v4/config/RemoteVtepStretchStatus.js +282 -0
- package/dist/lib/models/networking/v4/config/RerouteFallbackAction.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/RerouteFallbackAction.js +92 -0
- package/dist/lib/models/networking/v4/config/RerouteParam.d.ts +64 -0
- package/dist/lib/models/networking/v4/config/RerouteParam.js +238 -0
- package/dist/lib/models/networking/v4/config/ReserveType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/ReserveType.js +92 -0
- package/dist/lib/models/networking/v4/config/ReservedAddressInfo.d.ts +49 -0
- package/dist/lib/models/networking/v4/config/ReservedAddressInfo.js +202 -0
- package/dist/lib/models/networking/v4/config/RollingRestartStatus.d.ts +56 -0
- package/dist/lib/models/networking/v4/config/RollingRestartStatus.js +206 -0
- package/dist/lib/models/networking/v4/config/RollingRestartStatusApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/RollingRestartStatusApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/Route.d.ts +135 -0
- package/dist/lib/models/networking/v4/config/Route.js +461 -0
- package/dist/lib/models/networking/v4/config/RouteTable.d.ts +80 -0
- package/dist/lib/models/networking/v4/config/RouteTable.js +381 -0
- package/dist/lib/models/networking/v4/config/RouteTableApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/RouteTableApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/RouteTableListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/RouteTableListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicy.d.ts +91 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicy.js +387 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyAction.d.ts +64 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyAction.js +251 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyActionType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyActionType.js +92 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyMatchCondition.d.ts +96 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyMatchCondition.js +430 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyRule.d.ts +77 -0
- package/dist/lib/models/networking/v4/config/RoutingPolicyRule.js +279 -0
- package/dist/lib/models/networking/v4/config/ScopeType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/ScopeType.js +86 -0
- package/dist/lib/models/networking/v4/config/SiteParams.d.ts +139 -0
- package/dist/lib/models/networking/v4/config/SiteParams.js +516 -0
- package/dist/lib/models/networking/v4/config/State.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/State.js +86 -0
- package/dist/lib/models/networking/v4/config/Status.d.ts +57 -0
- package/dist/lib/models/networking/v4/config/Status.js +235 -0
- package/dist/lib/models/networking/v4/config/StretchConnectionType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/StretchConnectionType.js +86 -0
- package/dist/lib/models/networking/v4/config/StretchState.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/StretchState.js +86 -0
- package/dist/lib/models/networking/v4/config/StretchStatus.d.ts +91 -0
- package/dist/lib/models/networking/v4/config/StretchStatus.js +347 -0
- package/dist/lib/models/networking/v4/config/Subnet.d.ts +218 -0
- package/dist/lib/models/networking/v4/config/Subnet.js +830 -0
- package/dist/lib/models/networking/v4/config/SubnetAddressAssignmentListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/SubnetAddressAssignmentListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/SubnetApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/SubnetApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/SubnetListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/SubnetListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/SubnetMigration.d.ts +56 -0
- package/dist/lib/models/networking/v4/config/SubnetMigration.js +215 -0
- package/dist/lib/models/networking/v4/config/SubnetMigrationItem.d.ts +78 -0
- package/dist/lib/models/networking/v4/config/SubnetMigrationItem.js +295 -0
- package/dist/lib/models/networking/v4/config/SubnetType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/SubnetType.js +86 -0
- package/dist/lib/models/networking/v4/config/TCP.d.ts +57 -0
- package/dist/lib/models/networking/v4/config/TCP.js +255 -0
- package/dist/lib/models/networking/v4/config/TCPObject.d.ts +54 -0
- package/dist/lib/models/networking/v4/config/TCPObject.js +204 -0
- package/dist/lib/models/networking/v4/config/Task.d.ts +49 -0
- package/dist/lib/models/networking/v4/config/Task.js +205 -0
- package/dist/lib/models/networking/v4/config/TaskReferenceApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/TaskReferenceApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/UDP.d.ts +57 -0
- package/dist/lib/models/networking/v4/config/UDP.js +255 -0
- package/dist/lib/models/networking/v4/config/UDPObject.d.ts +54 -0
- package/dist/lib/models/networking/v4/config/UDPObject.js +204 -0
- package/dist/lib/models/networking/v4/config/UnreserveType.d.ts +19 -0
- package/dist/lib/models/networking/v4/config/UnreserveType.js +92 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitch.d.ts +123 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitch.js +479 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitchApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitchApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitchListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitchListApiResponse.js +305 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitchProjection.d.ts +9 -0
- package/dist/lib/models/networking/v4/config/VirtualSwitchProjection.js +126 -0
- package/dist/lib/models/networking/v4/config/VmNicAssociation.d.ts +68 -0
- package/dist/lib/models/networking/v4/config/VmNicAssociation.js +248 -0
- package/dist/lib/models/networking/v4/config/Vpc.d.ts +109 -0
- package/dist/lib/models/networking/v4/config/Vpc.js +461 -0
- package/dist/lib/models/networking/v4/config/VpcApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/VpcApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/VpcDhcpOptions.d.ts +49 -0
- package/dist/lib/models/networking/v4/config/VpcDhcpOptions.js +216 -0
- package/dist/lib/models/networking/v4/config/VpcListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/VpcListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/VpnConnection.d.ts +177 -0
- package/dist/lib/models/networking/v4/config/VpnConnection.js +680 -0
- package/dist/lib/models/networking/v4/config/VpnConnectionApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/VpnConnectionApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/config/VpnConnectionListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/VpnConnectionListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/VpnVendor.d.ts +61 -0
- package/dist/lib/models/networking/v4/config/VpnVendor.js +245 -0
- package/dist/lib/models/networking/v4/config/VpnVendorListApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/config/VpnVendorListApiResponse.js +292 -0
- package/dist/lib/models/networking/v4/config/Vtep.d.ts +47 -0
- package/dist/lib/models/networking/v4/config/Vtep.js +200 -0
- package/dist/lib/models/networking/v4/error/AppMessage.d.ts +99 -0
- package/dist/lib/models/networking/v4/error/AppMessage.js +379 -0
- package/dist/lib/models/networking/v4/error/ErrorResponse.d.ts +49 -0
- package/dist/lib/models/networking/v4/error/ErrorResponse.js +284 -0
- package/dist/lib/models/networking/v4/error/SchemaValidationError.d.ts +87 -0
- package/dist/lib/models/networking/v4/error/SchemaValidationError.js +352 -0
- package/dist/lib/models/networking/v4/error/SchemaValidationErrorMessage.d.ts +67 -0
- package/dist/lib/models/networking/v4/error/SchemaValidationErrorMessage.js +269 -0
- package/dist/lib/models/networking/v4/stats/Layer2StretchStats.d.ts +57 -0
- package/dist/lib/models/networking/v4/stats/Layer2StretchStats.js +291 -0
- package/dist/lib/models/networking/v4/stats/Layer2StretchStatsApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/stats/Layer2StretchStatsApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/stats/RoutingPolicyClearCounterResult.d.ts +31 -0
- package/dist/lib/models/networking/v4/stats/RoutingPolicyClearCounterResult.js +192 -0
- package/dist/lib/models/networking/v4/stats/RoutingPolicyClearCountersApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/stats/RoutingPolicyClearCountersApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/stats/RoutingPolicyClearCountersBody.d.ts +37 -0
- package/dist/lib/models/networking/v4/stats/RoutingPolicyClearCountersBody.js +189 -0
- package/dist/lib/models/networking/v4/stats/StatsQueryResponseBase.d.ts +41 -0
- package/dist/lib/models/networking/v4/stats/StatsQueryResponseBase.js +229 -0
- package/dist/lib/models/networking/v4/stats/VpcNsStats.d.ts +117 -0
- package/dist/lib/models/networking/v4/stats/VpcNsStats.js +506 -0
- package/dist/lib/models/networking/v4/stats/VpcNsStatsApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/stats/VpcNsStatsApiResponse.js +284 -0
- package/dist/lib/models/networking/v4/stats/VpnConnectionStats.d.ts +45 -0
- package/dist/lib/models/networking/v4/stats/VpnConnectionStats.js +248 -0
- package/dist/lib/models/networking/v4/stats/VpnConnectionStatsApiResponse.d.ts +60 -0
- package/dist/lib/models/networking/v4/stats/VpnConnectionStatsApiResponse.js +284 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +49 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +207 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +62 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +39 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +87 -0
- package/package.json +52 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Networking=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Networking=t())}("undefined"==typeof self?this:self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=54)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,s=void 0,s=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(s)?s:String(s)),r)}var i,s}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,o=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=i(t.links);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],(n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=r.a.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();u.prototype.linkFirst=null,u.prototype.linkPrev=null,u.prototype.linkNext=null,u.prototype.linkLast=null,u.prototype.apiClient=null,u.prototype.page=null,u.prototype.resultsPerPage=null,u.prototype.resultsTotal=null},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return W}));var r=n(10),o=n.n(r),i=n(0),s=n(55),a=n(26),u=n.n(a),c=n(27),l=n.n(c),f=n(11),d=n.n(f);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===p(i)?i:String(i)),r)}var o,i}function g(e,t){w(e,t),t.add(e)}function b(e,t,n){w(e,t),t.set(e,n)}function w(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function O(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,k(e,t,"get"))}function $(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,k(e,t,"set"),n),n}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}u()(o.a);var j=new WeakMap,P=new WeakMap,S=new WeakMap,T=new WeakMap,I=new WeakMap,F=new WeakMap,R=new WeakMap,D=new WeakMap,E=new WeakSet,A=new WeakSet,N=new WeakSet,x=new WeakSet,M=new WeakSet,C=new WeakSet,L=new WeakSet,_=new WeakSet,J=new WeakSet,V=new WeakSet,U=new WeakSet,G=new WeakSet,B=new WeakSet,q=new WeakSet,W=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,q),g(this,B),g(this,G),g(this,U),g(this,V),g(this,J),g(this,_),g(this,L),g(this,C),g(this,M),g(this,x),g(this,N),g(this,A),g(this,E),b(this,j,{writable:!0,value:void 0}),b(this,P,{writable:!0,value:void 0}),b(this,S,{writable:!0,value:void 0}),b(this,T,{writable:!0,value:void 0}),b(this,I,{writable:!0,value:void 0}),b(this,F,{writable:!0,value:void 0}),b(this,R,{writable:!0,value:void 0}),b(this,D,{writable:!0,value:void 0}),$(this,D,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},$(this,I,3e4),$(this,F,3e4),$(this,R,18e5),this.readTimeout=O(this,F),this.connectTimeout=O(this,I),this.cache=!0,$(this,P,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new o.a.agent),this.requestAgent=null,this.debug=!1,$(this,S,null),this.username=null,this.password=null,$(this,T,!0),this.loggerFile=null}var t,n,r;return t=e,r=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(i,"=([0-9]+)")));s&&(o=s[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===p(n)){var o,i;for(var s in n)if(n.hasOwnProperty(s)){o=s,i=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,o),c=e.convertToType(t[s],i);a[u]=c}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],(n=[{key:"verifySsl",get:function(){return O(this,T)},set:function(e){this.requestAgent=e?null:new l.a.Agent({rejectUnauthorized:!1}),$(this,T,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=d.a.createWriteStream(e,{flags:"a"})),$(this,S,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&$(this,P,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),$(this,j,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==O(this,j)&&""!==this.host&&""!==this.port?r=O(this,j)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o=o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=h(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,t,n,r,i,a,u,c,l,f,d){var p=this,h=this.buildUrl(e,n),y=o()(t,h);if(y.oldCallback=y.callback,y.callback=function(e,t){if(t&&t.status){var n=t.status;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},m(this,M,X).call(this,y,c),"GET"===t.toUpperCase()&&!1===this.cache&&(r._=(new Date).getTime()),y.query(m(this,x,Y).call(this,r)),y.set(this.defaultHeaders).set(m(this,x,Y).call(this,i)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==i["NTNX-Request-Id"]&&void 0!==i["NTNX-Request-Id"])){var v=Object(s.a)();y.set(m(this,x,Y).call(this,{"NTNX-Request-Id":v}))}"undefined"!=typeof window&&void 0!==window.document||y.set(m(this,x,Y).call(this,{"User-Agent":"Nutanix-networking-js-client/4.0.1-alpha.1"})),this.requestAgent&&y.agent(this.requestAgent);var g={};g.response=m(this,_,ee).call(this,this.connectTimeout,O(this,I)),g.deadline=m(this,_,ee).call(this,this.readTimeout,O(this,F)),y.timeout(g);var b=m(this,A,H).call(this,l);if(b?"multipart/form-data"!=b&&y.type(b):y.header["Content-Type"]||y.type("application/json"),"application/x-www-form-urlencoded"===b)y.send(m(this,x,Y).call(this,a));else if("multipart/form-data"==b){var w=m(this,x,Y).call(this,a);for(var $ in w)w.hasOwnProperty($)&&(m(this,N,z).call(this,w[$])?y.attach($,w[$]):y.field($,w[$]))}else u&&y.send(u);var k=m(this,A,H).call(this,f);return k&&y.accept(k),"Blob"===d?y.responseType("blob"):"String"===d&&y.responseType("string"),m(this,V,ne).call(this,y),m(this,U,re).call(this,O(this,D).INFO,null,"Request URL :",t,h),m(this,U,re).call(this,O(this,D).DEBUG,m(this,q,se),"Request Headers :",void 0===y.header?"":y.header),m(this,U,re).call(this,O(this,D).DEBUG,null,"Request Body :",void 0===y._data?"":y._data),new Promise((function(t,n){y.retry(p.maxRetryAttempts,p.retryInterval,[]).end((function(o,i){if(m(p,J,te).call(p,i||{}),o)o.data=m(p,C,Q).call(p,i,d),null!=i&&m(p,U,re).call(p,O(p,D).INFO,null,"Response Status :",i.status),m(p,U,re).call(p,O(p,D).ERROR,null,"Error :",o.data),n(o);else{m(p,U,re).call(p,O(p,D).INFO,null,"Response Status :",i.status);try{var s=m(p,C,Q).call(p,i,d);m(p,U,re).call(p,O(p,D).DEBUG,m(p,q,se),"Response Headers :",i.headers),m(p,U,re).call(p,O(p,D).DEBUG,null,"Response Body :",s),p.addEtagToReservedMap(i,s),m(p,L,Z).call(p,s,e,r),t({data:s,response:i})}catch(e){m(p,U,re).call(p,O(p,D).ERROR,null,"Error :",e),n(e)}}}))}))}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function K(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function H(e){for(var t=0;t<e.length;t++)if(m(this,E,K).call(this,e[t]))return e[t];return e[0]}function z(t){var r;try{r=n(11)}catch(e){}return!!(r&&r.ReadStream&&t instanceof r.ReadStream)||("function"==typeof e&&t instanceof e||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File))}function Y(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];m(this,N,z).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function X(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),m(n,U,re).call(n,O(n,D).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}m(n,U,re).call(n,O(n,D).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),m(n,U,re).call(n,O(n,D).DEBUG,null,"oauth2 applied to request");break;default:throw m(n,U,re).call(n,O(n,D).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function Q(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===p(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),W.convertToType(n,t)}function Z(e,t,n){if(e instanceof i.a){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function ee(e,t){return e<=0?e=t:e>O(this,R)&&(e=O(this,R)),e}function te(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=h(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}$(this,P,t),m(this,U,re).call(this,O(this,D).DEBUG,null,"Retained cookie :",t)}else $(this,P,null)}function ne(e){null!=O(this,P)&&e.set(m(this,x,Y).call(this,{Cookie:O(this,P)}))}function re(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===p(e)&&"key"in e&&"value"in e&&"symbol"===p(e.value)||(e=O(this,D).INFO),!m(this,G,oe).call(this,e)){var i=(r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}))).join(" ");i=m(this,B,ie).call(this)+" "+e.key+" - "+i,void 0!==O(this,S)&&null!==O(this,S)&&"function"==typeof O(this,S).log?O(this,S).log(i):console.log(i)}}function oe(e){return!this.debug&&e===O(this,D).DEBUG}function ie(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function se(e){if("object"!==p(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}W.instance=new W}).call(this,n(4).Buffer)},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";(function(e){
|
|
2
|
+
/*!
|
|
3
|
+
* The buffer module from node.js, for the browser.
|
|
4
|
+
*
|
|
5
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
|
+
* @license MIT
|
|
7
|
+
*/
|
|
8
|
+
var r=n(28),o=n(29),i=n(12);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=a(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return J(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function w(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function m(e,t,n,r){return U(J(t,e.length-n),e,n,r)}function O(e,t,n,r){return U(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function $(e,t,n,r){return O(e,t,n,r)}function k(e,t,n,r){return U(V(t),e,n,r)}function j(e,t,n,r){return U(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?a(e,t):void 0!==n?"string"==typeof r?a(e,t).fill(n,r):a(e,t).fill(n):a(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),l=e.slice(t,n),f=0;f<a;++f)if(c[f]!==l[f]){i=c[f],s=l[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return m(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return $(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=_(e[i]);return o}function R(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function E(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function A(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function x(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||x(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function C(e,t,n,r,i){return i||x(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||E(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||E(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);E(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);E(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=u.isBuffer(e)?e:J(new u(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function _(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(2))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=a(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(8),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=Object.create(n(7));i.inherits=n(3);var s=n(17),a=n(21);i.inherits(f,s);for(var u=o(a.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=a.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===o(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===o(e)},t.isObject=function(e){return"object"===r(e)&&null!==e},t.isDate=function(e){return"[object Date]"===o(e)},t.isError=function(e){return"[object Error]"===o(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(4).Buffer.isBuffer},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,o)}));default:for(i=new Array(a-1),s=0;s<i.length;)i[s++]=arguments[s];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,n(5))},function(e,t,n){var r=n(4),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s),i(o,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(30),s=n(31),a=n(32),u=n(13),c=n(33),l=n(35);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var d=t=e.exports;t.Request=w,d.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function h(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&y(t,n,e[n]);return t.join("&")}function y(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){y(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&y(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function g(e){return/[/+]json($|[^-\w])/.test(e)}function b(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(n=i[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=p(n.slice(t+1)),s[r]=o);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new b(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function m(e,t,n){var r=d("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.serializeObject=h,d.parseString=v,d.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":h,"application/json":s},d.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},c(b.prototype),b.prototype._parseBody=function(e){var t=d.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&g(this.type)&&(t=d.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},b.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},d.Response=b,i(w.prototype),a(w.prototype),w.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},w.prototype.accept=function(e){return this.set("Accept",d.types[e]||e),this},w.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},w.prototype.query=function(e){return"string"!=typeof e&&(e=h(e)),e&&this._query.push(e),this},w.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},w.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},w.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},w.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=d.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||d.serialize[o?o.split(";")[0]:""];!i&&g(o)&&(i=d.serialize["application/json"]),i&&(n=i(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},d.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){l.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),l.prototype.del=l.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=m,d.delete=m,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t){},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){(function(e){t.fetch=a(e.fetch)&&a(e.ReadableStream),t.writableStream=a(e.WritableStream),t.abortController=a(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,s=i&&a(e.ArrayBuffer.prototype.slice);function a(e){return"function"==typeof e}t.arraybuffer=t.fetch||i&&o("arraybuffer"),t.msstream=!t.fetch&&s&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&a(r().overrideMimeType),t.vbArray=a(e.VBArray),n=null}).call(this,n(2))},function(e,t,n){(function(e,r,o){var i=n(14),s=n(3),a=n(16),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,s,u){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===s){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),i.writableStream){var l=new WritableStream({write:function(e){return new Promise((function(t,n){c._destroyed?n():c.push(new o(e))?t():c._resumeFetch=t}))},close:function(){r.clearTimeout(u),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(l).catch((function(e){r.clearTimeout(u),c._destroyed||c.emit("error",e)}))}catch(e){}}var f=n.body.getReader();!function e(){f.read().then((function(t){if(!c._destroyed){if(t.done)return r.clearTimeout(u),void c.push(null);c.push(new o(t.value)),e()}})).catch((function(e){r.clearTimeout(u),c._destroyed||c.emit("error",e)}))}()}else{if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!i.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};s(c,a.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new o(i.length),a=0;a<i.length;a++)s[a]=255&i.charCodeAt(a);e.push(s)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;n=t.response,e.push(new o(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==u.LOADING||!n)break;e.push(new o(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==u.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new o(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(5),n(2),n(4).Buffer)},function(e,t,n){(t=e.exports=n(17)).Stream=t,t.Readable=t,t.Writable=n(21),t.Duplex=n(6),t.Transform=n(23),t.PassThrough=n(44)},function(e,t,n){"use strict";(function(t,r){var o=n(8);e.exports=w;var i,s=n(12);w.ReadableState=b;n(18).EventEmitter;var a=function(e,t){return e.listeners(t).length},u=n(19),c=n(9).Buffer,l=t.Uint8Array||function(){};var f=Object.create(n(7));f.inherits=n(3);var d=n(38),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,y=n(39),v=n(20);f.inherits(w,u);var g=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var r=t instanceof(i=i||n(6));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(22).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function w(e){if(i=i||n(6),!(this instanceof w))return new w(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function m(e,t,n,r,o){var i,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,k(e)}(e,s)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,t)),i?e.emit("error",i):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):O(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):P(e,s)):O(e,s,t,!1))):r||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&k(e)),P(e,t)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=v.destroy,w.prototype._undestroy=v.undestroy,w.prototype._destroy=function(e,t){this.push(null),t(e)},w.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),m(this,e,t,!1,n)},w.prototype.unshift=function(e){return m(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(e){return h||(h=n(22).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function $(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(j,e):j(e))}function j(e){p("emit readable"),e.emit("readable"),F(e)}function P(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;e-=o.length;for(;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,s),0===(e-=s)){s===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function D(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(E,t,e))}function E(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}w.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):k(this),null;if(0===(e=$(e,t))&&t.ended)return 0===t.length&&D(this),null;var r,o=t.needReadable;return p("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",o=!0),t.ended||t.reading?p("reading or ended",o=!1):o&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=$(n,t))),null===(r=e>0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&D(this)),null!==r&&this.emit("data",r),r},w.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:w;function c(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",g),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",w),n.removeListener("data",y),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){p("onend"),e.end()}i.endEmitted?o.nextTick(u):n.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",f);var d=!1;var h=!1;function y(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==A(i.pipes,e))&&!d&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function v(t){p("onerror",t),w(),e.removeListener("error",v),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",b),w()}function b(){p("onfinish"),e.removeListener("close",g),w()}function w(){p("unpipe"),n.unpipe(e)}return n.on("data",y),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",g),e.once("finish",b),e.emit("pipe",n),i.flowing||(p("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var s=A(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},w.prototype.on=function(e,t){var n=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&k(this):o.nextTick(T,this))}return n},w.prototype.addListener=w.prototype.on,w.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(I,e,t))}(this,e)),this},w.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},w.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(p("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<g.length;i++)e.on(g[i],this.emit.bind(this,g[i]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=R}).call(this,n(2),n(5))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}b(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,n)}(e,o,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,s,a;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function y(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):g(o,o.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+r(e));e.addEventListener(t,(function r(i){o.once&&e.removeEventListener(t,r),n(i)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)s(u,this,t);else{var c=u.length,l=g(u,c);for(n=0;n<c;++n)s(l[n],this,t)}return!0},u.prototype.addListener=function(e,t){return d(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return d(this,e,t,!0)},u.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},u.prototype.removeListener=function(e,t){var n,r,o,i,s;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return y(this,e,!0)},u.prototype.rawListeners=function(e){return y(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){e.exports=n(18).EventEmitter},function(e,t,n){"use strict";var r=n(8);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,o){var i=n(8);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var a,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;b.WritableState=g;var c=Object.create(n(7));c.inherits=n(3);var l={deprecate:n(43)},f=n(19),d=n(9).Buffer,p=o.Uint8Array||function(){};var h,y=n(20);function v(){}function g(e,t){a=a||n(6),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),j(e,t))}(e,n,r,t,o);else{var s=$(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?u(m,e,n,s,o):m(e,n,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function b(e){if(a=a||n(6),!(h.call(b,this)||this instanceof a))return new b(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function w(e,t,n,r,o,i,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function m(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,w(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(w(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function $(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),j(e,t)}))}function j(e,t){var n=$(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(b,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===b&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r,o=this._writableState,s=!1,a=!o.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),i.nextTick(r,s),o=!1),o}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,n,r,o,i){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,o);r!==s&&(n=!0,o="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else w(e,t,!1,a,r,o,i);return u}(this,o,a,e,t,n)),s},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||O(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=y.destroy,b.prototype._undestroy=y.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(5),n(41).setImmediate,n(2))},function(e,t,n){"use strict";var r=n(9).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=s(t[r]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--r<n||-2===o)return 0;if((o=s(t[r]))>=0)return o>0&&(e.lastNeed=o-2),o;if(--r<n||-2===o)return 0;if((o=s(t[r]))>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=s;var r=n(6),o=Object.create(n(7));function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){u(e,t,n)})):u(this,null,null)}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(3),o.inherits(s,r),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(48),i=n(50);function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=m(e));return e instanceof s?e.format():s.prototype.format.call(e)},t.Url=s;var a=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(l),d=["%","/","?",";","#"].concat(f),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=n(51);function m(e,t,n){if(e&&i.isObject(e)&&e instanceof s)return e;var r=new s;return r.parse(e,t,n),r}s.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+r(e));var s=e.indexOf("?"),u=-1!==s&&s<e.indexOf("#")?"?":"#",l=e.split(u);l[0]=l[0].replace(/\\/g,"/");var m=e=l.join(u);if(m=m.trim(),!n&&1===e.split("#").length){var O=c.exec(m);if(O)return this.path=m,this.href=m,this.pathname=O[1],O[2]?(this.search=O[2],this.query=t?w.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var $=a.exec(m);if($){var k=($=$[0]).toLowerCase();this.protocol=k,m=m.substr($.length)}if(n||$||m.match(/^\/\/[^@\/]+@[^@\/]+/)){var j="//"===m.substr(0,2);!j||$&&g[$]||(m=m.substr(2),this.slashes=!0)}if(!g[$]&&(j||$&&!b[$])){for(var P,S,T=-1,I=0;I<p.length;I++){-1!==(F=m.indexOf(p[I]))&&(-1===T||F<T)&&(T=F)}-1!==(S=-1===T?m.lastIndexOf("@"):m.lastIndexOf("@",T))&&(P=m.slice(0,S),m=m.slice(S+1),this.auth=decodeURIComponent(P)),T=-1;for(I=0;I<d.length;I++){var F;-1!==(F=m.indexOf(d[I]))&&(-1===T||F<T)&&(T=F)}-1===T&&(T=m.length),this.host=m.slice(0,T),m=m.slice(T),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var D=this.hostname.split(/\./),E=(I=0,D.length);I<E;I++){var A=D[I];if(A&&!A.match(h)){for(var N="",x=0,M=A.length;x<M;x++)A.charCodeAt(x)>127?N+="x":N+=A[x];if(!N.match(h)){var C=D.slice(0,I),L=D.slice(I+1),_=A.match(y);_&&(C.push(_[1]),L.unshift(_[2])),L.length&&(m="/"+L.join(".")+m),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=o.toASCII(this.hostname));var J=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+J,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!v[k])for(I=0,E=f.length;I<E;I++){var U=f[I];if(-1!==m.indexOf(U)){var G=encodeURIComponent(U);G===U&&(G=escape(U)),m=m.split(U).join(G)}}var B=m.indexOf("#");-1!==B&&(this.hash=m.substr(B),m=m.slice(0,B));var q=m.indexOf("?");if(-1!==q?(this.search=m.substr(q),this.query=m.substr(q+1),t&&(this.query=w.parse(this.query)),m=m.slice(0,q)):t&&(this.search="",this.query={}),m&&(this.pathname=m),b[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){J=this.pathname||"";var W=this.search||"";this.path=J+W}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,s="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=w.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},s.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if(i.isString(e)){var t=new s;t.parse(e,!1,!0),e=t}for(var n=new s,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(n[l]=e[l])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",v=n.search||"";n.path=y+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var w=n.pathname&&"/"===n.pathname.charAt(0),m=e.host||e.pathname&&"/"===e.pathname.charAt(0),O=m||w||n.host&&e.pathname,$=O,k=n.pathname&&n.pathname.split("/")||[],j=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(j&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),O=O&&(""===h[0]||""===k[0])),m)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=h;else if(h.length)k||(k=[]),k.pop(),k=k.concat(h),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(j)n.hostname=n.host=k.shift(),(F=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=F.shift(),n.host=n.hostname=F.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=k.slice(-1)[0],S=(n.host||e.host||k.length>1)&&("."===P||".."===P)||""===P,T=0,I=k.length;I>=0;I--)"."===(P=k[I])?k.splice(I,1):".."===P?(k.splice(I,1),T++):T&&(k.splice(I,1),T--);if(!O&&!$)for(;T--;T)k.unshift("..");!O||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),S&&"/"!==k.join("/").substr(-1)&&k.push("");var F,R=""===k[0]||k[0]&&"/"===k[0].charAt(0);j&&(n.hostname=n.host=R?"":k.length?k.shift():"",(F=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=F.shift(),n.host=n.hostname=F.shift()));return(O=O||n.host&&k.length)&&!R&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},s.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){function n(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n){if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var r=t.status;if(r>=500)return!0;if((r>=400||r<200)&&-1===n.indexOf(r))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function r(e,t,n){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var r=t.length,o=e-r;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var i=t[r-1],s=0;s<o+1;s++)t.push(i)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this}e.exports=function(e){var t=e.Request;return t.prototype.oldRetry=t.prototype.retry,t.prototype.retry=r,t.prototype.callback=n,e}},function(e,t,n){var r=n(36),o=n(24),i=e.exports;for(var s in r)r.hasOwnProperty(s)&&(i[s]=r[s]);function a(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=a(e),r.request.call(this,e,t)},i.get=function(e,t){return e=a(e),r.get.call(this,e,t)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),s=r[0],a=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),l=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===a&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===a&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(l(e,s,s+16383>a?a:s+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
|
|
9
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
+
t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=h,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[n+p]=255&s,p+=h,s/=256,c-=8);e[n+p-h]|=128*y}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=s,s.default=s,s.stable=c,s.stableStringify=c;var r=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,s,u){var c;void 0===u&&(u=i()),function e(t,r,o,i,s,u,c){var l;if(u+=1,"object"===n(t)&&null!==t){for(l=0;l<i.length;l++)if(i[l]===t)return void a("[Circular]",t,r,s);if(void 0!==c.depthLimit&&u>c.depthLimit)return void a("[...]",t,r,s);if(void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void a("[...]",t,r,s);if(i.push(t),Array.isArray(t))for(l=0;l<t.length;l++)e(t[l],l,l,i,t,u,c);else{var f=Object.keys(t);for(l=0;l<f.length;l++){var d=f[l];e(t[d],d,l,i,t,u,c)}}i.pop()}}(e,"",0,[],void 0,0,u);try{c=0===o.length?JSON.stringify(e,t,s):JSON.stringify(e,l(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var f=r.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return c}function a(e,t,n,i){var s=Object.getOwnPropertyDescriptor(i,n);void 0!==s.get?s.configurable?(Object.defineProperty(i,n,{value:e}),r.push([i,n,t,s])):o.push([t,n,e]):(i[n]=e,r.push([i,n,t]))}function u(e,t){return e<t?-1:e>t?1:0}function c(e,t,s,c){void 0===c&&(c=i());var f,d=function e(t,o,i,s,c,l,f){var d;if(l+=1,"object"===n(t)&&null!==t){for(d=0;d<s.length;d++)if(s[d]===t)return void a("[Circular]",t,o,c);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&l>f.depthLimit)return void a("[...]",t,o,c);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void a("[...]",t,o,c);if(s.push(t),Array.isArray(t))for(d=0;d<t.length;d++)e(t[d],d,d,s,t,l,f);else{var p={},h=Object.keys(t).sort(u);for(d=0;d<h.length;d++){var y=h[d];e(t[y],y,d,s,t,l,f),p[y]=t[y]}if(void 0===c)return p;r.push([c,o,t]),c[o]=p}s.pop()}}(e,"",0,[],void 0,0,c)||e;try{f=0===o.length?JSON.stringify(d,t,s):JSON.stringify(d,l(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var p=r.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return f}function l(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===t&&i[0]===n){n=i[2],o.splice(r,1);break}}return e.call(this,t,n)}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(13);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(e,t,n){"use strict";var r=n(34);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){i.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),i.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,r(t.args))}))},e.exports=i},function(e,t,n){(function(e){var r=n(37),o=n(15),i=n(46),s=n(47),a=n(24),u=t;u.request=function(t,n){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,c=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=o.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(2))},function(e,t,n){(function(t,r,o){var i=n(14),s=n(3),a=n(15),u=n(16),c=n(45),l=a.IncomingMessage,f=a.readyStates;var d=e.exports=function(e){var n,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};s(d,u.Writable),d.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,s=e._headers,a=null;"GET"!==n.method&&"HEAD"!==n.method&&(a=i.arraybuffer?c(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map((function(e){return c(e)})),{type:(s["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(s).forEach((function(e){var t=s[e].name,n=s[e].value;Array.isArray(n)?n.forEach((function(e){u.push([t,e])})):u.push([t,n])})),"fetch"===e._mode){var l=null;if(i.abortController){var d=new AbortController;l=d.signal,e._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(p.timeout=n.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(a)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),u.Writable.prototype.end.call(this,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(4).Buffer,n(2),n(5))},function(e,t){},function(e,t,n){"use strict";var r=n(9).Buffer,o=n(40);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=i,o=a,t.copy(n,o),a+=s.data.length,s=s.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(42),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,s,a,u=1,c={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&h(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return c[u]=o,r(u),u++},d.clearImmediate=p}function p(e){delete c[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=c[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(2),n(5))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(2))},function(e,t,n){"use strict";e.exports=i;var r=n(23),o=Object.create(n(7));function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}o.inherits=n(3),o.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){var r=n(4).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o<n;o++)t[o]=e[o];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){(function(e,r){var o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
11
|
+
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){var a="object"==i(t)&&t&&!t.nodeType&&t,u="object"==i(e)&&e&&!e.nodeType&&e,c="object"==(void 0===r?"undefined":i(r))&&r;c.global!==c&&c.window!==c&&c.self!==c||(s=c);var l,f,d=2147483647,p=/^xn--/,h=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,b=String.fromCharCode;function w(e){throw new RangeError(v[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(y,".")).split("."),t).join(".")}function $(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function k(e){return m(e,(function(e){var t="";return e>65535&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=b(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,n){var r=0;for(e=n?g(e/700):e>>1,e+=g(e/t);e>455;r+=36)e=g(e/35);return g(r+36*e/(e+38))}function S(e){var t,n,r,o,i,s,a,u,c,l,f,p=[],h=e.length,y=0,v=128,b=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&w("not-basic"),p.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<h;){for(i=y,s=1,a=36;o>=h&&w("invalid-input"),((u=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>g((d-y)/s))&&w("overflow"),y+=u*s,!(u<(c=a<=b?1:a>=b+26?26:a-b));a+=36)s>g(d/(l=36-c))&&w("overflow"),s*=l;b=P(y-i,t=p.length+1,0==i),g(y/t)>d-v&&w("overflow"),v+=g(y/t),y%=t,p.splice(y++,0,v)}return k(p)}function T(e){var t,n,r,o,i,s,a,u,c,l,f,p,h,y,v,m=[];for(p=(e=$(e)).length,t=128,n=0,i=72,s=0;s<p;++s)(f=e[s])<128&&m.push(b(f));for(r=o=m.length,o&&m.push("-");r<p;){for(a=d,s=0;s<p;++s)(f=e[s])>=t&&f<a&&(a=f);for(a-t>g((d-n)/(h=r+1))&&w("overflow"),n+=(a-t)*h,t=a,s=0;s<p;++s)if((f=e[s])<t&&++n>d&&w("overflow"),f==t){for(u=n,c=36;!(u<(l=c<=i?1:c>=i+26?26:c-i));c+=36)v=u-l,y=36-l,m.push(b(j(l+v%y,0))),u=g(v/y);m.push(b(j(u,0))),i=P(n,h,r==o),n=0,++r}++n,++t}return m.join("")}if(l={version:"1.4.1",ucs2:{decode:$,encode:k},decode:S,encode:T,toASCII:function(e){return O(e,(function(e){return h.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return O(e,(function(e){return p.test(e)?S(e.slice(4).toLowerCase()):e}))}},"object"==i(n(25))&&n(25))void 0===(o=function(){return l}.call(t,n,t,e))||(e.exports=o);else if(a&&u)if(e.exports==a)u.exports=l;else for(f in l)l.hasOwnProperty(f)&&(a[f]=l[f]);else s.punycode=l}(this)}).call(this,n(49)(e),n(2))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===r(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(52),t.encode=t.stringify=n(53)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,d,p,h,y=e[l].replace(a,"%20"),v=y.indexOf(n);v>=0?(f=y.substr(0,v),d=y.substr(v+1)):(f=y,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(s,p)?o(s[p])?s[p].push(h):s[p]=[s[p],h]:s[p]=h}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(e){switch(r(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===r(e)?s(a(e),(function(r){var a=encodeURIComponent(o(r))+n;return i(e[r])?s(e[r],(function(e){return a+encodeURIComponent(o(e))})).join(t):a+encodeURIComponent(o(e[r]))})).join(t):u?encodeURIComponent(o(u))+n+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";n.r(t),n.d(t,"ApiClient",(function(){return r.a})),n.d(t,"BgpSessionApi",(function(){return vr})),n.d(t,"FloatingIpApi",(function(){return Lo})),n.d(t,"IPFIXExporterApi",(function(){return xi})),n.d(t,"Layer2StretchApi",(function(){return eu})),n.d(t,"Layer2StretchStatsApi",(function(){return Uu})),n.d(t,"NetworkControllerApi",(function(){return Ec})),n.d(t,"NetworkGatewayApi",(function(){return yd})),n.d(t,"RouteTableApi",(function(){return tp})),n.d(t,"RoutingPolicyApi",(function(){return _y})),n.d(t,"RoutingPolicyStatsApi",(function(){return Pv})),n.d(t,"SubnetApi",(function(){return tb})),n.d(t,"SubnetMigrationApi",(function(){return $b})),n.d(t,"SubnetReserveUnreserveIpApi",(function(){return Ew})),n.d(t,"VirtualSwitchApi",(function(){return qm})),n.d(t,"VpcApi",(function(){return QO})),n.d(t,"VpcNsStatsApi",(function(){return T$})),n.d(t,"VpnConnectionApi",(function(){return Uk})),n.d(t,"VpnConnectionStatsApi",(function(){return gj})),n.d(t,"VpnVendorConfigApi",(function(){return Uj})),n.d(t,"EntityReference",(function(){return ta})),n.d(t,"EntityType",(function(){return Hs})),n.d(t,"Flag",(function(){return b})),n.d(t,"IPAddress",(function(){return Xe})),n.d(t,"IPv4Address",(function(){return Ce})),n.d(t,"IPv6Address",(function(){return Be})),n.d(t,"KVPair",(function(){return P})),n.d(t,"Message",(function(){return N})),n.d(t,"MessageSeverity",(function(){return T})),n.d(t,"Metadata",(function(){return te})),n.d(t,"TenantAwareModel",(function(){return ue})),n.d(t,"ApiLink",(function(){return V})),n.d(t,"ApiResponseMetadata",(function(){return H})),n.d(t,"ExternalizableAbstractModel",(function(){return we})),n.d(t,"DownSamplingOperator",(function(){return nu})),n.d(t,"AddressAssignmentInfo",(function(){return hw})),n.d(t,"AddressType",(function(){return Op})),n.d(t,"AddressTypeObject",(function(){return Ip})),n.d(t,"AncConfig",(function(){return Zj})),n.d(t,"AncConfigApiResponse",(function(){return lP})),n.d(t,"AssignedAddressInfo",(function(){return Kb})),n.d(t,"AuthenticationAlgorithm",(function(){return J$})),n.d(t,"AuthenticationType",(function(){return il})),n.d(t,"AzureConfig",(function(){return DP})),n.d(t,"AzureExternalSubnetBinding",(function(){return LP})),n.d(t,"AzureExternalSubnetConfig",(function(){return jP})),n.d(t,"BgpConfig",(function(){return Wc})),n.d(t,"BgpSession",(function(){return Kt})),n.d(t,"BgpSessionApiResponse",(function(){return Nn})),n.d(t,"BgpSessionListApiResponse",(function(){return cr})),n.d(t,"BondModeType",(function(){return Nw})),n.d(t,"CloudNetwork",(function(){return zP})),n.d(t,"CloudNetworkApiResponse",(function(){return sS})),n.d(t,"CloudNetworkListApiResponse",(function(){return gS})),n.d(t,"CloudSubstrate",(function(){return Bu})),n.d(t,"Cluster",(function(){return Hw})),n.d(t,"ClusterFlowStatus",(function(){return DS})),n.d(t,"ClusterFlowStatusApiResponse",(function(){return US})),n.d(t,"ClusterStatus",(function(){return jS})),n.d(t,"ControllerStatus",(function(){return Wu})),n.d(t,"DhcpOptions",(function(){return Ev})),n.d(t,"DpdConfig",(function(){return M$})),n.d(t,"DpdOperation",(function(){return F$})),n.d(t,"EncryptionAlgorithm",(function(){return U$})),n.d(t,"ExportScope",(function(){return Ko})),n.d(t,"ExporterProtocol",(function(){return zo})),n.d(t,"ExternalSubnet",(function(){return iO})),n.d(t,"FloatingIPAddress",(function(){return Cr})),n.d(t,"FloatingIPv4Address",(function(){return kr})),n.d(t,"FloatingIPv6Address",(function(){return Rr})),n.d(t,"FloatingIp",(function(){return uo})),n.d(t,"FloatingIpApiResponse",(function(){return Do})),n.d(t,"FloatingIpListApiResponse",(function(){return mo})),n.d(t,"FlowGateway",(function(){return uT})),n.d(t,"FlowGatewayApiResponse",(function(){return wT})),n.d(t,"FlowGatewayKeepAliveRequest",(function(){return RT})),n.d(t,"FlowGatewayKeepAliveResponse",(function(){return VT})),n.d(t,"FlowGatewayKeepAliveResponseApiResponse",(function(){return QT})),n.d(t,"FlowGatewayListApiResponse",(function(){return cI})),n.d(t,"FlowGatewayState",(function(){return BS})),n.d(t,"FlowGatewayStatus",(function(){return XS})),n.d(t,"GatewayNodeReference",(function(){return Qm})),n.d(t,"GatewayRole",(function(){return L$})),n.d(t,"Host",(function(){return Vw})),n.d(t,"ICMP",(function(){return xp})),n.d(t,"ICMPObject",(function(){return Up})),n.d(t,"IPConfig",(function(){return pg})),n.d(t,"IPFIXExporter",(function(){return si})),n.d(t,"IPFIXExporterApiResponse",(function(){return gi})),n.d(t,"IPFIXExporterListApiResponse",(function(){return Ii})),n.d(t,"IPSubnet",(function(){return bt})),n.d(t,"IPSubnetObject",(function(){return zp})),n.d(t,"IPv4Config",(function(){return Wv})),n.d(t,"IPv4Pool",(function(){return _v})),n.d(t,"IPv4Subnet",(function(){return ot})),n.d(t,"IPv6Config",(function(){return sg})),n.d(t,"IPv6Pool",(function(){return Zv})),n.d(t,"IPv6Subnet",(function(){return ft})),n.d(t,"IbgpConfig",(function(){return rl})),n.d(t,"InternalRoutingConfig",(function(){return wl})),n.d(t,"IpReserveInput",(function(){return Db})),n.d(t,"IpReserveOutput",(function(){return vI})),n.d(t,"IpUnreserveInput",(function(){return Jb})),n.d(t,"IpsecConfig",(function(){return z$})),n.d(t,"Layer2Stretch",(function(){return js})),n.d(t,"Layer2StretchApiResponse",(function(){return xs})),n.d(t,"Layer2StretchListApiResponse",(function(){return Ws})),n.d(t,"Layer2StretchRelatedEntities",(function(){return Ma})),n.d(t,"Layer2StretchRelatedEntitiesApiResponse",(function(){return Ka})),n.d(t,"Layer2StretchSubnetInfo",(function(){return ua})),n.d(t,"Layer2StretchVpnConnectionInfo",(function(){return ya})),n.d(t,"Layer2StretchVtepGatewayInfo",(function(){return Fa})),n.d(t,"LearnedAddressInfo",(function(){return ew})),n.d(t,"LocalBgpService",(function(){return _c})),n.d(t,"LocalNetworkServices",(function(){return Jl})),n.d(t,"LocalVpnService",(function(){return Sl})),n.d(t,"LocalVtepService",(function(){return Al})),n.d(t,"MacAddress",(function(){return Ui})),n.d(t,"NetworkCloudConfig",(function(){return TI})),n.d(t,"NetworkCloudConfigApiResponse",(function(){return LI})),n.d(t,"NetworkCloudConfigListApiResponse",(function(){return zI})),n.d(t,"NetworkController",(function(){return rc})),n.d(t,"NetworkControllerApiResponse",(function(){return hc})),n.d(t,"NetworkControllerListApiResponse",(function(){return Pc})),n.d(t,"NetworkGateway",(function(){return Jf})),n.d(t,"NetworkGatewayApiResponse",(function(){return ud})),n.d(t,"NetworkGatewayDeployment",(function(){return ef})),n.d(t,"NetworkGatewayListApiResponse",(function(){return Xf})),n.d(t,"NetworkGatewayManagementInterface",(function(){return Kl})),n.d(t,"NetworkingBaseModel",(function(){return Re})),n.d(t,"NexthopType",(function(){return mt})),n.d(t,"NodeSchedulableStatus",(function(){return nF})),n.d(t,"NodeSchedulableStatusApiResponse",(function(){return pF})),n.d(t,"OspfConfig",(function(){return dl})),n.d(t,"PortRange",(function(){return fh})),n.d(t,"PrivateIpAssociation",(function(){return Br})),n.d(t,"ProtocolNumberObject",(function(){return nh})),n.d(t,"ProtocolType",(function(){return oh})),n.d(t,"PublicIpMapping",(function(){return gP})),n.d(t,"QosConfig",(function(){return nk})),n.d(t,"RemoteBgpService",(function(){return uf})),n.d(t,"RemoteNetworkServices",(function(){return Ff})),n.d(t,"RemoteVpnService",(function(){return yf})),n.d(t,"RemoteVtepService",(function(){return $f})),n.d(t,"RemoteVtepStretchStatus",(function(){return os})),n.d(t,"RerouteFallbackAction",(function(){return rp})),n.d(t,"RerouteParam",(function(){return lp})),n.d(t,"ReserveType",(function(){return jb})),n.d(t,"ReservedAddressInfo",(function(){return aw})),n.d(t,"RollingRestartStatus",(function(){return mF})),n.d(t,"RollingRestartStatusApiResponse",(function(){return DF})),n.d(t,"Route",(function(){return Tt})),n.d(t,"RouteTable",(function(){return Sd})),n.d(t,"RouteTableApiResponse",(function(){return Hd})),n.d(t,"RouteTableListApiResponse",(function(){return Cd})),n.d(t,"RoutingPolicy",(function(){return ly})),n.d(t,"RoutingPolicyAction",(function(){return wp})),n.d(t,"RoutingPolicyActionType",(function(){return dp})),n.d(t,"RoutingPolicyApiResponse",(function(){return Ey})),n.d(t,"RoutingPolicyListApiResponse",(function(){return Oy})),n.d(t,"RoutingPolicyMatchCondition",(function(){return Wh})),n.d(t,"RoutingPolicyRule",(function(){return Zh})),n.d(t,"ScopeType",(function(){return Jo})),n.d(t,"SiteParams",(function(){return fs})),n.d(t,"State",(function(){return Ft})),n.d(t,"Status",(function(){return Mt})),n.d(t,"StretchConnectionType",(function(){return ps})),n.d(t,"StretchState",(function(){return Bi})),n.d(t,"StretchStatus",(function(){return Xi})),n.d(t,"Subnet",(function(){return Sg})),n.d(t,"SubnetAddressAssignmentListApiResponse",(function(){return Pw})),n.d(t,"SubnetApiResponse",(function(){return Hg})),n.d(t,"SubnetListApiResponse",(function(){return Cg})),n.d(t,"SubnetMigration",(function(){return yb})),n.d(t,"SubnetMigrationItem",(function(){return ub})),n.d(t,"SubnetType",(function(){return yg})),n.d(t,"TCP",(function(){return bh})),n.d(t,"TCPObject",(function(){return Ph})),n.d(t,"Task",(function(){return LF})),n.d(t,"TaskReferenceApiResponse",(function(){return Qn})),n.d(t,"UDP",(function(){return Eh})),n.d(t,"UDPObject",(function(){return _h})),n.d(t,"UnreserveType",(function(){return Ab})),n.d(t,"VirtualSwitch",(function(){return im})),n.d(t,"VirtualSwitchApiResponse",(function(){return vm})),n.d(t,"VirtualSwitchListApiResponse",(function(){return Lm})),n.d(t,"VirtualSwitchProjection",(function(){return Tm})),n.d(t,"VmNicAssociation",(function(){return Xr})),n.d(t,"Vpc",(function(){return kO})),n.d(t,"VpcApiResponse",(function(){return NO})),n.d(t,"VpcDhcpOptions",(function(){return dO})),n.d(t,"VpcListApiResponse",(function(){return qO})),n.d(t,"VpnConnection",(function(){return pk})),n.d(t,"VpnConnectionApiResponse",(function(){return xk})),n.d(t,"VpnConnectionListApiResponse",(function(){return jk})),n.d(t,"VpnVendor",(function(){return jj})),n.d(t,"VpnVendorListApiResponse",(function(){return xj})),n.d(t,"Vtep",(function(){return $a})),n.d(t,"AppMessage",(function(){return en})),n.d(t,"ErrorResponse",(function(){return $n})),n.d(t,"SchemaValidationError",(function(){return yn})),n.d(t,"SchemaValidationErrorMessage",(function(){return un})),n.d(t,"Layer2StretchStats",(function(){return ju})),n.d(t,"Layer2StretchStatsApiResponse",(function(){return xu})),n.d(t,"RoutingPolicyClearCounterResult",(function(){return av})),n.d(t,"RoutingPolicyClearCountersApiResponse",(function(){return bv})),n.d(t,"RoutingPolicyClearCountersBody",(function(){return Yy})),n.d(t,"StatsQueryResponseBase",(function(){return pu})),n.d(t,"VpcNsStats",(function(){return c$})),n.d(t,"VpcNsStatsApiResponse",(function(){return m$})),n.d(t,"VpnConnectionStats",(function(){return Zk})),n.d(t,"VpnConnectionStatsApiResponse",(function(){return lj})),n.d(t,"TaskReference",(function(){return Vn}));var r=n(1),o={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return o[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e)switch(e){case o.DEFAULT:return;default:throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(o);var i=o;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===s(i)?i:String(i)),r)}var o,i}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],(n=null)&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===c(i)?i:String(i)),r)}var o,i}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function g(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}var b=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.Flag",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Flag"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=h({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return h(h(h({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j(r.key),r)}}function j(e){var t=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===w(t)?t:String(t)}b.prototype.name=void 0,b.prototype.value=!1,b.prototype.$reserved=void 0,b.prototype.$objectType=void 0,b.prototype.$unknownFields=void 0;var P=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.KVPair"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if("EMPTY_LIST"===(r=t.$valueItemDiscriminator))n.setValue([]);else if("String"===r)n.setValue(t.value);else{if("Integer"!==r)throw"Unknown data type "+r+" in data";n.setValue(t.value)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!o)for(var i in n.$unknownFields=O({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i])}return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$valueItemDiscriminator",value:function(){return"string"==typeof this.getValue()?"String":"number"==typeof this.getValue()?"Integer":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return O(O(O({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{$valueItemDiscriminator:this.get$valueItemDiscriminator(),value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getValue()}:{}:void 0!==this.getValue()&&null!==this.getValue()?{$valueItemDiscriminator:this.get$valueItemDiscriminator(),value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&k(t.prototype,n),r&&k(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();P.prototype.name=void 0,P.prototype.value=void 0,P.prototype.$reserved=void 0,P.prototype.$objectType=void 0,P.prototype.$unknownFields=void 0;var S={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(S).find((function(t){return S[t]===e}));return null==t?S.$UNKNOWN:S[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case S.$UNKNOWN:case S.$REDACTED:case S.INFO:case S.WARNING:case S.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(S);var T=S;function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function A(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===I(t)?t:String(t)}var N=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.Message",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Message"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(T.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=R({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return R(R(R(R(R({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("severity","undefined or null"):new f("locale","undefined or null"):new f("message","undefined or null"):new f("code","undefined or null")}}])&&E(t.prototype,n),r&&E(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J(r.key),r)}}function J(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===x(t)?t:String(t)}N.prototype.code=void 0,N.prototype.message=void 0,N.prototype.locale="en_US",N.prototype.severity=void 0,N.prototype.$reserved=void 0,N.prototype.$objectType=void 0,N.prototype.$unknownFields=void 0;var V=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiLink"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=C({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return C(C(C({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("rel","undefined or null"):new f("href","undefined or null")}}])&&_(t.prototype,n),r&&_(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K(r.key),r)}}function K(e){var t=function(e,t){if("object"!==U(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==U(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===U(t)?t:String(t)}V.prototype.href=void 0,V.prototype.rel=void 0,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var H=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiResponseMetadata"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(s=[],r=t.flags,i=0;i<r.length;i++)o=b.constructFromObject(r[i],void 0),s.push(o);n.setFlags(s)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(s=[],r=t.links,i=0;i<r.length;i++)o=V.constructFromObject(r[i],void 0),s.push(o);n.setLinks(s)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(s=[],r=t.messages,i=0;i<r.length;i++)o=N.constructFromObject(r[i],void 0),s.push(o);n.setMessages(s)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(s=[],r=t.extraInfo,i=0;i<r.length;i++)o=P.constructFromObject(r[i],void 0),s.push(o);n.setExtraInfo(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=B({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return B(!1===e?B(B(B(B(B({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}):B(B(B(B(B({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson()}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson()}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("extraInfo","undefined or null"):new f("messages","undefined or null"):new f("totalAvailableResults","undefined or null"):new f("links","undefined or null"):new f("flags","undefined or null")}}])&&W(t.prototype,n),r&&W(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e,t,n){return(t=ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ee(r.key),r)}}function ee(e){var t=function(e,t){if("object"!==z(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===z(t)?t:String(t)}H.prototype.flags=void 0,H.prototype.links=void 0,H.prototype.totalAvailableResults=void 0,H.prototype.messages=void 0,H.prototype.extraInfo=void 0,H.prototype.$reserved=void 0,H.prototype.$objectType=void 0,H.prototype.$unknownFields=void 0;var te=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.Metadata",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Metadata"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ownerReferenceId")&&null!==t.ownerReferenceId&&void 0!==t.ownerReferenceId&&n.setOwnerReferenceId(t.ownerReferenceId),t.hasOwnProperty("ownerUserName")&&null!==t.ownerUserName&&void 0!==t.ownerUserName&&n.setOwnerUserName(t.ownerUserName),t.hasOwnProperty("projectReferenceId")&&null!==t.projectReferenceId&&void 0!==t.projectReferenceId&&n.setProjectReferenceId(t.projectReferenceId),t.hasOwnProperty("projectName")&&null!==t.projectName&&void 0!==t.projectName&&n.setProjectName(t.projectName),t.hasOwnProperty("categoryIds")&&null!==t.categoryIds&&void 0!==t.categoryIds){for(i=[],r=t.categoryIds,o=0;o<r.length;o++)i.push(r[o]);n.setCategoryIds(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=X({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getOwnerReferenceId",value:function(){return this.ownerReferenceId}},{key:"setOwnerReferenceId",value:function(e){this.ownerReferenceId=e}},{key:"getOwnerUserName",value:function(){return this.ownerUserName}},{key:"setOwnerUserName",value:function(e){this.ownerUserName=e}},{key:"getProjectReferenceId",value:function(){return this.projectReferenceId}},{key:"setProjectReferenceId",value:function(e){this.projectReferenceId=e}},{key:"getProjectName",value:function(){return this.projectName}},{key:"setProjectName",value:function(e){this.projectName=e}},{key:"getCategoryIds",value:function(){return this.categoryIds}},{key:"setCategoryIds",value:function(e){this.categoryIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return X(X(X(X(X(X({},void 0!==this.getOwnerReferenceId()&&null!==this.getOwnerReferenceId()?{ownerReferenceId:this.getOwnerReferenceId()}:{}),void 0!==this.getOwnerUserName()&&null!==this.getOwnerUserName()?{ownerUserName:this.getOwnerUserName()}:{}),void 0!==this.getProjectReferenceId()&&null!==this.getProjectReferenceId()?{projectReferenceId:this.getProjectReferenceId()}:{}),void 0!==this.getProjectName()&&null!==this.getProjectName()?{projectName:this.getProjectName()}:{}),void 0!==this.getCategoryIds()&&null!==this.getCategoryIds()?{categoryIds:this.getCategoryIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("ownerReferenceId"===t){if(void 0===this.ownerReferenceId||null===this.ownerReferenceId)return new f("ownerReferenceId","undefined or null");if(!u.validatePattern(this.ownerReferenceId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("ownerReferenceId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("ownerUserName"===t){if(void 0===this.ownerUserName||null===this.ownerUserName)return new f("ownerUserName","undefined or null");if(!u.validateMaxLength(this.ownerUserName,128))return new f("ownerUserName","does not satisfy required maxLength constraint: 128")}if("projectReferenceId"===t){if(void 0===this.projectReferenceId||null===this.projectReferenceId)return new f("projectReferenceId","undefined or null");if(!u.validatePattern(this.projectReferenceId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("projectReferenceId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("projectName"===t){if(void 0===this.projectName||null===this.projectName)return new f("projectName","undefined or null");if(!u.validateMaxLength(this.projectName,128))return new f("projectName","does not satisfy required maxLength constraint: 128")}return"categoryIds"!==t||void 0!==this.categoryIds&&null!==this.categoryIds?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("categoryIds","undefined or null")}}])&&Z(t.prototype,n),r&&Z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ae(e){var t=function(e,t){if("object"!==ne(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ne(t)?t:String(t)}te.prototype.ownerReferenceId=void 0,te.prototype.ownerUserName=void 0,te.prototype.projectReferenceId=void 0,te.prototype.projectName=void 0,te.prototype.categoryIds=void 0,te.prototype.$reserved=void 0,te.prototype.$objectType=void 0,te.prototype.$unknownFields=void 0;var ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.TenantAwareModel"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=oe({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?oe(oe({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new f("tenantId","undefined or null");if(!u.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){de(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e,t,n){return(t=he(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,he(r.key),r)}}function he(e){var t=function(e,t){if("object"!==ce(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ce(t)?t:String(t)}function ye(e,t){return(ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=be(e);if(t){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function ge(e,t){if(t&&("object"===ce(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function be(e){return(be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ue.prototype.tenantId=void 0,ue.prototype.$reserved=void 0,ue.prototype.$objectType=void 0,ue.prototype.$unknownFields=void 0;var we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(s,e);var t,n,r,o=ve(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fqObjectType:"common.v1.r0.a3.response.ExternalizableAbstractModel"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,ue.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=V.constructFromObject(n[o],void 0),i.push(r);t.setLinks(i)}if(!a)for(var u in t.$unknownFields=fe({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return fe(!1===e?fe(fe(fe({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):fe(fe({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(null==e){if(!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===i.update&&!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new f(t,"no such property exists"):new f("links","undefined or null")}}])&&pe(t.prototype,n),r&&pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(ue);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return(t=Pe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pe(r.key),r)}}function Pe(e){var t=function(e,t){if("object"!==me(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===me(t)?t:String(t)}function Se(e,t){return(Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fe(e);if(t){var o=Fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}we.prototype.extId=void 0,we.prototype.links=void 0;var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Se(e,t)}(s,e);var t,n,r,o=Te(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkingBaseModel",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkingBaseModel"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,we.constructFromObject(e,t,!0),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(te.constructFromObject(e.metadata)),!n))for(var r in t.$unknownFields=$e({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"toJson",value:function(e){return $e(!1===e?$e($e($e($e({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):$e($e($e({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?new f(t,"no such property exists"):new f("metadata","undefined or null")}}])&&je(t.prototype,n),r&&je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(we);function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t,n){return(t=Me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Me(r.key),r)}}function Me(e){var t=function(e,t){if("object"!==De(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===De(t)?t:String(t)}Re.prototype.metadata=void 0;var Ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.IPv4Address"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ae({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ae(Ae(Ae({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new f("value","undefined or null");if(!u.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new f("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new f("prefixLength","undefined or null");if(!u.validateMaximum(this.prefixLength,32))return new f("prefixLength","does not satisfy required maximum constraint: 32");if(!u.validateMinimum(this.prefixLength,0))return new f("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&xe(t.prototype,n),r&&xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ve(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ge(r.key),r)}}function Ge(e){var t=function(e,t){if("object"!==Le(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Le(t)?t:String(t)}Ce.prototype.value=void 0,Ce.prototype.prefixLength=32,Ce.prototype.$reserved=void 0,Ce.prototype.$objectType=void 0,Ce.prototype.$unknownFields=void 0;var Be=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.IPv6Address"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Je({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Je(Je(Je({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new f("value","undefined or null");if(!u.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new f("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new f("prefixLength","undefined or null");if(!u.validateMaximum(this.prefixLength,128))return new f("prefixLength","does not satisfy required maximum constraint: 128");if(!u.validateMinimum(this.prefixLength,0))return new f("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Ue(t.prototype,n),r&&Ue(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){He(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ye(r.key),r)}}function Ye(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qe(t)?t:String(t)}Be.prototype.value=void 0,Be.prototype.prefixLength=128,Be.prototype.$reserved=void 0,Be.prototype.$objectType=void 0,Be.prototype.$unknownFields=void 0;var Xe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.IPAddress",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.IPAddress"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Ce.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(Be.constructFromObject(t.ipv6)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ke({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return Ke(!1===e?Ke(Ke({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}):Ke(Ke({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson()}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipv6","undefined or null"):new f("ipv4","undefined or null")}}])&&ze(t.prototype,n),r&&ze(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t,n){return(t=rt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rt(r.key),r)}}function rt(e){var t=function(e,t){if("object"!==Qe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qe(t)?t:String(t)}Xe.prototype.ipv4=void 0,Xe.prototype.ipv6=void 0,Xe.prototype.$reserved=void 0,Xe.prototype.$objectType=void 0,Xe.prototype.$unknownFields=void 0;var ot=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ip=t,this.prefixLength=n,this.$objectType="networking.v4.config.IPv4Subnet",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPv4Subnet"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ip")&&null!==t.ip&&void 0!==t.ip&&n.setIp(Ce.constructFromObject(t.ip)),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=et({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIp",value:function(){return this.ip}},{key:"setIp",value:function(e){this.ip=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return et(et(et({},!1===e?void 0!==this.getIp()&&null!==this.getIp()?{ip:this.getIp().toJson(!1)}:{}:void 0!==this.getIp()&&null!==this.getIp()?{ip:this.getIp().toJson()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["ip","prefixLength"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("ip"===t&&(void 0===this.ip||null===this.ip))return new f("ip","undefined or null");if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new f("prefixLength","undefined or null");if(!u.validateMaximum(this.prefixLength,32))return new f("prefixLength","does not satisfy required maximum constraint: 32");if(!u.validateMinimum(this.prefixLength,0))return new f("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&nt(t.prototype,n),r&&nt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return(t=lt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lt(r.key),r)}}function lt(e){var t=function(e,t){if("object"!==it(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===it(t)?t:String(t)}ot.prototype.ip=void 0,ot.prototype.prefixLength=void 0,ot.prototype.$reserved=void 0,ot.prototype.$objectType=void 0,ot.prototype.$unknownFields=void 0;var ft=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ip=t,this.prefixLength=n,this.$objectType="networking.v4.config.IPv6Subnet",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPv6Subnet"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ip")&&null!==t.ip&&void 0!==t.ip&&n.setIp(Be.constructFromObject(t.ip)),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=at({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIp",value:function(){return this.ip}},{key:"setIp",value:function(e){this.ip=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return at(at(at({},!1===e?void 0!==this.getIp()&&null!==this.getIp()?{ip:this.getIp().toJson(!1)}:{}:void 0!==this.getIp()&&null!==this.getIp()?{ip:this.getIp().toJson()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["ip","prefixLength"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("ip"===t&&(void 0===this.ip||null===this.ip))return new f("ip","undefined or null");if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new f("prefixLength","undefined or null");if(!u.validateMaximum(this.prefixLength,128))return new f("prefixLength","does not satisfy required maximum constraint: 128");if(!u.validateMinimum(this.prefixLength,0))return new f("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&ct(t.prototype,n),r&&ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function dt(e){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return(t=gt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gt(r.key),r)}}function gt(e){var t=function(e,t){if("object"!==dt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dt(t)?t:String(t)}ft.prototype.ip=void 0,ft.prototype.prefixLength=void 0,ft.prototype.$reserved=void 0,ft.prototype.$objectType=void 0,ft.prototype.$unknownFields=void 0;var bt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.IPSubnet",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPSubnet"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(ot.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(ft.constructFromObject(t.ipv6)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ht({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return ht(!1===e?ht(ht({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}):ht(ht({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson()}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipv6","undefined or null"):new f("ipv4","undefined or null")}}])&&vt(t.prototype,n),r&&vt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();bt.prototype.ipv4=void 0,bt.prototype.ipv6=void 0,bt.prototype.$reserved=void 0,bt.prototype.$objectType=void 0,bt.prototype.$unknownFields=void 0;var wt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IP_ADDRESS:"IP_ADDRESS",DIRECT_CONNECT_VIF:"DIRECT_CONNECT_VIF",INTERNAL_SUBNET:"INTERNAL_SUBNET",EXTERNAL_SUBNET:"EXTERNAL_SUBNET",VPN_CONNECTION:"VPN_CONNECTION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(wt).find((function(t){return wt[t]===e}));return null==t?wt.$UNKNOWN:wt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wt.$UNKNOWN:case wt.$REDACTED:case wt.IP_ADDRESS:case wt.DIRECT_CONNECT_VIF:case wt.INTERNAL_SUBNET:case wt.EXTERNAL_SUBNET:case wt.VPN_CONNECTION:return;default:throw new Error("Invalid : must be NexthopType.{ $UNKNOWN|$REDACTED|IP_ADDRESS|DIRECT_CONNECT_VIF|INTERNAL_SUBNET|EXTERNAL_SUBNET|VPN_CONNECTION }")}}};Object.freeze(wt);var mt=wt;function Ot(e){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(e,t,n){return(t=St(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,St(r.key),r)}}function St(e){var t=function(e,t){if("object"!==Ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ot(t)?t:String(t)}var Tt=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.destination=t,this.nexthopType=n,this.$objectType="networking.v4.config.Route",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Route"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("active")&&null!==t.active&&void 0!==t.active&&n.setActive(t.active),t.hasOwnProperty("priority")&&null!==t.priority&&void 0!==t.priority&&n.setPriority(t.priority),t.hasOwnProperty("destination")&&null!==t.destination&&void 0!==t.destination&&n.setDestination(bt.constructFromObject(t.destination)),t.hasOwnProperty("nexthopType")&&null!==t.nexthopType&&void 0!==t.nexthopType&&n.setNexthopType(mt.constructFromObject(t.nexthopType)),t.hasOwnProperty("nexthopReference")&&null!==t.nexthopReference&&void 0!==t.nexthopReference&&n.setNexthopReference(t.nexthopReference),t.hasOwnProperty("nexthopIpAddress")&&null!==t.nexthopIpAddress&&void 0!==t.nexthopIpAddress&&n.setNexthopIpAddress(Xe.constructFromObject(t.nexthopIpAddress)),t.hasOwnProperty("nexthopName")&&null!==t.nexthopName&&void 0!==t.nexthopName&&n.setNexthopName(t.nexthopName),t.hasOwnProperty("source")&&null!==t.source&&void 0!==t.source&&n.setSource(t.source),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=kt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getActive",value:function(){return this.active}},{key:"setActive",value:function(e){this.active=e}},{key:"getPriority",value:function(){return this.priority}},{key:"setPriority",value:function(e){this.priority=e}},{key:"getDestination",value:function(){return this.destination}},{key:"setDestination",value:function(e){this.destination=e}},{key:"getNexthopType",value:function(){return this.nexthopType}},{key:"setNexthopType",value:function(e){this.nexthopType=e}},{key:"getNexthopReference",value:function(){return this.nexthopReference}},{key:"setNexthopReference",value:function(e){this.nexthopReference=e}},{key:"getNexthopIpAddress",value:function(){return this.nexthopIpAddress}},{key:"setNexthopIpAddress",value:function(e){this.nexthopIpAddress=e}},{key:"getNexthopName",value:function(){return this.nexthopName}},{key:"setNexthopName",value:function(e){this.nexthopName=e}},{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(e){this.source=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kt(!1===e?kt(kt(kt(kt(kt(kt(kt(kt({},void 0!==this.getActive()&&null!==this.getActive()?{active:this.getActive()}:{}),void 0!==this.getPriority()&&null!==this.getPriority()?{priority:this.getPriority()}:{}),void 0!==this.getDestination()&&null!==this.getDestination()?{destination:this.getDestination().toJson(!1)}:{}),void 0!==this.getNexthopType()&&null!==this.getNexthopType()?{nexthopType:this.getNexthopType()}:{}),void 0!==this.getNexthopReference()&&null!==this.getNexthopReference()?{nexthopReference:this.getNexthopReference()}:{}),void 0!==this.getNexthopIpAddress()&&null!==this.getNexthopIpAddress()?{nexthopIpAddress:this.getNexthopIpAddress().toJson(!1)}:{}),void 0!==this.getNexthopName()&&null!==this.getNexthopName()?{nexthopName:this.getNexthopName()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}):kt(kt(kt(kt({},void 0!==this.getDestination()&&null!==this.getDestination()?{destination:this.getDestination().toJson()}:{}),void 0!==this.getNexthopType()&&null!==this.getNexthopType()?{nexthopType:this.getNexthopType()}:{}),void 0!==this.getNexthopReference()&&null!==this.getNexthopReference()?{nexthopReference:this.getNexthopReference()}:{}),void 0!==this.getNexthopIpAddress()&&null!==this.getNexthopIpAddress()?{nexthopIpAddress:this.getNexthopIpAddress().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["destination","nexthopType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("active"===t&&(void 0===this.active||null===this.active))return new f("active","undefined or null");if("priority"===t&&(void 0===this.priority||null===this.priority))return new f("priority","undefined or null");if("destination"===t&&(void 0===this.destination||null===this.destination))return new f("destination","undefined or null");if("nexthopType"===t&&(void 0===this.nexthopType||null===this.nexthopType))return new f("nexthopType","undefined or null");if("nexthopReference"===t){if(void 0===this.nexthopReference||null===this.nexthopReference)return new f("nexthopReference","undefined or null");if(!u.validatePattern(this.nexthopReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("nexthopReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"nexthopIpAddress"!==t||void 0!==this.nexthopIpAddress&&null!==this.nexthopIpAddress?"nexthopName"!==t||void 0!==this.nexthopName&&null!==this.nexthopName?"source"!==t||void 0!==this.source&&null!==this.source?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("source","undefined or null"):new f("nexthopName","undefined or null"):new f("nexthopIpAddress","undefined or null")}}])&&Pt(t.prototype,n),r&&Pt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Tt.prototype.active=void 0,Tt.prototype.priority=void 0,Tt.prototype.destination=void 0,Tt.prototype.nexthopType=void 0,Tt.prototype.nexthopReference=void 0,Tt.prototype.nexthopIpAddress=void 0,Tt.prototype.nexthopName=void 0,Tt.prototype.source=void 0,Tt.prototype.$reserved=void 0,Tt.prototype.$objectType=void 0,Tt.prototype.$unknownFields=void 0;var It={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",UP:"UP",DOWN:"DOWN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(It).find((function(t){return It[t]===e}));return null==t?It.$UNKNOWN:It[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case It.$UNKNOWN:case It.$REDACTED:case It.UP:case It.DOWN:return;default:throw new Error("Invalid : must be State.{ $UNKNOWN|$REDACTED|UP|DOWN }")}}};Object.freeze(It);var Ft=It;function Rt(e){return(Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){At(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(e,t,n){return(t=xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xt(r.key),r)}}function xt(e){var t=function(e,t){if("object"!==Rt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rt(t)?t:String(t)}var Mt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.Status",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Status"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("state")&&null!==t.state&&void 0!==t.state&&n.setState(Ft.constructFromObject(t.state)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Et({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){this.state=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Et(Et(Et({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"state"!==t||void 0!==this.state&&null!==this.state?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("state","undefined or null"):new f("message","undefined or null")}}])&&Nt(t.prototype,n),r&&Nt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ct(e){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return(t=Ut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ut(r.key),r)}}function Ut(e){var t=function(e,t){if("object"!==Ct(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ct(t)?t:String(t)}function Gt(e,t){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wt(e);if(t){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qt(this,n)}}function qt(e,t){if(t&&("object"===Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Mt.prototype.message=void 0,Mt.prototype.state=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var Kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gt(e,t)}(s,e);var t,n,r,o=Bt(s);function s(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(r=o.call(this)).name=e,r.localGatewayReference=t,r.remoteGatewayReference=n,r.$objectType="networking.v4.config.BgpSession",r.$reserved={$fqObjectType:"networking.v4.r0.a1.config.BgpSession"},r.$unknownFields={},r}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("localGatewayReference")&&null!==e.localGatewayReference&&void 0!==e.localGatewayReference&&t.setLocalGatewayReference(e.localGatewayReference),e.hasOwnProperty("remoteGatewayReference")&&null!==e.remoteGatewayReference&&void 0!==e.remoteGatewayReference&&t.setRemoteGatewayReference(e.remoteGatewayReference),e.hasOwnProperty("dynamicRoutePriority")&&null!==e.dynamicRoutePriority&&void 0!==e.dynamicRoutePriority&&t.setDynamicRoutePriority(e.dynamicRoutePriority),e.hasOwnProperty("password")&&null!==e.password&&void 0!==e.password&&t.setPassword(e.password),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&t.setStatus(Mt.constructFromObject(e.status)),e.hasOwnProperty("advertisedRoutes")&&null!==e.advertisedRoutes&&void 0!==e.advertisedRoutes){for(i=[],n=e.advertisedRoutes,o=0;o<n.length;o++)r=Tt.constructFromObject(n[o],void 0),i.push(r);t.setAdvertisedRoutes(i)}if(e.hasOwnProperty("receivedRoutes")&&null!==e.receivedRoutes&&void 0!==e.receivedRoutes){for(i=[],n=e.receivedRoutes,o=0;o<n.length;o++)r=Tt.constructFromObject(n[o],void 0),i.push(r);t.setReceivedRoutes(i)}if(e.hasOwnProperty("ignoredRoutes")&&null!==e.ignoredRoutes&&void 0!==e.ignoredRoutes){for(i=[],n=e.ignoredRoutes,o=0;o<n.length;o++)r=Tt.constructFromObject(n[o],void 0),i.push(r);t.setIgnoredRoutes(i)}if(!a)for(var u in t.$unknownFields=_t({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getLocalGatewayReference",value:function(){return this.localGatewayReference}},{key:"setLocalGatewayReference",value:function(e){this.localGatewayReference=e}},{key:"getRemoteGatewayReference",value:function(){return this.remoteGatewayReference}},{key:"setRemoteGatewayReference",value:function(e){this.remoteGatewayReference=e}},{key:"getDynamicRoutePriority",value:function(){return this.dynamicRoutePriority}},{key:"setDynamicRoutePriority",value:function(e){this.dynamicRoutePriority=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getAdvertisedRoutes",value:function(){return this.advertisedRoutes}},{key:"setAdvertisedRoutes",value:function(e){this.advertisedRoutes=e}},{key:"getReceivedRoutes",value:function(){return this.receivedRoutes}},{key:"setReceivedRoutes",value:function(e){this.receivedRoutes=e}},{key:"getIgnoredRoutes",value:function(){return this.ignoredRoutes}},{key:"setIgnoredRoutes",value:function(e){this.ignoredRoutes=e}},{key:"toJson",value:function(e){return _t(!1===e?_t(_t(_t(_t(_t(_t(_t(_t(_t(_t(_t(_t(_t(_t({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getLocalGatewayReference()&&null!==this.getLocalGatewayReference()?{localGatewayReference:this.getLocalGatewayReference()}:{}),void 0!==this.getRemoteGatewayReference()&&null!==this.getRemoteGatewayReference()?{remoteGatewayReference:this.getRemoteGatewayReference()}:{}),void 0!==this.getDynamicRoutePriority()&&null!==this.getDynamicRoutePriority()?{dynamicRoutePriority:this.getDynamicRoutePriority()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus().toJson(!1)}:{}),void 0!==this.getAdvertisedRoutes()&&null!==this.getAdvertisedRoutes()?{advertisedRoutes:this.getAdvertisedRoutes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getReceivedRoutes()&&null!==this.getReceivedRoutes()?{receivedRoutes:this.getReceivedRoutes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getIgnoredRoutes()&&null!==this.getIgnoredRoutes()?{ignoredRoutes:this.getIgnoredRoutes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):_t(_t(_t(_t(_t(_t(_t(_t(_t(_t({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getLocalGatewayReference()&&null!==this.getLocalGatewayReference()?{localGatewayReference:this.getLocalGatewayReference()}:{}),void 0!==this.getRemoteGatewayReference()&&null!==this.getRemoteGatewayReference()?{remoteGatewayReference:this.getRemoteGatewayReference()}:{}),void 0!==this.getDynamicRoutePriority()&&null!==this.getDynamicRoutePriority()?{dynamicRoutePriority:this.getDynamicRoutePriority()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus().toJson()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name","localGatewayReference","remoteGatewayReference"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new f("name","undefined or null");if("description"===t&&(void 0===this.description||null===this.description))return new f("description","undefined or null");if("localGatewayReference"===t){if(void 0===this.localGatewayReference||null===this.localGatewayReference)return new f("localGatewayReference","undefined or null");if(!u.validatePattern(this.localGatewayReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("localGatewayReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("remoteGatewayReference"===t){if(void 0===this.remoteGatewayReference||null===this.remoteGatewayReference)return new f("remoteGatewayReference","undefined or null");if(!u.validatePattern(this.remoteGatewayReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("remoteGatewayReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("dynamicRoutePriority"===t){if(void 0===this.dynamicRoutePriority||null===this.dynamicRoutePriority)return new f("dynamicRoutePriority","undefined or null");if(!u.validateMaximum(this.dynamicRoutePriority,1e3))return new f("dynamicRoutePriority","does not satisfy required maximum constraint: 1000");if(!u.validateMinimum(this.dynamicRoutePriority,300))return new f("dynamicRoutePriority","does not satisfy required minimum constraint: 300")}return"password"!==t||void 0!==this.password&&null!==this.password?"status"!==t||void 0!==this.status&&null!==this.status?"advertisedRoutes"!==t||void 0!==this.advertisedRoutes&&null!==this.advertisedRoutes?"receivedRoutes"!==t||void 0!==this.receivedRoutes&&null!==this.receivedRoutes?"ignoredRoutes"!==t||void 0!==this.ignoredRoutes&&null!==this.ignoredRoutes?new f(t,"no such property exists"):new f("ignoredRoutes","undefined or null"):new f("receivedRoutes","undefined or null"):new f("advertisedRoutes","undefined or null"):new f("status","undefined or null"):new f("password","undefined or null")}}])&&Vt(t.prototype,n),r&&Vt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function Ht(e){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xt(e,t,n){return(t=Zt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zt(r.key),r)}}function Zt(e){var t=function(e,t){if("object"!==Ht(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ht(t)?t:String(t)}Kt.prototype.name=void 0,Kt.prototype.description=void 0,Kt.prototype.localGatewayReference=void 0,Kt.prototype.remoteGatewayReference=void 0,Kt.prototype.dynamicRoutePriority=void 0,Kt.prototype.password=void 0,Kt.prototype.status=void 0,Kt.prototype.advertisedRoutes=void 0,Kt.prototype.receivedRoutes=void 0,Kt.prototype.ignoredRoutes=void 0;var en=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.error.AppMessage",this.$reserved={$fqObjectType:"networking.v4.r0.a1.error.AppMessage"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(T.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Yt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yt(Yt(Yt(Yt(Yt(Yt(Yt({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:this.getArgumentsMap()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("argumentsMap","undefined or null"):new f("errorGroup","undefined or null"):new f("locale","undefined or null"):new f("code","undefined or null"):new f("severity","undefined or null"):new f("message","undefined or null")}}])&&Qt(t.prototype,n),r&&Qt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){on(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function on(e,t,n){return(t=an(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,an(r.key),r)}}function an(e){var t=function(e,t){if("object"!==tn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tn(t)?t:String(t)}en.prototype.message=void 0,en.prototype.severity=void 0,en.prototype.code=void 0,en.prototype.locale="en_US",en.prototype.errorGroup=void 0,en.prototype.argumentsMap=void 0,en.prototype.$reserved=void 0,en.prototype.$objectType=void 0,en.prototype.$unknownFields=void 0;var un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.error.SchemaValidationErrorMessage",this.$reserved={$fqObjectType:"networking.v4.r0.a1.error.SchemaValidationErrorMessage"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=rn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rn(rn(rn(rn({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("attributePath","undefined or null"):new f("message","undefined or null"):new f("location","undefined or null")}}])&&sn(t.prototype,n),r&&sn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function cn(e){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dn(e,t,n){return(t=hn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hn(r.key),r)}}function hn(e){var t=function(e,t){if("object"!==cn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cn(t)?t:String(t)}un.prototype.location=void 0,un.prototype.message=void 0,un.prototype.attributePath=void 0,un.prototype.$reserved=void 0,un.prototype.$objectType=void 0,un.prototype.$unknownFields=void 0;var yn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.error.SchemaValidationError",this.$reserved={$fqObjectType:"networking.v4.r0.a1.error.SchemaValidationError"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(s=[],r=t.validationErrorMessages,i=0;i<r.length;i++)o=un.constructFromObject(r[i],void 0),s.push(o);n.setValidationErrorMessages(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=fn({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fn(fn(fn(fn(fn(fn({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),!1===e?void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("validationErrorMessages","undefined or null"):new f("path","undefined or null"):new f("error","undefined or null"):new f("statusCode","undefined or null"):new f("timestamp","undefined or null")}}])&&pn(t.prototype,n),r&&pn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vn(e){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wn(e,t,n){return(t=On(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,On(r.key),r)}}function On(e){var t=function(e,t){if("object"!==vn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vn(t)?t:String(t)}yn.prototype.timestamp=void 0,yn.prototype.statusCode=void 0,yn.prototype.error=void 0,yn.prototype.path=void 0,yn.prototype.validationErrorMessages=void 0,yn.prototype.$reserved=void 0,yn.prototype.$objectType=void 0,yn.prototype.$unknownFields=void 0;var $n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.error.ErrorResponse",this.$reserved={$fqObjectType:"networking.v4.r0.a1.error.ErrorResponse"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if("EMPTY_LIST"===(a=t.$errorItemDiscriminator))n.setError([]);else if("List<networking.v4.error.AppMessage>"===a){for(s=[],r=t.error,i=0;i<r.length;i++)o=en.constructFromObject(r[i],void 0),s.push(o);n.setError(s)}else{if("networking.v4.error.SchemaValidationError"!==a)throw"Unknown data type "+a+" in data";n.setError(yn.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var c in n.$unknownFields=bn({},t.$unknownFields),t)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=t[c])}return n}}],(n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$errorItemDiscriminator",value:function(){return this.getError()===[]?"EMPTY_LIST":Array.isArray(this.getError())&&this.getError()[0]instanceof en?"List<networking.v4.error.AppMessage>":this.getError()instanceof yn?"networking.v4.error.SchemaValidationError":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bn(bn({},!1===e?void 0!==this.getError()&&null!==this.getError()?{$errorItemDiscriminator:this.get$errorItemDiscriminator(),error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getError()}:{}:void 0!==this.getError()&&null!==this.getError()?{$errorItemDiscriminator:this.get$errorItemDiscriminator(),error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getError()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("error","undefined or null")}}])&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();$n.prototype.error=void 0,$n.prototype.$reserved=void 0,$n.prototype.$objectType=void 0,$n.prototype.$unknownFields=void 0;var kn=n(0);function jn(e){return(jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pn(Object(n),!0).forEach((function(t){Tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tn(e,t,n){return(t=Fn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function In(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fn(r.key),r)}}function Fn(e){var t=function(e,t){if("object"!==jn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jn(t)?t:String(t)}function Rn(e,t){return(Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=An(e);if(t){var o=An(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return En(this,n)}}function En(e,t){if(t&&("object"===jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function An(e){return(An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rn(e,t)}(s,e);var t,n,r,o=Dn(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.BgpSessionApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.BgpSessionApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.BgpSession"===n)t.setData(Kt.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Sn({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Kt?"networking.v4.config.BgpSession":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sn(!1===e?Sn(Sn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Sn(Sn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&In(t.prototype,n),r&&In(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return(t=Jn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jn(r.key),r)}}function Jn(e){var t=function(e,t){if("object"!==xn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xn(t)?t:String(t)}Nn.prototype.metadata=void 0,Nn.prototype.data=void 0,Nn.prototype.$reserved=void 0,Nn.prototype.$objectType=void 0,Nn.prototype.$unknownFields=void 0;var Vn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fqObjectType:"prism.v4.r0.a1.config.TaskReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Cn({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Cn(Cn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!u.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new f("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&_n(t.prototype,n),r&&_n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Un(e){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(n),!0).forEach((function(t){qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t,n){return(t=Kn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kn(r.key),r)}}function Kn(e){var t=function(e,t){if("object"!==Un(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Un(t)?t:String(t)}function Hn(e,t){return(Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xn(e);if(t){var o=Xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yn(this,n)}}function Yn(e,t){if(t&&("object"===Un(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Vn.prototype.extId=void 0,Vn.prototype.$reserved=void 0,Vn.prototype.$objectType=void 0,Vn.prototype.$unknownFields=void 0;var Qn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hn(e,t)}(s,e);var t,n,r,o=zn(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.TaskReferenceApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.TaskReferenceApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("prism.v4.config.TaskReference"===n)t.setData(Vn.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Bn({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Vn?"prism.v4.config.TaskReference":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bn(!1===e?Bn(Bn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Bn(Bn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Wn(t.prototype,n),r&&Wn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Zn(e){return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e,t,n){return(t=or(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,or(r.key),r)}}function or(e){var t=function(e,t){if("object"!==Zn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Zn(t)?t:String(t)}function ir(e,t){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ur(e);if(t){var o=ur(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ar(this,n)}}function ar(e,t){if(t&&("object"===Zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ur(e){return(ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Qn.prototype.metadata=void 0,Qn.prototype.data=void 0,Qn.prototype.$reserved=void 0,Qn.prototype.$objectType=void 0,Qn.prototype.$unknownFields=void 0;var cr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(s,e);var t,n,r,o=sr(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.BgpSessionListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.BgpSessionListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.BgpSession>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=Kt.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=tr({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof Kt?"List<networking.v4.config.BgpSession>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tr(!1===e?tr(tr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):tr(tr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&rr(t.prototype,n),r&&rr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pr(e,t,n){return(t=yr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yr(r.key),r)}}function yr(e){var t=function(e,t){if("object"!==lr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lr(t)?t:String(t)}cr.prototype.metadata=void 0,cr.prototype.data=void 0,cr.prototype.$reserved=void 0,cr.prototype.$objectType=void 0,cr.prototype.$unknownFields=void 0;var vr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createBgpSession",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof Kt&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createBgpSession");var o={},i={},s=dr(dr({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/bgp-sessions","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteBgpSession",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteBgpSession");var r={extId:e},o={},i=dr(dr({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/bgp-sessions/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getBgpSession",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getBgpSession");var r={extId:e},o={},i=dr(dr({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Nn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/bgp-sessions/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listBgpSessions",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=dr(dr(dr(dr({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=dr(dr({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=cr;return this.apiClient.callApi("/api/networking/v4.0.a1/config/bgp-sessions","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateBgpSession",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof Kt&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateBgpSession");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateBgpSession");var i={extId:e},s={},a=dr(dr({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/bgp-sessions/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&hr(t.prototype,n),o&&hr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mr(e,t,n){return(t=$r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$r(r.key),r)}}function $r(e){var t=function(e,t){if("object"!==gr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gr(t)?t:String(t)}var kr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.FloatingIPv4Address",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FloatingIPv4Address"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=wr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return wr(wr(wr({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new f("value","undefined or null");if(!u.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new f("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new f("prefixLength","undefined or null");if(!u.validateMaximum(this.prefixLength,32))return new f("prefixLength","does not satisfy required maximum constraint: 32");if(!u.validateMinimum(this.prefixLength,0))return new f("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Or(t.prototype,n),r&&Or(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jr(e){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach((function(t){Tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tr(e,t,n){return(t=Fr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fr(r.key),r)}}function Fr(e){var t=function(e,t){if("object"!==jr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jr(t)?t:String(t)}kr.prototype.value=void 0,kr.prototype.prefixLength=32,kr.prototype.$reserved=void 0,kr.prototype.$objectType=void 0,kr.prototype.$unknownFields=void 0;var Rr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.FloatingIPv6Address",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FloatingIPv6Address"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Sr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sr(Sr(Sr({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new f("value","undefined or null");if(!u.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new f("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new f("prefixLength","undefined or null");if(!u.validateMaximum(this.prefixLength,128))return new f("prefixLength","does not satisfy required maximum constraint: 128");if(!u.validateMinimum(this.prefixLength,0))return new f("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Ir(t.prototype,n),r&&Ir(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(n),!0).forEach((function(t){Nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nr(e,t,n){return(t=Mr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mr(r.key),r)}}function Mr(e){var t=function(e,t){if("object"!==Dr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dr(t)?t:String(t)}Rr.prototype.value=void 0,Rr.prototype.prefixLength=128,Rr.prototype.$reserved=void 0,Rr.prototype.$objectType=void 0,Rr.prototype.$unknownFields=void 0;var Cr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.FloatingIPAddress",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FloatingIPAddress"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(kr.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(Rr.constructFromObject(t.ipv6)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ar({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return Ar(!1===e?Ar(Ar({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}):Ar(Ar({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson()}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipv6","undefined or null"):new f("ipv4","undefined or null")}}])&&xr(t.prototype,n),r&&xr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Lr(e){return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){Vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vr(e,t,n){return(t=Gr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gr(r.key),r)}}function Gr(e){var t=function(e,t){if("object"!==Lr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lr(t)?t:String(t)}Cr.prototype.ipv4=void 0,Cr.prototype.ipv6=void 0,Cr.prototype.$reserved=void 0,Cr.prototype.$objectType=void 0,Cr.prototype.$unknownFields=void 0;var Br=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.privateIp=t,this.vpcReference=n,this.$objectType="networking.v4.config.PrivateIpAssociation",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.PrivateIpAssociation"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("privateIp")&&null!==t.privateIp&&void 0!==t.privateIp&&n.setPrivateIp(Xe.constructFromObject(t.privateIp)),t.hasOwnProperty("vpcReference")&&null!==t.vpcReference&&void 0!==t.vpcReference&&n.setVpcReference(t.vpcReference),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Jr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPrivateIp",value:function(){return this.privateIp}},{key:"setPrivateIp",value:function(e){this.privateIp=e}},{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Jr(Jr(Jr({},!1===e?void 0!==this.getPrivateIp()&&null!==this.getPrivateIp()?{privateIp:this.getPrivateIp().toJson(!1)}:{}:void 0!==this.getPrivateIp()&&null!==this.getPrivateIp()?{privateIp:this.getPrivateIp().toJson()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["privateIp","vpcReference"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("privateIp"===t&&(void 0===this.privateIp||null===this.privateIp))return new f("privateIp","undefined or null");if("vpcReference"===t){if(void 0===this.vpcReference||null===this.vpcReference)return new f("vpcReference","undefined or null");if(!u.validatePattern(this.vpcReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpcReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Ur(t.prototype,n),r&&Ur(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qr(e){return(qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach((function(t){Hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hr(e,t,n){return(t=Yr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yr(r.key),r)}}function Yr(e){var t=function(e,t){if("object"!==qr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qr(t)?t:String(t)}Br.prototype.privateIp=void 0,Br.prototype.vpcReference=void 0,Br.prototype.$reserved=void 0,Br.prototype.$objectType=void 0,Br.prototype.$unknownFields=void 0;var Xr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.vmNicReference=t,this.$objectType="networking.v4.config.VmNicAssociation",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VmNicAssociation"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vmNicReference")&&null!==t.vmNicReference&&void 0!==t.vmNicReference&&n.setVmNicReference(t.vmNicReference),t.hasOwnProperty("vpcReference")&&null!==t.vpcReference&&void 0!==t.vpcReference&&n.setVpcReference(t.vpcReference),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Kr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVmNicReference",value:function(){return this.vmNicReference}},{key:"setVmNicReference",value:function(e){this.vmNicReference=e}},{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Kr(!1===e?Kr(Kr({},void 0!==this.getVmNicReference()&&null!==this.getVmNicReference()?{vmNicReference:this.getVmNicReference()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}):Kr({},void 0!==this.getVmNicReference()&&null!==this.getVmNicReference()?{vmNicReference:this.getVmNicReference()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["vmNicReference"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("vmNicReference"===t){if(void 0===this.vmNicReference||null===this.vmNicReference)return new f("vmNicReference","undefined or null");if(!u.validatePattern(this.vmNicReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vmNicReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vpcReference"===t){if(void 0===this.vpcReference||null===this.vpcReference)return new f("vpcReference","undefined or null");if(!u.validatePattern(this.vpcReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpcReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&zr(t.prototype,n),r&&zr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qr(e){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){to(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t,n){return(t=ro(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ro(r.key),r)}}function ro(e){var t=function(e,t){if("object"!==Qr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qr(t)?t:String(t)}function oo(e,t){return(oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function io(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var o=ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return so(this,n)}}function so(e,t){if(t&&("object"===Qr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ao(e){return(ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Xr.prototype.vmNicReference=void 0,Xr.prototype.vpcReference=void 0,Xr.prototype.$reserved=void 0,Xr.prototype.$objectType=void 0,Xr.prototype.$unknownFields=void 0;var uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oo(e,t)}(s,e);var t,n,r,o=io(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.FloatingIp",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FloatingIp"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("association")&&null!==e.association&&void 0!==e.association)if("EMPTY_LIST"===(n=e.$associationItemDiscriminator))t.setAssociation([]);else if("networking.v4.config.VmNicAssociation"===n)t.setAssociation(Xr.constructFromObject(e.association,void 0));else{if("networking.v4.config.PrivateIpAssociation"!==n)throw"Unknown data type "+n+" in data";t.setAssociation(Br.constructFromObject(e.association,void 0))}if(e.hasOwnProperty("floatingIp")&&null!==e.floatingIp&&void 0!==e.floatingIp&&t.setFloatingIp(Cr.constructFromObject(e.floatingIp)),e.hasOwnProperty("externalSubnetReference")&&null!==e.externalSubnetReference&&void 0!==e.externalSubnetReference&&t.setExternalSubnetReference(e.externalSubnetReference),!r)for(var o in t.$unknownFields=eo({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getAssociation",value:function(){return this.association}},{key:"setAssociation",value:function(e){this.association=e}},{key:"get$associationItemDiscriminator",value:function(){return this.getAssociation()instanceof Xr?"networking.v4.config.VmNicAssociation":this.getAssociation()instanceof Br?"networking.v4.config.PrivateIpAssociation":void 0}},{key:"getFloatingIp",value:function(){return this.floatingIp}},{key:"setFloatingIp",value:function(e){this.floatingIp=e}},{key:"getExternalSubnetReference",value:function(){return this.externalSubnetReference}},{key:"setExternalSubnetReference",value:function(e){this.externalSubnetReference=e}},{key:"toJson",value:function(e){return eo(!1===e?eo(eo(eo(eo(eo(eo(eo(eo(eo({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getAssociation()&&null!==this.getAssociation()?{$associationItemDiscriminator:this.get$associationItemDiscriminator(),association:void 0!==this.getAssociation().toJson?this.getAssociation().toJson(!1):Array.isArray(this.getAssociation())?this.getAssociation().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getAssociation()}:{}),void 0!==this.getFloatingIp()&&null!==this.getFloatingIp()?{floatingIp:this.getFloatingIp().toJson(!1)}:{}),void 0!==this.getExternalSubnetReference()&&null!==this.getExternalSubnetReference()?{externalSubnetReference:this.getExternalSubnetReference()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):eo(eo(eo(eo(eo(eo(eo(eo({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getAssociation()&&null!==this.getAssociation()?{$associationItemDiscriminator:this.get$associationItemDiscriminator(),association:void 0!==this.getAssociation().toJson?this.getAssociation().toJson():Array.isArray(this.getAssociation())?this.getAssociation().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getAssociation()}:{}),void 0!==this.getFloatingIp()&&null!==this.getFloatingIp()?{floatingIp:this.getFloatingIp().toJson()}:{}),void 0!==this.getExternalSubnetReference()&&null!==this.getExternalSubnetReference()?{externalSubnetReference:this.getExternalSubnetReference()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,128))return new f("name","does not satisfy required maxLength constraint: 128")}if("description"===t){if(void 0===this.description||null===this.description)return new f("description","undefined or null");if(!u.validateMaxLength(this.description,1e3))return new f("description","does not satisfy required maxLength constraint: 1000")}if("association"===t&&(void 0===this.association||null===this.association))return new f("association","undefined or null");if("floatingIp"===t&&(void 0===this.floatingIp||null===this.floatingIp))return new f("floatingIp","undefined or null");if("externalSubnetReference"===t){if(void 0===this.externalSubnetReference||null===this.externalSubnetReference)return new f("externalSubnetReference","undefined or null");if(!u.validatePattern(this.externalSubnetReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("externalSubnetReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new f(t,"no such property exists")}}])&&no(t.prototype,n),r&&no(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach((function(t){po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function po(e,t,n){return(t=yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yo(r.key),r)}}function yo(e){var t=function(e,t){if("object"!==co(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===co(t)?t:String(t)}function vo(e,t){return(vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function go(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wo(e);if(t){var o=wo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bo(this,n)}}function bo(e,t){if(t&&("object"===co(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wo(e){return(wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}uo.prototype.name=void 0,uo.prototype.description=void 0,uo.prototype.association=void 0,uo.prototype.floatingIp=void 0,uo.prototype.externalSubnetReference=void 0;var mo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vo(e,t)}(s,e);var t,n,r,o=go(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.FloatingIpListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FloatingIpListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.FloatingIp>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=uo.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=fo({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof uo?"List<networking.v4.config.FloatingIp>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fo(!1===e?fo(fo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):fo(fo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ho(t.prototype,n),r&&ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Oo(e){return(Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e,t,n){return(t=So(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Po(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,So(r.key),r)}}function So(e){var t=function(e,t){if("object"!==Oo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Oo(t)?t:String(t)}function To(e,t){return(To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Io(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ro(e);if(t){var o=Ro(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fo(this,n)}}function Fo(e,t){if(t&&("object"===Oo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ro(e){return(Ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}mo.prototype.metadata=void 0,mo.prototype.data=void 0,mo.prototype.$reserved=void 0,mo.prototype.$objectType=void 0,mo.prototype.$unknownFields=void 0;var Do=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&To(e,t)}(s,e);var t,n,r,o=Io(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.FloatingIpApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FloatingIpApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.FloatingIp"===n)t.setData(uo.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=ko({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof uo?"networking.v4.config.FloatingIp":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ko(!1===e?ko(ko({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):ko(ko({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Po(t.prototype,n),r&&Po(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Eo(e){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach((function(t){xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xo(e,t,n){return(t=Co(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Co(r.key),r)}}function Co(e){var t=function(e,t){if("object"!==Eo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Eo(t)?t:String(t)}Do.prototype.metadata=void 0,Do.prototype.data=void 0,Do.prototype.$reserved=void 0,Do.prototype.$objectType=void 0,Do.prototype.$unknownFields=void 0;var Lo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createFloatingIp",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof uo&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createFloatingIp");var o={},i={},s=No(No({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/floating-ips","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteFloatingIp",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteFloatingIp");var r={extId:e},o={},i=No(No({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/floating-ips/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getFloatingIp",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getFloatingIp");var r={extId:e},o={},i=No(No({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Do;return this.apiClient.callApi("/api/networking/v4.0.a1/config/floating-ips/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listFloatingIp",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=No(No(No(No({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=No(No({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=mo;return this.apiClient.callApi("/api/networking/v4.0.a1/config/floating-ips","GET",r,o,i,s,n,a,u,c,l)}},{key:"putFloatingIp",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof uo&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling putFloatingIp");if(null==e)throw new Error("Missing the required parameter 'extId' when calling putFloatingIp");var i={extId:e},s={},a=No(No({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/floating-ips/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&Mo(t.prototype,n),o&&Mo(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),_o={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PC:"PC",PE:"PE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(_o).find((function(t){return _o[t]===e}));return null==t?_o.$UNKNOWN:_o[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case _o.$UNKNOWN:case _o.$REDACTED:case _o.PC:case _o.PE:return;default:throw new Error("Invalid : must be ScopeType.{ $UNKNOWN|$REDACTED|PC|PE }")}}};Object.freeze(_o);var Jo=_o;function Vo(e){return(Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uo(Object(n),!0).forEach((function(t){Bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bo(e,t,n){return(t=Wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wo(r.key),r)}}function Wo(e){var t=function(e,t){if("object"!==Vo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vo(t)?t:String(t)}var Ko=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.ExportScope",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ExportScope"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("uuid")&&null!==t.uuid&&void 0!==t.uuid&&n.setUuid(t.uuid),t.hasOwnProperty("scopeType")&&null!==t.scopeType&&void 0!==t.scopeType&&n.setScopeType(Jo.constructFromObject(t.scopeType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Go({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getScopeType",value:function(){return this.scopeType}},{key:"setScopeType",value:function(e){this.scopeType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Go(Go(Go({},void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getScopeType()&&null!==this.getScopeType()?{scopeType:this.getScopeType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new f("uuid","undefined or null");if(!u.validatePattern(this.uuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("uuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"scopeType"!==t||void 0!==this.scopeType&&null!==this.scopeType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("scopeType","undefined or null")}}])&&qo(t.prototype,n),r&&qo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Ko.prototype.uuid=void 0,Ko.prototype.scopeType=void 0,Ko.prototype.$reserved=void 0,Ko.prototype.$objectType=void 0,Ko.prototype.$unknownFields=void 0;var Ho={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",TCP:"TCP",UDP:"UDP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ho).find((function(t){return Ho[t]===e}));return null==t?Ho.$UNKNOWN:Ho[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ho.$UNKNOWN:case Ho.$REDACTED:case Ho.TCP:case Ho.UDP:return;default:throw new Error("Invalid : must be ExporterProtocol.{ $UNKNOWN|$REDACTED|TCP|UDP }")}}};Object.freeze(Ho);var zo=Ho;function Yo(e){return(Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){Zo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zo(e,t,n){return(t=ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ti(r.key),r)}}function ti(e){var t=function(e,t){if("object"!==Yo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yo(t)?t:String(t)}function ni(e,t){return(ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ii(e);if(t){var o=ii(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oi(this,n)}}function oi(e,t){if(t&&("object"===Yo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ii(e){return(ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var si=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ni(e,t)}(s,e);var t,n,r,o=ri(s);function s(e,t,n,r,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(a=o.call(this)).name=e,a.collectorIp=t,a.protocol=n,a.collectorPort=r,a.exportScopes=i,a.$objectType="networking.v4.config.IPFIXExporter",a.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPFIXExporter"},a.$unknownFields={},a}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("collectorIp")&&null!==e.collectorIp&&void 0!==e.collectorIp&&t.setCollectorIp(e.collectorIp),e.hasOwnProperty("protocol")&&null!==e.protocol&&void 0!==e.protocol&&t.setProtocol(zo.constructFromObject(e.protocol)),e.hasOwnProperty("collectorPort")&&null!==e.collectorPort&&void 0!==e.collectorPort&&t.setCollectorPort(e.collectorPort),e.hasOwnProperty("exportRateLimitPerNode")&&null!==e.exportRateLimitPerNode&&void 0!==e.exportRateLimitPerNode&&t.setExportRateLimitPerNode(e.exportRateLimitPerNode),e.hasOwnProperty("exportScopes")&&null!==e.exportScopes&&void 0!==e.exportScopes){for(i=[],n=e.exportScopes,o=0;o<n.length;o++)r=Ko.constructFromObject(n[o],void 0),i.push(r);t.setExportScopes(i)}if(e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),!a)for(var u in t.$unknownFields=Qo({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getCollectorIp",value:function(){return this.collectorIp}},{key:"setCollectorIp",value:function(e){this.collectorIp=e}},{key:"getProtocol",value:function(){return this.protocol}},{key:"setProtocol",value:function(e){this.protocol=e}},{key:"getCollectorPort",value:function(){return this.collectorPort}},{key:"setCollectorPort",value:function(e){this.collectorPort=e}},{key:"getExportRateLimitPerNode",value:function(){return this.exportRateLimitPerNode}},{key:"setExportRateLimitPerNode",value:function(e){this.exportRateLimitPerNode=e}},{key:"getExportScopes",value:function(){return this.exportScopes}},{key:"setExportScopes",value:function(e){this.exportScopes=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"toJson",value:function(e){return Qo(!1===e?Qo(Qo(Qo(Qo(Qo(Qo(Qo(Qo(Qo(Qo(Qo({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCollectorIp()&&null!==this.getCollectorIp()?{collectorIp:this.getCollectorIp()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getCollectorPort()&&null!==this.getCollectorPort()?{collectorPort:this.getCollectorPort()}:{}),void 0!==this.getExportRateLimitPerNode()&&null!==this.getExportRateLimitPerNode()?{exportRateLimitPerNode:this.getExportRateLimitPerNode()}:{}),void 0!==this.getExportScopes()&&null!==this.getExportScopes()?{exportScopes:this.getExportScopes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Qo(Qo(Qo(Qo(Qo(Qo(Qo(Qo(Qo(Qo({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCollectorIp()&&null!==this.getCollectorIp()?{collectorIp:this.getCollectorIp()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getCollectorPort()&&null!==this.getCollectorPort()?{collectorPort:this.getCollectorPort()}:{}),void 0!==this.getExportRateLimitPerNode()&&null!==this.getExportRateLimitPerNode()?{exportRateLimitPerNode:this.getExportRateLimitPerNode()}:{}),void 0!==this.getExportScopes()&&null!==this.getExportScopes()?{exportScopes:this.getExportScopes().map((function(e){return e.toJson()}))}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name","collectorIp","protocol","collectorPort","exportScopes"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,128))return new f("name","does not satisfy required maxLength constraint: 128")}return"collectorIp"!==t||void 0!==this.collectorIp&&null!==this.collectorIp?"protocol"!==t||void 0!==this.protocol&&null!==this.protocol?"collectorPort"!==t||void 0!==this.collectorPort&&null!==this.collectorPort?"exportRateLimitPerNode"!==t||void 0!==this.exportRateLimitPerNode&&null!==this.exportRateLimitPerNode?"exportScopes"!==t||void 0!==this.exportScopes&&null!==this.exportScopes?"description"!==t||void 0!==this.description&&null!==this.description?new f(t,"no such property exists"):new f("description","undefined or null"):new f("exportScopes","undefined or null"):new f("exportRateLimitPerNode","undefined or null"):new f("collectorPort","undefined or null"):new f("protocol","undefined or null"):new f("collectorIp","undefined or null")}}])&&ei(t.prototype,n),r&&ei(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ui(Object(n),!0).forEach((function(t){li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function li(e,t,n){return(t=di(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,di(r.key),r)}}function di(e){var t=function(e,t){if("object"!==ai(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ai(t)?t:String(t)}function pi(e,t){return(pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vi(e);if(t){var o=vi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yi(this,n)}}function yi(e,t){if(t&&("object"===ai(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vi(e){return(vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}si.prototype.name=void 0,si.prototype.collectorIp=void 0,si.prototype.protocol=void 0,si.prototype.collectorPort=void 0,si.prototype.exportRateLimitPerNode=void 0,si.prototype.exportScopes=void 0,si.prototype.description=void 0;var gi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pi(e,t)}(s,e);var t,n,r,o=hi(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.IPFIXExporterApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPFIXExporterApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.IPFIXExporter"===n)t.setData(si.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=ci({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof si?"networking.v4.config.IPFIXExporter":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ci(!1===e?ci(ci({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):ci(ci({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&fi(t.prototype,n),r&&fi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function bi(e){return(bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(n),!0).forEach((function(t){Oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oi(e,t,n){return(t=ki(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ki(r.key),r)}}function ki(e){var t=function(e,t){if("object"!==bi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bi(t)?t:String(t)}function ji(e,t){return(ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ti(e);if(t){var o=Ti(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Si(this,n)}}function Si(e,t){if(t&&("object"===bi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ti(e){return(Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}gi.prototype.metadata=void 0,gi.prototype.data=void 0,gi.prototype.$reserved=void 0,gi.prototype.$objectType=void 0,gi.prototype.$unknownFields=void 0;var Ii=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(s,e);var t,n,r,o=Pi(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.IPFIXExporterListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPFIXExporterListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.IPFIXExporter>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=si.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=mi({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof si?"List<networking.v4.config.IPFIXExporter>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mi(!1===e?mi(mi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):mi(mi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&$i(t.prototype,n),r&&$i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Fi(e){return(Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ei(e,t,n){return(t=Ni(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ni(r.key),r)}}function Ni(e){var t=function(e,t){if("object"!==Fi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fi(t)?t:String(t)}Ii.prototype.metadata=void 0,Ii.prototype.data=void 0,Ii.prototype.$reserved=void 0,Ii.prototype.$objectType=void 0,Ii.prototype.$unknownFields=void 0;var xi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createIpfixExporter",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof si&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createIpfixExporter");var o={},i={},s=Di(Di({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/ipfix-exporters","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteIpfixExporter",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteIpfixExporter");var r={extId:e},o={},i=Di(Di({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/ipfix-exporters/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getIpfixExporter",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getIpfixExporter");var r={extId:e},o={},i=Di(Di({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=gi;return this.apiClient.callApi("/api/networking/v4.0.a1/config/ipfix-exporters/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listIpfixExporters",value:function(){var e=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},t=null,n={},r={},o=Di(Di({},e.hasOwnProperty("If-Match")&&null!==e["If-Match"]?{"If-Match":e["If-Match"].toString()}:{}),e.hasOwnProperty("If-None-Match")&&null!==e["If-None-Match"]?{"If-None-Match":e["If-None-Match"].toString()}:{}),i={},s=["basicAuthScheme"],a=[],u=["application/json"],c=Ii;return this.apiClient.callApi("/api/networking/v4.0.a1/config/ipfix-exporters","GET",n,r,o,i,t,s,a,u,c)}},{key:"updateIpfixExporter",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof si&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateIpfixExporter");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateIpfixExporter");var i={extId:e},s={},a=Di(Di({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/ipfix-exporters/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&Ai(t.prototype,n),o&&Ai(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Mi(e){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(n),!0).forEach((function(t){_i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _i(e,t,n){return(t=Vi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vi(r.key),r)}}function Vi(e){var t=function(e,t){if("object"!==Mi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mi(t)?t:String(t)}var Ui=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.address=t,this.$objectType="networking.v4.config.MacAddress",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.MacAddress"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("address")&&null!==t.address&&void 0!==t.address&&n.setAddress(t.address),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Li({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAddress",value:function(){return this.address}},{key:"setAddress",value:function(e){this.address=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Li(Li({},void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["address"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("address"===t){if(void 0===this.address||null===this.address)return new f("address","undefined or null");if(!u.validatePattern(this.address,/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/))return new f("address","does not satisfy required pattern: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Ji(t.prototype,n),r&&Ji(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Ui.prototype.address=void 0,Ui.prototype.$reserved=void 0,Ui.prototype.$objectType=void 0,Ui.prototype.$unknownFields=void 0;var Gi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",UP:"UP",DOWN:"DOWN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Gi).find((function(t){return Gi[t]===e}));return null==t?Gi.$UNKNOWN:Gi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Gi.$UNKNOWN:case Gi.$REDACTED:case Gi.UP:case Gi.DOWN:return;default:throw new Error("Invalid : must be StretchState.{ $UNKNOWN|$REDACTED|UP|DOWN }")}}};Object.freeze(Gi);var Bi=Gi;function qi(e){return(qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Hi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hi(e,t,n){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yi(r.key),r)}}function Yi(e){var t=function(e,t){if("object"!==qi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qi(t)?t:String(t)}var Xi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.StretchStatus",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.StretchStatus"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("detail")&&null!==t.detail&&void 0!==t.detail&&n.setDetail(t.detail),t.hasOwnProperty("state")&&null!==t.state&&void 0!==t.state&&n.setState(Bi.constructFromObject(t.state)),t.hasOwnProperty("tunnelState")&&null!==t.tunnelState&&void 0!==t.tunnelState&&n.setTunnelState(Ft.constructFromObject(t.tunnelState)),t.hasOwnProperty("interfaceState")&&null!==t.interfaceState&&void 0!==t.interfaceState&&n.setInterfaceState(Ft.constructFromObject(t.interfaceState)),t.hasOwnProperty("roundTripTimeMilliseconds")&&null!==t.roundTripTimeMilliseconds&&void 0!==t.roundTripTimeMilliseconds&&n.setRoundTripTimeMilliseconds(t.roundTripTimeMilliseconds),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ki({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getDetail",value:function(){return this.detail}},{key:"setDetail",value:function(e){this.detail=e}},{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){this.state=e}},{key:"getTunnelState",value:function(){return this.tunnelState}},{key:"setTunnelState",value:function(e){this.tunnelState=e}},{key:"getInterfaceState",value:function(){return this.interfaceState}},{key:"setInterfaceState",value:function(e){this.interfaceState=e}},{key:"getRoundTripTimeMilliseconds",value:function(){return this.roundTripTimeMilliseconds}},{key:"setRoundTripTimeMilliseconds",value:function(e){this.roundTripTimeMilliseconds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ki(Ki(Ki(Ki(Ki(Ki({},void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getTunnelState()&&null!==this.getTunnelState()?{tunnelState:this.getTunnelState()}:{}),void 0!==this.getInterfaceState()&&null!==this.getInterfaceState()?{interfaceState:this.getInterfaceState()}:{}),void 0!==this.getRoundTripTimeMilliseconds()&&null!==this.getRoundTripTimeMilliseconds()?{roundTripTimeMilliseconds:this.getRoundTripTimeMilliseconds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"detail"!==t||void 0!==this.detail&&null!==this.detail?"state"!==t||void 0!==this.state&&null!==this.state?"tunnelState"!==t||void 0!==this.tunnelState&&null!==this.tunnelState?"interfaceState"!==t||void 0!==this.interfaceState&&null!==this.interfaceState?"roundTripTimeMilliseconds"!==t||void 0!==this.roundTripTimeMilliseconds&&null!==this.roundTripTimeMilliseconds?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("roundTripTimeMilliseconds","undefined or null"):new f("interfaceState","undefined or null"):new f("tunnelState","undefined or null"):new f("state","undefined or null"):new f("detail","undefined or null")}}])&&zi(t.prototype,n),r&&zi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qi(e){return(Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ts(e,t,n){return(t=rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rs(r.key),r)}}function rs(e){var t=function(e,t){if("object"!==Qi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qi(t)?t:String(t)}Xi.prototype.detail=void 0,Xi.prototype.state=void 0,Xi.prototype.tunnelState=void 0,Xi.prototype.interfaceState=void 0,Xi.prototype.roundTripTimeMilliseconds=void 0,Xi.prototype.$reserved=void 0,Xi.prototype.$objectType=void 0,Xi.prototype.$unknownFields=void 0;var os=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.RemoteVtepStretchStatus",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RemoteVtepStretchStatus"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("address")&&null!==t.address&&void 0!==t.address&&n.setAddress(Xe.constructFromObject(t.address)),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(Xi.constructFromObject(t.status)),t.hasOwnProperty("learnedMacAddresses")&&null!==t.learnedMacAddresses&&void 0!==t.learnedMacAddresses){for(s=[],r=t.learnedMacAddresses,i=0;i<r.length;i++)o=Ui.constructFromObject(r[i],void 0),s.push(o);n.setLearnedMacAddresses(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=es({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getAddress",value:function(){return this.address}},{key:"setAddress",value:function(e){this.address=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getLearnedMacAddresses",value:function(){return this.learnedMacAddresses}},{key:"setLearnedMacAddresses",value:function(e){this.learnedMacAddresses=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return es(!1===e?es(es(es({},void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus().toJson(!1)}:{}),void 0!==this.getLearnedMacAddresses()&&null!==this.getLearnedMacAddresses()?{learnedMacAddresses:this.getLearnedMacAddresses().map((function(e){return e.toJson(!1)}))}:{}):es(es(es({},void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus().toJson()}:{}),void 0!==this.getLearnedMacAddresses()&&null!==this.getLearnedMacAddresses()?{learnedMacAddresses:this.getLearnedMacAddresses().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"address"!==t||void 0!==this.address&&null!==this.address?"status"!==t||void 0!==this.status&&null!==this.status?"learnedMacAddresses"!==t||void 0!==this.learnedMacAddresses&&null!==this.learnedMacAddresses?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("learnedMacAddresses","undefined or null"):new f("status","undefined or null"):new f("address","undefined or null")}}])&&ns(t.prototype,n),r&&ns(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function is(e){return(is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){us(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function us(e,t,n){return(t=ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ls(r.key),r)}}function ls(e){var t=function(e,t){if("object"!==is(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==is(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===is(t)?t:String(t)}os.prototype.address=void 0,os.prototype.status=void 0,os.prototype.learnedMacAddresses=void 0,os.prototype.$reserved=void 0,os.prototype.$objectType=void 0,os.prototype.$unknownFields=void 0;var fs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.SiteParams",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.SiteParams"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("pcClusterReference")&&null!==t.pcClusterReference&&void 0!==t.pcClusterReference&&n.setPcClusterReference(t.pcClusterReference),t.hasOwnProperty("pcClusterId")&&null!==t.pcClusterId&&void 0!==t.pcClusterId&&n.setPcClusterId(t.pcClusterId),t.hasOwnProperty("stretchSubnetId")&&null!==t.stretchSubnetId&&void 0!==t.stretchSubnetId&&n.setStretchSubnetId(t.stretchSubnetId),t.hasOwnProperty("stretchSubnetReference")&&null!==t.stretchSubnetReference&&void 0!==t.stretchSubnetReference&&n.setStretchSubnetReference(t.stretchSubnetReference),t.hasOwnProperty("vpnConnectionId")&&null!==t.vpnConnectionId&&void 0!==t.vpnConnectionId&&n.setVpnConnectionId(t.vpnConnectionId),t.hasOwnProperty("connectionReference")&&null!==t.connectionReference&&void 0!==t.connectionReference&&n.setConnectionReference(t.connectionReference),t.hasOwnProperty("stretchInterfaceIpAddress")&&null!==t.stretchInterfaceIpAddress&&void 0!==t.stretchInterfaceIpAddress&&n.setStretchInterfaceIpAddress(Xe.constructFromObject(t.stretchInterfaceIpAddress)),t.hasOwnProperty("vpnInterfaceIPAddress")&&null!==t.vpnInterfaceIPAddress&&void 0!==t.vpnInterfaceIPAddress&&n.setVpnInterfaceIPAddress(Xe.constructFromObject(t.vpnInterfaceIPAddress)),t.hasOwnProperty("defaultGatewayIPAddress")&&null!==t.defaultGatewayIPAddress&&void 0!==t.defaultGatewayIPAddress&&n.setDefaultGatewayIPAddress(Xe.constructFromObject(t.defaultGatewayIPAddress)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=as({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPcClusterReference",value:function(){return this.pcClusterReference}},{key:"setPcClusterReference",value:function(e){this.pcClusterReference=e}},{key:"getPcClusterId",value:function(){return this.pcClusterId}},{key:"setPcClusterId",value:function(e){this.pcClusterId=e}},{key:"getStretchSubnetId",value:function(){return this.stretchSubnetId}},{key:"setStretchSubnetId",value:function(e){this.stretchSubnetId=e}},{key:"getStretchSubnetReference",value:function(){return this.stretchSubnetReference}},{key:"setStretchSubnetReference",value:function(e){this.stretchSubnetReference=e}},{key:"getVpnConnectionId",value:function(){return this.vpnConnectionId}},{key:"setVpnConnectionId",value:function(e){this.vpnConnectionId=e}},{key:"getConnectionReference",value:function(){return this.connectionReference}},{key:"setConnectionReference",value:function(e){this.connectionReference=e}},{key:"getStretchInterfaceIpAddress",value:function(){return this.stretchInterfaceIpAddress}},{key:"setStretchInterfaceIpAddress",value:function(e){this.stretchInterfaceIpAddress=e}},{key:"getVpnInterfaceIPAddress",value:function(){return this.vpnInterfaceIPAddress}},{key:"setVpnInterfaceIPAddress",value:function(e){this.vpnInterfaceIPAddress=e}},{key:"getDefaultGatewayIPAddress",value:function(){return this.defaultGatewayIPAddress}},{key:"setDefaultGatewayIPAddress",value:function(e){this.defaultGatewayIPAddress=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return as(!1===e?as(as(as(as(as(as(as(as(as({},void 0!==this.getPcClusterReference()&&null!==this.getPcClusterReference()?{pcClusterReference:this.getPcClusterReference()}:{}),void 0!==this.getPcClusterId()&&null!==this.getPcClusterId()?{pcClusterId:this.getPcClusterId()}:{}),void 0!==this.getStretchSubnetId()&&null!==this.getStretchSubnetId()?{stretchSubnetId:this.getStretchSubnetId()}:{}),void 0!==this.getStretchSubnetReference()&&null!==this.getStretchSubnetReference()?{stretchSubnetReference:this.getStretchSubnetReference()}:{}),void 0!==this.getVpnConnectionId()&&null!==this.getVpnConnectionId()?{vpnConnectionId:this.getVpnConnectionId()}:{}),void 0!==this.getConnectionReference()&&null!==this.getConnectionReference()?{connectionReference:this.getConnectionReference()}:{}),void 0!==this.getStretchInterfaceIpAddress()&&null!==this.getStretchInterfaceIpAddress()?{stretchInterfaceIpAddress:this.getStretchInterfaceIpAddress().toJson(!1)}:{}),void 0!==this.getVpnInterfaceIPAddress()&&null!==this.getVpnInterfaceIPAddress()?{vpnInterfaceIPAddress:this.getVpnInterfaceIPAddress().toJson(!1)}:{}),void 0!==this.getDefaultGatewayIPAddress()&&null!==this.getDefaultGatewayIPAddress()?{defaultGatewayIPAddress:this.getDefaultGatewayIPAddress().toJson(!1)}:{}):as(as(as(as(as(as(as(as(as({},void 0!==this.getPcClusterReference()&&null!==this.getPcClusterReference()?{pcClusterReference:this.getPcClusterReference()}:{}),void 0!==this.getPcClusterId()&&null!==this.getPcClusterId()?{pcClusterId:this.getPcClusterId()}:{}),void 0!==this.getStretchSubnetId()&&null!==this.getStretchSubnetId()?{stretchSubnetId:this.getStretchSubnetId()}:{}),void 0!==this.getStretchSubnetReference()&&null!==this.getStretchSubnetReference()?{stretchSubnetReference:this.getStretchSubnetReference()}:{}),void 0!==this.getVpnConnectionId()&&null!==this.getVpnConnectionId()?{vpnConnectionId:this.getVpnConnectionId()}:{}),void 0!==this.getConnectionReference()&&null!==this.getConnectionReference()?{connectionReference:this.getConnectionReference()}:{}),void 0!==this.getStretchInterfaceIpAddress()&&null!==this.getStretchInterfaceIpAddress()?{stretchInterfaceIpAddress:this.getStretchInterfaceIpAddress().toJson()}:{}),void 0!==this.getVpnInterfaceIPAddress()&&null!==this.getVpnInterfaceIPAddress()?{vpnInterfaceIPAddress:this.getVpnInterfaceIPAddress().toJson()}:{}),void 0!==this.getDefaultGatewayIPAddress()&&null!==this.getDefaultGatewayIPAddress()?{defaultGatewayIPAddress:this.getDefaultGatewayIPAddress().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("pcClusterReference"===t){if(void 0===this.pcClusterReference||null===this.pcClusterReference)return new f("pcClusterReference","undefined or null");if(!u.validatePattern(this.pcClusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("pcClusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("pcClusterId"===t){if(void 0===this.pcClusterId||null===this.pcClusterId)return new f("pcClusterId","undefined or null");if(!u.validatePattern(this.pcClusterId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("pcClusterId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("stretchSubnetId"===t){if(void 0===this.stretchSubnetId||null===this.stretchSubnetId)return new f("stretchSubnetId","undefined or null");if(!u.validatePattern(this.stretchSubnetId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("stretchSubnetId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("stretchSubnetReference"===t){if(void 0===this.stretchSubnetReference||null===this.stretchSubnetReference)return new f("stretchSubnetReference","undefined or null");if(!u.validatePattern(this.stretchSubnetReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("stretchSubnetReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vpnConnectionId"===t){if(void 0===this.vpnConnectionId||null===this.vpnConnectionId)return new f("vpnConnectionId","undefined or null");if(!u.validatePattern(this.vpnConnectionId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpnConnectionId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("connectionReference"===t){if(void 0===this.connectionReference||null===this.connectionReference)return new f("connectionReference","undefined or null");if(!u.validatePattern(this.connectionReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("connectionReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"stretchInterfaceIpAddress"!==t||void 0!==this.stretchInterfaceIpAddress&&null!==this.stretchInterfaceIpAddress?"vpnInterfaceIPAddress"!==t||void 0!==this.vpnInterfaceIPAddress&&null!==this.vpnInterfaceIPAddress?"defaultGatewayIPAddress"!==t||void 0!==this.defaultGatewayIPAddress&&null!==this.defaultGatewayIPAddress?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("defaultGatewayIPAddress","undefined or null"):new f("vpnInterfaceIPAddress","undefined or null"):new f("stretchInterfaceIpAddress","undefined or null")}}])&&cs(t.prototype,n),r&&cs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();fs.prototype.pcClusterReference=void 0,fs.prototype.pcClusterId=void 0,fs.prototype.stretchSubnetId=void 0,fs.prototype.stretchSubnetReference=void 0,fs.prototype.vpnConnectionId=void 0,fs.prototype.connectionReference=void 0,fs.prototype.stretchInterfaceIpAddress=void 0,fs.prototype.vpnInterfaceIPAddress=void 0,fs.prototype.defaultGatewayIPAddress=void 0,fs.prototype.$reserved=void 0,fs.prototype.$objectType=void 0,fs.prototype.$unknownFields=void 0;var ds={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VPN:"VPN",VXLAN:"VXLAN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ds).find((function(t){return ds[t]===e}));return null==t?ds.$UNKNOWN:ds[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ds.$UNKNOWN:case ds.$REDACTED:case ds.VPN:case ds.VXLAN:return;default:throw new Error("Invalid : must be StretchConnectionType.{ $UNKNOWN|$REDACTED|VPN|VXLAN }")}}};Object.freeze(ds);var ps=ds;function hs(e){return(hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach((function(t){gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gs(e,t,n){return(t=ws(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ws(r.key),r)}}function ws(e){var t=function(e,t){if("object"!==hs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hs(t)?t:String(t)}function ms(e,t){return(ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Os(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ks(e);if(t){var o=ks(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $s(this,n)}}function $s(e,t){if(t&&("object"===hs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ks(e){return(ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var js=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ms(e,t)}(s,e);var t,n,r,o=Os(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this)).name=e,t.$objectType="networking.v4.config.Layer2Stretch",t.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2Stretch"},t.$unknownFields={},t}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("localSiteParams")&&null!==e.localSiteParams&&void 0!==e.localSiteParams&&t.setLocalSiteParams(fs.constructFromObject(e.localSiteParams)),e.hasOwnProperty("remoteSiteParams")&&null!==e.remoteSiteParams&&void 0!==e.remoteSiteParams&&t.setRemoteSiteParams(fs.constructFromObject(e.remoteSiteParams)),e.hasOwnProperty("connectionType")&&null!==e.connectionType&&void 0!==e.connectionType&&t.setConnectionType(ps.constructFromObject(e.connectionType)),e.hasOwnProperty("stretchStatus")&&null!==e.stretchStatus&&void 0!==e.stretchStatus&&t.setStretchStatus(Xi.constructFromObject(e.stretchStatus)),e.hasOwnProperty("remoteStretchStatus")&&null!==e.remoteStretchStatus&&void 0!==e.remoteStretchStatus){for(i=[],n=e.remoteStretchStatus,o=0;o<n.length;o++)r=os.constructFromObject(n[o],void 0),i.push(r);t.setRemoteStretchStatus(i)}if(e.hasOwnProperty("mtu")&&null!==e.mtu&&void 0!==e.mtu&&t.setMtu(e.mtu),e.hasOwnProperty("vni")&&null!==e.vni&&void 0!==e.vni&&t.setVni(e.vni),!a)for(var u in t.$unknownFields=vs({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getLocalSiteParams",value:function(){return this.localSiteParams}},{key:"setLocalSiteParams",value:function(e){this.localSiteParams=e}},{key:"getRemoteSiteParams",value:function(){return this.remoteSiteParams}},{key:"setRemoteSiteParams",value:function(e){this.remoteSiteParams=e}},{key:"getConnectionType",value:function(){return this.connectionType}},{key:"setConnectionType",value:function(e){this.connectionType=e}},{key:"getStretchStatus",value:function(){return this.stretchStatus}},{key:"setStretchStatus",value:function(e){this.stretchStatus=e}},{key:"getRemoteStretchStatus",value:function(){return this.remoteStretchStatus}},{key:"setRemoteStretchStatus",value:function(e){this.remoteStretchStatus=e}},{key:"getMtu",value:function(){return this.mtu}},{key:"setMtu",value:function(e){this.mtu=e}},{key:"getVni",value:function(){return this.vni}},{key:"setVni",value:function(e){this.vni=e}},{key:"toJson",value:function(e){return vs(!1===e?vs(vs(vs(vs(vs(vs(vs(vs(vs(vs(vs(vs(vs({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getLocalSiteParams()&&null!==this.getLocalSiteParams()?{localSiteParams:this.getLocalSiteParams().toJson(!1)}:{}),void 0!==this.getRemoteSiteParams()&&null!==this.getRemoteSiteParams()?{remoteSiteParams:this.getRemoteSiteParams().toJson(!1)}:{}),void 0!==this.getConnectionType()&&null!==this.getConnectionType()?{connectionType:this.getConnectionType()}:{}),void 0!==this.getStretchStatus()&&null!==this.getStretchStatus()?{stretchStatus:this.getStretchStatus().toJson(!1)}:{}),void 0!==this.getRemoteStretchStatus()&&null!==this.getRemoteStretchStatus()?{remoteStretchStatus:this.getRemoteStretchStatus().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMtu()&&null!==this.getMtu()?{mtu:this.getMtu()}:{}),void 0!==this.getVni()&&null!==this.getVni()?{vni:this.getVni()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):vs(vs(vs(vs(vs(vs(vs(vs(vs(vs(vs({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getLocalSiteParams()&&null!==this.getLocalSiteParams()?{localSiteParams:this.getLocalSiteParams().toJson()}:{}),void 0!==this.getRemoteSiteParams()&&null!==this.getRemoteSiteParams()?{remoteSiteParams:this.getRemoteSiteParams().toJson()}:{}),void 0!==this.getConnectionType()&&null!==this.getConnectionType()?{connectionType:this.getConnectionType()}:{}),void 0!==this.getStretchStatus()&&null!==this.getStretchStatus()?{stretchStatus:this.getStretchStatus().toJson()}:{}),void 0!==this.getMtu()&&null!==this.getMtu()?{mtu:this.getMtu()}:{}),void 0!==this.getVni()&&null!==this.getVni()?{vni:this.getVni()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new f("name","undefined or null");if("description"===t&&(void 0===this.description||null===this.description))return new f("description","undefined or null");if("localSiteParams"===t&&(void 0===this.localSiteParams||null===this.localSiteParams))return new f("localSiteParams","undefined or null");if("remoteSiteParams"===t&&(void 0===this.remoteSiteParams||null===this.remoteSiteParams))return new f("remoteSiteParams","undefined or null");if("connectionType"===t&&(void 0===this.connectionType||null===this.connectionType))return new f("connectionType","undefined or null");if("stretchStatus"===t&&(void 0===this.stretchStatus||null===this.stretchStatus))return new f("stretchStatus","undefined or null");if("remoteStretchStatus"===t&&(void 0===this.remoteStretchStatus||null===this.remoteStretchStatus))return new f("remoteStretchStatus","undefined or null");if("mtu"===t){if(void 0===this.mtu||null===this.mtu)return new f("mtu","undefined or null");if(!u.validateMaximum(this.mtu,8950))return new f("mtu","does not satisfy required maximum constraint: 8950");if(!u.validateMinimum(this.mtu,500))return new f("mtu","does not satisfy required minimum constraint: 500")}if("vni"===t){if(void 0===this.vni||null===this.vni)return new f("vni","undefined or null");if(!u.validateMaximum(this.vni,16777215))return new f("vni","does not satisfy required maximum constraint: 16777215");if(!u.validateMinimum(this.vni,1))return new f("vni","does not satisfy required minimum constraint: 1")}return new f(t,"no such property exists")}}])&&bs(t.prototype,n),r&&bs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function Ps(e){return(Ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach((function(t){Is(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Is(e,t,n){return(t=Rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rs(r.key),r)}}function Rs(e){var t=function(e,t){if("object"!==Ps(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ps(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ps(t)?t:String(t)}function Ds(e,t){return(Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Es(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ns(e);if(t){var o=Ns(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return As(this,n)}}function As(e,t){if(t&&("object"===Ps(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ns(e){return(Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}js.prototype.name=void 0,js.prototype.description=void 0,js.prototype.localSiteParams=void 0,js.prototype.remoteSiteParams=void 0,js.prototype.connectionType=void 0,js.prototype.stretchStatus=void 0,js.prototype.remoteStretchStatus=void 0,js.prototype.mtu=void 0,js.prototype.vni=void 0;var xs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ds(e,t)}(s,e);var t,n,r,o=Es(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.Layer2StretchApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2StretchApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.Layer2Stretch"===n)t.setData(js.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Ts({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof js?"networking.v4.config.Layer2Stretch":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ts(!1===e?Ts(Ts({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Ts(Ts({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Fs(t.prototype,n),r&&Fs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Ms(e){return(Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach((function(t){_s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _s(e,t,n){return(t=Vs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Js(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vs(r.key),r)}}function Vs(e){var t=function(e,t){if("object"!==Ms(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ms(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ms(t)?t:String(t)}function Us(e,t){return(Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qs(e);if(t){var o=qs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bs(this,n)}}function Bs(e,t){if(t&&("object"===Ms(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qs(e){return(qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xs.prototype.metadata=void 0,xs.prototype.data=void 0,xs.prototype.$reserved=void 0,xs.prototype.$objectType=void 0,xs.prototype.$unknownFields=void 0;var Ws=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Us(e,t)}(s,e);var t,n,r,o=Gs(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.Layer2StretchListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2StretchListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.Layer2Stretch>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=js.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=Ls({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof js?"List<networking.v4.config.Layer2Stretch>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ls(!1===e?Ls(Ls({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Ls(Ls({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Js(t.prototype,n),r&&Js(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);Ws.prototype.metadata=void 0,Ws.prototype.data=void 0,Ws.prototype.$reserved=void 0,Ws.prototype.$objectType=void 0,Ws.prototype.$unknownFields=void 0;var Ks={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",VM:"VM",STORAGE_CONTAINER:"STORAGE_CONTAINER",VOLUME_GROUP:"VOLUME_GROUP",TASK:"TASK",IMAGE:"IMAGE",CATEGORY:"CATEGORY",NODE:"NODE",VPC:"VPC",SUBNET:"SUBNET",ROUTING_POLICY:"ROUTING_POLICY",FLOATING_IP:"FLOATING_IP",VPN_GATEWAY:"VPN_GATEWAY",VPN_CONNECTION:"VPN_CONNECTION",DIRECT_CONNECT:"DIRECT_CONNECT",DIRECT_CONNECT_VIF:"DIRECT_CONNECT_VIF",VIRTUAL_NIC:"VIRTUAL_NIC",VIRTUAL_SWITCH:"VIRTUAL_SWITCH",VM_DISK:"VM_DISK",VOLUME_DISK:"VOLUME_DISK",DISK_RECOVERY_POINT:"DISK_RECOVERY_POINT",VTEP_GATEWAY:"VTEP_GATEWAY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ks).find((function(t){return Ks[t]===e}));return null==t?Ks.$UNKNOWN:Ks[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ks.$UNKNOWN:case Ks.$REDACTED:case Ks.CLUSTER:case Ks.VM:case Ks.STORAGE_CONTAINER:case Ks.VOLUME_GROUP:case Ks.TASK:case Ks.IMAGE:case Ks.CATEGORY:case Ks.NODE:case Ks.VPC:case Ks.SUBNET:case Ks.ROUTING_POLICY:case Ks.FLOATING_IP:case Ks.VPN_GATEWAY:case Ks.VPN_CONNECTION:case Ks.DIRECT_CONNECT:case Ks.DIRECT_CONNECT_VIF:case Ks.VIRTUAL_NIC:case Ks.VIRTUAL_SWITCH:case Ks.VM_DISK:case Ks.VOLUME_DISK:case Ks.DISK_RECOVERY_POINT:case Ks.VTEP_GATEWAY:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|CLUSTER|VM|STORAGE_CONTAINER|VOLUME_GROUP|TASK|IMAGE|CATEGORY|NODE|VPC|SUBNET|ROUTING_POLICY|FLOATING_IP|VPN_GATEWAY|VPN_CONNECTION|DIRECT_CONNECT|DIRECT_CONNECT_VIF|VIRTUAL_NIC|VIRTUAL_SWITCH|VM_DISK|VOLUME_DISK|DISK_RECOVERY_POINT|VTEP_GATEWAY }")}}};Object.freeze(Ks);var Hs=Ks;function zs(e){return(zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach((function(t){Qs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qs(e,t,n){return(t=ea(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ea(r.key),r)}}function ea(e){var t=function(e,t){if("object"!==zs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zs(t)?t:String(t)}var ta=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.EntityReference",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.EntityReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("uris")&&null!==t.uris&&void 0!==t.uris){for(i=[],r=t.uris,o=0;o<r.length;o++)i.push(r[o]);n.setUris(i)}if(t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&n.setEntityType(Hs.constructFromObject(t.entityType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=Xs({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getUris",value:function(){return this.uris}},{key:"setUris",value:function(e){this.uris=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Xs(Xs(Xs(Xs(Xs({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getUris()&&null!==this.getUris()?{uris:this.getUris()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"name"!==t||void 0!==this.name&&null!==this.name?"uris"!==t||void 0!==this.uris&&null!==this.uris?"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("entityType","undefined or null"):new f("uris","undefined or null"):new f("name","undefined or null")}}])&&Zs(t.prototype,n),r&&Zs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function na(e){return(na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(n),!0).forEach((function(t){ia(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ia(e,t,n){return(t=aa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aa(r.key),r)}}function aa(e){var t=function(e,t){if("object"!==na(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==na(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===na(t)?t:String(t)}ta.prototype.extId=void 0,ta.prototype.name=void 0,ta.prototype.uris=void 0,ta.prototype.entityType=void 0,ta.prototype.$reserved=void 0,ta.prototype.$objectType=void 0,ta.prototype.$unknownFields=void 0;var ua=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.Layer2StretchSubnetInfo",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2StretchSubnetInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("subnetReference")&&null!==t.subnetReference&&void 0!==t.subnetReference&&n.setSubnetReference(ta.constructFromObject(t.subnetReference)),t.hasOwnProperty("vlanId")&&null!==t.vlanId&&void 0!==t.vlanId&&n.setVlanId(t.vlanId),t.hasOwnProperty("vpcReference")&&null!==t.vpcReference&&void 0!==t.vpcReference&&n.setVpcReference(ta.constructFromObject(t.vpcReference)),t.hasOwnProperty("ipSubnet")&&null!==t.ipSubnet&&void 0!==t.ipSubnet&&n.setIpSubnet(bt.constructFromObject(t.ipSubnet)),t.hasOwnProperty("defaultGatewayIp")&&null!==t.defaultGatewayIp&&void 0!==t.defaultGatewayIp&&n.setDefaultGatewayIp(Xe.constructFromObject(t.defaultGatewayIp)),t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(ta.constructFromObject(t.clusterReference)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=oa({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getSubnetReference",value:function(){return this.subnetReference}},{key:"setSubnetReference",value:function(e){this.subnetReference=e}},{key:"getVlanId",value:function(){return this.vlanId}},{key:"setVlanId",value:function(e){this.vlanId=e}},{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"getIpSubnet",value:function(){return this.ipSubnet}},{key:"setIpSubnet",value:function(e){this.ipSubnet=e}},{key:"getDefaultGatewayIp",value:function(){return this.defaultGatewayIp}},{key:"setDefaultGatewayIp",value:function(e){this.defaultGatewayIp=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oa(!1===e?oa(oa(oa(oa(oa(oa({},void 0!==this.getSubnetReference()&&null!==this.getSubnetReference()?{subnetReference:this.getSubnetReference().toJson(!1)}:{}),void 0!==this.getVlanId()&&null!==this.getVlanId()?{vlanId:this.getVlanId()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference().toJson(!1)}:{}),void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson(!1)}:{}),void 0!==this.getDefaultGatewayIp()&&null!==this.getDefaultGatewayIp()?{defaultGatewayIp:this.getDefaultGatewayIp().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}):oa(oa(oa(oa(oa(oa({},void 0!==this.getSubnetReference()&&null!==this.getSubnetReference()?{subnetReference:this.getSubnetReference().toJson()}:{}),void 0!==this.getVlanId()&&null!==this.getVlanId()?{vlanId:this.getVlanId()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference().toJson()}:{}),void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson()}:{}),void 0!==this.getDefaultGatewayIp()&&null!==this.getDefaultGatewayIp()?{defaultGatewayIp:this.getDefaultGatewayIp().toJson()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"subnetReference"!==t||void 0!==this.subnetReference&&null!==this.subnetReference?"vlanId"!==t||void 0!==this.vlanId&&null!==this.vlanId?"vpcReference"!==t||void 0!==this.vpcReference&&null!==this.vpcReference?"ipSubnet"!==t||void 0!==this.ipSubnet&&null!==this.ipSubnet?"defaultGatewayIp"!==t||void 0!==this.defaultGatewayIp&&null!==this.defaultGatewayIp?"clusterReference"!==t||void 0!==this.clusterReference&&null!==this.clusterReference?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("clusterReference","undefined or null"):new f("defaultGatewayIp","undefined or null"):new f("ipSubnet","undefined or null"):new f("vpcReference","undefined or null"):new f("vlanId","undefined or null"):new f("subnetReference","undefined or null")}}])&&sa(t.prototype,n),r&&sa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function la(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function da(e,t,n){return(t=ha(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ha(r.key),r)}}function ha(e){var t=function(e,t){if("object"!==ca(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ca(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ca(t)?t:String(t)}ua.prototype.subnetReference=void 0,ua.prototype.vlanId=void 0,ua.prototype.vpcReference=void 0,ua.prototype.ipSubnet=void 0,ua.prototype.defaultGatewayIp=void 0,ua.prototype.clusterReference=void 0,ua.prototype.$reserved=void 0,ua.prototype.$objectType=void 0,ua.prototype.$unknownFields=void 0;var ya=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.Layer2StretchVpnConnectionInfo",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2StretchVpnConnectionInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("connectionReference")&&null!==t.connectionReference&&void 0!==t.connectionReference&&n.setConnectionReference(ta.constructFromObject(t.connectionReference)),t.hasOwnProperty("peerConnectionReference")&&null!==t.peerConnectionReference&&void 0!==t.peerConnectionReference&&n.setPeerConnectionReference(ta.constructFromObject(t.peerConnectionReference)),t.hasOwnProperty("localVtiIPAddress")&&null!==t.localVtiIPAddress&&void 0!==t.localVtiIPAddress&&n.setLocalVtiIPAddress(Xe.constructFromObject(t.localVtiIPAddress)),t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(ta.constructFromObject(t.clusterReference)),t.hasOwnProperty("vpcReference")&&null!==t.vpcReference&&void 0!==t.vpcReference&&n.setVpcReference(ta.constructFromObject(t.vpcReference)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=fa({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getConnectionReference",value:function(){return this.connectionReference}},{key:"setConnectionReference",value:function(e){this.connectionReference=e}},{key:"getPeerConnectionReference",value:function(){return this.peerConnectionReference}},{key:"setPeerConnectionReference",value:function(e){this.peerConnectionReference=e}},{key:"getLocalVtiIPAddress",value:function(){return this.localVtiIPAddress}},{key:"setLocalVtiIPAddress",value:function(e){this.localVtiIPAddress=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fa(!1===e?fa(fa(fa(fa(fa({},void 0!==this.getConnectionReference()&&null!==this.getConnectionReference()?{connectionReference:this.getConnectionReference().toJson(!1)}:{}),void 0!==this.getPeerConnectionReference()&&null!==this.getPeerConnectionReference()?{peerConnectionReference:this.getPeerConnectionReference().toJson(!1)}:{}),void 0!==this.getLocalVtiIPAddress()&&null!==this.getLocalVtiIPAddress()?{localVtiIPAddress:this.getLocalVtiIPAddress().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference().toJson(!1)}:{}):fa(fa(fa(fa(fa({},void 0!==this.getConnectionReference()&&null!==this.getConnectionReference()?{connectionReference:this.getConnectionReference().toJson()}:{}),void 0!==this.getPeerConnectionReference()&&null!==this.getPeerConnectionReference()?{peerConnectionReference:this.getPeerConnectionReference().toJson()}:{}),void 0!==this.getLocalVtiIPAddress()&&null!==this.getLocalVtiIPAddress()?{localVtiIPAddress:this.getLocalVtiIPAddress().toJson()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"connectionReference"!==t||void 0!==this.connectionReference&&null!==this.connectionReference?"peerConnectionReference"!==t||void 0!==this.peerConnectionReference&&null!==this.peerConnectionReference?"localVtiIPAddress"!==t||void 0!==this.localVtiIPAddress&&null!==this.localVtiIPAddress?"clusterReference"!==t||void 0!==this.clusterReference&&null!==this.clusterReference?"vpcReference"!==t||void 0!==this.vpcReference&&null!==this.vpcReference?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("vpcReference","undefined or null"):new f("clusterReference","undefined or null"):new f("localVtiIPAddress","undefined or null"):new f("peerConnectionReference","undefined or null"):new f("connectionReference","undefined or null")}}])&&pa(t.prototype,n),r&&pa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function va(e){return(va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach((function(t){wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e,t,n){return(t=Oa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oa(r.key),r)}}function Oa(e){var t=function(e,t){if("object"!==va(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===va(t)?t:String(t)}ya.prototype.connectionReference=void 0,ya.prototype.peerConnectionReference=void 0,ya.prototype.localVtiIPAddress=void 0,ya.prototype.clusterReference=void 0,ya.prototype.vpcReference=void 0,ya.prototype.$reserved=void 0,ya.prototype.$objectType=void 0,ya.prototype.$unknownFields=void 0;var $a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.Vtep",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Vtep"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("address")&&null!==t.address&&void 0!==t.address&&n.setAddress(Xe.constructFromObject(t.address)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ba({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAddress",value:function(){return this.address}},{key:"setAddress",value:function(e){this.address=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ba(ba({},!1===e?void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}:void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"address"!==t||void 0!==this.address&&null!==this.address?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("address","undefined or null")}}])&&ma(t.prototype,n),r&&ma(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ka(e){return(ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){Sa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sa(e,t,n){return(t=Ia(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ia(r.key),r)}}function Ia(e){var t=function(e,t){if("object"!==ka(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ka(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ka(t)?t:String(t)}$a.prototype.address=void 0,$a.prototype.$reserved=void 0,$a.prototype.$objectType=void 0,$a.prototype.$unknownFields=void 0;var Fa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.Layer2StretchVtepGatewayInfo",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2StretchVtepGatewayInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("networkGatewayReference")&&null!==t.networkGatewayReference&&void 0!==t.networkGatewayReference&&n.setNetworkGatewayReference(t.networkGatewayReference),t.hasOwnProperty("networkGatewayName")&&null!==t.networkGatewayName&&void 0!==t.networkGatewayName&&n.setNetworkGatewayName(t.networkGatewayName),t.hasOwnProperty("isLocal")&&null!==t.isLocal&&void 0!==t.isLocal&&n.setIsLocal(t.isLocal),t.hasOwnProperty("vxlanPort")&&null!==t.vxlanPort&&void 0!==t.vxlanPort&&n.setVxlanPort(t.vxlanPort),t.hasOwnProperty("vteps")&&null!==t.vteps&&void 0!==t.vteps){for(s=[],r=t.vteps,i=0;i<r.length;i++)o=$a.constructFromObject(r[i],void 0),s.push(o);n.setVteps(s)}if(t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(ta.constructFromObject(t.clusterReference)),t.hasOwnProperty("vpcReference")&&null!==t.vpcReference&&void 0!==t.vpcReference&&n.setVpcReference(ta.constructFromObject(t.vpcReference)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Pa({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getNetworkGatewayReference",value:function(){return this.networkGatewayReference}},{key:"setNetworkGatewayReference",value:function(e){this.networkGatewayReference=e}},{key:"getNetworkGatewayName",value:function(){return this.networkGatewayName}},{key:"setNetworkGatewayName",value:function(e){this.networkGatewayName=e}},{key:"getIsLocal",value:function(){return this.isLocal}},{key:"setIsLocal",value:function(e){this.isLocal=e}},{key:"getVxlanPort",value:function(){return this.vxlanPort}},{key:"setVxlanPort",value:function(e){this.vxlanPort=e}},{key:"getVteps",value:function(){return this.vteps}},{key:"setVteps",value:function(e){this.vteps=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pa(!1===e?Pa(Pa(Pa(Pa(Pa(Pa(Pa({},void 0!==this.getNetworkGatewayReference()&&null!==this.getNetworkGatewayReference()?{networkGatewayReference:this.getNetworkGatewayReference()}:{}),void 0!==this.getNetworkGatewayName()&&null!==this.getNetworkGatewayName()?{networkGatewayName:this.getNetworkGatewayName()}:{}),void 0!==this.getIsLocal()&&null!==this.getIsLocal()?{isLocal:this.getIsLocal()}:{}),void 0!==this.getVxlanPort()&&null!==this.getVxlanPort()?{vxlanPort:this.getVxlanPort()}:{}),void 0!==this.getVteps()&&null!==this.getVteps()?{vteps:this.getVteps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference().toJson(!1)}:{}):Pa(Pa(Pa(Pa(Pa(Pa(Pa({},void 0!==this.getNetworkGatewayReference()&&null!==this.getNetworkGatewayReference()?{networkGatewayReference:this.getNetworkGatewayReference()}:{}),void 0!==this.getNetworkGatewayName()&&null!==this.getNetworkGatewayName()?{networkGatewayName:this.getNetworkGatewayName()}:{}),void 0!==this.getIsLocal()&&null!==this.getIsLocal()?{isLocal:this.getIsLocal()}:{}),void 0!==this.getVxlanPort()&&null!==this.getVxlanPort()?{vxlanPort:this.getVxlanPort()}:{}),void 0!==this.getVteps()&&null!==this.getVteps()?{vteps:this.getVteps().map((function(e){return e.toJson()}))}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("networkGatewayReference"===t){if(void 0===this.networkGatewayReference||null===this.networkGatewayReference)return new f("networkGatewayReference","undefined or null");if(!u.validatePattern(this.networkGatewayReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("networkGatewayReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"networkGatewayName"!==t||void 0!==this.networkGatewayName&&null!==this.networkGatewayName?"isLocal"!==t||void 0!==this.isLocal&&null!==this.isLocal?"vxlanPort"!==t||void 0!==this.vxlanPort&&null!==this.vxlanPort?"vteps"!==t||void 0!==this.vteps&&null!==this.vteps?"clusterReference"!==t||void 0!==this.clusterReference&&null!==this.clusterReference?"vpcReference"!==t||void 0!==this.vpcReference&&null!==this.vpcReference?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("vpcReference","undefined or null"):new f("clusterReference","undefined or null"):new f("vteps","undefined or null"):new f("vxlanPort","undefined or null"):new f("isLocal","undefined or null"):new f("networkGatewayName","undefined or null")}}])&&Ta(t.prototype,n),r&&Ta(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ra(e){return(Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach((function(t){Aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Aa(e,t,n){return(t=xa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xa(r.key),r)}}function xa(e){var t=function(e,t){if("object"!==Ra(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ra(t)?t:String(t)}Fa.prototype.networkGatewayReference=void 0,Fa.prototype.networkGatewayName=void 0,Fa.prototype.isLocal=void 0,Fa.prototype.vxlanPort=void 0,Fa.prototype.vteps=void 0,Fa.prototype.clusterReference=void 0,Fa.prototype.vpcReference=void 0,Fa.prototype.$reserved=void 0,Fa.prototype.$objectType=void 0,Fa.prototype.$unknownFields=void 0;var Ma=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.Layer2StretchRelatedEntities",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2StretchRelatedEntities"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("subnets")&&null!==t.subnets&&void 0!==t.subnets){for(s=[],r=t.subnets,i=0;i<r.length;i++)o=ua.constructFromObject(r[i],void 0),s.push(o);n.setSubnets(s)}if(t.hasOwnProperty("vpnConnections")&&null!==t.vpnConnections&&void 0!==t.vpnConnections){for(s=[],r=t.vpnConnections,i=0;i<r.length;i++)o=ya.constructFromObject(r[i],void 0),s.push(o);n.setVpnConnections(s)}if(t.hasOwnProperty("vtepGateways")&&null!==t.vtepGateways&&void 0!==t.vtepGateways){for(s=[],r=t.vtepGateways,i=0;i<r.length;i++)o=Fa.constructFromObject(r[i],void 0),s.push(o);n.setVtepGateways(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Ea({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getSubnets",value:function(){return this.subnets}},{key:"setSubnets",value:function(e){this.subnets=e}},{key:"getVpnConnections",value:function(){return this.vpnConnections}},{key:"setVpnConnections",value:function(e){this.vpnConnections=e}},{key:"getVtepGateways",value:function(){return this.vtepGateways}},{key:"setVtepGateways",value:function(e){this.vtepGateways=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ea(!1===e?Ea(Ea(Ea({},void 0!==this.getSubnets()&&null!==this.getSubnets()?{subnets:this.getSubnets().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVpnConnections()&&null!==this.getVpnConnections()?{vpnConnections:this.getVpnConnections().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVtepGateways()&&null!==this.getVtepGateways()?{vtepGateways:this.getVtepGateways().map((function(e){return e.toJson(!1)}))}:{}):Ea(Ea(Ea({},void 0!==this.getSubnets()&&null!==this.getSubnets()?{subnets:this.getSubnets().map((function(e){return e.toJson()}))}:{}),void 0!==this.getVpnConnections()&&null!==this.getVpnConnections()?{vpnConnections:this.getVpnConnections().map((function(e){return e.toJson()}))}:{}),void 0!==this.getVtepGateways()&&null!==this.getVtepGateways()?{vtepGateways:this.getVtepGateways().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"subnets"!==t||void 0!==this.subnets&&null!==this.subnets?"vpnConnections"!==t||void 0!==this.vpnConnections&&null!==this.vpnConnections?"vtepGateways"!==t||void 0!==this.vtepGateways&&null!==this.vtepGateways?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("vtepGateways","undefined or null"):new f("vpnConnections","undefined or null"):new f("subnets","undefined or null")}}])&&Na(t.prototype,n),r&&Na(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ca(e){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){Ja(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ja(e,t,n){return(t=Ua(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ua(r.key),r)}}function Ua(e){var t=function(e,t){if("object"!==Ca(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ca(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ca(t)?t:String(t)}function Ga(e,t){return(Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ba(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wa(e);if(t){var o=Wa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qa(this,n)}}function qa(e,t){if(t&&("object"===Ca(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Wa(e){return(Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ma.prototype.subnets=void 0,Ma.prototype.vpnConnections=void 0,Ma.prototype.vtepGateways=void 0,Ma.prototype.$reserved=void 0,Ma.prototype.$objectType=void 0,Ma.prototype.$unknownFields=void 0;var Ka=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ga(e,t)}(s,e);var t,n,r,o=Ba(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.Layer2StretchRelatedEntitiesApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Layer2StretchRelatedEntitiesApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.Layer2StretchRelatedEntities"===n)t.setData(Ma.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=_a({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Ma?"networking.v4.config.Layer2StretchRelatedEntities":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _a(!1===e?_a(_a({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):_a(_a({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Va(t.prototype,n),r&&Va(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Ha(e){return(Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?za(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t,n){return(t=Za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Za(r.key),r)}}function Za(e){var t=function(e,t){if("object"!==Ha(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ha(t)?t:String(t)}Ka.prototype.metadata=void 0,Ka.prototype.data=void 0,Ka.prototype.$reserved=void 0,Ka.prototype.$objectType=void 0,Ka.prototype.$unknownFields=void 0;var eu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createLayer2Stretch",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof js&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createLayer2Stretch");var o={},i={},s=Ya(Ya({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/layer2-stretches","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteLayer2Stretch",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteLayer2Stretch");var r={extId:e},o={},i=Ya(Ya({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/layer2-stretches/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getLayer2Stretch",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getLayer2Stretch");var r={extId:e},o={},i=Ya(Ya({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=xs;return this.apiClient.callApi("/api/networking/v4.0.a1/config/layer2-stretches/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"getLayer2StretchRelatedEntities",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'pcClusterExtId' when calling getLayer2StretchRelatedEntities");var r={pcClusterExtId:e},o={},i=Ya(Ya({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Ka;return this.apiClient.callApi("/api/networking/v4.0.a1/config/layer2-stretches/related-entities/{pcClusterExtId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listLayer2Stretches",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=Ya(Ya(Ya(Ya({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=Ya(Ya({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Ws;return this.apiClient.callApi("/api/networking/v4.0.a1/config/layer2-stretches","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateLayer2Stretch",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof js&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateLayer2Stretch");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateLayer2Stretch");var i={extId:e},s={},a=Ya(Ya({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/layer2-stretches/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&Qa(t.prototype,n),o&&Qa(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),tu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(tu).find((function(t){return tu[t]===e}));return null==t?tu.$UNKNOWN:tu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case tu.$UNKNOWN:case tu.$REDACTED:case tu.SUM:case tu.MIN:case tu.MAX:case tu.AVG:case tu.COUNT:case tu.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(tu);var nu=tu;function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function su(e,t,n){return(t=uu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uu(r.key),r)}}function uu(e){var t=function(e,t){if("object"!==ru(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ru(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ru(t)?t:String(t)}function cu(e,t){return(cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fu(this,n)}}function fu(e,t){if(t&&("object"===ru(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cu(e,t)}(s,e);var t,n,r,o=lu(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.StatsQueryResponseBase",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.StatsQueryResponseBase"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,we.constructFromObject(e,t,!0),e.hasOwnProperty("entityUuid")&&null!==e.entityUuid&&void 0!==e.entityUuid&&t.setEntityUuid(e.entityUuid),e.hasOwnProperty("statType")&&null!==e.statType&&void 0!==e.statType&&t.setStatType(nu.constructFromObject(e.statType)),!n))for(var r in t.$unknownFields=iu({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getStatType",value:function(){return this.statType}},{key:"setStatType",value:function(e){this.statType=e}},{key:"toJson",value:function(e){return iu(!1===e?iu(iu(iu(iu(iu({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):iu(iu(iu(iu({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new f("entityUuid","undefined or null");if(!u.validatePattern(this.entityUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("entityUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"statType"!==t||void 0!==this.statType&&null!==this.statType?new f(t,"no such property exists"):new f("statType","undefined or null")}}])&&au(t.prototype,n),r&&au(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(we);function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yu(Object(n),!0).forEach((function(t){gu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e,t,n){return(t=wu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wu(r.key),r)}}function wu(e){var t=function(e,t){if("object"!==hu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hu(t)?t:String(t)}function mu(e,t){return(mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ou(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ku(e);if(t){var o=ku(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $u(this,n)}}function $u(e,t){if(t&&("object"===hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ku(e){return(ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}pu.prototype.entityUuid=void 0,pu.prototype.statType=void 0;var ju=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mu(e,t)}(s,e);var t,n,r,o=Ou(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.Layer2StretchStats",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.Layer2StretchStats"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,pu.constructFromObject(e,t,!0),e.hasOwnProperty("throughputRxKbps")&&null!==e.throughputRxKbps&&void 0!==e.throughputRxKbps){for(o=[],n=e.throughputRxKbps,r=0;r<n.length;r++)o.push(n[r]);t.setThroughputRxKbps(o)}if(e.hasOwnProperty("throughputTxKbps")&&null!==e.throughputTxKbps&&void 0!==e.throughputTxKbps){for(o=[],n=e.throughputTxKbps,r=0;r<n.length;r++)o.push(n[r]);t.setThroughputTxKbps(o)}if(e.hasOwnProperty("rtt")&&null!==e.rtt&&void 0!==e.rtt){for(o=[],n=e.rtt,r=0;r<n.length;r++)o.push(n[r]);t.setRtt(o)}if(!i)for(var a in t.$unknownFields=vu({},e.$unknownFields),e)Object.keys(t).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(t.$unknownFields[a]=e[a])}return t}}],(n=[{key:"getThroughputRxKbps",value:function(){return this.throughputRxKbps}},{key:"setThroughputRxKbps",value:function(e){this.throughputRxKbps=e}},{key:"getThroughputTxKbps",value:function(){return this.throughputTxKbps}},{key:"setThroughputTxKbps",value:function(e){this.throughputTxKbps=e}},{key:"getRtt",value:function(){return this.rtt}},{key:"setRtt",value:function(e){this.rtt=e}},{key:"toJson",value:function(e){return vu(!1===e?vu(vu(vu(vu(vu(vu(vu(vu({},void 0!==this.getThroughputRxKbps()&&null!==this.getThroughputRxKbps()?{throughputRxKbps:this.getThroughputRxKbps()}:{}),void 0!==this.getThroughputTxKbps()&&null!==this.getThroughputTxKbps()?{throughputTxKbps:this.getThroughputTxKbps()}:{}),void 0!==this.getRtt()&&null!==this.getRtt()?{rtt:this.getRtt()}:{}),void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):vu(vu(vu(vu(vu(vu(vu({},void 0!==this.getThroughputRxKbps()&&null!==this.getThroughputRxKbps()?{throughputRxKbps:this.getThroughputRxKbps()}:{}),void 0!==this.getThroughputTxKbps()&&null!==this.getThroughputTxKbps()?{throughputTxKbps:this.getThroughputTxKbps()}:{}),void 0!==this.getRtt()&&null!==this.getRtt()?{rtt:this.getRtt()}:{}),void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"throughputRxKbps"!==t||void 0!==this.throughputRxKbps&&null!==this.throughputRxKbps?"throughputTxKbps"!==t||void 0!==this.throughputTxKbps&&null!==this.throughputTxKbps?"rtt"!==t||void 0!==this.rtt&&null!==this.rtt?new f(t,"no such property exists"):new f("rtt","undefined or null"):new f("throughputTxKbps","undefined or null"):new f("throughputRxKbps","undefined or null")}}])&&bu(t.prototype,n),r&&bu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(pu);function Pu(e){return(Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach((function(t){Iu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iu(e,t,n){return(t=Ru(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ru(r.key),r)}}function Ru(e){var t=function(e,t){if("object"!==Pu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pu(t)?t:String(t)}function Du(e,t){return(Du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Eu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nu(e);if(t){var o=Nu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Au(this,n)}}function Au(e,t){if(t&&("object"===Pu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nu(e){return(Nu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ju.prototype.throughputRxKbps=void 0,ju.prototype.throughputTxKbps=void 0,ju.prototype.rtt=void 0;var xu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Du(e,t)}(s,e);var t,n,r,o=Eu(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.Layer2StretchStatsApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.Layer2StretchStatsApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.stats.Layer2StretchStats"===n)t.setData(ju.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Tu({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof ju?"networking.v4.stats.Layer2StretchStats":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Tu(!1===e?Tu(Tu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Tu(Tu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Fu(t.prototype,n),r&&Fu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Mu(e){return(Mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){_u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _u(e,t,n){return(t=Vu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vu(r.key),r)}}function Vu(e){var t=function(e,t){if("object"!==Mu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mu(t)?t:String(t)}xu.prototype.metadata=void 0,xu.prototype.data=void 0,xu.prototype.$reserved=void 0,xu.prototype.$objectType=void 0,xu.prototype.$unknownFields=void 0;var Uu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"getLayer2StretchStats",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var r=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getLayer2StretchStats");var o={extId:e},i=Lu(Lu(Lu(Lu(Lu({},t.hasOwnProperty("$startTime")?{$startTime:t.$startTime}:{}),t.hasOwnProperty("$endTime")?{$endTime:t.$endTime}:{}),t.hasOwnProperty("$samplingInterval")?{$samplingInterval:t.$samplingInterval}:{}),t.hasOwnProperty("$statType")?{$statType:t.$statType}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),s=Lu(Lu({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),a={},u=["basicAuthScheme"],c=[],l=["application/json"],f=xu;return this.apiClient.callApi("/api/networking/v4.0.a1/stats/layer2-stretches/{extId}","GET",o,i,s,a,r,u,c,l,f)}}])&&Ju(t.prototype,n),o&&Ju(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Gu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AZURE:"AZURE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Gu).find((function(t){return Gu[t]===e}));return null==t?Gu.$UNKNOWN:Gu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Gu.$UNKNOWN:case Gu.$REDACTED:case Gu.AZURE:return;default:throw new Error("Invalid : must be CloudSubstrate.{ $UNKNOWN|$REDACTED|AZURE }")}}};Object.freeze(Gu);var Bu=Gu,qu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",UP:"UP",DEGRADED:"DEGRADED",DOWN:"DOWN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(qu).find((function(t){return qu[t]===e}));return null==t?qu.$UNKNOWN:qu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case qu.$UNKNOWN:case qu.$REDACTED:case qu.UP:case qu.DEGRADED:case qu.DOWN:return;default:throw new Error("Invalid : must be ControllerStatus.{ $UNKNOWN|$REDACTED|UP|DEGRADED|DOWN }")}}};Object.freeze(qu);var Wu=qu;function Ku(e){return(Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){Yu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yu(e,t,n){return(t=Qu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qu(r.key),r)}}function Qu(e){var t=function(e,t){if("object"!==Ku(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ku(t)?t:String(t)}function Zu(e,t){return(Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ec(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nc(e);if(t){var o=nc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tc(this,n)}}function tc(e,t){if(t&&("object"===Ku(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function nc(e){return(nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zu(e,t)}(s,e);var t,n,r,o=ec(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkController",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkController"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("controllerStatus")&&null!==e.controllerStatus&&void 0!==e.controllerStatus&&t.setControllerStatus(Wu.constructFromObject(e.controllerStatus)),e.hasOwnProperty("controllerVersion")&&null!==e.controllerVersion&&void 0!==e.controllerVersion&&t.setControllerVersion(e.controllerVersion),e.hasOwnProperty("minimumAHVVersion")&&null!==e.minimumAHVVersion&&void 0!==e.minimumAHVVersion&&t.setMinimumAHVVersion(e.minimumAHVVersion),e.hasOwnProperty("minimumNOSVersion")&&null!==e.minimumNOSVersion&&void 0!==e.minimumNOSVersion&&t.setMinimumNOSVersion(e.minimumNOSVersion),e.hasOwnProperty("cloudSubstrate")&&null!==e.cloudSubstrate&&void 0!==e.cloudSubstrate&&t.setCloudSubstrate(Bu.constructFromObject(e.cloudSubstrate)),!n))for(var r in t.$unknownFields=zu({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getControllerStatus",value:function(){return this.controllerStatus}},{key:"setControllerStatus",value:function(e){this.controllerStatus=e}},{key:"getControllerVersion",value:function(){return this.controllerVersion}},{key:"setControllerVersion",value:function(e){this.controllerVersion=e}},{key:"getMinimumAHVVersion",value:function(){return this.minimumAHVVersion}},{key:"setMinimumAHVVersion",value:function(e){this.minimumAHVVersion=e}},{key:"getMinimumNOSVersion",value:function(){return this.minimumNOSVersion}},{key:"setMinimumNOSVersion",value:function(e){this.minimumNOSVersion=e}},{key:"getCloudSubstrate",value:function(){return this.cloudSubstrate}},{key:"setCloudSubstrate",value:function(e){this.cloudSubstrate=e}},{key:"toJson",value:function(e){return zu(!1===e?zu(zu(zu(zu(zu(zu(zu(zu(zu({},void 0!==this.getControllerStatus()&&null!==this.getControllerStatus()?{controllerStatus:this.getControllerStatus()}:{}),void 0!==this.getControllerVersion()&&null!==this.getControllerVersion()?{controllerVersion:this.getControllerVersion()}:{}),void 0!==this.getMinimumAHVVersion()&&null!==this.getMinimumAHVVersion()?{minimumAHVVersion:this.getMinimumAHVVersion()}:{}),void 0!==this.getMinimumNOSVersion()&&null!==this.getMinimumNOSVersion()?{minimumNOSVersion:this.getMinimumNOSVersion()}:{}),void 0!==this.getCloudSubstrate()&&null!==this.getCloudSubstrate()?{cloudSubstrate:this.getCloudSubstrate()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):zu(zu(zu(zu(zu({},void 0!==this.getControllerStatus()&&null!==this.getControllerStatus()?{controllerStatus:this.getControllerStatus()}:{}),void 0!==this.getCloudSubstrate()&&null!==this.getCloudSubstrate()?{cloudSubstrate:this.getCloudSubstrate()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"controllerStatus"!==t||void 0!==this.controllerStatus&&null!==this.controllerStatus?"controllerVersion"!==t||void 0!==this.controllerVersion&&null!==this.controllerVersion?"minimumAHVVersion"!==t||void 0!==this.minimumAHVVersion&&null!==this.minimumAHVVersion?"minimumNOSVersion"!==t||void 0!==this.minimumNOSVersion&&null!==this.minimumNOSVersion?"cloudSubstrate"!==t||void 0!==this.cloudSubstrate&&null!==this.cloudSubstrate?new f(t,"no such property exists"):new f("cloudSubstrate","undefined or null"):new f("minimumNOSVersion","undefined or null"):new f("minimumAHVVersion","undefined or null"):new f("controllerVersion","undefined or null"):new f("controllerStatus","undefined or null")}}])&&Xu(t.prototype,n),r&&Xu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function oc(e){return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(n),!0).forEach((function(t){ac(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ac(e,t,n){return(t=cc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cc(r.key),r)}}function cc(e){var t=function(e,t){if("object"!==oc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oc(t)?t:String(t)}function lc(e,t){return(lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pc(e);if(t){var o=pc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dc(this,n)}}function dc(e,t){if(t&&("object"===oc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pc(e){return(pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}rc.prototype.controllerStatus=void 0,rc.prototype.controllerVersion=void 0,rc.prototype.minimumAHVVersion=void 0,rc.prototype.minimumNOSVersion=void 0,rc.prototype.cloudSubstrate=void 0;var hc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lc(e,t)}(s,e);var t,n,r,o=fc(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkControllerApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkControllerApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.NetworkController"===n)t.setData(rc.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=sc({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof rc?"networking.v4.config.NetworkController":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return sc(!1===e?sc(sc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):sc(sc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&uc(t.prototype,n),r&&uc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function yc(e){return(yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(n),!0).forEach((function(t){bc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bc(e,t,n){return(t=mc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mc(r.key),r)}}function mc(e){var t=function(e,t){if("object"!==yc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yc(t)?t:String(t)}function Oc(e,t){return(Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jc(e);if(t){var o=jc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kc(this,n)}}function kc(e,t){if(t&&("object"===yc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function jc(e){return(jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}hc.prototype.metadata=void 0,hc.prototype.data=void 0,hc.prototype.$reserved=void 0,hc.prototype.$objectType=void 0,hc.prototype.$unknownFields=void 0;var Pc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oc(e,t)}(s,e);var t,n,r,o=$c(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkControllerListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkControllerListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.NetworkController>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=rc.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=gc({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof rc?"List<networking.v4.config.NetworkController>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gc(!1===e?gc(gc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):gc(gc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&wc(t.prototype,n),r&&wc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Sc(e){return(Sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach((function(t){Fc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fc(e,t,n){return(t=Dc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dc(r.key),r)}}function Dc(e){var t=function(e,t){if("object"!==Sc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sc(t)?t:String(t)}Pc.prototype.metadata=void 0,Pc.prototype.data=void 0,Pc.prototype.$reserved=void 0,Pc.prototype.$objectType=void 0,Pc.prototype.$unknownFields=void 0;var Ec=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createNetworkController",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof rc&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createNetworkController");var o={},i={},s=Ic(Ic({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/controllers","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteNetworkController",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteNetworkController");var r={extId:e},o={},i=Ic(Ic({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/controllers/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getNetworkController",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getNetworkController");var r={extId:e},o={},i=Ic(Ic({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=hc;return this.apiClient.callApi("/api/networking/v4.0.a1/config/controllers/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listNetworkControllers",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=Ic(Ic({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),i=Ic(Ic({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Pc;return this.apiClient.callApi("/api/networking/v4.0.a1/config/controllers","GET",r,o,i,s,n,a,u,c,l)}}])&&Rc(t.prototype,n),o&&Rc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ac(e){return(Ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nc(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mc(e,t,n){return(t=Lc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lc(r.key),r)}}function Lc(e){var t=function(e,t){if("object"!==Ac(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ac(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ac(t)?t:String(t)}var _c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.asn=t,this.$objectType="networking.v4.config.LocalBgpService",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.LocalBgpService"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vpcReference")&&null!==t.vpcReference&&void 0!==t.vpcReference&&n.setVpcReference(t.vpcReference),t.hasOwnProperty("asn")&&null!==t.asn&&void 0!==t.asn&&n.setAsn(t.asn),t.hasOwnProperty("exchangeRoutesWithVpn")&&null!==t.exchangeRoutesWithVpn&&void 0!==t.exchangeRoutesWithVpn&&n.setExchangeRoutesWithVpn(t.exchangeRoutesWithVpn),t.hasOwnProperty("gracefulRestartTimeoutSeconds")&&null!==t.gracefulRestartTimeoutSeconds&&void 0!==t.gracefulRestartTimeoutSeconds&&n.setGracefulRestartTimeoutSeconds(t.gracefulRestartTimeoutSeconds),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=xc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"getAsn",value:function(){return this.asn}},{key:"setAsn",value:function(e){this.asn=e}},{key:"getExchangeRoutesWithVpn",value:function(){return this.exchangeRoutesWithVpn}},{key:"setExchangeRoutesWithVpn",value:function(e){this.exchangeRoutesWithVpn=e}},{key:"getGracefulRestartTimeoutSeconds",value:function(){return this.gracefulRestartTimeoutSeconds}},{key:"setGracefulRestartTimeoutSeconds",value:function(e){this.gracefulRestartTimeoutSeconds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xc(xc(xc(xc(xc({},void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),void 0!==this.getAsn()&&null!==this.getAsn()?{asn:this.getAsn()}:{}),void 0!==this.getExchangeRoutesWithVpn()&&null!==this.getExchangeRoutesWithVpn()?{exchangeRoutesWithVpn:this.getExchangeRoutesWithVpn()}:{}),void 0!==this.getGracefulRestartTimeoutSeconds()&&null!==this.getGracefulRestartTimeoutSeconds()?{gracefulRestartTimeoutSeconds:this.getGracefulRestartTimeoutSeconds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["asn"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("vpcReference"===t){if(void 0===this.vpcReference||null===this.vpcReference)return new f("vpcReference","undefined or null");if(null==e&&!u.validatePattern(this.vpcReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpcReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("asn"===t){if(void 0===this.asn||null===this.asn)return new f("asn","undefined or null");if(!u.validateMaximum(this.asn,4294967294))return new f("asn","does not satisfy required maximum constraint: 4294967294");if(!u.validateMinimum(this.asn,1))return new f("asn","does not satisfy required minimum constraint: 1")}if("exchangeRoutesWithVpn"===t&&(void 0===this.exchangeRoutesWithVpn||null===this.exchangeRoutesWithVpn))return new f("exchangeRoutesWithVpn","undefined or null");if("gracefulRestartTimeoutSeconds"===t){if(void 0===this.gracefulRestartTimeoutSeconds||null===this.gracefulRestartTimeoutSeconds)return new f("gracefulRestartTimeoutSeconds","undefined or null");if(!u.validateMinimum(this.gracefulRestartTimeoutSeconds,0))return new f("gracefulRestartTimeoutSeconds","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Cc(t.prototype,n),r&&Cc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jc(e){return(Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){Gc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gc(e,t,n){return(t=qc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qc(r.key),r)}}function qc(e){var t=function(e,t){if("object"!==Jc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jc(t)?t:String(t)}_c.prototype.vpcReference=void 0,_c.prototype.asn=void 0,_c.prototype.exchangeRoutesWithVpn=!1,_c.prototype.gracefulRestartTimeoutSeconds=void 0,_c.prototype.$reserved=void 0,_c.prototype.$objectType=void 0,_c.prototype.$unknownFields=void 0;var Wc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.BgpConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.BgpConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("asn")&&null!==t.asn&&void 0!==t.asn&&n.setAsn(t.asn),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),t.hasOwnProperty("redistributeRoutes")&&null!==t.redistributeRoutes&&void 0!==t.redistributeRoutes&&n.setRedistributeRoutes(t.redistributeRoutes),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Uc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAsn",value:function(){return this.asn}},{key:"setAsn",value:function(e){this.asn=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getRedistributeRoutes",value:function(){return this.redistributeRoutes}},{key:"setRedistributeRoutes",value:function(e){this.redistributeRoutes=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uc(Uc(Uc(Uc({},void 0!==this.getAsn()&&null!==this.getAsn()?{asn:this.getAsn()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getRedistributeRoutes()&&null!==this.getRedistributeRoutes()?{redistributeRoutes:this.getRedistributeRoutes()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("asn"===t){if(void 0===this.asn||null===this.asn)return new f("asn","undefined or null");if(!u.validateMaximum(this.asn,4294967294))return new f("asn","does not satisfy required maximum constraint: 4294967294");if(!u.validateMinimum(this.asn,1))return new f("asn","does not satisfy required minimum constraint: 1")}return"password"!==t||void 0!==this.password&&null!==this.password?"redistributeRoutes"!==t||void 0!==this.redistributeRoutes&&null!==this.redistributeRoutes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("redistributeRoutes","undefined or null"):new f("password","undefined or null")}}])&&Bc(t.prototype,n),r&&Bc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kc(e){return(Kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach((function(t){Yc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yc(e,t,n){return(t=Qc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qc(r.key),r)}}function Qc(e){var t=function(e,t){if("object"!==Kc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kc(t)?t:String(t)}function Zc(e,t){return(Zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function el(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nl(e);if(t){var o=nl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tl(this,n)}}function tl(e,t){if(t&&("object"===Kc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Wc.prototype.asn=void 0,Wc.prototype.password=void 0,Wc.prototype.redistributeRoutes=!1,Wc.prototype.$reserved=void 0,Wc.prototype.$objectType=void 0,Wc.prototype.$unknownFields=void 0;var rl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zc(e,t)}(s,e);var t,n,r,o=el(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.IbgpConfig",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IbgpConfig"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,Wc.constructFromObject(e,t,!0),e.hasOwnProperty("peerIp")&&null!==e.peerIp&&void 0!==e.peerIp&&t.setPeerIp(Xe.constructFromObject(e.peerIp)),!n))for(var r in t.$unknownFields=zc({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getPeerIp",value:function(){return this.peerIp}},{key:"setPeerIp",value:function(e){this.peerIp=e}},{key:"toJson",value:function(e){return zc(zc(zc(zc(zc({},!1===e?void 0!==this.getPeerIp()&&null!==this.getPeerIp()?{peerIp:this.getPeerIp().toJson(!1)}:{}:void 0!==this.getPeerIp()&&null!==this.getPeerIp()?{peerIp:this.getPeerIp().toJson()}:{}),void 0!==this.getAsn()&&null!==this.getAsn()?{asn:this.getAsn()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getRedistributeRoutes()&&null!==this.getRedistributeRoutes()?{redistributeRoutes:this.getRedistributeRoutes()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"peerIp"!==t||void 0!==this.peerIp&&null!==this.peerIp?new f(t,"no such property exists"):new f("peerIp","undefined or null")}}])&&Xc(t.prototype,n),r&&Xc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Wc);rl.prototype.peerIp=void 0;var ol={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PLAIN_TEXT:"PLAIN_TEXT",MD5:"MD5",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ol).find((function(t){return ol[t]===e}));return null==t?ol.$UNKNOWN:ol[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ol.$UNKNOWN:case ol.$REDACTED:case ol.PLAIN_TEXT:case ol.MD5:return;default:throw new Error("Invalid : must be AuthenticationType.{ $UNKNOWN|$REDACTED|PLAIN_TEXT|MD5 }")}}};Object.freeze(ol);var il=ol;function sl(e){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){cl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cl(e,t,n){return(t=fl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fl(r.key),r)}}function fl(e){var t=function(e,t){if("object"!==sl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sl(t)?t:String(t)}var dl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.OspfConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.OspfConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("areaId")&&null!==t.areaId&&void 0!==t.areaId&&n.setAreaId(t.areaId),t.hasOwnProperty("authenticationType")&&null!==t.authenticationType&&void 0!==t.authenticationType&&n.setAuthenticationType(il.constructFromObject(t.authenticationType)),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ul({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAreaId",value:function(){return this.areaId}},{key:"setAreaId",value:function(e){this.areaId=e}},{key:"getAuthenticationType",value:function(){return this.authenticationType}},{key:"setAuthenticationType",value:function(e){this.authenticationType=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ul(ul(ul(ul({},void 0!==this.getAreaId()&&null!==this.getAreaId()?{areaId:this.getAreaId()}:{}),void 0!==this.getAuthenticationType()&&null!==this.getAuthenticationType()?{authenticationType:this.getAuthenticationType()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("areaId"===t){if(void 0===this.areaId||null===this.areaId)return new f("areaId","undefined or null");if(!u.validatePattern(this.areaId,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new f("areaId","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}return"authenticationType"!==t||void 0!==this.authenticationType&&null!==this.authenticationType?"password"!==t||void 0!==this.password&&null!==this.password?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("password","undefined or null"):new f("authenticationType","undefined or null")}}])&&ll(t.prototype,n),r&&ll(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pl(e){return(pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hl(Object(n),!0).forEach((function(t){vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vl(e,t,n){return(t=bl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bl(r.key),r)}}function bl(e){var t=function(e,t){if("object"!==pl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pl(t)?t:String(t)}dl.prototype.areaId=void 0,dl.prototype.authenticationType=void 0,dl.prototype.password=void 0,dl.prototype.$reserved=void 0,dl.prototype.$objectType=void 0,dl.prototype.$unknownFields=void 0;var wl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.InternalRoutingConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.InternalRoutingConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ospfConfig")&&null!==t.ospfConfig&&void 0!==t.ospfConfig&&n.setOspfConfig(dl.constructFromObject(t.ospfConfig)),t.hasOwnProperty("ibgpConfigList")&&null!==t.ibgpConfigList&&void 0!==t.ibgpConfigList){for(s=[],r=t.ibgpConfigList,i=0;i<r.length;i++)o=rl.constructFromObject(r[i],void 0),s.push(o);n.setIbgpConfigList(s)}if(t.hasOwnProperty("localPrefixList")&&null!==t.localPrefixList&&void 0!==t.localPrefixList){for(s=[],r=t.localPrefixList,i=0;i<r.length;i++)o=bt.constructFromObject(r[i],void 0),s.push(o);n.setLocalPrefixList(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=yl({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getOspfConfig",value:function(){return this.ospfConfig}},{key:"setOspfConfig",value:function(e){this.ospfConfig=e}},{key:"getIbgpConfigList",value:function(){return this.ibgpConfigList}},{key:"setIbgpConfigList",value:function(e){this.ibgpConfigList=e}},{key:"getLocalPrefixList",value:function(){return this.localPrefixList}},{key:"setLocalPrefixList",value:function(e){this.localPrefixList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yl(!1===e?yl(yl(yl({},void 0!==this.getOspfConfig()&&null!==this.getOspfConfig()?{ospfConfig:this.getOspfConfig().toJson(!1)}:{}),void 0!==this.getIbgpConfigList()&&null!==this.getIbgpConfigList()?{ibgpConfigList:this.getIbgpConfigList().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLocalPrefixList()&&null!==this.getLocalPrefixList()?{localPrefixList:this.getLocalPrefixList().map((function(e){return e.toJson(!1)}))}:{}):yl(yl(yl({},void 0!==this.getOspfConfig()&&null!==this.getOspfConfig()?{ospfConfig:this.getOspfConfig().toJson()}:{}),void 0!==this.getIbgpConfigList()&&null!==this.getIbgpConfigList()?{ibgpConfigList:this.getIbgpConfigList().map((function(e){return e.toJson()}))}:{}),void 0!==this.getLocalPrefixList()&&null!==this.getLocalPrefixList()?{localPrefixList:this.getLocalPrefixList().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ospfConfig"!==t||void 0!==this.ospfConfig&&null!==this.ospfConfig?"ibgpConfigList"!==t||void 0!==this.ibgpConfigList&&null!==this.ibgpConfigList?"localPrefixList"!==t||void 0!==this.localPrefixList&&null!==this.localPrefixList?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("localPrefixList","undefined or null"):new f("ibgpConfigList","undefined or null"):new f("ospfConfig","undefined or null")}}])&&gl(t.prototype,n),r&&gl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ml(e){return(ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(n),!0).forEach((function(t){kl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ol(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kl(e,t,n){return(t=Pl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pl(r.key),r)}}function Pl(e){var t=function(e,t){if("object"!==ml(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ml(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ml(t)?t:String(t)}wl.prototype.ospfConfig=void 0,wl.prototype.ibgpConfigList=void 0,wl.prototype.localPrefixList=void 0,wl.prototype.$reserved=void 0,wl.prototype.$objectType=void 0,wl.prototype.$unknownFields=void 0;var Sl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.LocalVpnService",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.LocalVpnService"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ebgpConfig")&&null!==t.ebgpConfig&&void 0!==t.ebgpConfig&&n.setEbgpConfig(Wc.constructFromObject(t.ebgpConfig)),t.hasOwnProperty("peerIgpConfig")&&null!==t.peerIgpConfig&&void 0!==t.peerIgpConfig&&n.setPeerIgpConfig(wl.constructFromObject(t.peerIgpConfig)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=$l({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getEbgpConfig",value:function(){return this.ebgpConfig}},{key:"setEbgpConfig",value:function(e){this.ebgpConfig=e}},{key:"getPeerIgpConfig",value:function(){return this.peerIgpConfig}},{key:"setPeerIgpConfig",value:function(e){this.peerIgpConfig=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $l(!1===e?$l($l({},void 0!==this.getEbgpConfig()&&null!==this.getEbgpConfig()?{ebgpConfig:this.getEbgpConfig().toJson(!1)}:{}),void 0!==this.getPeerIgpConfig()&&null!==this.getPeerIgpConfig()?{peerIgpConfig:this.getPeerIgpConfig().toJson(!1)}:{}):$l($l({},void 0!==this.getEbgpConfig()&&null!==this.getEbgpConfig()?{ebgpConfig:this.getEbgpConfig().toJson()}:{}),void 0!==this.getPeerIgpConfig()&&null!==this.getPeerIgpConfig()?{peerIgpConfig:this.getPeerIgpConfig().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ebgpConfig"!==t||void 0!==this.ebgpConfig&&null!==this.ebgpConfig?"peerIgpConfig"!==t||void 0!==this.peerIgpConfig&&null!==this.peerIgpConfig?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("peerIgpConfig","undefined or null"):new f("ebgpConfig","undefined or null")}}])&&jl(t.prototype,n),r&&jl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Tl(e){return(Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){Rl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rl(e,t,n){return(t=El(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,El(r.key),r)}}function El(e){var t=function(e,t){if("object"!==Tl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Tl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Tl(t)?t:String(t)}Sl.prototype.ebgpConfig=void 0,Sl.prototype.peerIgpConfig=void 0,Sl.prototype.$reserved=void 0,Sl.prototype.$objectType=void 0,Sl.prototype.$unknownFields=void 0;var Al=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.vxlanPort=t,this.$objectType="networking.v4.config.LocalVtepService",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.LocalVtepService"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vxlanPort")&&null!==t.vxlanPort&&void 0!==t.vxlanPort&&n.setVxlanPort(t.vxlanPort),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Fl({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVxlanPort",value:function(){return this.vxlanPort}},{key:"setVxlanPort",value:function(e){this.vxlanPort=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fl(Fl({},void 0!==this.getVxlanPort()&&null!==this.getVxlanPort()?{vxlanPort:this.getVxlanPort()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["vxlanPort"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("vxlanPort"===t){if(void 0===this.vxlanPort||null===this.vxlanPort)return new f("vxlanPort","undefined or null");if(!u.validateMaximum(this.vxlanPort,49151))return new f("vxlanPort","does not satisfy required maximum constraint: 49151");if(!u.validateMinimum(this.vxlanPort,1))return new f("vxlanPort","does not satisfy required minimum constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Dl(t.prototype,n),r&&Dl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Nl(e){return(Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xl(Object(n),!0).forEach((function(t){Cl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cl(e,t,n){return(t=_l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_l(r.key),r)}}function _l(e){var t=function(e,t){if("object"!==Nl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Nl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Nl(t)?t:String(t)}Al.prototype.vxlanPort=void 0,Al.prototype.$reserved=void 0,Al.prototype.$objectType=void 0,Al.prototype.$unknownFields=void 0;var Jl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.LocalNetworkServices",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.LocalNetworkServices"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("publicIpAddress")&&null!==t.publicIpAddress&&void 0!==t.publicIpAddress&&n.setPublicIpAddress(Xe.constructFromObject(t.publicIpAddress)),t.hasOwnProperty("localVpnService")&&null!==t.localVpnService&&void 0!==t.localVpnService&&n.setLocalVpnService(Sl.constructFromObject(t.localVpnService)),t.hasOwnProperty("localVtepService")&&null!==t.localVtepService&&void 0!==t.localVtepService&&n.setLocalVtepService(Al.constructFromObject(t.localVtepService)),t.hasOwnProperty("localBgpService")&&null!==t.localBgpService&&void 0!==t.localBgpService&&n.setLocalBgpService(_c.constructFromObject(t.localBgpService)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ml({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPublicIpAddress",value:function(){return this.publicIpAddress}},{key:"setPublicIpAddress",value:function(e){this.publicIpAddress=e}},{key:"getLocalVpnService",value:function(){return this.localVpnService}},{key:"setLocalVpnService",value:function(e){this.localVpnService=e}},{key:"getLocalVtepService",value:function(){return this.localVtepService}},{key:"setLocalVtepService",value:function(e){this.localVtepService=e}},{key:"getLocalBgpService",value:function(){return this.localBgpService}},{key:"setLocalBgpService",value:function(e){this.localBgpService=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ml(!1===e?Ml(Ml(Ml(Ml({},void 0!==this.getPublicIpAddress()&&null!==this.getPublicIpAddress()?{publicIpAddress:this.getPublicIpAddress().toJson(!1)}:{}),void 0!==this.getLocalVpnService()&&null!==this.getLocalVpnService()?{localVpnService:this.getLocalVpnService().toJson(!1)}:{}),void 0!==this.getLocalVtepService()&&null!==this.getLocalVtepService()?{localVtepService:this.getLocalVtepService().toJson(!1)}:{}),void 0!==this.getLocalBgpService()&&null!==this.getLocalBgpService()?{localBgpService:this.getLocalBgpService().toJson(!1)}:{}):Ml(Ml(Ml(Ml({},void 0!==this.getPublicIpAddress()&&null!==this.getPublicIpAddress()?{publicIpAddress:this.getPublicIpAddress().toJson()}:{}),void 0!==this.getLocalVpnService()&&null!==this.getLocalVpnService()?{localVpnService:this.getLocalVpnService().toJson()}:{}),void 0!==this.getLocalVtepService()&&null!==this.getLocalVtepService()?{localVtepService:this.getLocalVtepService().toJson()}:{}),void 0!==this.getLocalBgpService()&&null!==this.getLocalBgpService()?{localBgpService:this.getLocalBgpService().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"publicIpAddress"!==t||void 0!==this.publicIpAddress&&null!==this.publicIpAddress?"localVpnService"!==t||void 0!==this.localVpnService&&null!==this.localVpnService?"localVtepService"!==t||void 0!==this.localVtepService&&null!==this.localVtepService?"localBgpService"!==t||void 0!==this.localBgpService&&null!==this.localBgpService?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("localBgpService","undefined or null"):new f("localVtepService","undefined or null"):new f("localVpnService","undefined or null"):new f("publicIpAddress","undefined or null")}}])&&Ll(t.prototype,n),r&&Ll(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vl(e){return(Vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){Bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bl(e,t,n){return(t=Wl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ql(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wl(r.key),r)}}function Wl(e){var t=function(e,t){if("object"!==Vl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vl(t)?t:String(t)}Jl.prototype.publicIpAddress=void 0,Jl.prototype.localVpnService=void 0,Jl.prototype.localVtepService=void 0,Jl.prototype.localBgpService=void 0,Jl.prototype.$reserved=void 0,Jl.prototype.$objectType=void 0,Jl.prototype.$unknownFields=void 0;var Kl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.NetworkGatewayManagementInterface",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkGatewayManagementInterface"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("subnetReference")&&null!==t.subnetReference&&void 0!==t.subnetReference&&n.setSubnetReference(t.subnetReference),t.hasOwnProperty("vlanId")&&null!==t.vlanId&&void 0!==t.vlanId&&n.setVlanId(t.vlanId),t.hasOwnProperty("address")&&null!==t.address&&void 0!==t.address&&n.setAddress(Xe.constructFromObject(t.address)),t.hasOwnProperty("defaultGateway")&&null!==t.defaultGateway&&void 0!==t.defaultGateway&&n.setDefaultGateway(Xe.constructFromObject(t.defaultGateway)),t.hasOwnProperty("mtu")&&null!==t.mtu&&void 0!==t.mtu&&n.setMtu(t.mtu),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Gl({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getSubnetReference",value:function(){return this.subnetReference}},{key:"setSubnetReference",value:function(e){this.subnetReference=e}},{key:"getVlanId",value:function(){return this.vlanId}},{key:"setVlanId",value:function(e){this.vlanId=e}},{key:"getAddress",value:function(){return this.address}},{key:"setAddress",value:function(e){this.address=e}},{key:"getDefaultGateway",value:function(){return this.defaultGateway}},{key:"setDefaultGateway",value:function(e){this.defaultGateway=e}},{key:"getMtu",value:function(){return this.mtu}},{key:"setMtu",value:function(e){this.mtu=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gl(!1===e?Gl(Gl(Gl(Gl(Gl({},void 0!==this.getSubnetReference()&&null!==this.getSubnetReference()?{subnetReference:this.getSubnetReference()}:{}),void 0!==this.getVlanId()&&null!==this.getVlanId()?{vlanId:this.getVlanId()}:{}),void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}),void 0!==this.getDefaultGateway()&&null!==this.getDefaultGateway()?{defaultGateway:this.getDefaultGateway().toJson(!1)}:{}),void 0!==this.getMtu()&&null!==this.getMtu()?{mtu:this.getMtu()}:{}):Gl(Gl(Gl(Gl({},void 0!==this.getSubnetReference()&&null!==this.getSubnetReference()?{subnetReference:this.getSubnetReference()}:{}),void 0!==this.getVlanId()&&null!==this.getVlanId()?{vlanId:this.getVlanId()}:{}),void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson()}:{}),void 0!==this.getDefaultGateway()&&null!==this.getDefaultGateway()?{defaultGateway:this.getDefaultGateway().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("subnetReference"===t){if(void 0===this.subnetReference||null===this.subnetReference)return new f("subnetReference","undefined or null");if(null==e&&!u.validatePattern(this.subnetReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("subnetReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vlanId"===t){if(void 0===this.vlanId||null===this.vlanId)return new f("vlanId","undefined or null");if(!u.validateMaximum(this.vlanId,4095))return new f("vlanId","does not satisfy required maximum constraint: 4095");if(!u.validateMinimum(this.vlanId,0))return new f("vlanId","does not satisfy required minimum constraint: 0")}return"address"!==t||void 0!==this.address&&null!==this.address?"defaultGateway"!==t||void 0!==this.defaultGateway&&null!==this.defaultGateway?"mtu"!==t||void 0!==this.mtu&&null!==this.mtu?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("mtu","undefined or null"):new f("defaultGateway","undefined or null"):new f("address","undefined or null")}}])&&ql(t.prototype,n),r&&ql(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hl(e){return(Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Xl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xl(e,t,n){return(t=Zl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ql(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zl(r.key),r)}}function Zl(e){var t=function(e,t){if("object"!==Hl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hl(t)?t:String(t)}Kl.prototype.subnetReference=void 0,Kl.prototype.vlanId=void 0,Kl.prototype.address=void 0,Kl.prototype.defaultGateway=void 0,Kl.prototype.mtu=void 0,Kl.prototype.$reserved=void 0,Kl.prototype.$objectType=void 0,Kl.prototype.$unknownFields=void 0;var ef=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.NetworkGatewayDeployment",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkGatewayDeployment"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(t.clusterReference),t.hasOwnProperty("managementInterface")&&null!==t.managementInterface&&void 0!==t.managementInterface&&n.setManagementInterface(Kl.constructFromObject(t.managementInterface)),t.hasOwnProperty("vcenterDatastoreName")&&null!==t.vcenterDatastoreName&&void 0!==t.vcenterDatastoreName&&n.setVcenterDatastoreName(t.vcenterDatastoreName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Yl({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getManagementInterface",value:function(){return this.managementInterface}},{key:"setManagementInterface",value:function(e){this.managementInterface=e}},{key:"getVcenterDatastoreName",value:function(){return this.vcenterDatastoreName}},{key:"setVcenterDatastoreName",value:function(e){this.vcenterDatastoreName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yl(Yl(Yl(Yl({},void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),!1===e?void 0!==this.getManagementInterface()&&null!==this.getManagementInterface()?{managementInterface:this.getManagementInterface().toJson(!1)}:{}:void 0!==this.getManagementInterface()&&null!==this.getManagementInterface()?{managementInterface:this.getManagementInterface().toJson()}:{}),void 0!==this.getVcenterDatastoreName()&&null!==this.getVcenterDatastoreName()?{vcenterDatastoreName:this.getVcenterDatastoreName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new f("clusterReference","undefined or null");if(null==e&&!u.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"managementInterface"!==t||void 0!==this.managementInterface&&null!==this.managementInterface?"vcenterDatastoreName"!==t||void 0!==this.vcenterDatastoreName&&null!==this.vcenterDatastoreName?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("vcenterDatastoreName","undefined or null"):new f("managementInterface","undefined or null")}}])&&Ql(t.prototype,n),r&&Ql(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tf(e){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(n),!0).forEach((function(t){of(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function of(e,t,n){return(t=af(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,af(r.key),r)}}function af(e){var t=function(e,t){if("object"!==tf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tf(t)?t:String(t)}ef.prototype.clusterReference=void 0,ef.prototype.managementInterface=void 0,ef.prototype.vcenterDatastoreName=void 0,ef.prototype.$reserved=void 0,ef.prototype.$objectType=void 0,ef.prototype.$unknownFields=void 0;var uf=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.address=t,this.asn=n,this.$objectType="networking.v4.config.RemoteBgpService",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RemoteBgpService"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("address")&&null!==t.address&&void 0!==t.address&&n.setAddress(Xe.constructFromObject(t.address)),t.hasOwnProperty("asn")&&null!==t.asn&&void 0!==t.asn&&n.setAsn(t.asn),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=rf({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAddress",value:function(){return this.address}},{key:"setAddress",value:function(e){this.address=e}},{key:"getAsn",value:function(){return this.asn}},{key:"setAsn",value:function(e){this.asn=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rf(rf(rf({},!1===e?void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson(!1)}:{}:void 0!==this.getAddress()&&null!==this.getAddress()?{address:this.getAddress().toJson()}:{}),void 0!==this.getAsn()&&null!==this.getAsn()?{asn:this.getAsn()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["address","asn"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("address"===t&&(void 0===this.address||null===this.address))return new f("address","undefined or null");if("asn"===t){if(void 0===this.asn||null===this.asn)return new f("asn","undefined or null");if(!u.validateMaximum(this.asn,4294967294))return new f("asn","does not satisfy required maximum constraint: 4294967294");if(!u.validateMinimum(this.asn,1))return new f("asn","does not satisfy required minimum constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&sf(t.prototype,n),r&&sf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function cf(e){return(cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach((function(t){df(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function df(e,t,n){return(t=hf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hf(r.key),r)}}function hf(e){var t=function(e,t){if("object"!==cf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cf(t)?t:String(t)}uf.prototype.address=void 0,uf.prototype.asn=void 0,uf.prototype.$reserved=void 0,uf.prototype.$objectType=void 0,uf.prototype.$unknownFields=void 0;var yf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.RemoteVpnService",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RemoteVpnService"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("publicIpAddress")&&null!==t.publicIpAddress&&void 0!==t.publicIpAddress&&n.setPublicIpAddress(Xe.constructFromObject(t.publicIpAddress)),t.hasOwnProperty("ebgpConfig")&&null!==t.ebgpConfig&&void 0!==t.ebgpConfig&&n.setEbgpConfig(Wc.constructFromObject(t.ebgpConfig)),t.hasOwnProperty("peerIgpConfig")&&null!==t.peerIgpConfig&&void 0!==t.peerIgpConfig&&n.setPeerIgpConfig(wl.constructFromObject(t.peerIgpConfig)),t.hasOwnProperty("installXiRoute")&&null!==t.installXiRoute&&void 0!==t.installXiRoute&&n.setInstallXiRoute(t.installXiRoute),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ff({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPublicIpAddress",value:function(){return this.publicIpAddress}},{key:"setPublicIpAddress",value:function(e){this.publicIpAddress=e}},{key:"getEbgpConfig",value:function(){return this.ebgpConfig}},{key:"setEbgpConfig",value:function(e){this.ebgpConfig=e}},{key:"getPeerIgpConfig",value:function(){return this.peerIgpConfig}},{key:"setPeerIgpConfig",value:function(e){this.peerIgpConfig=e}},{key:"getInstallXiRoute",value:function(){return this.installXiRoute}},{key:"setInstallXiRoute",value:function(e){this.installXiRoute=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ff(ff(!1===e?ff(ff(ff({},void 0!==this.getPublicIpAddress()&&null!==this.getPublicIpAddress()?{publicIpAddress:this.getPublicIpAddress().toJson(!1)}:{}),void 0!==this.getEbgpConfig()&&null!==this.getEbgpConfig()?{ebgpConfig:this.getEbgpConfig().toJson(!1)}:{}),void 0!==this.getPeerIgpConfig()&&null!==this.getPeerIgpConfig()?{peerIgpConfig:this.getPeerIgpConfig().toJson(!1)}:{}):ff(ff(ff({},void 0!==this.getPublicIpAddress()&&null!==this.getPublicIpAddress()?{publicIpAddress:this.getPublicIpAddress().toJson()}:{}),void 0!==this.getEbgpConfig()&&null!==this.getEbgpConfig()?{ebgpConfig:this.getEbgpConfig().toJson()}:{}),void 0!==this.getPeerIgpConfig()&&null!==this.getPeerIgpConfig()?{peerIgpConfig:this.getPeerIgpConfig().toJson()}:{}),void 0!==this.getInstallXiRoute()&&null!==this.getInstallXiRoute()?{installXiRoute:this.getInstallXiRoute()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"publicIpAddress"!==t||void 0!==this.publicIpAddress&&null!==this.publicIpAddress?"ebgpConfig"!==t||void 0!==this.ebgpConfig&&null!==this.ebgpConfig?"peerIgpConfig"!==t||void 0!==this.peerIgpConfig&&null!==this.peerIgpConfig?"installXiRoute"!==t||void 0!==this.installXiRoute&&null!==this.installXiRoute?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("installXiRoute","undefined or null"):new f("peerIgpConfig","undefined or null"):new f("ebgpConfig","undefined or null"):new f("publicIpAddress","undefined or null")}}])&&pf(t.prototype,n),r&&pf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vf(e){return(vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gf(Object(n),!0).forEach((function(t){wf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wf(e,t,n){return(t=Of(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Of(r.key),r)}}function Of(e){var t=function(e,t){if("object"!==vf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vf(t)?t:String(t)}yf.prototype.publicIpAddress=void 0,yf.prototype.ebgpConfig=void 0,yf.prototype.peerIgpConfig=void 0,yf.prototype.installXiRoute=!1,yf.prototype.$reserved=void 0,yf.prototype.$objectType=void 0,yf.prototype.$unknownFields=void 0;var $f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.RemoteVtepService",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RemoteVtepService"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("vxlanPort")&&null!==t.vxlanPort&&void 0!==t.vxlanPort&&n.setVxlanPort(t.vxlanPort),t.hasOwnProperty("vteps")&&null!==t.vteps&&void 0!==t.vteps){for(s=[],r=t.vteps,i=0;i<r.length;i++)o=$a.constructFromObject(r[i],void 0),s.push(o);n.setVteps(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=bf({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getVxlanPort",value:function(){return this.vxlanPort}},{key:"setVxlanPort",value:function(e){this.vxlanPort=e}},{key:"getVteps",value:function(){return this.vteps}},{key:"setVteps",value:function(e){this.vteps=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bf(bf(bf({},void 0!==this.getVxlanPort()&&null!==this.getVxlanPort()?{vxlanPort:this.getVxlanPort()}:{}),!1===e?void 0!==this.getVteps()&&null!==this.getVteps()?{vteps:this.getVteps().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getVteps()&&null!==this.getVteps()?{vteps:this.getVteps().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("vxlanPort"===t){if(void 0===this.vxlanPort||null===this.vxlanPort)return new f("vxlanPort","undefined or null");if(!u.validateMaximum(this.vxlanPort,49151))return new f("vxlanPort","does not satisfy required maximum constraint: 49151");if(!u.validateMinimum(this.vxlanPort,1))return new f("vxlanPort","does not satisfy required minimum constraint: 1")}return"vteps"!==t||void 0!==this.vteps&&null!==this.vteps?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("vteps","undefined or null")}}])&&mf(t.prototype,n),r&&mf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kf(e){return(kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach((function(t){Sf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sf(e,t,n){return(t=If(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,If(r.key),r)}}function If(e){var t=function(e,t){if("object"!==kf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kf(t)?t:String(t)}$f.prototype.vxlanPort=4789,$f.prototype.vteps=void 0,$f.prototype.$reserved=void 0,$f.prototype.$objectType=void 0,$f.prototype.$unknownFields=void 0;var Ff=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.RemoteNetworkServices",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RemoteNetworkServices"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("remoteVpnService")&&null!==t.remoteVpnService&&void 0!==t.remoteVpnService&&n.setRemoteVpnService(yf.constructFromObject(t.remoteVpnService)),t.hasOwnProperty("remoteVtepService")&&null!==t.remoteVtepService&&void 0!==t.remoteVtepService&&n.setRemoteVtepService($f.constructFromObject(t.remoteVtepService)),t.hasOwnProperty("remoteBgpService")&&null!==t.remoteBgpService&&void 0!==t.remoteBgpService&&n.setRemoteBgpService(uf.constructFromObject(t.remoteBgpService)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Pf({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getRemoteVpnService",value:function(){return this.remoteVpnService}},{key:"setRemoteVpnService",value:function(e){this.remoteVpnService=e}},{key:"getRemoteVtepService",value:function(){return this.remoteVtepService}},{key:"setRemoteVtepService",value:function(e){this.remoteVtepService=e}},{key:"getRemoteBgpService",value:function(){return this.remoteBgpService}},{key:"setRemoteBgpService",value:function(e){this.remoteBgpService=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pf(!1===e?Pf(Pf(Pf({},void 0!==this.getRemoteVpnService()&&null!==this.getRemoteVpnService()?{remoteVpnService:this.getRemoteVpnService().toJson(!1)}:{}),void 0!==this.getRemoteVtepService()&&null!==this.getRemoteVtepService()?{remoteVtepService:this.getRemoteVtepService().toJson(!1)}:{}),void 0!==this.getRemoteBgpService()&&null!==this.getRemoteBgpService()?{remoteBgpService:this.getRemoteBgpService().toJson(!1)}:{}):Pf(Pf(Pf({},void 0!==this.getRemoteVpnService()&&null!==this.getRemoteVpnService()?{remoteVpnService:this.getRemoteVpnService().toJson()}:{}),void 0!==this.getRemoteVtepService()&&null!==this.getRemoteVtepService()?{remoteVtepService:this.getRemoteVtepService().toJson()}:{}),void 0!==this.getRemoteBgpService()&&null!==this.getRemoteBgpService()?{remoteBgpService:this.getRemoteBgpService().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"remoteVpnService"!==t||void 0!==this.remoteVpnService&&null!==this.remoteVpnService?"remoteVtepService"!==t||void 0!==this.remoteVtepService&&null!==this.remoteVtepService?"remoteBgpService"!==t||void 0!==this.remoteBgpService&&null!==this.remoteBgpService?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("remoteBgpService","undefined or null"):new f("remoteVtepService","undefined or null"):new f("remoteVpnService","undefined or null")}}])&&Tf(t.prototype,n),r&&Tf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Rf(e){return(Rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Df(Object(n),!0).forEach((function(t){Af(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Af(e,t,n){return(t=xf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xf(r.key),r)}}function xf(e){var t=function(e,t){if("object"!==Rf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rf(t)?t:String(t)}function Mf(e,t){return(Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_f(e);if(t){var o=_f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lf(this,n)}}function Lf(e,t){if(t&&("object"===Rf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _f(e){return(_f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ff.prototype.remoteVpnService=void 0,Ff.prototype.remoteVtepService=void 0,Ff.prototype.remoteBgpService=void 0,Ff.prototype.$reserved=void 0,Ff.prototype.$objectType=void 0,Ff.prototype.$unknownFields=void 0;var Jf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mf(e,t)}(s,e);var t,n,r,o=Cf(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkGateway",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkGateway"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("vpcReference")&&null!==e.vpcReference&&void 0!==e.vpcReference&&t.setVpcReference(e.vpcReference),e.hasOwnProperty("cloudNetworkReference")&&null!==e.cloudNetworkReference&&void 0!==e.cloudNetworkReference&&t.setCloudNetworkReference(e.cloudNetworkReference),e.hasOwnProperty("installedSoftwareVersion")&&null!==e.installedSoftwareVersion&&void 0!==e.installedSoftwareVersion&&t.setInstalledSoftwareVersion(e.installedSoftwareVersion),e.hasOwnProperty("supportedSoftwareVersion")&&null!==e.supportedSoftwareVersion&&void 0!==e.supportedSoftwareVersion&&t.setSupportedSoftwareVersion(e.supportedSoftwareVersion),e.hasOwnProperty("vmReference")&&null!==e.vmReference&&void 0!==e.vmReference&&t.setVmReference(e.vmReference),e.hasOwnProperty("deployment")&&null!==e.deployment&&void 0!==e.deployment&&t.setDeployment(ef.constructFromObject(e.deployment)),e.hasOwnProperty("gatewayDeviceVendor")&&null!==e.gatewayDeviceVendor&&void 0!==e.gatewayDeviceVendor&&t.setGatewayDeviceVendor(e.gatewayDeviceVendor),e.hasOwnProperty("services")&&null!==e.services&&void 0!==e.services)if("EMPTY_LIST"===(n=e.$servicesItemDiscriminator))t.setServices([]);else if("networking.v4.config.LocalNetworkServices"===n)t.setServices(Jl.constructFromObject(e.services,void 0));else{if("networking.v4.config.RemoteNetworkServices"!==n)throw"Unknown data type "+n+" in data";t.setServices(Ff.constructFromObject(e.services,void 0))}if(e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&t.setStatus(Mt.constructFromObject(e.status)),!r)for(var o in t.$unknownFields=Ef({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"getCloudNetworkReference",value:function(){return this.cloudNetworkReference}},{key:"setCloudNetworkReference",value:function(e){this.cloudNetworkReference=e}},{key:"getInstalledSoftwareVersion",value:function(){return this.installedSoftwareVersion}},{key:"setInstalledSoftwareVersion",value:function(e){this.installedSoftwareVersion=e}},{key:"getSupportedSoftwareVersion",value:function(){return this.supportedSoftwareVersion}},{key:"setSupportedSoftwareVersion",value:function(e){this.supportedSoftwareVersion=e}},{key:"getVmReference",value:function(){return this.vmReference}},{key:"setVmReference",value:function(e){this.vmReference=e}},{key:"getDeployment",value:function(){return this.deployment}},{key:"setDeployment",value:function(e){this.deployment=e}},{key:"getGatewayDeviceVendor",value:function(){return this.gatewayDeviceVendor}},{key:"setGatewayDeviceVendor",value:function(e){this.gatewayDeviceVendor=e}},{key:"getServices",value:function(){return this.services}},{key:"setServices",value:function(e){this.services=e}},{key:"get$servicesItemDiscriminator",value:function(){return this.getServices()instanceof Jl?"networking.v4.config.LocalNetworkServices":this.getServices()instanceof Ff?"networking.v4.config.RemoteNetworkServices":void 0}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"toJson",value:function(e){return Ef(!1===e?Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),void 0!==this.getCloudNetworkReference()&&null!==this.getCloudNetworkReference()?{cloudNetworkReference:this.getCloudNetworkReference()}:{}),void 0!==this.getInstalledSoftwareVersion()&&null!==this.getInstalledSoftwareVersion()?{installedSoftwareVersion:this.getInstalledSoftwareVersion()}:{}),void 0!==this.getSupportedSoftwareVersion()&&null!==this.getSupportedSoftwareVersion()?{supportedSoftwareVersion:this.getSupportedSoftwareVersion()}:{}),void 0!==this.getVmReference()&&null!==this.getVmReference()?{vmReference:this.getVmReference()}:{}),void 0!==this.getDeployment()&&null!==this.getDeployment()?{deployment:this.getDeployment().toJson(!1)}:{}),void 0!==this.getGatewayDeviceVendor()&&null!==this.getGatewayDeviceVendor()?{gatewayDeviceVendor:this.getGatewayDeviceVendor()}:{}),void 0!==this.getServices()&&null!==this.getServices()?{$servicesItemDiscriminator:this.get$servicesItemDiscriminator(),services:void 0!==this.getServices().toJson?this.getServices().toJson(!1):Array.isArray(this.getServices())?this.getServices().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getServices()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus().toJson(!1)}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef(Ef({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),void 0!==this.getCloudNetworkReference()&&null!==this.getCloudNetworkReference()?{cloudNetworkReference:this.getCloudNetworkReference()}:{}),void 0!==this.getDeployment()&&null!==this.getDeployment()?{deployment:this.getDeployment().toJson()}:{}),void 0!==this.getGatewayDeviceVendor()&&null!==this.getGatewayDeviceVendor()?{gatewayDeviceVendor:this.getGatewayDeviceVendor()}:{}),void 0!==this.getServices()&&null!==this.getServices()?{$servicesItemDiscriminator:this.get$servicesItemDiscriminator(),services:void 0!==this.getServices().toJson?this.getServices().toJson():Array.isArray(this.getServices())?this.getServices().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getServices()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus().toJson()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new f("name","undefined or null");if("description"===t&&(void 0===this.description||null===this.description))return new f("description","undefined or null");if("vpcReference"===t){if(void 0===this.vpcReference||null===this.vpcReference)return new f("vpcReference","undefined or null");if(null==e&&!u.validatePattern(this.vpcReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpcReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("cloudNetworkReference"===t){if(void 0===this.cloudNetworkReference||null===this.cloudNetworkReference)return new f("cloudNetworkReference","undefined or null");if(null==e&&!u.validatePattern(this.cloudNetworkReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("cloudNetworkReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"installedSoftwareVersion"!==t||void 0!==this.installedSoftwareVersion&&null!==this.installedSoftwareVersion?"supportedSoftwareVersion"!==t||void 0!==this.supportedSoftwareVersion&&null!==this.supportedSoftwareVersion?"vmReference"!==t||void 0!==this.vmReference&&null!==this.vmReference?"deployment"!==t||void 0!==this.deployment&&null!==this.deployment?"gatewayDeviceVendor"!==t||void 0!==this.gatewayDeviceVendor&&null!==this.gatewayDeviceVendor?"services"!==t||void 0!==this.services&&null!==this.services?"status"!==t||void 0!==this.status&&null!==this.status?new f(t,"no such property exists"):new f("status","undefined or null"):new f("services","undefined or null"):new f("gatewayDeviceVendor","undefined or null"):new f("deployment","undefined or null"):new f("vmReference","undefined or null"):new f("supportedSoftwareVersion","undefined or null"):new f("installedSoftwareVersion","undefined or null")}}])&&Nf(t.prototype,n),r&&Nf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function Vf(e){return(Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Bf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bf(e,t,n){return(t=Wf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wf(r.key),r)}}function Wf(e){var t=function(e,t){if("object"!==Vf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vf(t)?t:String(t)}function Kf(e,t){return(Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yf(e);if(t){var o=Yf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zf(this,n)}}function zf(e,t){if(t&&("object"===Vf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Yf(e){return(Yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Jf.prototype.name=void 0,Jf.prototype.description=void 0,Jf.prototype.vpcReference=void 0,Jf.prototype.cloudNetworkReference=void 0,Jf.prototype.installedSoftwareVersion=void 0,Jf.prototype.supportedSoftwareVersion=void 0,Jf.prototype.vmReference=void 0,Jf.prototype.deployment=void 0,Jf.prototype.gatewayDeviceVendor=void 0,Jf.prototype.services=void 0,Jf.prototype.status=void 0;var Xf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kf(e,t)}(s,e);var t,n,r,o=Hf(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkGatewayListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkGatewayListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.NetworkGateway>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=Jf.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=Gf({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof Jf?"List<networking.v4.config.NetworkGateway>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gf(!1===e?Gf(Gf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Gf(Gf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&qf(t.prototype,n),r&&qf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Qf(e){return(Qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function td(e,t,n){return(t=rd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rd(r.key),r)}}function rd(e){var t=function(e,t){if("object"!==Qf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qf(t)?t:String(t)}function od(e,t){return(od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function id(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ad(e);if(t){var o=ad(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sd(this,n)}}function sd(e,t){if(t&&("object"===Qf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ad(e){return(ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Xf.prototype.metadata=void 0,Xf.prototype.data=void 0,Xf.prototype.$reserved=void 0,Xf.prototype.$objectType=void 0,Xf.prototype.$unknownFields=void 0;var ud=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&od(e,t)}(s,e);var t,n,r,o=id(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkGatewayApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkGatewayApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.NetworkGateway"===n)t.setData(Jf.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=ed({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Jf?"networking.v4.config.NetworkGateway":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ed(!1===e?ed(ed({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):ed(ed({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&nd(t.prototype,n),r&&nd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function cd(e){return(cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ld(Object(n),!0).forEach((function(t){dd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dd(e,t,n){return(t=hd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hd(r.key),r)}}function hd(e){var t=function(e,t){if("object"!==cd(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cd(t)?t:String(t)}ud.prototype.metadata=void 0,ud.prototype.data=void 0,ud.prototype.$reserved=void 0,ud.prototype.$objectType=void 0,ud.prototype.$unknownFields=void 0;var yd=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createNetworkGateway",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof Jf&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createNetworkGateway");var o={},i={},s=fd(fd({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/network-gateways","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteNetworkGateway",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteNetworkGateway");var r={extId:e},o={},i=fd(fd({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/network-gateways/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getNetworkGateway",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getNetworkGateway");var r={extId:e},o={},i=fd(fd({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=ud;return this.apiClient.callApi("/api/networking/v4.0.a1/config/network-gateways/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listNetworkGateways",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=fd(fd(fd(fd({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=fd(fd({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Xf;return this.apiClient.callApi("/api/networking/v4.0.a1/config/network-gateways","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateNetworkGateway",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof Jf&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateNetworkGateway");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateNetworkGateway");var i={extId:e},s={},a=fd(fd({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/network-gateways/{extId}","PUT",i,s,a,u,o,c,l,f,d)}},{key:"upgradeNetworkGateway",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling upgradeNetworkGateway");var r={extId:e},o={},i=fd(fd({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/network-gateways/{extId}/$actions/upgrade","POST",r,o,i,s,n,a,u,c,l)}}])&&pd(t.prototype,n),o&&pd(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vd(e){return(vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wd(e,t,n){return(t=Od(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function md(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Od(r.key),r)}}function Od(e){var t=function(e,t){if("object"!==vd(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vd(t)?t:String(t)}function $d(e,t){return($d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pd(e);if(t){var o=Pd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jd(this,n)}}function jd(e,t){if(t&&("object"===vd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pd(e){return(Pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$d(e,t)}(s,e);var t,n,r,o=kd(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.RouteTable",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RouteTable"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("vpcReference")&&null!==e.vpcReference&&void 0!==e.vpcReference&&t.setVpcReference(e.vpcReference),e.hasOwnProperty("externalRoutingDomainReference")&&null!==e.externalRoutingDomainReference&&void 0!==e.externalRoutingDomainReference&&t.setExternalRoutingDomainReference(e.externalRoutingDomainReference),e.hasOwnProperty("staticRoutes")&&null!==e.staticRoutes&&void 0!==e.staticRoutes){for(i=[],n=e.staticRoutes,o=0;o<n.length;o++)r=Tt.constructFromObject(n[o],void 0),i.push(r);t.setStaticRoutes(i)}if(e.hasOwnProperty("dynamicRoutes")&&null!==e.dynamicRoutes&&void 0!==e.dynamicRoutes){for(i=[],n=e.dynamicRoutes,o=0;o<n.length;o++)r=Tt.constructFromObject(n[o],void 0),i.push(r);t.setDynamicRoutes(i)}if(e.hasOwnProperty("localRoutes")&&null!==e.localRoutes&&void 0!==e.localRoutes){for(i=[],n=e.localRoutes,o=0;o<n.length;o++)r=Tt.constructFromObject(n[o],void 0),i.push(r);t.setLocalRoutes(i)}if(!a)for(var u in t.$unknownFields=bd({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"getExternalRoutingDomainReference",value:function(){return this.externalRoutingDomainReference}},{key:"setExternalRoutingDomainReference",value:function(e){this.externalRoutingDomainReference=e}},{key:"getStaticRoutes",value:function(){return this.staticRoutes}},{key:"setStaticRoutes",value:function(e){this.staticRoutes=e}},{key:"getDynamicRoutes",value:function(){return this.dynamicRoutes}},{key:"setDynamicRoutes",value:function(e){this.dynamicRoutes=e}},{key:"getLocalRoutes",value:function(){return this.localRoutes}},{key:"setLocalRoutes",value:function(e){this.localRoutes=e}},{key:"toJson",value:function(e){return bd(!1===e?bd(bd(bd(bd(bd(bd(bd(bd(bd({},void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),void 0!==this.getExternalRoutingDomainReference()&&null!==this.getExternalRoutingDomainReference()?{externalRoutingDomainReference:this.getExternalRoutingDomainReference()}:{}),void 0!==this.getStaticRoutes()&&null!==this.getStaticRoutes()?{staticRoutes:this.getStaticRoutes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDynamicRoutes()&&null!==this.getDynamicRoutes()?{dynamicRoutes:this.getDynamicRoutes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLocalRoutes()&&null!==this.getLocalRoutes()?{localRoutes:this.getLocalRoutes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):bd(bd(bd(bd(bd(bd({},void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),void 0!==this.getExternalRoutingDomainReference()&&null!==this.getExternalRoutingDomainReference()?{externalRoutingDomainReference:this.getExternalRoutingDomainReference()}:{}),void 0!==this.getStaticRoutes()&&null!==this.getStaticRoutes()?{staticRoutes:this.getStaticRoutes().map((function(e){return e.toJson()}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("vpcReference"===t){if(void 0===this.vpcReference||null===this.vpcReference)return new f("vpcReference","undefined or null");if(null==e&&!u.validatePattern(this.vpcReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpcReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("externalRoutingDomainReference"===t){if(void 0===this.externalRoutingDomainReference||null===this.externalRoutingDomainReference)return new f("externalRoutingDomainReference","undefined or null");if(null==e&&!u.validatePattern(this.externalRoutingDomainReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("externalRoutingDomainReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"staticRoutes"!==t||void 0!==this.staticRoutes&&null!==this.staticRoutes?"dynamicRoutes"!==t||void 0!==this.dynamicRoutes&&null!==this.dynamicRoutes?"localRoutes"!==t||void 0!==this.localRoutes&&null!==this.localRoutes?new f(t,"no such property exists"):new f("localRoutes","undefined or null"):new f("dynamicRoutes","undefined or null"):new f("staticRoutes","undefined or null")}}])&&md(t.prototype,n),r&&md(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function Td(e){return(Td="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Id(Object(n),!0).forEach((function(t){Rd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rd(e,t,n){return(t=Ed(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ed(r.key),r)}}function Ed(e){var t=function(e,t){if("object"!==Td(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Td(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Td(t)?t:String(t)}function Ad(e,t){return(Ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Md(e);if(t){var o=Md(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xd(this,n)}}function xd(e,t){if(t&&("object"===Td(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Md(e){return(Md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Sd.prototype.vpcReference=void 0,Sd.prototype.externalRoutingDomainReference=void 0,Sd.prototype.staticRoutes=void 0,Sd.prototype.dynamicRoutes=void 0,Sd.prototype.localRoutes=void 0;var Cd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ad(e,t)}(s,e);var t,n,r,o=Nd(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.RouteTableListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RouteTableListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.RouteTable>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=Sd.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=Fd({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof Sd?"List<networking.v4.config.RouteTable>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fd(!1===e?Fd(Fd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Fd(Fd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Dd(t.prototype,n),r&&Dd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Ld(e){return(Ld="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach((function(t){Vd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vd(e,t,n){return(t=Gd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ud(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gd(r.key),r)}}function Gd(e){var t=function(e,t){if("object"!==Ld(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ld(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ld(t)?t:String(t)}function Bd(e,t){return(Bd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kd(e);if(t){var o=Kd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wd(this,n)}}function Wd(e,t){if(t&&("object"===Ld(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kd(e){return(Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Cd.prototype.metadata=void 0,Cd.prototype.data=void 0,Cd.prototype.$reserved=void 0,Cd.prototype.$objectType=void 0,Cd.prototype.$unknownFields=void 0;var Hd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bd(e,t)}(s,e);var t,n,r,o=qd(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.RouteTableApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RouteTableApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.RouteTable"===n)t.setData(Sd.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Jd({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Sd?"networking.v4.config.RouteTable":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Jd(!1===e?Jd(Jd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Jd(Jd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Ud(t.prototype,n),r&&Ud(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function zd(e){return(zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Qd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qd(e,t,n){return(t=ep(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ep(r.key),r)}}function ep(e){var t=function(e,t){if("object"!==zd(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zd(t)?t:String(t)}Hd.prototype.metadata=void 0,Hd.prototype.data=void 0,Hd.prototype.$reserved=void 0,Hd.prototype.$objectType=void 0,Hd.prototype.$unknownFields=void 0;var tp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"getRouteTable",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getRouteTable");var r={extId:e},o={},i=Xd(Xd({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Hd;return this.apiClient.callApi("/api/networking/v4.0.a1/config/route-tables/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listRouteTables",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=Xd(Xd(Xd({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),i=Xd(Xd({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Cd;return this.apiClient.callApi("/api/networking/v4.0.a1/config/route-tables","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateRouteTable",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof Sd&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateRouteTable");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateRouteTable");var i={extId:e},s={},a=Xd(Xd({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/route-tables/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&Zd(t.prototype,n),o&&Zd(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),np={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ALLOW:"ALLOW",DROP:"DROP",PASSTHROUGH:"PASSTHROUGH",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(np).find((function(t){return np[t]===e}));return null==t?np.$UNKNOWN:np[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case np.$UNKNOWN:case np.$REDACTED:case np.ALLOW:case np.DROP:case np.PASSTHROUGH:return;default:throw new Error("Invalid : must be RerouteFallbackAction.{ $UNKNOWN|$REDACTED|ALLOW|DROP|PASSTHROUGH }")}}};Object.freeze(np);var rp=np;function op(e){return(op="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){ap(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ap(e,t,n){return(t=cp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function up(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cp(r.key),r)}}function cp(e){var t=function(e,t){if("object"!==op(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===op(t)?t:String(t)}var lp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.serviceIp=t,this.$objectType="networking.v4.config.RerouteParam",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RerouteParam"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("serviceIp")&&null!==t.serviceIp&&void 0!==t.serviceIp&&n.setServiceIp(Xe.constructFromObject(t.serviceIp)),t.hasOwnProperty("rerouteFallbackAction")&&null!==t.rerouteFallbackAction&&void 0!==t.rerouteFallbackAction&&n.setRerouteFallbackAction(rp.constructFromObject(t.rerouteFallbackAction)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=sp({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getServiceIp",value:function(){return this.serviceIp}},{key:"setServiceIp",value:function(e){this.serviceIp=e}},{key:"getRerouteFallbackAction",value:function(){return this.rerouteFallbackAction}},{key:"setRerouteFallbackAction",value:function(e){this.rerouteFallbackAction=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return sp(sp(sp({},!1===e?void 0!==this.getServiceIp()&&null!==this.getServiceIp()?{serviceIp:this.getServiceIp().toJson(!1)}:{}:void 0!==this.getServiceIp()&&null!==this.getServiceIp()?{serviceIp:this.getServiceIp().toJson()}:{}),void 0!==this.getRerouteFallbackAction()&&null!==this.getRerouteFallbackAction()?{rerouteFallbackAction:this.getRerouteFallbackAction()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["serviceIp"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"serviceIp"!==t||void 0!==this.serviceIp&&null!==this.serviceIp?"rerouteFallbackAction"!==t||void 0!==this.rerouteFallbackAction&&null!==this.rerouteFallbackAction?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("rerouteFallbackAction","undefined or null"):new f("serviceIp","undefined or null")}}])&&up(t.prototype,n),r&&up(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();lp.prototype.serviceIp=void 0,lp.prototype.rerouteFallbackAction=void 0,lp.prototype.$reserved=void 0,lp.prototype.$objectType=void 0,lp.prototype.$unknownFields=void 0;var fp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PERMIT:"PERMIT",DENY:"DENY",REROUTE:"REROUTE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fp).find((function(t){return fp[t]===e}));return null==t?fp.$UNKNOWN:fp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fp.$UNKNOWN:case fp.$REDACTED:case fp.PERMIT:case fp.DENY:case fp.REROUTE:return;default:throw new Error("Invalid : must be RoutingPolicyActionType.{ $UNKNOWN|$REDACTED|PERMIT|DENY|REROUTE }")}}};Object.freeze(fp);var dp=fp;function pp(e){return(pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vp(e,t,n){return(t=bp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bp(r.key),r)}}function bp(e){var t=function(e,t){if("object"!==pp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pp(t)?t:String(t)}var wp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actionType=t,this.$objectType="networking.v4.config.RoutingPolicyAction",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RoutingPolicyAction"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("actionType")&&null!==t.actionType&&void 0!==t.actionType&&n.setActionType(dp.constructFromObject(t.actionType)),t.hasOwnProperty("rerouteParams")&&null!==t.rerouteParams&&void 0!==t.rerouteParams){for(s=[],r=t.rerouteParams,i=0;i<r.length;i++)o=lp.constructFromObject(r[i],void 0),s.push(o);n.setRerouteParams(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=yp({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getActionType",value:function(){return this.actionType}},{key:"setActionType",value:function(e){this.actionType=e}},{key:"getRerouteParams",value:function(){return this.rerouteParams}},{key:"setRerouteParams",value:function(e){this.rerouteParams=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yp(yp(yp({},void 0!==this.getActionType()&&null!==this.getActionType()?{actionType:this.getActionType()}:{}),!1===e?void 0!==this.getRerouteParams()&&null!==this.getRerouteParams()?{rerouteParams:this.getRerouteParams().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getRerouteParams()&&null!==this.getRerouteParams()?{rerouteParams:this.getRerouteParams().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["actionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("actionType"===t&&(void 0===this.actionType||null===this.actionType))return new f("actionType","undefined or null");if("rerouteParams"===t){if(void 0===this.rerouteParams||null===this.rerouteParams)return new f("rerouteParams","undefined or null");if(!u.validateMaxItems(this.rerouteParams,1))return new f("rerouteParams","does not satisfy required maxItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&gp(t.prototype,n),r&&gp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();wp.prototype.actionType=void 0,wp.prototype.rerouteParams=void 0,wp.prototype.$reserved=void 0,wp.prototype.$objectType=void 0,wp.prototype.$unknownFields=void 0;var mp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ANY:"ANY",EXTERNAL:"EXTERNAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(mp).find((function(t){return mp[t]===e}));return null==t?mp.$UNKNOWN:mp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case mp.$UNKNOWN:case mp.$REDACTED:case mp.ANY:case mp.EXTERNAL:return;default:throw new Error("Invalid : must be AddressType.{ $UNKNOWN|$REDACTED|ANY|EXTERNAL }")}}};Object.freeze(mp);var Op=mp;function $p(e){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach((function(t){Pp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pp(e,t,n){return(t=Tp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tp(r.key),r)}}function Tp(e){var t=function(e,t){if("object"!==$p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$p(t)?t:String(t)}var Ip=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.addressType=t,this.$objectType="networking.v4.config.AddressTypeObject",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AddressTypeObject"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("addressType")&&null!==t.addressType&&void 0!==t.addressType&&n.setAddressType(Op.constructFromObject(t.addressType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=jp({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAddressType",value:function(){return this.addressType}},{key:"setAddressType",value:function(e){this.addressType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return jp(jp({},void 0!==this.getAddressType()&&null!==this.getAddressType()?{addressType:this.getAddressType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["addressType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"addressType"!==t||void 0!==this.addressType&&null!==this.addressType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("addressType","undefined or null")}}])&&Sp(t.prototype,n),r&&Sp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fp(e){return(Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rp(Object(n),!0).forEach((function(t){Ep(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ep(e,t,n){return(t=Np(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ap(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Np(r.key),r)}}function Np(e){var t=function(e,t){if("object"!==Fp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Fp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fp(t)?t:String(t)}Ip.prototype.addressType=void 0,Ip.prototype.$reserved=void 0,Ip.prototype.$objectType=void 0,Ip.prototype.$unknownFields=void 0;var xp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.ICMP",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ICMP"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("icmpType")&&null!==t.icmpType&&void 0!==t.icmpType&&n.setIcmpType(t.icmpType),t.hasOwnProperty("icmpCode")&&null!==t.icmpCode&&void 0!==t.icmpCode&&n.setIcmpCode(t.icmpCode),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Dp({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIcmpType",value:function(){return this.icmpType}},{key:"setIcmpType",value:function(e){this.icmpType=e}},{key:"getIcmpCode",value:function(){return this.icmpCode}},{key:"setIcmpCode",value:function(e){this.icmpCode=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dp(Dp(Dp({},void 0!==this.getIcmpType()&&null!==this.getIcmpType()?{icmpType:this.getIcmpType()}:{}),void 0!==this.getIcmpCode()&&null!==this.getIcmpCode()?{icmpCode:this.getIcmpCode()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("icmpType"===t){if(void 0===this.icmpType||null===this.icmpType)return new f("icmpType","undefined or null");if(!u.validateMaximum(this.icmpType,255))return new f("icmpType","does not satisfy required maximum constraint: 255");if(!u.validateMinimum(this.icmpType,0))return new f("icmpType","does not satisfy required minimum constraint: 0")}if("icmpCode"===t){if(void 0===this.icmpCode||null===this.icmpCode)return new f("icmpCode","undefined or null");if(!u.validateMaximum(this.icmpCode,255))return new f("icmpCode","does not satisfy required maximum constraint: 255");if(!u.validateMinimum(this.icmpCode,0))return new f("icmpCode","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Ap(t.prototype,n),r&&Ap(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Mp(e){return(Mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cp(Object(n),!0).forEach((function(t){_p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _p(e,t,n){return(t=Vp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vp(r.key),r)}}function Vp(e){var t=function(e,t){if("object"!==Mp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mp(t)?t:String(t)}xp.prototype.icmpType=void 0,xp.prototype.icmpCode=void 0,xp.prototype.$reserved=void 0,xp.prototype.$objectType=void 0,xp.prototype.$unknownFields=void 0;var Up=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.icmp=t,this.$objectType="networking.v4.config.ICMPObject",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ICMPObject"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("icmp")&&null!==t.icmp&&void 0!==t.icmp&&n.setIcmp(xp.constructFromObject(t.icmp)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Lp({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIcmp",value:function(){return this.icmp}},{key:"setIcmp",value:function(e){this.icmp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Lp(Lp({},!1===e?void 0!==this.getIcmp()&&null!==this.getIcmp()?{icmp:this.getIcmp().toJson(!1)}:{}:void 0!==this.getIcmp()&&null!==this.getIcmp()?{icmp:this.getIcmp().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["icmp"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"icmp"!==t||void 0!==this.icmp&&null!==this.icmp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("icmp","undefined or null")}}])&&Jp(t.prototype,n),r&&Jp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gp(e){return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bp(Object(n),!0).forEach((function(t){Wp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wp(e,t,n){return(t=Hp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hp(r.key),r)}}function Hp(e){var t=function(e,t){if("object"!==Gp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gp(t)?t:String(t)}Up.prototype.icmp=void 0,Up.prototype.$reserved=void 0,Up.prototype.$objectType=void 0,Up.prototype.$unknownFields=void 0;var zp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ipSubnet=t,this.$objectType="networking.v4.config.IPSubnetObject",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPSubnetObject"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipSubnet")&&null!==t.ipSubnet&&void 0!==t.ipSubnet&&n.setIpSubnet(bt.constructFromObject(t.ipSubnet)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=qp({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIpSubnet",value:function(){return this.ipSubnet}},{key:"setIpSubnet",value:function(e){this.ipSubnet=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qp(qp({},!1===e?void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson(!1)}:{}:void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["ipSubnet"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipSubnet"!==t||void 0!==this.ipSubnet&&null!==this.ipSubnet?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipSubnet","undefined or null")}}])&&Kp(t.prototype,n),r&&Kp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yp(e){return(Yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xp(Object(n),!0).forEach((function(t){Zp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zp(e,t,n){return(t=th(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,th(r.key),r)}}function th(e){var t=function(e,t){if("object"!==Yp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Yp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yp(t)?t:String(t)}zp.prototype.ipSubnet=void 0,zp.prototype.$reserved=void 0,zp.prototype.$objectType=void 0,zp.prototype.$unknownFields=void 0;var nh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.protocolNumber=t,this.$objectType="networking.v4.config.ProtocolNumberObject",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ProtocolNumberObject"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("protocolNumber")&&null!==t.protocolNumber&&void 0!==t.protocolNumber&&n.setProtocolNumber(t.protocolNumber),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Qp({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getProtocolNumber",value:function(){return this.protocolNumber}},{key:"setProtocolNumber",value:function(e){this.protocolNumber=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qp(Qp({},void 0!==this.getProtocolNumber()&&null!==this.getProtocolNumber()?{protocolNumber:this.getProtocolNumber()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["protocolNumber"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("protocolNumber"===t){if(void 0===this.protocolNumber||null===this.protocolNumber)return new f("protocolNumber","undefined or null");if(!u.validateMaximum(this.protocolNumber,255))return new f("protocolNumber","does not satisfy required maximum constraint: 255");if(!u.validateMinimum(this.protocolNumber,0))return new f("protocolNumber","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&eh(t.prototype,n),r&&eh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();nh.prototype.protocolNumber=void 0,nh.prototype.$reserved=void 0,nh.prototype.$objectType=void 0,nh.prototype.$unknownFields=void 0;var rh={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ANY:"ANY",ICMP:"ICMP",TCP:"TCP",UDP:"UDP",PROTOCOL_NUMBER:"PROTOCOL_NUMBER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(rh).find((function(t){return rh[t]===e}));return null==t?rh.$UNKNOWN:rh[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case rh.$UNKNOWN:case rh.$REDACTED:case rh.ANY:case rh.ICMP:case rh.TCP:case rh.UDP:case rh.PROTOCOL_NUMBER:return;default:throw new Error("Invalid : must be ProtocolType.{ $UNKNOWN|$REDACTED|ANY|ICMP|TCP|UDP|PROTOCOL_NUMBER }")}}};Object.freeze(rh);var oh=rh;function ih(e){return(ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sh(Object(n),!0).forEach((function(t){uh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uh(e,t,n){return(t=lh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lh(r.key),r)}}function lh(e){var t=function(e,t){if("object"!==ih(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ih(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ih(t)?t:String(t)}var fh=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startPort=t,this.endPort=n,this.$objectType="networking.v4.config.PortRange",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.PortRange"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("startPort")&&null!==t.startPort&&void 0!==t.startPort&&n.setStartPort(t.startPort),t.hasOwnProperty("endPort")&&null!==t.endPort&&void 0!==t.endPort&&n.setEndPort(t.endPort),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ah({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getStartPort",value:function(){return this.startPort}},{key:"setStartPort",value:function(e){this.startPort=e}},{key:"getEndPort",value:function(){return this.endPort}},{key:"setEndPort",value:function(e){this.endPort=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ah(ah(ah({},void 0!==this.getStartPort()&&null!==this.getStartPort()?{startPort:this.getStartPort()}:{}),void 0!==this.getEndPort()&&null!==this.getEndPort()?{endPort:this.getEndPort()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["startPort","endPort"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("startPort"===t){if(void 0===this.startPort||null===this.startPort)return new f("startPort","undefined or null");if(!u.validateMaximum(this.startPort,65535))return new f("startPort","does not satisfy required maximum constraint: 65535");if(!u.validateMinimum(this.startPort,0))return new f("startPort","does not satisfy required minimum constraint: 0")}if("endPort"===t){if(void 0===this.endPort||null===this.endPort)return new f("endPort","undefined or null");if(!u.validateMaximum(this.endPort,65535))return new f("endPort","does not satisfy required maximum constraint: 65535");if(!u.validateMinimum(this.endPort,0))return new f("endPort","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&ch(t.prototype,n),r&&ch(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function dh(e){return(dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){yh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yh(e,t,n){return(t=gh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gh(r.key),r)}}function gh(e){var t=function(e,t){if("object"!==dh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dh(t)?t:String(t)}fh.prototype.startPort=void 0,fh.prototype.endPort=void 0,fh.prototype.$reserved=void 0,fh.prototype.$objectType=void 0,fh.prototype.$unknownFields=void 0;var bh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.TCP",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.TCP"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("sourcePortRanges")&&null!==t.sourcePortRanges&&void 0!==t.sourcePortRanges){for(s=[],r=t.sourcePortRanges,i=0;i<r.length;i++)o=fh.constructFromObject(r[i],void 0),s.push(o);n.setSourcePortRanges(s)}if(t.hasOwnProperty("destinationPortRanges")&&null!==t.destinationPortRanges&&void 0!==t.destinationPortRanges){for(s=[],r=t.destinationPortRanges,i=0;i<r.length;i++)o=fh.constructFromObject(r[i],void 0),s.push(o);n.setDestinationPortRanges(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=hh({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getSourcePortRanges",value:function(){return this.sourcePortRanges}},{key:"setSourcePortRanges",value:function(e){this.sourcePortRanges=e}},{key:"getDestinationPortRanges",value:function(){return this.destinationPortRanges}},{key:"setDestinationPortRanges",value:function(e){this.destinationPortRanges=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hh(!1===e?hh(hh({},void 0!==this.getSourcePortRanges()&&null!==this.getSourcePortRanges()?{sourcePortRanges:this.getSourcePortRanges().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDestinationPortRanges()&&null!==this.getDestinationPortRanges()?{destinationPortRanges:this.getDestinationPortRanges().map((function(e){return e.toJson(!1)}))}:{}):hh(hh({},void 0!==this.getSourcePortRanges()&&null!==this.getSourcePortRanges()?{sourcePortRanges:this.getSourcePortRanges().map((function(e){return e.toJson()}))}:{}),void 0!==this.getDestinationPortRanges()&&null!==this.getDestinationPortRanges()?{destinationPortRanges:this.getDestinationPortRanges().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"sourcePortRanges"!==t||void 0!==this.sourcePortRanges&&null!==this.sourcePortRanges?"destinationPortRanges"!==t||void 0!==this.destinationPortRanges&&null!==this.destinationPortRanges?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("destinationPortRanges","undefined or null"):new f("sourcePortRanges","undefined or null")}}])&&vh(t.prototype,n),r&&vh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function wh(e){return(wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(n),!0).forEach((function(t){$h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $h(e,t,n){return(t=jh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jh(r.key),r)}}function jh(e){var t=function(e,t){if("object"!==wh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wh(t)?t:String(t)}bh.prototype.sourcePortRanges=void 0,bh.prototype.destinationPortRanges=void 0,bh.prototype.$reserved=void 0,bh.prototype.$objectType=void 0,bh.prototype.$unknownFields=void 0;var Ph=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tcp=t,this.$objectType="networking.v4.config.TCPObject",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.TCPObject"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tcp")&&null!==t.tcp&&void 0!==t.tcp&&n.setTcp(bh.constructFromObject(t.tcp)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Oh({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getTcp",value:function(){return this.tcp}},{key:"setTcp",value:function(e){this.tcp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oh(Oh({},!1===e?void 0!==this.getTcp()&&null!==this.getTcp()?{tcp:this.getTcp().toJson(!1)}:{}:void 0!==this.getTcp()&&null!==this.getTcp()?{tcp:this.getTcp().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["tcp"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"tcp"!==t||void 0!==this.tcp&&null!==this.tcp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("tcp","undefined or null")}}])&&kh(t.prototype,n),r&&kh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sh(e){return(Sh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Th(Object(n),!0).forEach((function(t){Fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Th(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fh(e,t,n){return(t=Dh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dh(r.key),r)}}function Dh(e){var t=function(e,t){if("object"!==Sh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sh(t)?t:String(t)}Ph.prototype.tcp=void 0,Ph.prototype.$reserved=void 0,Ph.prototype.$objectType=void 0,Ph.prototype.$unknownFields=void 0;var Eh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.UDP",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.UDP"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("sourcePortRanges")&&null!==t.sourcePortRanges&&void 0!==t.sourcePortRanges){for(s=[],r=t.sourcePortRanges,i=0;i<r.length;i++)o=fh.constructFromObject(r[i],void 0),s.push(o);n.setSourcePortRanges(s)}if(t.hasOwnProperty("destinationPortRanges")&&null!==t.destinationPortRanges&&void 0!==t.destinationPortRanges){for(s=[],r=t.destinationPortRanges,i=0;i<r.length;i++)o=fh.constructFromObject(r[i],void 0),s.push(o);n.setDestinationPortRanges(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Ih({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getSourcePortRanges",value:function(){return this.sourcePortRanges}},{key:"setSourcePortRanges",value:function(e){this.sourcePortRanges=e}},{key:"getDestinationPortRanges",value:function(){return this.destinationPortRanges}},{key:"setDestinationPortRanges",value:function(e){this.destinationPortRanges=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ih(!1===e?Ih(Ih({},void 0!==this.getSourcePortRanges()&&null!==this.getSourcePortRanges()?{sourcePortRanges:this.getSourcePortRanges().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDestinationPortRanges()&&null!==this.getDestinationPortRanges()?{destinationPortRanges:this.getDestinationPortRanges().map((function(e){return e.toJson(!1)}))}:{}):Ih(Ih({},void 0!==this.getSourcePortRanges()&&null!==this.getSourcePortRanges()?{sourcePortRanges:this.getSourcePortRanges().map((function(e){return e.toJson()}))}:{}),void 0!==this.getDestinationPortRanges()&&null!==this.getDestinationPortRanges()?{destinationPortRanges:this.getDestinationPortRanges().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"sourcePortRanges"!==t||void 0!==this.sourcePortRanges&&null!==this.sourcePortRanges?"destinationPortRanges"!==t||void 0!==this.destinationPortRanges&&null!==this.destinationPortRanges?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("destinationPortRanges","undefined or null"):new f("sourcePortRanges","undefined or null")}}])&&Rh(t.prototype,n),r&&Rh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ah(e){return(Ah="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nh(Object(n),!0).forEach((function(t){Mh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mh(e,t,n){return(t=Lh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lh(r.key),r)}}function Lh(e){var t=function(e,t){if("object"!==Ah(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ah(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ah(t)?t:String(t)}Eh.prototype.sourcePortRanges=void 0,Eh.prototype.destinationPortRanges=void 0,Eh.prototype.$reserved=void 0,Eh.prototype.$objectType=void 0,Eh.prototype.$unknownFields=void 0;var _h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.udp=t,this.$objectType="networking.v4.config.UDPObject",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.UDPObject"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("udp")&&null!==t.udp&&void 0!==t.udp&&n.setUdp(Eh.constructFromObject(t.udp)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=xh({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getUdp",value:function(){return this.udp}},{key:"setUdp",value:function(e){this.udp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xh(xh({},!1===e?void 0!==this.getUdp()&&null!==this.getUdp()?{udp:this.getUdp().toJson(!1)}:{}:void 0!==this.getUdp()&&null!==this.getUdp()?{udp:this.getUdp().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["udp"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"udp"!==t||void 0!==this.udp&&null!==this.udp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("udp","undefined or null")}}])&&Ch(t.prototype,n),r&&Ch(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jh(e){return(Jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vh(Object(n),!0).forEach((function(t){Gh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gh(e,t,n){return(t=qh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qh(r.key),r)}}function qh(e){var t=function(e,t){if("object"!==Jh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jh(t)?t:String(t)}_h.prototype.udp=void 0,_h.prototype.$reserved=void 0,_h.prototype.$objectType=void 0,_h.prototype.$unknownFields=void 0;var Wh=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.source=t,this.destination=n,this.protocolType=r,this.$objectType="networking.v4.config.RoutingPolicyMatchCondition",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RoutingPolicyMatchCondition"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("source")&&null!==t.source&&void 0!==t.source)if("EMPTY_LIST"===(r=t.$sourceItemDiscriminator))n.setSource([]);else if("networking.v4.config.AddressTypeObject"===r)n.setSource(Ip.constructFromObject(t.source,void 0));else{if("networking.v4.config.IPSubnetObject"!==r)throw"Unknown data type "+r+" in data";n.setSource(zp.constructFromObject(t.source,void 0))}if(t.hasOwnProperty("destination")&&null!==t.destination&&void 0!==t.destination)if("EMPTY_LIST"===(r=t.$destinationItemDiscriminator))n.setDestination([]);else if("networking.v4.config.AddressTypeObject"===r)n.setDestination(Ip.constructFromObject(t.destination,void 0));else{if("networking.v4.config.IPSubnetObject"!==r)throw"Unknown data type "+r+" in data";n.setDestination(zp.constructFromObject(t.destination,void 0))}if(t.hasOwnProperty("protocolType")&&null!==t.protocolType&&void 0!==t.protocolType&&n.setProtocolType(oh.constructFromObject(t.protocolType)),t.hasOwnProperty("protocolParameters")&&null!==t.protocolParameters&&void 0!==t.protocolParameters)if("EMPTY_LIST"===(r=t.$protocolParametersItemDiscriminator))n.setProtocolParameters([]);else if("networking.v4.config.TCPObject"===r)n.setProtocolParameters(Ph.constructFromObject(t.protocolParameters,void 0));else if("networking.v4.config.UDPObject"===r)n.setProtocolParameters(_h.constructFromObject(t.protocolParameters,void 0));else if("networking.v4.config.ICMPObject"===r)n.setProtocolParameters(Up.constructFromObject(t.protocolParameters,void 0));else{if("networking.v4.config.ProtocolNumberObject"!==r)throw"Unknown data type "+r+" in data";n.setProtocolParameters(nh.constructFromObject(t.protocolParameters,void 0))}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!o)for(var i in n.$unknownFields=Uh({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i])}return n}}],(n=[{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(e){this.source=e}},{key:"get$sourceItemDiscriminator",value:function(){return this.getSource()instanceof Ip?"networking.v4.config.AddressTypeObject":this.getSource()instanceof zp?"networking.v4.config.IPSubnetObject":void 0}},{key:"getDestination",value:function(){return this.destination}},{key:"setDestination",value:function(e){this.destination=e}},{key:"get$destinationItemDiscriminator",value:function(){return this.getDestination()instanceof Ip?"networking.v4.config.AddressTypeObject":this.getDestination()instanceof zp?"networking.v4.config.IPSubnetObject":void 0}},{key:"getProtocolType",value:function(){return this.protocolType}},{key:"setProtocolType",value:function(e){this.protocolType=e}},{key:"getProtocolParameters",value:function(){return this.protocolParameters}},{key:"setProtocolParameters",value:function(e){this.protocolParameters=e}},{key:"get$protocolParametersItemDiscriminator",value:function(){return this.getProtocolParameters()instanceof Ph?"networking.v4.config.TCPObject":this.getProtocolParameters()instanceof _h?"networking.v4.config.UDPObject":this.getProtocolParameters()instanceof Up?"networking.v4.config.ICMPObject":this.getProtocolParameters()instanceof nh?"networking.v4.config.ProtocolNumberObject":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uh(!1===e?Uh(Uh(Uh(Uh({},void 0!==this.getSource()&&null!==this.getSource()?{$sourceItemDiscriminator:this.get$sourceItemDiscriminator(),source:void 0!==this.getSource().toJson?this.getSource().toJson(!1):Array.isArray(this.getSource())?this.getSource().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getSource()}:{}),void 0!==this.getDestination()&&null!==this.getDestination()?{$destinationItemDiscriminator:this.get$destinationItemDiscriminator(),destination:void 0!==this.getDestination().toJson?this.getDestination().toJson(!1):Array.isArray(this.getDestination())?this.getDestination().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getDestination()}:{}),void 0!==this.getProtocolType()&&null!==this.getProtocolType()?{protocolType:this.getProtocolType()}:{}),void 0!==this.getProtocolParameters()&&null!==this.getProtocolParameters()?{$protocolParametersItemDiscriminator:this.get$protocolParametersItemDiscriminator(),protocolParameters:void 0!==this.getProtocolParameters().toJson?this.getProtocolParameters().toJson(!1):Array.isArray(this.getProtocolParameters())?this.getProtocolParameters().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getProtocolParameters()}:{}):Uh(Uh(Uh(Uh({},void 0!==this.getSource()&&null!==this.getSource()?{$sourceItemDiscriminator:this.get$sourceItemDiscriminator(),source:void 0!==this.getSource().toJson?this.getSource().toJson():Array.isArray(this.getSource())?this.getSource().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getSource()}:{}),void 0!==this.getDestination()&&null!==this.getDestination()?{$destinationItemDiscriminator:this.get$destinationItemDiscriminator(),destination:void 0!==this.getDestination().toJson?this.getDestination().toJson():Array.isArray(this.getDestination())?this.getDestination().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getDestination()}:{}),void 0!==this.getProtocolType()&&null!==this.getProtocolType()?{protocolType:this.getProtocolType()}:{}),void 0!==this.getProtocolParameters()&&null!==this.getProtocolParameters()?{$protocolParametersItemDiscriminator:this.get$protocolParametersItemDiscriminator(),protocolParameters:void 0!==this.getProtocolParameters().toJson?this.getProtocolParameters().toJson():Array.isArray(this.getProtocolParameters())?this.getProtocolParameters().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getProtocolParameters()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["source","destination","protocolType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"source"!==t||void 0!==this.source&&null!==this.source?"destination"!==t||void 0!==this.destination&&null!==this.destination?"protocolType"!==t||void 0!==this.protocolType&&null!==this.protocolType?"protocolParameters"!==t||void 0!==this.protocolParameters&&null!==this.protocolParameters?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("protocolParameters","undefined or null"):new f("protocolType","undefined or null"):new f("destination","undefined or null"):new f("source","undefined or null")}}])&&Bh(t.prototype,n),r&&Bh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kh(e){return(Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hh(Object(n),!0).forEach((function(t){Yh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yh(e,t,n){return(t=Qh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qh(r.key),r)}}function Qh(e){var t=function(e,t){if("object"!==Kh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kh(t)?t:String(t)}Wh.prototype.source=void 0,Wh.prototype.destination=void 0,Wh.prototype.protocolType=void 0,Wh.prototype.protocolParameters=void 0,Wh.prototype.$reserved=void 0,Wh.prototype.$objectType=void 0,Wh.prototype.$unknownFields=void 0;var Zh=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.policyMatch=t,this.policyAction=n,this.$objectType="networking.v4.config.RoutingPolicyRule",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RoutingPolicyRule"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("policyMatch")&&null!==t.policyMatch&&void 0!==t.policyMatch&&n.setPolicyMatch(Wh.constructFromObject(t.policyMatch)),t.hasOwnProperty("policyAction")&&null!==t.policyAction&&void 0!==t.policyAction&&n.setPolicyAction(wp.constructFromObject(t.policyAction)),t.hasOwnProperty("bidirectional")&&null!==t.bidirectional&&void 0!==t.bidirectional&&n.setBidirectional(t.bidirectional),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zh({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPolicyMatch",value:function(){return this.policyMatch}},{key:"setPolicyMatch",value:function(e){this.policyMatch=e}},{key:"getPolicyAction",value:function(){return this.policyAction}},{key:"setPolicyAction",value:function(e){this.policyAction=e}},{key:"getBidirectional",value:function(){return this.bidirectional}},{key:"setBidirectional",value:function(e){this.bidirectional=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zh(zh(!1===e?zh(zh({},void 0!==this.getPolicyMatch()&&null!==this.getPolicyMatch()?{policyMatch:this.getPolicyMatch().toJson(!1)}:{}),void 0!==this.getPolicyAction()&&null!==this.getPolicyAction()?{policyAction:this.getPolicyAction().toJson(!1)}:{}):zh(zh({},void 0!==this.getPolicyMatch()&&null!==this.getPolicyMatch()?{policyMatch:this.getPolicyMatch().toJson()}:{}),void 0!==this.getPolicyAction()&&null!==this.getPolicyAction()?{policyAction:this.getPolicyAction().toJson()}:{}),void 0!==this.getBidirectional()&&null!==this.getBidirectional()?{bidirectional:this.getBidirectional()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["policyMatch","policyAction"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"policyMatch"!==t||void 0!==this.policyMatch&&null!==this.policyMatch?"policyAction"!==t||void 0!==this.policyAction&&null!==this.policyAction?"bidirectional"!==t||void 0!==this.bidirectional&&null!==this.bidirectional?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("bidirectional","undefined or null"):new f("policyAction","undefined or null"):new f("policyMatch","undefined or null")}}])&&Xh(t.prototype,n),r&&Xh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ey(e){return(ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(n),!0).forEach((function(t){ry(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ry(e,t,n){return(t=iy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iy(r.key),r)}}function iy(e){var t=function(e,t){if("object"!==ey(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ey(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ey(t)?t:String(t)}function sy(e,t){return(sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ay(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cy(e);if(t){var o=cy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uy(this,n)}}function uy(e,t){if(t&&("object"===ey(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function cy(e){return(cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Zh.prototype.policyMatch=void 0,Zh.prototype.policyAction=void 0,Zh.prototype.bidirectional=!1,Zh.prototype.$reserved=void 0,Zh.prototype.$objectType=void 0,Zh.prototype.$unknownFields=void 0;var ly=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sy(e,t)}(s,e);var t,n,r,o=ay(s);function s(e,t,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(i=o.call(this)).name=e,i.priority=t,i.policies=n,i.vpcExtId=r,i.$objectType="networking.v4.config.RoutingPolicy",i.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RoutingPolicy"},i.$unknownFields={},i}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("priority")&&null!==e.priority&&void 0!==e.priority&&t.setPriority(e.priority),e.hasOwnProperty("policies")&&null!==e.policies&&void 0!==e.policies){for(i=[],n=e.policies,o=0;o<n.length;o++)r=Zh.constructFromObject(n[o],void 0),i.push(r);t.setPolicies(i)}if(e.hasOwnProperty("vpcExtId")&&null!==e.vpcExtId&&void 0!==e.vpcExtId&&t.setVpcExtId(e.vpcExtId),!a)for(var u in t.$unknownFields=ny({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getPriority",value:function(){return this.priority}},{key:"setPriority",value:function(e){this.priority=e}},{key:"getPolicies",value:function(){return this.policies}},{key:"setPolicies",value:function(e){this.policies=e}},{key:"getVpcExtId",value:function(){return this.vpcExtId}},{key:"setVpcExtId",value:function(e){this.vpcExtId=e}},{key:"toJson",value:function(e){return ny(!1===e?ny(ny(ny(ny(ny(ny(ny(ny(ny({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getPriority()&&null!==this.getPriority()?{priority:this.getPriority()}:{}),void 0!==this.getPolicies()&&null!==this.getPolicies()?{policies:this.getPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVpcExtId()&&null!==this.getVpcExtId()?{vpcExtId:this.getVpcExtId()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ny(ny(ny(ny(ny(ny(ny(ny({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getPriority()&&null!==this.getPriority()?{priority:this.getPriority()}:{}),void 0!==this.getPolicies()&&null!==this.getPolicies()?{policies:this.getPolicies().map((function(e){return e.toJson()}))}:{}),void 0!==this.getVpcExtId()&&null!==this.getVpcExtId()?{vpcExtId:this.getVpcExtId()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name","priority","policies","vpcExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,128))return new f("name","does not satisfy required maxLength constraint: 128")}if("description"===t){if(void 0===this.description||null===this.description)return new f("description","undefined or null");if(!u.validateMaxLength(this.description,1e3))return new f("description","does not satisfy required maxLength constraint: 1000")}if("priority"===t){if(void 0===this.priority||null===this.priority)return new f("priority","undefined or null");if(!u.validateMaximum(this.priority,1e3))return new f("priority","does not satisfy required maximum constraint: 1000");if(!u.validateMinimum(this.priority,1))return new f("priority","does not satisfy required minimum constraint: 1")}if("policies"===t){if(void 0===this.policies||null===this.policies)return new f("policies","undefined or null");if(!u.validateMaxItems(this.policies,1))return new f("policies","does not satisfy required maxItems constraint: 1");if(!u.validateMinItems(this.policies,1))return new f("policies","does not satisfy required minItems constraint: 1")}if("vpcExtId"===t){if(void 0===this.vpcExtId||null===this.vpcExtId)return new f("vpcExtId","undefined or null");if(!u.validatePattern(this.vpcExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpcExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new f(t,"no such property exists")}}])&&oy(t.prototype,n),r&&oy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function fy(e){return(fy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function py(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dy(Object(n),!0).forEach((function(t){hy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hy(e,t,n){return(t=vy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vy(r.key),r)}}function vy(e){var t=function(e,t){if("object"!==fy(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fy(t)?t:String(t)}function gy(e,t){return(gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function by(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=my(e);if(t){var o=my(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wy(this,n)}}function wy(e,t){if(t&&("object"===fy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function my(e){return(my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ly.prototype.name=void 0,ly.prototype.description=void 0,ly.prototype.priority=void 0,ly.prototype.policies=void 0,ly.prototype.vpcExtId=void 0;var Oy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gy(e,t)}(s,e);var t,n,r,o=by(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.RoutingPolicyListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RoutingPolicyListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.RoutingPolicy>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=ly.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=py({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof ly?"List<networking.v4.config.RoutingPolicy>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return py(!1===e?py(py({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):py(py({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&yy(t.prototype,n),r&&yy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function $y(e){return($y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ky(Object(n),!0).forEach((function(t){Py(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Py(e,t,n){return(t=Ty(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ty(r.key),r)}}function Ty(e){var t=function(e,t){if("object"!==$y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$y(t)?t:String(t)}function Iy(e,t){return(Iy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dy(e);if(t){var o=Dy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ry(this,n)}}function Ry(e,t){if(t&&("object"===$y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dy(e){return(Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Oy.prototype.metadata=void 0,Oy.prototype.data=void 0,Oy.prototype.$reserved=void 0,Oy.prototype.$objectType=void 0,Oy.prototype.$unknownFields=void 0;var Ey=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iy(e,t)}(s,e);var t,n,r,o=Fy(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.RoutingPolicyApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RoutingPolicyApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.RoutingPolicy"===n)t.setData(ly.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=jy({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof ly?"networking.v4.config.RoutingPolicy":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return jy(!1===e?jy(jy({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):jy(jy({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Sy(t.prototype,n),r&&Sy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Ay(e){return(Ay="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ny(Object(n),!0).forEach((function(t){My(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ny(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function My(e,t,n){return(t=Ly(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ly(r.key),r)}}function Ly(e){var t=function(e,t){if("object"!==Ay(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ay(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ay(t)?t:String(t)}Ey.prototype.metadata=void 0,Ey.prototype.data=void 0,Ey.prototype.$reserved=void 0,Ey.prototype.$objectType=void 0,Ey.prototype.$unknownFields=void 0;var _y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createRoutingPolicy",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof ly&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createRoutingPolicy");var o={},i={},s=xy(xy({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/routing-policies","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteRoutingPolicy",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteRoutingPolicy");var r={extId:e},o={},i=xy(xy({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/routing-policies/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getRoutingPolicy",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getRoutingPolicy");var r={extId:e},o={},i=xy(xy({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Ey;return this.apiClient.callApi("/api/networking/v4.0.a1/config/routing-policies/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listRoutingPolicies",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=xy(xy(xy(xy({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=xy(xy({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Oy;return this.apiClient.callApi("/api/networking/v4.0.a1/config/routing-policies","GET",r,o,i,s,n,a,u,c,l)}},{key:"putRoutingPolicy",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof ly&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling putRoutingPolicy");if(null==e)throw new Error("Missing the required parameter 'extId' when calling putRoutingPolicy");var i={extId:e},s={},a=xy(xy({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/routing-policies/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&Cy(t.prototype,n),o&&Cy(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jy(e){return(Jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(n),!0).forEach((function(t){Gy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gy(e,t,n){return(t=qy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function By(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qy(r.key),r)}}function qy(e){var t=function(e,t){if("object"!==Jy(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jy(t)?t:String(t)}function Wy(e,t){return(Wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ky(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zy(e);if(t){var o=zy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hy(this,n)}}function Hy(e,t){if(t&&("object"===Jy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function zy(e){return(zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wy(e,t)}(s,e);var t,n,r,o=Ky(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this)).vpcExtId=e,t.$objectType="networking.v4.stats.RoutingPolicyClearCountersBody",t.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.RoutingPolicyClearCountersBody"},t.$unknownFields={},t}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,we.constructFromObject(e,t,!0),e.hasOwnProperty("vpcExtId")&&null!==e.vpcExtId&&void 0!==e.vpcExtId&&t.setVpcExtId(e.vpcExtId),!n))for(var r in t.$unknownFields=Uy({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getVpcExtId",value:function(){return this.vpcExtId}},{key:"setVpcExtId",value:function(e){this.vpcExtId=e}},{key:"toJson",value:function(e){return Uy(!1===e?Uy(Uy(Uy(Uy({},void 0!==this.getVpcExtId()&&null!==this.getVpcExtId()?{vpcExtId:this.getVpcExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Uy(Uy(Uy({},void 0!==this.getVpcExtId()&&null!==this.getVpcExtId()?{vpcExtId:this.getVpcExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["vpcExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"vpcExtId"!==t||void 0!==this.vpcExtId&&null!==this.vpcExtId?new f(t,"no such property exists"):new f("vpcExtId","undefined or null")}}])&&By(t.prototype,n),r&&By(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(we);function Xy(e){return(Xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qy(Object(n),!0).forEach((function(t){ev(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ev(e,t,n){return(t=nv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nv(r.key),r)}}function nv(e){var t=function(e,t){if("object"!==Xy(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xy(t)?t:String(t)}function rv(e,t){return(rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ov(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sv(e);if(t){var o=sv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iv(this,n)}}function iv(e,t){if(t&&("object"===Xy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function sv(e){return(sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Yy.prototype.vpcExtId=void 0;var av=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rv(e,t)}(s,e);var t,n,r,o=ov(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.RoutingPolicyClearCounterResult",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.RoutingPolicyClearCounterResult"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,we.constructFromObject(e,t,!0),e.hasOwnProperty("clearCountersResponse")&&null!==e.clearCountersResponse&&void 0!==e.clearCountersResponse&&t.setClearCountersResponse(e.clearCountersResponse),!n))for(var r in t.$unknownFields=Zy({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getClearCountersResponse",value:function(){return this.clearCountersResponse}},{key:"setClearCountersResponse",value:function(e){this.clearCountersResponse=e}},{key:"toJson",value:function(e){return Zy(!1===e?Zy(Zy(Zy(Zy({},void 0!==this.getClearCountersResponse()&&null!==this.getClearCountersResponse()?{clearCountersResponse:this.getClearCountersResponse()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Zy(Zy(Zy({},void 0!==this.getClearCountersResponse()&&null!==this.getClearCountersResponse()?{clearCountersResponse:this.getClearCountersResponse()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"clearCountersResponse"!==t||void 0!==this.clearCountersResponse&&null!==this.clearCountersResponse?new f(t,"no such property exists"):new f("clearCountersResponse","undefined or null")}}])&&tv(t.prototype,n),r&&tv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(we);function uv(e){return(uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach((function(t){fv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fv(e,t,n){return(t=pv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pv(r.key),r)}}function pv(e){var t=function(e,t){if("object"!==uv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uv(t)?t:String(t)}function hv(e,t){return(hv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gv(e);if(t){var o=gv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vv(this,n)}}function vv(e,t){if(t&&("object"===uv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function gv(e){return(gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}av.prototype.clearCountersResponse=void 0;var bv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hv(e,t)}(s,e);var t,n,r,o=yv(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.RoutingPolicyClearCountersApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.RoutingPolicyClearCountersApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.stats.RoutingPolicyClearCounterResult"===n)t.setData(av.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=lv({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof av?"networking.v4.stats.RoutingPolicyClearCounterResult":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return lv(!1===e?lv(lv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):lv(lv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&dv(t.prototype,n),r&&dv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function wv(e){return(wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ov(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mv(Object(n),!0).forEach((function(t){$v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $v(e,t,n){return(t=jv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jv(r.key),r)}}function jv(e){var t=function(e,t){if("object"!==wv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wv(t)?t:String(t)}bv.prototype.metadata=void 0,bv.prototype.data=void 0,bv.prototype.$reserved=void 0,bv.prototype.$objectType=void 0,bv.prototype.$unknownFields=void 0;var Pv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"clearAllRoutingPolicyCounter",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof Yy&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling clearAllRoutingPolicyCounter");var o={},i={},s=Ov(Ov({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=bv;return this.apiClient.callApi("/api/networking/v4.0.a1/stats/routing-policies/$actions/clear","POST",o,i,s,a,n,u,c,l,f)}},{key:"clearRoutingPolicyCounter",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling clearRoutingPolicyCounter");var r={extId:e},o={},i=Ov(Ov({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=bv;return this.apiClient.callApi("/api/networking/v4.0.a1/stats/routing-policies/{extId}/$actions/clear","POST",r,o,i,s,n,a,u,c,l)}}])&&kv(t.prototype,n),o&&kv(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sv(e){return(Sv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tv(Object(n),!0).forEach((function(t){Fv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fv(e,t,n){return(t=Dv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dv(r.key),r)}}function Dv(e){var t=function(e,t){if("object"!==Sv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sv(t)?t:String(t)}var Ev=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.DhcpOptions",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.DhcpOptions"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("domainNameServers")&&null!==t.domainNameServers&&void 0!==t.domainNameServers){for(s=[],r=t.domainNameServers,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setDomainNameServers(s)}if(t.hasOwnProperty("domainName")&&null!==t.domainName&&void 0!==t.domainName&&n.setDomainName(t.domainName),t.hasOwnProperty("searchDomains")&&null!==t.searchDomains&&void 0!==t.searchDomains){for(s=[],r=t.searchDomains,i=0;i<r.length;i++)s.push(r[i]);n.setSearchDomains(s)}if(t.hasOwnProperty("tftpServerName")&&null!==t.tftpServerName&&void 0!==t.tftpServerName&&n.setTftpServerName(t.tftpServerName),t.hasOwnProperty("bootFileName")&&null!==t.bootFileName&&void 0!==t.bootFileName&&n.setBootFileName(t.bootFileName),t.hasOwnProperty("ntpServers")&&null!==t.ntpServers&&void 0!==t.ntpServers){for(s=[],r=t.ntpServers,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setNtpServers(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Iv({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getDomainNameServers",value:function(){return this.domainNameServers}},{key:"setDomainNameServers",value:function(e){this.domainNameServers=e}},{key:"getDomainName",value:function(){return this.domainName}},{key:"setDomainName",value:function(e){this.domainName=e}},{key:"getSearchDomains",value:function(){return this.searchDomains}},{key:"setSearchDomains",value:function(e){this.searchDomains=e}},{key:"getTftpServerName",value:function(){return this.tftpServerName}},{key:"setTftpServerName",value:function(e){this.tftpServerName=e}},{key:"getBootFileName",value:function(){return this.bootFileName}},{key:"setBootFileName",value:function(e){this.bootFileName=e}},{key:"getNtpServers",value:function(){return this.ntpServers}},{key:"setNtpServers",value:function(e){this.ntpServers=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Iv(!1===e?Iv(Iv(Iv(Iv(Iv(Iv({},void 0!==this.getDomainNameServers()&&null!==this.getDomainNameServers()?{domainNameServers:this.getDomainNameServers().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDomainName()&&null!==this.getDomainName()?{domainName:this.getDomainName()}:{}),void 0!==this.getSearchDomains()&&null!==this.getSearchDomains()?{searchDomains:this.getSearchDomains()}:{}),void 0!==this.getTftpServerName()&&null!==this.getTftpServerName()?{tftpServerName:this.getTftpServerName()}:{}),void 0!==this.getBootFileName()&&null!==this.getBootFileName()?{bootFileName:this.getBootFileName()}:{}),void 0!==this.getNtpServers()&&null!==this.getNtpServers()?{ntpServers:this.getNtpServers().map((function(e){return e.toJson(!1)}))}:{}):Iv(Iv(Iv(Iv(Iv(Iv({},void 0!==this.getDomainNameServers()&&null!==this.getDomainNameServers()?{domainNameServers:this.getDomainNameServers().map((function(e){return e.toJson()}))}:{}),void 0!==this.getDomainName()&&null!==this.getDomainName()?{domainName:this.getDomainName()}:{}),void 0!==this.getSearchDomains()&&null!==this.getSearchDomains()?{searchDomains:this.getSearchDomains()}:{}),void 0!==this.getTftpServerName()&&null!==this.getTftpServerName()?{tftpServerName:this.getTftpServerName()}:{}),void 0!==this.getBootFileName()&&null!==this.getBootFileName()?{bootFileName:this.getBootFileName()}:{}),void 0!==this.getNtpServers()&&null!==this.getNtpServers()?{ntpServers:this.getNtpServers().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("domainNameServers"===t){if(void 0===this.domainNameServers||null===this.domainNameServers)return new f("domainNameServers","undefined or null");if(!u.validateMaxItems(this.domainNameServers,32))return new f("domainNameServers","does not satisfy required maxItems constraint: 32")}if("domainName"===t){if(void 0===this.domainName||null===this.domainName)return new f("domainName","undefined or null");if(!u.validatePattern(this.domainName,/^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/))return new f("domainName","does not satisfy required pattern: /^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/")}if("searchDomains"===t){if(void 0===this.searchDomains||null===this.searchDomains)return new f("searchDomains","undefined or null");if(!u.validateMaxItems(this.searchDomains,32))return new f("searchDomains","does not satisfy required maxItems constraint: 32")}if("tftpServerName"===t&&(void 0===this.tftpServerName||null===this.tftpServerName))return new f("tftpServerName","undefined or null");if("bootFileName"===t&&(void 0===this.bootFileName||null===this.bootFileName))return new f("bootFileName","undefined or null");if("ntpServers"===t){if(void 0===this.ntpServers||null===this.ntpServers)return new f("ntpServers","undefined or null");if(!u.validateMaxItems(this.ntpServers,32))return new f("ntpServers","does not satisfy required maxItems constraint: 32")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Rv(t.prototype,n),r&&Rv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Av(e){return(Av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nv(Object(n),!0).forEach((function(t){Mv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mv(e,t,n){return(t=Lv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lv(r.key),r)}}function Lv(e){var t=function(e,t){if("object"!==Av(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Av(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Av(t)?t:String(t)}Ev.prototype.domainNameServers=void 0,Ev.prototype.domainName=void 0,Ev.prototype.searchDomains=void 0,Ev.prototype.tftpServerName=void 0,Ev.prototype.bootFileName=void 0,Ev.prototype.ntpServers=void 0,Ev.prototype.$reserved=void 0,Ev.prototype.$objectType=void 0,Ev.prototype.$unknownFields=void 0;var _v=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startIp=t,this.endIp=n,this.$objectType="networking.v4.config.IPv4Pool",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPv4Pool"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("startIp")&&null!==t.startIp&&void 0!==t.startIp&&n.setStartIp(Ce.constructFromObject(t.startIp)),t.hasOwnProperty("endIp")&&null!==t.endIp&&void 0!==t.endIp&&n.setEndIp(Ce.constructFromObject(t.endIp)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=xv({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getStartIp",value:function(){return this.startIp}},{key:"setStartIp",value:function(e){this.startIp=e}},{key:"getEndIp",value:function(){return this.endIp}},{key:"setEndIp",value:function(e){this.endIp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xv(!1===e?xv(xv({},void 0!==this.getStartIp()&&null!==this.getStartIp()?{startIp:this.getStartIp().toJson(!1)}:{}),void 0!==this.getEndIp()&&null!==this.getEndIp()?{endIp:this.getEndIp().toJson(!1)}:{}):xv(xv({},void 0!==this.getStartIp()&&null!==this.getStartIp()?{startIp:this.getStartIp().toJson()}:{}),void 0!==this.getEndIp()&&null!==this.getEndIp()?{endIp:this.getEndIp().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["startIp","endIp"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"startIp"!==t||void 0!==this.startIp&&null!==this.startIp?"endIp"!==t||void 0!==this.endIp&&null!==this.endIp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("endIp","undefined or null"):new f("startIp","undefined or null")}}])&&Cv(t.prototype,n),r&&Cv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jv(e){return(Jv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vv(Object(n),!0).forEach((function(t){Gv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gv(e,t,n){return(t=qv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qv(r.key),r)}}function qv(e){var t=function(e,t){if("object"!==Jv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jv(t)?t:String(t)}_v.prototype.startIp=void 0,_v.prototype.endIp=void 0,_v.prototype.$reserved=void 0,_v.prototype.$objectType=void 0,_v.prototype.$unknownFields=void 0;var Wv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ipSubnet=t,this.$objectType="networking.v4.config.IPv4Config",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPv4Config"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ipSubnet")&&null!==t.ipSubnet&&void 0!==t.ipSubnet&&n.setIpSubnet(ot.constructFromObject(t.ipSubnet)),t.hasOwnProperty("defaultGatewayIp")&&null!==t.defaultGatewayIp&&void 0!==t.defaultGatewayIp&&n.setDefaultGatewayIp(Ce.constructFromObject(t.defaultGatewayIp)),t.hasOwnProperty("dhcpServerAddress")&&null!==t.dhcpServerAddress&&void 0!==t.dhcpServerAddress&&n.setDhcpServerAddress(Ce.constructFromObject(t.dhcpServerAddress)),t.hasOwnProperty("poolList")&&null!==t.poolList&&void 0!==t.poolList){for(s=[],r=t.poolList,i=0;i<r.length;i++)o=_v.constructFromObject(r[i],void 0),s.push(o);n.setPoolList(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Uv({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getIpSubnet",value:function(){return this.ipSubnet}},{key:"setIpSubnet",value:function(e){this.ipSubnet=e}},{key:"getDefaultGatewayIp",value:function(){return this.defaultGatewayIp}},{key:"setDefaultGatewayIp",value:function(e){this.defaultGatewayIp=e}},{key:"getDhcpServerAddress",value:function(){return this.dhcpServerAddress}},{key:"setDhcpServerAddress",value:function(e){this.dhcpServerAddress=e}},{key:"getPoolList",value:function(){return this.poolList}},{key:"setPoolList",value:function(e){this.poolList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uv(!1===e?Uv(Uv(Uv(Uv({},void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson(!1)}:{}),void 0!==this.getDefaultGatewayIp()&&null!==this.getDefaultGatewayIp()?{defaultGatewayIp:this.getDefaultGatewayIp().toJson(!1)}:{}),void 0!==this.getDhcpServerAddress()&&null!==this.getDhcpServerAddress()?{dhcpServerAddress:this.getDhcpServerAddress().toJson(!1)}:{}),void 0!==this.getPoolList()&&null!==this.getPoolList()?{poolList:this.getPoolList().map((function(e){return e.toJson(!1)}))}:{}):Uv(Uv(Uv(Uv({},void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson()}:{}),void 0!==this.getDefaultGatewayIp()&&null!==this.getDefaultGatewayIp()?{defaultGatewayIp:this.getDefaultGatewayIp().toJson()}:{}),void 0!==this.getDhcpServerAddress()&&null!==this.getDhcpServerAddress()?{dhcpServerAddress:this.getDhcpServerAddress().toJson()}:{}),void 0!==this.getPoolList()&&null!==this.getPoolList()?{poolList:this.getPoolList().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["ipSubnet"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipSubnet"!==t||void 0!==this.ipSubnet&&null!==this.ipSubnet?"defaultGatewayIp"!==t||void 0!==this.defaultGatewayIp&&null!==this.defaultGatewayIp?"dhcpServerAddress"!==t||void 0!==this.dhcpServerAddress&&null!==this.dhcpServerAddress?"poolList"!==t||void 0!==this.poolList&&null!==this.poolList?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("poolList","undefined or null"):new f("dhcpServerAddress","undefined or null"):new f("defaultGatewayIp","undefined or null"):new f("ipSubnet","undefined or null")}}])&&Bv(t.prototype,n),r&&Bv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kv(e){return(Kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hv(Object(n),!0).forEach((function(t){Yv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yv(e,t,n){return(t=Qv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qv(r.key),r)}}function Qv(e){var t=function(e,t){if("object"!==Kv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kv(t)?t:String(t)}Wv.prototype.ipSubnet=void 0,Wv.prototype.defaultGatewayIp=void 0,Wv.prototype.dhcpServerAddress=void 0,Wv.prototype.poolList=void 0,Wv.prototype.$reserved=void 0,Wv.prototype.$objectType=void 0,Wv.prototype.$unknownFields=void 0;var Zv=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startIp=t,this.endIp=n,this.$objectType="networking.v4.config.IPv6Pool",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPv6Pool"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("startIp")&&null!==t.startIp&&void 0!==t.startIp&&n.setStartIp(Be.constructFromObject(t.startIp)),t.hasOwnProperty("endIp")&&null!==t.endIp&&void 0!==t.endIp&&n.setEndIp(Be.constructFromObject(t.endIp)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zv({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getStartIp",value:function(){return this.startIp}},{key:"setStartIp",value:function(e){this.startIp=e}},{key:"getEndIp",value:function(){return this.endIp}},{key:"setEndIp",value:function(e){this.endIp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zv(!1===e?zv(zv({},void 0!==this.getStartIp()&&null!==this.getStartIp()?{startIp:this.getStartIp().toJson(!1)}:{}),void 0!==this.getEndIp()&&null!==this.getEndIp()?{endIp:this.getEndIp().toJson(!1)}:{}):zv(zv({},void 0!==this.getStartIp()&&null!==this.getStartIp()?{startIp:this.getStartIp().toJson()}:{}),void 0!==this.getEndIp()&&null!==this.getEndIp()?{endIp:this.getEndIp().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["startIp","endIp"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"startIp"!==t||void 0!==this.startIp&&null!==this.startIp?"endIp"!==t||void 0!==this.endIp&&null!==this.endIp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("endIp","undefined or null"):new f("startIp","undefined or null")}}])&&Xv(t.prototype,n),r&&Xv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function eg(e){return(eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach((function(t){rg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rg(e,t,n){return(t=ig(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function og(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ig(r.key),r)}}function ig(e){var t=function(e,t){if("object"!==eg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eg(t)?t:String(t)}Zv.prototype.startIp=void 0,Zv.prototype.endIp=void 0,Zv.prototype.$reserved=void 0,Zv.prototype.$objectType=void 0,Zv.prototype.$unknownFields=void 0;var sg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ipSubnet=t,this.$objectType="networking.v4.config.IPv6Config",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPv6Config"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ipSubnet")&&null!==t.ipSubnet&&void 0!==t.ipSubnet&&n.setIpSubnet(ft.constructFromObject(t.ipSubnet)),t.hasOwnProperty("defaultGatewayIp")&&null!==t.defaultGatewayIp&&void 0!==t.defaultGatewayIp&&n.setDefaultGatewayIp(Be.constructFromObject(t.defaultGatewayIp)),t.hasOwnProperty("dhcpServerAddress")&&null!==t.dhcpServerAddress&&void 0!==t.dhcpServerAddress&&n.setDhcpServerAddress(Be.constructFromObject(t.dhcpServerAddress)),t.hasOwnProperty("poolList")&&null!==t.poolList&&void 0!==t.poolList){for(s=[],r=t.poolList,i=0;i<r.length;i++)o=Zv.constructFromObject(r[i],void 0),s.push(o);n.setPoolList(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=ng({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getIpSubnet",value:function(){return this.ipSubnet}},{key:"setIpSubnet",value:function(e){this.ipSubnet=e}},{key:"getDefaultGatewayIp",value:function(){return this.defaultGatewayIp}},{key:"setDefaultGatewayIp",value:function(e){this.defaultGatewayIp=e}},{key:"getDhcpServerAddress",value:function(){return this.dhcpServerAddress}},{key:"setDhcpServerAddress",value:function(e){this.dhcpServerAddress=e}},{key:"getPoolList",value:function(){return this.poolList}},{key:"setPoolList",value:function(e){this.poolList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ng(!1===e?ng(ng(ng(ng({},void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson(!1)}:{}),void 0!==this.getDefaultGatewayIp()&&null!==this.getDefaultGatewayIp()?{defaultGatewayIp:this.getDefaultGatewayIp().toJson(!1)}:{}),void 0!==this.getDhcpServerAddress()&&null!==this.getDhcpServerAddress()?{dhcpServerAddress:this.getDhcpServerAddress().toJson(!1)}:{}),void 0!==this.getPoolList()&&null!==this.getPoolList()?{poolList:this.getPoolList().map((function(e){return e.toJson(!1)}))}:{}):ng(ng(ng(ng({},void 0!==this.getIpSubnet()&&null!==this.getIpSubnet()?{ipSubnet:this.getIpSubnet().toJson()}:{}),void 0!==this.getDefaultGatewayIp()&&null!==this.getDefaultGatewayIp()?{defaultGatewayIp:this.getDefaultGatewayIp().toJson()}:{}),void 0!==this.getDhcpServerAddress()&&null!==this.getDhcpServerAddress()?{dhcpServerAddress:this.getDhcpServerAddress().toJson()}:{}),void 0!==this.getPoolList()&&null!==this.getPoolList()?{poolList:this.getPoolList().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["ipSubnet"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipSubnet"!==t||void 0!==this.ipSubnet&&null!==this.ipSubnet?"defaultGatewayIp"!==t||void 0!==this.defaultGatewayIp&&null!==this.defaultGatewayIp?"dhcpServerAddress"!==t||void 0!==this.dhcpServerAddress&&null!==this.dhcpServerAddress?"poolList"!==t||void 0!==this.poolList&&null!==this.poolList?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("poolList","undefined or null"):new f("dhcpServerAddress","undefined or null"):new f("defaultGatewayIp","undefined or null"):new f("ipSubnet","undefined or null")}}])&&og(t.prototype,n),r&&og(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ag(e){return(ag="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(n),!0).forEach((function(t){lg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ug(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lg(e,t,n){return(t=dg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dg(r.key),r)}}function dg(e){var t=function(e,t){if("object"!==ag(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ag(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ag(t)?t:String(t)}sg.prototype.ipSubnet=void 0,sg.prototype.defaultGatewayIp=void 0,sg.prototype.dhcpServerAddress=void 0,sg.prototype.poolList=void 0,sg.prototype.$reserved=void 0,sg.prototype.$objectType=void 0,sg.prototype.$unknownFields=void 0;var pg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.IPConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IPConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Wv.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(sg.constructFromObject(t.ipv6)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=cg({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return cg(!1===e?cg(cg({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}):cg(cg({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson()}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipv6","undefined or null"):new f("ipv4","undefined or null")}}])&&fg(t.prototype,n),r&&fg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();pg.prototype.ipv4=void 0,pg.prototype.ipv6=void 0,pg.prototype.$reserved=void 0,pg.prototype.$objectType=void 0,pg.prototype.$unknownFields=void 0;var hg={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OVERLAY:"OVERLAY",VLAN:"VLAN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(hg).find((function(t){return hg[t]===e}));return null==t?hg.$UNKNOWN:hg[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case hg.$UNKNOWN:case hg.$REDACTED:case hg.OVERLAY:case hg.VLAN:return;default:throw new Error("Invalid : must be SubnetType.{ $UNKNOWN|$REDACTED|OVERLAY|VLAN }")}}};Object.freeze(hg);var yg=hg;function vg(e){return(vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gg(Object(n),!0).forEach((function(t){wg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wg(e,t,n){return(t=Og(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Og(r.key),r)}}function Og(e){var t=function(e,t){if("object"!==vg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vg(t)?t:String(t)}function $g(e,t){return($g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pg(e);if(t){var o=Pg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jg(this,n)}}function jg(e,t){if(t&&("object"===vg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pg(e){return(Pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$g(e,t)}(s,e);var t,n,r,o=kg(s);function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=o.call(this)).name=e,n.subnetType=t,n.$objectType="networking.v4.config.Subnet",n.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Subnet"},n.$unknownFields={},n}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("subnetType")&&null!==e.subnetType&&void 0!==e.subnetType&&t.setSubnetType(yg.constructFromObject(e.subnetType)),e.hasOwnProperty("networkId")&&null!==e.networkId&&void 0!==e.networkId&&t.setNetworkId(e.networkId),e.hasOwnProperty("dhcpOptions")&&null!==e.dhcpOptions&&void 0!==e.dhcpOptions&&t.setDhcpOptions(Ev.constructFromObject(e.dhcpOptions)),e.hasOwnProperty("ipConfig")&&null!==e.ipConfig&&void 0!==e.ipConfig){for(i=[],n=e.ipConfig,o=0;o<n.length;o++)r=pg.constructFromObject(n[o],void 0),i.push(r);t.setIpConfig(i)}if(e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&t.setClusterReference(e.clusterReference),e.hasOwnProperty("virtualSwitchReference")&&null!==e.virtualSwitchReference&&void 0!==e.virtualSwitchReference&&t.setVirtualSwitchReference(e.virtualSwitchReference),e.hasOwnProperty("vpcReference")&&null!==e.vpcReference&&void 0!==e.vpcReference&&t.setVpcReference(e.vpcReference),e.hasOwnProperty("enableNat")&&null!==e.enableNat&&void 0!==e.enableNat&&t.setEnableNat(e.enableNat),e.hasOwnProperty("isExternal")&&null!==e.isExternal&&void 0!==e.isExternal&&t.setIsExternal(e.isExternal),e.hasOwnProperty("reservedIpAddresses")&&null!==e.reservedIpAddresses&&void 0!==e.reservedIpAddresses){for(i=[],n=e.reservedIpAddresses,o=0;o<n.length;o++)r=Xe.constructFromObject(n[o],void 0),i.push(r);t.setReservedIpAddresses(i)}if(e.hasOwnProperty("dynamicIpAddresses")&&null!==e.dynamicIpAddresses&&void 0!==e.dynamicIpAddresses){for(i=[],n=e.dynamicIpAddresses,o=0;o<n.length;o++)r=Xe.constructFromObject(n[o],void 0),i.push(r);t.setDynamicIpAddresses(i)}if(e.hasOwnProperty("networkFunctionChainReference")&&null!==e.networkFunctionChainReference&&void 0!==e.networkFunctionChainReference&&t.setNetworkFunctionChainReference(e.networkFunctionChainReference),e.hasOwnProperty("bridgeName")&&null!==e.bridgeName&&void 0!==e.bridgeName&&t.setBridgeName(e.bridgeName),e.hasOwnProperty("advancedNetworking")&&null!==e.advancedNetworking&&void 0!==e.advancedNetworking&&t.setAdvancedNetworking(e.advancedNetworking),!a)for(var u in t.$unknownFields=bg({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getSubnetType",value:function(){return this.subnetType}},{key:"setSubnetType",value:function(e){this.subnetType=e}},{key:"getNetworkId",value:function(){return this.networkId}},{key:"setNetworkId",value:function(e){this.networkId=e}},{key:"getDhcpOptions",value:function(){return this.dhcpOptions}},{key:"setDhcpOptions",value:function(e){this.dhcpOptions=e}},{key:"getIpConfig",value:function(){return this.ipConfig}},{key:"setIpConfig",value:function(e){this.ipConfig=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getVirtualSwitchReference",value:function(){return this.virtualSwitchReference}},{key:"setVirtualSwitchReference",value:function(e){this.virtualSwitchReference=e}},{key:"getVpcReference",value:function(){return this.vpcReference}},{key:"setVpcReference",value:function(e){this.vpcReference=e}},{key:"getEnableNat",value:function(){return this.enableNat}},{key:"setEnableNat",value:function(e){this.enableNat=e}},{key:"getIsExternal",value:function(){return this.isExternal}},{key:"setIsExternal",value:function(e){this.isExternal=e}},{key:"getReservedIpAddresses",value:function(){return this.reservedIpAddresses}},{key:"setReservedIpAddresses",value:function(e){this.reservedIpAddresses=e}},{key:"getDynamicIpAddresses",value:function(){return this.dynamicIpAddresses}},{key:"setDynamicIpAddresses",value:function(e){this.dynamicIpAddresses=e}},{key:"getNetworkFunctionChainReference",value:function(){return this.networkFunctionChainReference}},{key:"setNetworkFunctionChainReference",value:function(e){this.networkFunctionChainReference=e}},{key:"getBridgeName",value:function(){return this.bridgeName}},{key:"setBridgeName",value:function(e){this.bridgeName=e}},{key:"getAdvancedNetworking",value:function(){return this.advancedNetworking}},{key:"setAdvancedNetworking",value:function(e){this.advancedNetworking=e}},{key:"toJson",value:function(e){return bg(!1===e?bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getSubnetType()&&null!==this.getSubnetType()?{subnetType:this.getSubnetType()}:{}),void 0!==this.getNetworkId()&&null!==this.getNetworkId()?{networkId:this.getNetworkId()}:{}),void 0!==this.getDhcpOptions()&&null!==this.getDhcpOptions()?{dhcpOptions:this.getDhcpOptions().toJson(!1)}:{}),void 0!==this.getIpConfig()&&null!==this.getIpConfig()?{ipConfig:this.getIpConfig().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getVirtualSwitchReference()&&null!==this.getVirtualSwitchReference()?{virtualSwitchReference:this.getVirtualSwitchReference()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),void 0!==this.getEnableNat()&&null!==this.getEnableNat()?{enableNat:this.getEnableNat()}:{}),void 0!==this.getIsExternal()&&null!==this.getIsExternal()?{isExternal:this.getIsExternal()}:{}),void 0!==this.getReservedIpAddresses()&&null!==this.getReservedIpAddresses()?{reservedIpAddresses:this.getReservedIpAddresses().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getDynamicIpAddresses()&&null!==this.getDynamicIpAddresses()?{dynamicIpAddresses:this.getDynamicIpAddresses().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNetworkFunctionChainReference()&&null!==this.getNetworkFunctionChainReference()?{networkFunctionChainReference:this.getNetworkFunctionChainReference()}:{}),void 0!==this.getBridgeName()&&null!==this.getBridgeName()?{bridgeName:this.getBridgeName()}:{}),void 0!==this.getAdvancedNetworking()&&null!==this.getAdvancedNetworking()?{advancedNetworking:this.getAdvancedNetworking()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg(bg({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getSubnetType()&&null!==this.getSubnetType()?{subnetType:this.getSubnetType()}:{}),void 0!==this.getNetworkId()&&null!==this.getNetworkId()?{networkId:this.getNetworkId()}:{}),void 0!==this.getDhcpOptions()&&null!==this.getDhcpOptions()?{dhcpOptions:this.getDhcpOptions().toJson()}:{}),void 0!==this.getIpConfig()&&null!==this.getIpConfig()?{ipConfig:this.getIpConfig().map((function(e){return e.toJson()}))}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getVirtualSwitchReference()&&null!==this.getVirtualSwitchReference()?{virtualSwitchReference:this.getVirtualSwitchReference()}:{}),void 0!==this.getVpcReference()&&null!==this.getVpcReference()?{vpcReference:this.getVpcReference()}:{}),void 0!==this.getEnableNat()&&null!==this.getEnableNat()?{enableNat:this.getEnableNat()}:{}),void 0!==this.getIsExternal()&&null!==this.getIsExternal()?{isExternal:this.getIsExternal()}:{}),void 0!==this.getReservedIpAddresses()&&null!==this.getReservedIpAddresses()?{reservedIpAddresses:this.getReservedIpAddresses().map((function(e){return e.toJson()}))}:{}),void 0!==this.getDynamicIpAddresses()&&null!==this.getDynamicIpAddresses()?{dynamicIpAddresses:this.getDynamicIpAddresses().map((function(e){return e.toJson()}))}:{}),void 0!==this.getNetworkFunctionChainReference()&&null!==this.getNetworkFunctionChainReference()?{networkFunctionChainReference:this.getNetworkFunctionChainReference()}:{}),void 0!==this.getBridgeName()&&null!==this.getBridgeName()?{bridgeName:this.getBridgeName()}:{}),void 0!==this.getAdvancedNetworking()&&null!==this.getAdvancedNetworking()?{advancedNetworking:this.getAdvancedNetworking()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name","subnetType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,128))return new f("name","does not satisfy required maxLength constraint: 128")}if("description"===t){if(void 0===this.description||null===this.description)return new f("description","undefined or null");if(!u.validateMaxLength(this.description,1e3))return new f("description","does not satisfy required maxLength constraint: 1000")}if("subnetType"===t&&(void 0===this.subnetType||null===this.subnetType))return new f("subnetType","undefined or null");if("networkId"===t){if(void 0===this.networkId||null===this.networkId)return new f("networkId","undefined or null");if(!u.validateMaximum(this.networkId,16777215))return new f("networkId","does not satisfy required maximum constraint: 16777215");if(!u.validateMinimum(this.networkId,0))return new f("networkId","does not satisfy required minimum constraint: 0")}if("dhcpOptions"===t&&(void 0===this.dhcpOptions||null===this.dhcpOptions))return new f("dhcpOptions","undefined or null");if("ipConfig"===t){if(void 0===this.ipConfig||null===this.ipConfig)return new f("ipConfig","undefined or null");if(!u.validateMaxItems(this.ipConfig,1))return new f("ipConfig","does not satisfy required maxItems constraint: 1")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new f("clusterReference","undefined or null");if(!u.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("virtualSwitchReference"===t){if(void 0===this.virtualSwitchReference||null===this.virtualSwitchReference)return new f("virtualSwitchReference","undefined or null");if(!u.validatePattern(this.virtualSwitchReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("virtualSwitchReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vpcReference"===t){if(void 0===this.vpcReference||null===this.vpcReference)return new f("vpcReference","undefined or null");if(!u.validatePattern(this.vpcReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vpcReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("enableNat"===t&&(void 0===this.enableNat||null===this.enableNat))return new f("enableNat","undefined or null");if("isExternal"===t&&(void 0===this.isExternal||null===this.isExternal))return new f("isExternal","undefined or null");if("reservedIpAddresses"===t&&(void 0===this.reservedIpAddresses||null===this.reservedIpAddresses))return new f("reservedIpAddresses","undefined or null");if("dynamicIpAddresses"===t&&(void 0===this.dynamicIpAddresses||null===this.dynamicIpAddresses))return new f("dynamicIpAddresses","undefined or null");if("networkFunctionChainReference"===t){if(void 0===this.networkFunctionChainReference||null===this.networkFunctionChainReference)return new f("networkFunctionChainReference","undefined or null");if(!u.validatePattern(this.networkFunctionChainReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("networkFunctionChainReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("bridgeName"===t){if(void 0===this.bridgeName||null===this.bridgeName)return new f("bridgeName","undefined or null");if(!u.validateMaxLength(this.bridgeName,128))return new f("bridgeName","does not satisfy required maxLength constraint: 128")}return"advancedNetworking"!==t||void 0!==this.advancedNetworking&&null!==this.advancedNetworking?new f(t,"no such property exists"):new f("advancedNetworking","undefined or null")}}])&&mg(t.prototype,n),r&&mg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function Tg(e){return(Tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ig(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach((function(t){Rg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rg(e,t,n){return(t=Eg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eg(r.key),r)}}function Eg(e){var t=function(e,t){if("object"!==Tg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Tg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Tg(t)?t:String(t)}function Ag(e,t){return(Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ng(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mg(e);if(t){var o=Mg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xg(this,n)}}function xg(e,t){if(t&&("object"===Tg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mg(e){return(Mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Sg.prototype.name=void 0,Sg.prototype.description=void 0,Sg.prototype.subnetType=void 0,Sg.prototype.networkId=void 0,Sg.prototype.dhcpOptions=void 0,Sg.prototype.ipConfig=void 0,Sg.prototype.clusterReference=void 0,Sg.prototype.virtualSwitchReference=void 0,Sg.prototype.vpcReference=void 0,Sg.prototype.enableNat=void 0,Sg.prototype.isExternal=void 0,Sg.prototype.reservedIpAddresses=void 0,Sg.prototype.dynamicIpAddresses=void 0,Sg.prototype.networkFunctionChainReference=void 0,Sg.prototype.bridgeName=void 0,Sg.prototype.advancedNetworking=void 0;var Cg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ag(e,t)}(s,e);var t,n,r,o=Ng(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.SubnetListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.SubnetListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.Subnet>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=Sg.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=Fg({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof Sg?"List<networking.v4.config.Subnet>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fg(!1===e?Fg(Fg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Fg(Fg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Dg(t.prototype,n),r&&Dg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Lg(e){return(Lg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_g(Object(n),!0).forEach((function(t){Vg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vg(e,t,n){return(t=Gg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ug(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gg(r.key),r)}}function Gg(e){var t=function(e,t){if("object"!==Lg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lg(t)?t:String(t)}function Bg(e,t){return(Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kg(e);if(t){var o=Kg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wg(this,n)}}function Wg(e,t){if(t&&("object"===Lg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kg(e){return(Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Cg.prototype.metadata=void 0,Cg.prototype.data=void 0,Cg.prototype.$reserved=void 0,Cg.prototype.$objectType=void 0,Cg.prototype.$unknownFields=void 0;var Hg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}(s,e);var t,n,r,o=qg(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.SubnetApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.SubnetApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.Subnet"===n)t.setData(Sg.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Jg({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Sg?"networking.v4.config.Subnet":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Jg(!1===e?Jg(Jg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Jg(Jg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Ug(t.prototype,n),r&&Ug(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function zg(e){return(zg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach((function(t){Qg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qg(e,t,n){return(t=eb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eb(r.key),r)}}function eb(e){var t=function(e,t){if("object"!==zg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zg(t)?t:String(t)}Hg.prototype.metadata=void 0,Hg.prototype.data=void 0,Hg.prototype.$reserved=void 0,Hg.prototype.$objectType=void 0,Hg.prototype.$unknownFields=void 0;var tb=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createSubnet",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof Sg&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createSubnet");var o={},i={},s=Xg(Xg({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteSubnet",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteSubnet");var r={extId:e},o={},i=Xg(Xg({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getSubnet",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getSubnet");var r={extId:e},o={},i=Xg(Xg({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Hg;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listSubnets",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=Xg(Xg(Xg(Xg({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=Xg(Xg({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Cg;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateSubnet",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof Sg&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateSubnet");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateSubnet");var i={extId:e},s={},a=Xg(Xg({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&Zg(t.prototype,n),o&&Zg(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function nb(e){return(nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rb(Object(n),!0).forEach((function(t){ib(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ib(e,t,n){return(t=ab(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ab(r.key),r)}}function ab(e){var t=function(e,t){if("object"!==nb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nb(t)?t:String(t)}var ub=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.nicUuid=t,this.networkUuid=n,this.$objectType="networking.v4.config.SubnetMigrationItem",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.SubnetMigrationItem"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("nicUuid")&&null!==t.nicUuid&&void 0!==t.nicUuid&&n.setNicUuid(t.nicUuid),t.hasOwnProperty("networkUuid")&&null!==t.networkUuid&&void 0!==t.networkUuid&&n.setNetworkUuid(t.networkUuid),t.hasOwnProperty("requestedIpAddresses")&&null!==t.requestedIpAddresses&&void 0!==t.requestedIpAddresses){for(s=[],r=t.requestedIpAddresses,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setRequestedIpAddresses(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=ob({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getNicUuid",value:function(){return this.nicUuid}},{key:"setNicUuid",value:function(e){this.nicUuid=e}},{key:"getNetworkUuid",value:function(){return this.networkUuid}},{key:"setNetworkUuid",value:function(e){this.networkUuid=e}},{key:"getRequestedIpAddresses",value:function(){return this.requestedIpAddresses}},{key:"setRequestedIpAddresses",value:function(e){this.requestedIpAddresses=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ob(ob(ob(ob({},void 0!==this.getNicUuid()&&null!==this.getNicUuid()?{nicUuid:this.getNicUuid()}:{}),void 0!==this.getNetworkUuid()&&null!==this.getNetworkUuid()?{networkUuid:this.getNetworkUuid()}:{}),!1===e?void 0!==this.getRequestedIpAddresses()&&null!==this.getRequestedIpAddresses()?{requestedIpAddresses:this.getRequestedIpAddresses().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getRequestedIpAddresses()&&null!==this.getRequestedIpAddresses()?{requestedIpAddresses:this.getRequestedIpAddresses().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["nicUuid","networkUuid"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("nicUuid"===t){if(void 0===this.nicUuid||null===this.nicUuid)return new f("nicUuid","undefined or null");if(!u.validatePattern(this.nicUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("nicUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("networkUuid"===t){if(void 0===this.networkUuid||null===this.networkUuid)return new f("networkUuid","undefined or null");if(!u.validatePattern(this.networkUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("networkUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"requestedIpAddresses"!==t||void 0!==this.requestedIpAddresses&&null!==this.requestedIpAddresses?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("requestedIpAddresses","undefined or null")}}])&&sb(t.prototype,n),r&&sb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function cb(e){return(cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lb(Object(n),!0).forEach((function(t){db(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function db(e,t,n){return(t=hb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hb(r.key),r)}}function hb(e){var t=function(e,t){if("object"!==cb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cb(t)?t:String(t)}ub.prototype.nicUuid=void 0,ub.prototype.networkUuid=void 0,ub.prototype.requestedIpAddresses=void 0,ub.prototype.$reserved=void 0,ub.prototype.$objectType=void 0,ub.prototype.$unknownFields=void 0;var yb=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.subnetMigrationInput=t,this.$objectType="networking.v4.config.SubnetMigration",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.SubnetMigration"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("subnetMigrationInput")&&null!==t.subnetMigrationInput&&void 0!==t.subnetMigrationInput){for(s=[],r=t.subnetMigrationInput,i=0;i<r.length;i++)o=ub.constructFromObject(r[i],void 0),s.push(o);n.setSubnetMigrationInput(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=fb({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getSubnetMigrationInput",value:function(){return this.subnetMigrationInput}},{key:"setSubnetMigrationInput",value:function(e){this.subnetMigrationInput=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fb(fb({},!1===e?void 0!==this.getSubnetMigrationInput()&&null!==this.getSubnetMigrationInput()?{subnetMigrationInput:this.getSubnetMigrationInput().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getSubnetMigrationInput()&&null!==this.getSubnetMigrationInput()?{subnetMigrationInput:this.getSubnetMigrationInput().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["subnetMigrationInput"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"subnetMigrationInput"!==t||void 0!==this.subnetMigrationInput&&null!==this.subnetMigrationInput?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("subnetMigrationInput","undefined or null")}}])&&pb(t.prototype,n),r&&pb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vb(e){return(vb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gb(Object(n),!0).forEach((function(t){wb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wb(e,t,n){return(t=Ob(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ob(r.key),r)}}function Ob(e){var t=function(e,t){if("object"!==vb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vb(t)?t:String(t)}yb.prototype.subnetMigrationInput=void 0,yb.prototype.$reserved=void 0,yb.prototype.$objectType=void 0,yb.prototype.$unknownFields=void 0;var $b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"migrateVnics",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof yb&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling migrateVnics");var o={},i={},s=bb(bb({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets/$actions/migrate-vnics","POST",o,i,s,a,n,u,c,l,f)}}])&&mb(t.prototype,n),o&&mb(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),kb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IP_ADDRESS_COUNT:"IP_ADDRESS_COUNT",IP_ADDRESS_RANGE:"IP_ADDRESS_RANGE",IP_ADDRESS_LIST:"IP_ADDRESS_LIST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(kb).find((function(t){return kb[t]===e}));return null==t?kb.$UNKNOWN:kb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case kb.$UNKNOWN:case kb.$REDACTED:case kb.IP_ADDRESS_COUNT:case kb.IP_ADDRESS_RANGE:case kb.IP_ADDRESS_LIST:return;default:throw new Error("Invalid : must be ReserveType.{ $UNKNOWN|$REDACTED|IP_ADDRESS_COUNT|IP_ADDRESS_RANGE|IP_ADDRESS_LIST }")}}};Object.freeze(kb);var jb=kb;function Pb(e){return(Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sb(Object(n),!0).forEach((function(t){Ib(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ib(e,t,n){return(t=Rb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rb(r.key),r)}}function Rb(e){var t=function(e,t){if("object"!==Pb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pb(t)?t:String(t)}var Db=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.reserveType=t,this.$objectType="networking.v4.config.IpReserveInput",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IpReserveInput"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("count")&&null!==t.count&&void 0!==t.count&&n.setCount(t.count),t.hasOwnProperty("startIpAddress")&&null!==t.startIpAddress&&void 0!==t.startIpAddress&&n.setStartIpAddress(Xe.constructFromObject(t.startIpAddress)),t.hasOwnProperty("ipAddresses")&&null!==t.ipAddresses&&void 0!==t.ipAddresses){for(s=[],r=t.ipAddresses,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setIpAddresses(s)}if(t.hasOwnProperty("reserveType")&&null!==t.reserveType&&void 0!==t.reserveType&&n.setReserveType(jb.constructFromObject(t.reserveType)),t.hasOwnProperty("clientContext")&&null!==t.clientContext&&void 0!==t.clientContext&&n.setClientContext(t.clientContext),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Tb({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getCount",value:function(){return this.count}},{key:"setCount",value:function(e){this.count=e}},{key:"getStartIpAddress",value:function(){return this.startIpAddress}},{key:"setStartIpAddress",value:function(e){this.startIpAddress=e}},{key:"getIpAddresses",value:function(){return this.ipAddresses}},{key:"setIpAddresses",value:function(e){this.ipAddresses=e}},{key:"getReserveType",value:function(){return this.reserveType}},{key:"setReserveType",value:function(e){this.reserveType=e}},{key:"getClientContext",value:function(){return this.clientContext}},{key:"setClientContext",value:function(e){this.clientContext=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Tb(Tb(Tb(!1===e?Tb(Tb(Tb({},void 0!==this.getCount()&&null!==this.getCount()?{count:this.getCount()}:{}),void 0!==this.getStartIpAddress()&&null!==this.getStartIpAddress()?{startIpAddress:this.getStartIpAddress().toJson(!1)}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses().map((function(e){return e.toJson(!1)}))}:{}):Tb(Tb(Tb({},void 0!==this.getCount()&&null!==this.getCount()?{count:this.getCount()}:{}),void 0!==this.getStartIpAddress()&&null!==this.getStartIpAddress()?{startIpAddress:this.getStartIpAddress().toJson()}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses().map((function(e){return e.toJson()}))}:{}),void 0!==this.getReserveType()&&null!==this.getReserveType()?{reserveType:this.getReserveType()}:{}),void 0!==this.getClientContext()&&null!==this.getClientContext()?{clientContext:this.getClientContext()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["reserveType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"count"!==t||void 0!==this.count&&null!==this.count?"startIpAddress"!==t||void 0!==this.startIpAddress&&null!==this.startIpAddress?"ipAddresses"!==t||void 0!==this.ipAddresses&&null!==this.ipAddresses?"reserveType"!==t||void 0!==this.reserveType&&null!==this.reserveType?"clientContext"!==t||void 0!==this.clientContext&&null!==this.clientContext?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("clientContext","undefined or null"):new f("reserveType","undefined or null"):new f("ipAddresses","undefined or null"):new f("startIpAddress","undefined or null"):new f("count","undefined or null")}}])&&Fb(t.prototype,n),r&&Fb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Db.prototype.count=void 0,Db.prototype.startIpAddress=void 0,Db.prototype.ipAddresses=void 0,Db.prototype.reserveType=void 0,Db.prototype.clientContext=void 0,Db.prototype.$reserved=void 0,Db.prototype.$objectType=void 0,Db.prototype.$unknownFields=void 0;var Eb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IP_ADDRESS_LIST:"IP_ADDRESS_LIST",IP_ADDRESS_RANGE:"IP_ADDRESS_RANGE",CONTEXT:"CONTEXT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Eb).find((function(t){return Eb[t]===e}));return null==t?Eb.$UNKNOWN:Eb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Eb.$UNKNOWN:case Eb.$REDACTED:case Eb.IP_ADDRESS_LIST:case Eb.IP_ADDRESS_RANGE:case Eb.CONTEXT:return;default:throw new Error("Invalid : must be UnreserveType.{ $UNKNOWN|$REDACTED|IP_ADDRESS_LIST|IP_ADDRESS_RANGE|CONTEXT }")}}};Object.freeze(Eb);var Ab=Eb;function Nb(e){return(Nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(n),!0).forEach((function(t){Cb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cb(e,t,n){return(t=_b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_b(r.key),r)}}function _b(e){var t=function(e,t){if("object"!==Nb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Nb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Nb(t)?t:String(t)}var Jb=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.unreserveType=t,this.$objectType="networking.v4.config.IpUnreserveInput",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IpUnreserveInput"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("count")&&null!==t.count&&void 0!==t.count&&n.setCount(t.count),t.hasOwnProperty("startIpAddress")&&null!==t.startIpAddress&&void 0!==t.startIpAddress&&n.setStartIpAddress(Xe.constructFromObject(t.startIpAddress)),t.hasOwnProperty("ipAddresses")&&null!==t.ipAddresses&&void 0!==t.ipAddresses){for(s=[],r=t.ipAddresses,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setIpAddresses(s)}if(t.hasOwnProperty("clientContext")&&null!==t.clientContext&&void 0!==t.clientContext&&n.setClientContext(t.clientContext),t.hasOwnProperty("unreserveType")&&null!==t.unreserveType&&void 0!==t.unreserveType&&n.setUnreserveType(Ab.constructFromObject(t.unreserveType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Mb({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getCount",value:function(){return this.count}},{key:"setCount",value:function(e){this.count=e}},{key:"getStartIpAddress",value:function(){return this.startIpAddress}},{key:"setStartIpAddress",value:function(e){this.startIpAddress=e}},{key:"getIpAddresses",value:function(){return this.ipAddresses}},{key:"setIpAddresses",value:function(e){this.ipAddresses=e}},{key:"getClientContext",value:function(){return this.clientContext}},{key:"setClientContext",value:function(e){this.clientContext=e}},{key:"getUnreserveType",value:function(){return this.unreserveType}},{key:"setUnreserveType",value:function(e){this.unreserveType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mb(Mb(Mb(!1===e?Mb(Mb(Mb({},void 0!==this.getCount()&&null!==this.getCount()?{count:this.getCount()}:{}),void 0!==this.getStartIpAddress()&&null!==this.getStartIpAddress()?{startIpAddress:this.getStartIpAddress().toJson(!1)}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses().map((function(e){return e.toJson(!1)}))}:{}):Mb(Mb(Mb({},void 0!==this.getCount()&&null!==this.getCount()?{count:this.getCount()}:{}),void 0!==this.getStartIpAddress()&&null!==this.getStartIpAddress()?{startIpAddress:this.getStartIpAddress().toJson()}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses().map((function(e){return e.toJson()}))}:{}),void 0!==this.getClientContext()&&null!==this.getClientContext()?{clientContext:this.getClientContext()}:{}),void 0!==this.getUnreserveType()&&null!==this.getUnreserveType()?{unreserveType:this.getUnreserveType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["unreserveType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"count"!==t||void 0!==this.count&&null!==this.count?"startIpAddress"!==t||void 0!==this.startIpAddress&&null!==this.startIpAddress?"ipAddresses"!==t||void 0!==this.ipAddresses&&null!==this.ipAddresses?"clientContext"!==t||void 0!==this.clientContext&&null!==this.clientContext?"unreserveType"!==t||void 0!==this.unreserveType&&null!==this.unreserveType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("unreserveType","undefined or null"):new f("clientContext","undefined or null"):new f("ipAddresses","undefined or null"):new f("startIpAddress","undefined or null"):new f("count","undefined or null")}}])&&Lb(t.prototype,n),r&&Lb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vb(e){return(Vb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ub(Object(n),!0).forEach((function(t){Bb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ub(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bb(e,t,n){return(t=Wb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wb(r.key),r)}}function Wb(e){var t=function(e,t){if("object"!==Vb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vb(t)?t:String(t)}Jb.prototype.count=void 0,Jb.prototype.startIpAddress=void 0,Jb.prototype.ipAddresses=void 0,Jb.prototype.clientContext=void 0,Jb.prototype.unreserveType=void 0,Jb.prototype.$reserved=void 0,Jb.prototype.$objectType=void 0,Jb.prototype.$unknownFields=void 0;var Kb=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.AssignedAddressInfo",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AssignedAddressInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vmReference")&&null!==t.vmReference&&void 0!==t.vmReference&&n.setVmReference(ta.constructFromObject(t.vmReference)),t.hasOwnProperty("macAddress")&&null!==t.macAddress&&void 0!==t.macAddress&&n.setMacAddress(Ui.constructFromObject(t.macAddress)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Gb({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVmReference",value:function(){return this.vmReference}},{key:"setVmReference",value:function(e){this.vmReference=e}},{key:"getMacAddress",value:function(){return this.macAddress}},{key:"setMacAddress",value:function(e){this.macAddress=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gb(!1===e?Gb(Gb({},void 0!==this.getVmReference()&&null!==this.getVmReference()?{vmReference:this.getVmReference().toJson(!1)}:{}),void 0!==this.getMacAddress()&&null!==this.getMacAddress()?{macAddress:this.getMacAddress().toJson(!1)}:{}):Gb(Gb({},void 0!==this.getVmReference()&&null!==this.getVmReference()?{vmReference:this.getVmReference().toJson()}:{}),void 0!==this.getMacAddress()&&null!==this.getMacAddress()?{macAddress:this.getMacAddress().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"vmReference"!==t||void 0!==this.vmReference&&null!==this.vmReference?"macAddress"!==t||void 0!==this.macAddress&&null!==this.macAddress?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("macAddress","undefined or null"):new f("vmReference","undefined or null")}}])&&qb(t.prototype,n),r&&qb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hb(e){return(Hb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zb(Object(n),!0).forEach((function(t){Xb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xb(e,t,n){return(t=Zb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zb(r.key),r)}}function Zb(e){var t=function(e,t){if("object"!==Hb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hb(t)?t:String(t)}Kb.prototype.vmReference=void 0,Kb.prototype.macAddress=void 0,Kb.prototype.$reserved=void 0,Kb.prototype.$objectType=void 0,Kb.prototype.$unknownFields=void 0;var ew=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.LearnedAddressInfo",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.LearnedAddressInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vmReference")&&null!==t.vmReference&&void 0!==t.vmReference&&n.setVmReference(ta.constructFromObject(t.vmReference)),t.hasOwnProperty("macAddress")&&null!==t.macAddress&&void 0!==t.macAddress&&n.setMacAddress(Ui.constructFromObject(t.macAddress)),t.hasOwnProperty("lastSeen")&&null!==t.lastSeen&&void 0!==t.lastSeen&&n.setLastSeen(t.lastSeen),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Yb({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVmReference",value:function(){return this.vmReference}},{key:"setVmReference",value:function(e){this.vmReference=e}},{key:"getMacAddress",value:function(){return this.macAddress}},{key:"setMacAddress",value:function(e){this.macAddress=e}},{key:"getLastSeen",value:function(){return this.lastSeen}},{key:"setLastSeen",value:function(e){this.lastSeen=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yb(Yb(!1===e?Yb(Yb({},void 0!==this.getVmReference()&&null!==this.getVmReference()?{vmReference:this.getVmReference().toJson(!1)}:{}),void 0!==this.getMacAddress()&&null!==this.getMacAddress()?{macAddress:this.getMacAddress().toJson(!1)}:{}):Yb(Yb({},void 0!==this.getVmReference()&&null!==this.getVmReference()?{vmReference:this.getVmReference().toJson()}:{}),void 0!==this.getMacAddress()&&null!==this.getMacAddress()?{macAddress:this.getMacAddress().toJson()}:{}),void 0!==this.getLastSeen()&&null!==this.getLastSeen()?{lastSeen:this.getLastSeen()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"vmReference"!==t||void 0!==this.vmReference&&null!==this.vmReference?"macAddress"!==t||void 0!==this.macAddress&&null!==this.macAddress?"lastSeen"!==t||void 0!==this.lastSeen&&null!==this.lastSeen?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("lastSeen","undefined or null"):new f("macAddress","undefined or null"):new f("vmReference","undefined or null")}}])&&Qb(t.prototype,n),r&&Qb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tw(e){return(tw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach((function(t){ow(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ow(e,t,n){return(t=sw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sw(r.key),r)}}function sw(e){var t=function(e,t){if("object"!==tw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tw(t)?t:String(t)}ew.prototype.vmReference=void 0,ew.prototype.macAddress=void 0,ew.prototype.lastSeen=void 0,ew.prototype.$reserved=void 0,ew.prototype.$objectType=void 0,ew.prototype.$unknownFields=void 0;var aw=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.ReservedAddressInfo",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ReservedAddressInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clientContext")&&null!==t.clientContext&&void 0!==t.clientContext&&n.setClientContext(t.clientContext),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=rw({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getClientContext",value:function(){return this.clientContext}},{key:"setClientContext",value:function(e){this.clientContext=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rw(rw({},void 0!==this.getClientContext()&&null!==this.getClientContext()?{clientContext:this.getClientContext()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"clientContext"!==t||void 0!==this.clientContext&&null!==this.clientContext?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("clientContext","undefined or null")}}])&&iw(t.prototype,n),r&&iw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function uw(e){return(uw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cw(Object(n),!0).forEach((function(t){fw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fw(e,t,n){return(t=pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pw(r.key),r)}}function pw(e){var t=function(e,t){if("object"!==uw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uw(t)?t:String(t)}aw.prototype.clientContext=void 0,aw.prototype.$reserved=void 0,aw.prototype.$objectType=void 0,aw.prototype.$unknownFields=void 0;var hw=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.AddressAssignmentInfo",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AddressAssignmentInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(Xe.constructFromObject(t.ipAddress)),t.hasOwnProperty("isAssigned")&&null!==t.isAssigned&&void 0!==t.isAssigned&&n.setIsAssigned(t.isAssigned),t.hasOwnProperty("isReserved")&&null!==t.isReserved&&void 0!==t.isReserved&&n.setIsReserved(t.isReserved),t.hasOwnProperty("isLearned")&&null!==t.isLearned&&void 0!==t.isLearned&&n.setIsLearned(t.isLearned),t.hasOwnProperty("assignedDetails")&&null!==t.assignedDetails&&void 0!==t.assignedDetails&&n.setAssignedDetails(Kb.constructFromObject(t.assignedDetails)),t.hasOwnProperty("learnedDetails")&&null!==t.learnedDetails&&void 0!==t.learnedDetails){for(s=[],r=t.learnedDetails,i=0;i<r.length;i++)o=ew.constructFromObject(r[i],void 0),s.push(o);n.setLearnedDetails(s)}if(t.hasOwnProperty("reservedDetails")&&null!==t.reservedDetails&&void 0!==t.reservedDetails&&n.setReservedDetails(aw.constructFromObject(t.reservedDetails)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=lw({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"getIsAssigned",value:function(){return this.isAssigned}},{key:"setIsAssigned",value:function(e){this.isAssigned=e}},{key:"getIsReserved",value:function(){return this.isReserved}},{key:"setIsReserved",value:function(e){this.isReserved=e}},{key:"getIsLearned",value:function(){return this.isLearned}},{key:"setIsLearned",value:function(e){this.isLearned=e}},{key:"getAssignedDetails",value:function(){return this.assignedDetails}},{key:"setAssignedDetails",value:function(e){this.assignedDetails=e}},{key:"getLearnedDetails",value:function(){return this.learnedDetails}},{key:"setLearnedDetails",value:function(e){this.learnedDetails=e}},{key:"getReservedDetails",value:function(){return this.reservedDetails}},{key:"setReservedDetails",value:function(e){this.reservedDetails=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return lw(!1===e?lw(lw(lw(lw(lw(lw(lw({},void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress().toJson(!1)}:{}),void 0!==this.getIsAssigned()&&null!==this.getIsAssigned()?{isAssigned:this.getIsAssigned()}:{}),void 0!==this.getIsReserved()&&null!==this.getIsReserved()?{isReserved:this.getIsReserved()}:{}),void 0!==this.getIsLearned()&&null!==this.getIsLearned()?{isLearned:this.getIsLearned()}:{}),void 0!==this.getAssignedDetails()&&null!==this.getAssignedDetails()?{assignedDetails:this.getAssignedDetails().toJson(!1)}:{}),void 0!==this.getLearnedDetails()&&null!==this.getLearnedDetails()?{learnedDetails:this.getLearnedDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getReservedDetails()&&null!==this.getReservedDetails()?{reservedDetails:this.getReservedDetails().toJson(!1)}:{}):lw(lw(lw(lw(lw(lw(lw({},void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress().toJson()}:{}),void 0!==this.getIsAssigned()&&null!==this.getIsAssigned()?{isAssigned:this.getIsAssigned()}:{}),void 0!==this.getIsReserved()&&null!==this.getIsReserved()?{isReserved:this.getIsReserved()}:{}),void 0!==this.getIsLearned()&&null!==this.getIsLearned()?{isLearned:this.getIsLearned()}:{}),void 0!==this.getAssignedDetails()&&null!==this.getAssignedDetails()?{assignedDetails:this.getAssignedDetails().toJson()}:{}),void 0!==this.getLearnedDetails()&&null!==this.getLearnedDetails()?{learnedDetails:this.getLearnedDetails().map((function(e){return e.toJson()}))}:{}),void 0!==this.getReservedDetails()&&null!==this.getReservedDetails()?{reservedDetails:this.getReservedDetails().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipAddress"!==t||void 0!==this.ipAddress&&null!==this.ipAddress?"isAssigned"!==t||void 0!==this.isAssigned&&null!==this.isAssigned?"isReserved"!==t||void 0!==this.isReserved&&null!==this.isReserved?"isLearned"!==t||void 0!==this.isLearned&&null!==this.isLearned?"assignedDetails"!==t||void 0!==this.assignedDetails&&null!==this.assignedDetails?"learnedDetails"!==t||void 0!==this.learnedDetails&&null!==this.learnedDetails?"reservedDetails"!==t||void 0!==this.reservedDetails&&null!==this.reservedDetails?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("reservedDetails","undefined or null"):new f("learnedDetails","undefined or null"):new f("assignedDetails","undefined or null"):new f("isLearned","undefined or null"):new f("isReserved","undefined or null"):new f("isAssigned","undefined or null"):new f("ipAddress","undefined or null")}}])&&dw(t.prototype,n),r&&dw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function yw(e){return(yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vw(Object(n),!0).forEach((function(t){bw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bw(e,t,n){return(t=mw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ww(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mw(r.key),r)}}function mw(e){var t=function(e,t){if("object"!==yw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yw(t)?t:String(t)}function Ow(e,t){return(Ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jw(e);if(t){var o=jw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kw(this,n)}}function kw(e,t){if(t&&("object"===yw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function jw(e){return(jw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}hw.prototype.ipAddress=void 0,hw.prototype.isAssigned=void 0,hw.prototype.isReserved=void 0,hw.prototype.isLearned=void 0,hw.prototype.assignedDetails=void 0,hw.prototype.learnedDetails=void 0,hw.prototype.reservedDetails=void 0,hw.prototype.$reserved=void 0,hw.prototype.$objectType=void 0,hw.prototype.$unknownFields=void 0;var Pw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ow(e,t)}(s,e);var t,n,r,o=$w(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.SubnetAddressAssignmentListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.SubnetAddressAssignmentListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.AddressAssignmentInfo>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=hw.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=gw({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof hw?"List<networking.v4.config.AddressAssignmentInfo>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gw(!1===e?gw(gw({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):gw(gw({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ww(t.prototype,n),r&&ww(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Sw(e){return(Sw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tw(Object(n),!0).forEach((function(t){Fw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fw(e,t,n){return(t=Dw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dw(r.key),r)}}function Dw(e){var t=function(e,t){if("object"!==Sw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sw(t)?t:String(t)}Pw.prototype.metadata=void 0,Pw.prototype.data=void 0,Pw.prototype.$reserved=void 0,Pw.prototype.$objectType=void 0,Pw.prototype.$unknownFields=void 0;var Ew=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"fetchSubnetAddressAssignments",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'subnetExtId' when calling fetchSubnetAddressAssignments");var r={subnetExtId:e},o={},i=Iw(Iw({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Pw;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets/{subnetExtId}/addresses","GET",r,o,i,s,n,a,u,c,l)}},{key:"reserveIps",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof Db&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling reserveIps");if(null==e)throw new Error("Missing the required parameter 'subnetExtId' when calling reserveIps");var i={subnetExtId:e},s={},a=Iw(Iw({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets/{subnetExtId}/addresses/$actions/reserve","POST",i,s,a,u,o,c,l,f,d)}},{key:"unreserveIps",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof Jb&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling unreserveIps");if(null==e)throw new Error("Missing the required parameter 'subnetExtId' when calling unreserveIps");var i={subnetExtId:e},s={},a=Iw(Iw({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/subnets/{subnetExtId}/addresses/$actions/unreserve","POST",i,s,a,u,o,c,l,f,d)}}])&&Rw(t.prototype,n),o&&Rw(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Aw={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ACTIVE_BACKUP:"ACTIVE_BACKUP",BALANCE_SLB:"BALANCE_SLB",BALANCE_TCP:"BALANCE_TCP",NONE:"NONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Aw).find((function(t){return Aw[t]===e}));return null==t?Aw.$UNKNOWN:Aw[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Aw.$UNKNOWN:case Aw.$REDACTED:case Aw.ACTIVE_BACKUP:case Aw.BALANCE_SLB:case Aw.BALANCE_TCP:case Aw.NONE:return;default:throw new Error("Invalid : must be BondModeType.{ $UNKNOWN|$REDACTED|ACTIVE_BACKUP|BALANCE_SLB|BALANCE_TCP|NONE }")}}};Object.freeze(Aw);var Nw=Aw;function xw(e){return(xw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mw(Object(n),!0).forEach((function(t){Lw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lw(e,t,n){return(t=Jw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jw(r.key),r)}}function Jw(e){var t=function(e,t){if("object"!==xw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xw(t)?t:String(t)}var Vw=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.extId=t,this.hostNics=n,this.$objectType="networking.v4.config.Host",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Host"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("internalBridgeName")&&null!==t.internalBridgeName&&void 0!==t.internalBridgeName&&n.setInternalBridgeName(t.internalBridgeName),t.hasOwnProperty("hostNics")&&null!==t.hostNics&&void 0!==t.hostNics){for(i=[],r=t.hostNics,o=0;o<r.length;o++)i.push(r[o]);n.setHostNics(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=Cw({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getInternalBridgeName",value:function(){return this.internalBridgeName}},{key:"setInternalBridgeName",value:function(e){this.internalBridgeName=e}},{key:"getHostNics",value:function(){return this.hostNics}},{key:"setHostNics",value:function(e){this.hostNics=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Cw(Cw(Cw(Cw({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getInternalBridgeName()&&null!==this.getInternalBridgeName()?{internalBridgeName:this.getInternalBridgeName()}:{}),void 0!==this.getHostNics()&&null!==this.getHostNics()?{hostNics:this.getHostNics()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["extId","hostNics"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("internalBridgeName"===t){if(void 0===this.internalBridgeName||null===this.internalBridgeName)return new f("internalBridgeName","undefined or null");if(!u.validateMaxLength(this.internalBridgeName,128))return new f("internalBridgeName","does not satisfy required maxLength constraint: 128")}return"hostNics"!==t||void 0!==this.hostNics&&null!==this.hostNics?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("hostNics","undefined or null")}}])&&_w(t.prototype,n),r&&_w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Uw(e){return(Uw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(n),!0).forEach((function(t){qw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qw(e,t,n){return(t=Kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ww(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kw(r.key),r)}}function Kw(e){var t=function(e,t){if("object"!==Uw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Uw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Uw(t)?t:String(t)}Vw.prototype.extId=void 0,Vw.prototype.internalBridgeName=void 0,Vw.prototype.hostNics=void 0,Vw.prototype.$reserved=void 0,Vw.prototype.$objectType=void 0,Vw.prototype.$unknownFields=void 0;var Hw=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.extId=t,this.hosts=n,this.$objectType="networking.v4.config.Cluster",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Cluster"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("hosts")&&null!==t.hosts&&void 0!==t.hosts){for(s=[],r=t.hosts,i=0;i<r.length;i++)o=Vw.constructFromObject(r[i],void 0),s.push(o);n.setHosts(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Bw({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getHosts",value:function(){return this.hosts}},{key:"setHosts",value:function(e){this.hosts=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bw(Bw(Bw({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),!1===e?void 0!==this.getHosts()&&null!==this.getHosts()?{hosts:this.getHosts().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getHosts()&&null!==this.getHosts()?{hosts:this.getHosts().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["extId","hosts"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"hosts"!==t||void 0!==this.hosts&&null!==this.hosts?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("hosts","undefined or null")}}])&&Ww(t.prototype,n),r&&Ww(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function zw(e){return(zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yw(Object(n),!0).forEach((function(t){Qw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qw(e,t,n){return(t=em(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,em(r.key),r)}}function em(e){var t=function(e,t){if("object"!==zw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zw(t)?t:String(t)}function tm(e,t){return(tm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=om(e);if(t){var o=om(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rm(this,n)}}function rm(e,t){if(t&&("object"===zw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function om(e){return(om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Hw.prototype.extId=void 0,Hw.prototype.hosts=void 0,Hw.prototype.$reserved=void 0,Hw.prototype.$objectType=void 0,Hw.prototype.$unknownFields=void 0;var im=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tm(e,t)}(s,e);var t,n,r,o=nm(s);function s(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(r=o.call(this)).name=e,r.bondMode=t,r.clusters=n,r.$objectType="networking.v4.config.VirtualSwitch",r.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VirtualSwitch"},r.$unknownFields={},r}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,we.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("isDefault")&&null!==e.isDefault&&void 0!==e.isDefault&&t.setIsDefault(e.isDefault),e.hasOwnProperty("quickMode")&&null!==e.quickMode&&void 0!==e.quickMode&&t.setQuickMode(e.quickMode),e.hasOwnProperty("deploymentError")&&null!==e.deploymentError&&void 0!==e.deploymentError&&t.setDeploymentError(e.deploymentError),e.hasOwnProperty("mtu")&&null!==e.mtu&&void 0!==e.mtu&&t.setMtu(e.mtu),e.hasOwnProperty("bondMode")&&null!==e.bondMode&&void 0!==e.bondMode&&t.setBondMode(Nw.constructFromObject(e.bondMode)),e.hasOwnProperty("clusters")&&null!==e.clusters&&void 0!==e.clusters){for(i=[],n=e.clusters,o=0;o<n.length;o++)r=Hw.constructFromObject(n[o],void 0),i.push(r);t.setClusters(i)}if(!a)for(var u in t.$unknownFields=Xw({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getIsDefault",value:function(){return this.isDefault}},{key:"setIsDefault",value:function(e){this.isDefault=e}},{key:"getQuickMode",value:function(){return this.quickMode}},{key:"setQuickMode",value:function(e){this.quickMode=e}},{key:"getDeploymentError",value:function(){return this.deploymentError}},{key:"setDeploymentError",value:function(e){this.deploymentError=e}},{key:"getMtu",value:function(){return this.mtu}},{key:"setMtu",value:function(e){this.mtu=e}},{key:"getBondMode",value:function(){return this.bondMode}},{key:"setBondMode",value:function(e){this.bondMode=e}},{key:"getClusters",value:function(){return this.clusters}},{key:"setClusters",value:function(e){this.clusters=e}},{key:"toJson",value:function(e){return Xw(!1===e?Xw(Xw(Xw(Xw(Xw(Xw(Xw(Xw(Xw(Xw(Xw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsDefault()&&null!==this.getIsDefault()?{isDefault:this.getIsDefault()}:{}),void 0!==this.getQuickMode()&&null!==this.getQuickMode()?{quickMode:this.getQuickMode()}:{}),void 0!==this.getDeploymentError()&&null!==this.getDeploymentError()?{deploymentError:this.getDeploymentError()}:{}),void 0!==this.getMtu()&&null!==this.getMtu()?{mtu:this.getMtu()}:{}),void 0!==this.getBondMode()&&null!==this.getBondMode()?{bondMode:this.getBondMode()}:{}),void 0!==this.getClusters()&&null!==this.getClusters()?{clusters:this.getClusters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Xw(Xw(Xw(Xw(Xw(Xw(Xw(Xw(Xw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsDefault()&&null!==this.getIsDefault()?{isDefault:this.getIsDefault()}:{}),void 0!==this.getQuickMode()&&null!==this.getQuickMode()?{quickMode:this.getQuickMode()}:{}),void 0!==this.getMtu()&&null!==this.getMtu()?{mtu:this.getMtu()}:{}),void 0!==this.getBondMode()&&null!==this.getBondMode()?{bondMode:this.getBondMode()}:{}),void 0!==this.getClusters()&&null!==this.getClusters()?{clusters:this.getClusters().map((function(e){return e.toJson()}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name","bondMode","clusters"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,128))return new f("name","does not satisfy required maxLength constraint: 128")}if("description"===t){if(void 0===this.description||null===this.description)return new f("description","undefined or null");if(!u.validateMaxLength(this.description,1e3))return new f("description","does not satisfy required maxLength constraint: 1000")}return"isDefault"!==t||void 0!==this.isDefault&&null!==this.isDefault?"quickMode"!==t||void 0!==this.quickMode&&null!==this.quickMode?"deploymentError"!==t||void 0!==this.deploymentError&&null!==this.deploymentError?"mtu"!==t||void 0!==this.mtu&&null!==this.mtu?"bondMode"!==t||void 0!==this.bondMode&&null!==this.bondMode?"clusters"!==t||void 0!==this.clusters&&null!==this.clusters?new f(t,"no such property exists"):new f("clusters","undefined or null"):new f("bondMode","undefined or null"):new f("mtu","undefined or null"):new f("deploymentError","undefined or null"):new f("quickMode","undefined or null"):new f("isDefault","undefined or null")}}])&&Zw(t.prototype,n),r&&Zw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(we);function sm(e){return(sm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?am(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cm(e,t,n){return(t=fm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fm(r.key),r)}}function fm(e){var t=function(e,t){if("object"!==sm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sm(t)?t:String(t)}function dm(e,t){return(dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ym(e);if(t){var o=ym(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hm(this,n)}}function hm(e,t){if(t&&("object"===sm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ym(e){return(ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}im.prototype.name=void 0,im.prototype.description=void 0,im.prototype.isDefault=!1,im.prototype.quickMode=!1,im.prototype.deploymentError=void 0,im.prototype.mtu=void 0,im.prototype.bondMode=void 0,im.prototype.clusters=void 0;var vm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dm(e,t)}(s,e);var t,n,r,o=pm(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.VirtualSwitchApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VirtualSwitchApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.VirtualSwitch"===n)t.setData(im.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=um({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof im?"networking.v4.config.VirtualSwitch":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return um(!1===e?um(um({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):um(um({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&lm(t.prototype,n),r&&lm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function gm(e){return(gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(n),!0).forEach((function(t){mm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mm(e,t,n){return(t=$m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Om(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$m(r.key),r)}}function $m(e){var t=function(e,t){if("object"!==gm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gm(t)?t:String(t)}function km(e,t){return(km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sm(e);if(t){var o=Sm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pm(this,n)}}function Pm(e,t){if(t&&("object"===gm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sm(e){return(Sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}vm.prototype.metadata=void 0,vm.prototype.data=void 0,vm.prototype.$reserved=void 0,vm.prototype.$objectType=void 0,vm.prototype.$unknownFields=void 0;var Tm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&km(e,t)}(s,e);var t,n,r,o=jm(s);function s(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(r=o.call(this,e,t,n)).$objectType="networking.v4.config.VirtualSwitchProjection",r.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VirtualSwitchProjection"},r.$unknownFields={},r}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,im.constructFromObject(e,t,!0),!n))for(var r in t.$unknownFields=wm({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name","bondMode","clusters"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return new f(t,"no such property exists")}}])&&Om(t.prototype,n),r&&Om(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(im);function Im(e){return(Im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fm(Object(n),!0).forEach((function(t){Dm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dm(e,t,n){return(t=Am(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Am(r.key),r)}}function Am(e){var t=function(e,t){if("object"!==Im(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Im(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Im(t)?t:String(t)}function Nm(e,t){return(Nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cm(e);if(t){var o=Cm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mm(this,n)}}function Mm(e,t){if(t&&("object"===Im(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cm(e){return(Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nm(e,t)}(s,e);var t,n,r,o=xm(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.VirtualSwitchListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VirtualSwitchListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.VirtualSwitch>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=im.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else if("networking.v4.error.ErrorResponse"===a)t.setData($n.constructFromObject(e.data,void 0));else{if("List<networking.v4.config.VirtualSwitchProjection>"!==a)throw"Unknown data type "+a+" in data";for(i=[],n=e.data,o=0;o<n.length;o++)r=Tm.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=Rm({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof im?"List<networking.v4.config.VirtualSwitch>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":Array.isArray(this.getData())&&this.getData()[0]instanceof Tm?"List<networking.v4.config.VirtualSwitchProjection>":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Rm(!1===e?Rm(Rm({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Rm(Rm({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Em(t.prototype,n),r&&Em(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function _m(e){return(_m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jm(Object(n),!0).forEach((function(t){Um(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Um(e,t,n){return(t=Bm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bm(r.key),r)}}function Bm(e){var t=function(e,t){if("object"!==_m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_m(t)?t:String(t)}Lm.prototype.metadata=void 0,Lm.prototype.data=void 0,Lm.prototype.$reserved=void 0,Lm.prototype.$objectType=void 0,Lm.prototype.$unknownFields=void 0;var qm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createVirtualSwitch",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof im&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling createVirtualSwitch");if(null==e)throw new Error("Missing the required parameter 'xClusterId' when calling createVirtualSwitch");var i={},s={},a=Vm(Vm({"X-Cluster-Id":e},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/virtual-switches","POST",i,s,a,u,o,c,l,f,d)}},{key:"deleteVirtualSwitch",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},r=null;if(null==e)throw new Error("Missing the required parameter 'xClusterId' when calling deleteVirtualSwitch");if(null==t)throw new Error("Missing the required parameter 'extId' when calling deleteVirtualSwitch");var o={extId:t},i={},s=Vm(Vm({"X-Cluster-Id":e},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),a={},u=["basicAuthScheme"],c=[],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/virtual-switches/{extId}","DELETE",o,i,s,a,r,u,c,l,f)}},{key:"getVirtualSwitch",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},r=null;if(null==e)throw new Error("Missing the required parameter 'xClusterId' when calling getVirtualSwitch");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getVirtualSwitch");var o={extId:t},i={},s=Vm(Vm({"X-Cluster-Id":e},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),a={},u=["basicAuthScheme"],c=[],l=["application/json"],f=vm;return this.apiClient.callApi("/api/networking/v4.0.a1/config/virtual-switches/{extId}","GET",o,i,s,a,r,u,c,l,f)}},{key:"listVirtualSwitches",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'xClusterId' when calling listVirtualSwitches");var r={},o={},i=Vm(Vm({"X-Cluster-Id":e},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Lm;return this.apiClient.callApi("/api/networking/v4.0.a1/config/virtual-switches","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateVirtualSwitch",value:function(e,t,n){var o=(arguments.length<=3?0:arguments.length-3)>0?arguments.length<=3?void 0:arguments[3]:{},i=null;if(null==(i=n instanceof im&&"function"==typeof n.toJson?n.toJson():n))throw new Error("Invalid body when calling updateVirtualSwitch");if(null==e)throw new Error("Missing the required parameter 'xClusterId' when calling updateVirtualSwitch");if(null==t)throw new Error("Missing the required parameter 'extId' when calling updateVirtualSwitch");var s={extId:t},a={},u=Vm(Vm({"X-Cluster-Id":e},o.hasOwnProperty("If-Match")&&null!==o["If-Match"]?{"If-Match":o["If-Match"].toString()}:{}),o.hasOwnProperty("If-None-Match")&&null!==o["If-None-Match"]?{"If-None-Match":o["If-None-Match"].toString()}:{}),c={};r.a.addEtagReferenceToHeader(n,u);var l=["basicAuthScheme"],f=["application/json"],d=["application/json"],p=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/virtual-switches/{extId}","PUT",s,a,u,c,i,l,f,d,p)}}])&&Gm(t.prototype,n),o&&Gm(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Wm(e){return(Wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach((function(t){zm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zm(e,t,n){return(t=Xm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xm(r.key),r)}}function Xm(e){var t=function(e,t){if("object"!==Wm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Wm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wm(t)?t:String(t)}var Qm=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.GatewayNodeReference",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.GatewayNodeReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("nodeId")&&null!==t.nodeId&&void 0!==t.nodeId&&n.setNodeId(t.nodeId),t.hasOwnProperty("nodeIpAddress")&&null!==t.nodeIpAddress&&void 0!==t.nodeIpAddress&&n.setNodeIpAddress(Xe.constructFromObject(t.nodeIpAddress)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Hm({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getNodeId",value:function(){return this.nodeId}},{key:"setNodeId",value:function(e){this.nodeId=e}},{key:"getNodeIpAddress",value:function(){return this.nodeIpAddress}},{key:"setNodeIpAddress",value:function(e){this.nodeIpAddress=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Hm(Hm(Hm({},void 0!==this.getNodeId()&&null!==this.getNodeId()?{nodeId:this.getNodeId()}:{}),!1===e?void 0!==this.getNodeIpAddress()&&null!==this.getNodeIpAddress()?{nodeIpAddress:this.getNodeIpAddress().toJson(!1)}:{}:void 0!==this.getNodeIpAddress()&&null!==this.getNodeIpAddress()?{nodeIpAddress:this.getNodeIpAddress().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("nodeId"===t){if(void 0===this.nodeId||null===this.nodeId)return new f("nodeId","undefined or null");if(!u.validatePattern(this.nodeId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("nodeId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"nodeIpAddress"!==t||void 0!==this.nodeIpAddress&&null!==this.nodeIpAddress?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("nodeIpAddress","undefined or null")}}])&&Ym(t.prototype,n),r&&Ym(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Zm(e){return(Zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eO(Object(n),!0).forEach((function(t){nO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nO(e,t,n){return(t=oO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oO(r.key),r)}}function oO(e){var t=function(e,t){if("object"!==Zm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Zm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Zm(t)?t:String(t)}Qm.prototype.nodeId=void 0,Qm.prototype.nodeIpAddress=void 0,Qm.prototype.$reserved=void 0,Qm.prototype.$objectType=void 0,Qm.prototype.$unknownFields=void 0;var iO=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.subnetReference=t,this.$objectType="networking.v4.config.ExternalSubnet",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ExternalSubnet"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("subnetReference")&&null!==t.subnetReference&&void 0!==t.subnetReference&&n.setSubnetReference(t.subnetReference),t.hasOwnProperty("externalIps")&&null!==t.externalIps&&void 0!==t.externalIps){for(s=[],r=t.externalIps,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setExternalIps(s)}if(t.hasOwnProperty("gatewayNodes")&&null!==t.gatewayNodes&&void 0!==t.gatewayNodes){for(s=[],r=t.gatewayNodes,i=0;i<r.length;i++)s.push(r[i]);n.setGatewayNodes(s)}if(t.hasOwnProperty("activeGatewayNode")&&null!==t.activeGatewayNode&&void 0!==t.activeGatewayNode&&n.setActiveGatewayNode(Qm.constructFromObject(t.activeGatewayNode)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=tO({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getSubnetReference",value:function(){return this.subnetReference}},{key:"setSubnetReference",value:function(e){this.subnetReference=e}},{key:"getExternalIps",value:function(){return this.externalIps}},{key:"setExternalIps",value:function(e){this.externalIps=e}},{key:"getGatewayNodes",value:function(){return this.gatewayNodes}},{key:"setGatewayNodes",value:function(e){this.gatewayNodes=e}},{key:"getActiveGatewayNode",value:function(){return this.activeGatewayNode}},{key:"setActiveGatewayNode",value:function(e){this.activeGatewayNode=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tO(!1===e?tO(tO(tO(tO({},void 0!==this.getSubnetReference()&&null!==this.getSubnetReference()?{subnetReference:this.getSubnetReference()}:{}),void 0!==this.getExternalIps()&&null!==this.getExternalIps()?{externalIps:this.getExternalIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGatewayNodes()&&null!==this.getGatewayNodes()?{gatewayNodes:this.getGatewayNodes()}:{}),void 0!==this.getActiveGatewayNode()&&null!==this.getActiveGatewayNode()?{activeGatewayNode:this.getActiveGatewayNode().toJson(!1)}:{}):tO(tO(tO({},void 0!==this.getSubnetReference()&&null!==this.getSubnetReference()?{subnetReference:this.getSubnetReference()}:{}),void 0!==this.getGatewayNodes()&&null!==this.getGatewayNodes()?{gatewayNodes:this.getGatewayNodes()}:{}),void 0!==this.getActiveGatewayNode()&&null!==this.getActiveGatewayNode()?{activeGatewayNode:this.getActiveGatewayNode().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["subnetReference"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("subnetReference"===t){if(void 0===this.subnetReference||null===this.subnetReference)return new f("subnetReference","undefined or null");if(!u.validatePattern(this.subnetReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("subnetReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("externalIps"===t&&(void 0===this.externalIps||null===this.externalIps))return new f("externalIps","undefined or null");if("gatewayNodes"===t){if(void 0===this.gatewayNodes||null===this.gatewayNodes)return new f("gatewayNodes","undefined or null");if(!u.validateMaxItems(this.gatewayNodes,32))return new f("gatewayNodes","does not satisfy required maxItems constraint: 32");if(!u.validateMinItems(this.gatewayNodes,3))return new f("gatewayNodes","does not satisfy required minItems constraint: 3")}return"activeGatewayNode"!==t||void 0!==this.activeGatewayNode&&null!==this.activeGatewayNode?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("activeGatewayNode","undefined or null")}}])&&rO(t.prototype,n),r&&rO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function sO(e){return(sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aO(Object(n),!0).forEach((function(t){cO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cO(e,t,n){return(t=fO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fO(r.key),r)}}function fO(e){var t=function(e,t){if("object"!==sO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sO(t)?t:String(t)}iO.prototype.subnetReference=void 0,iO.prototype.externalIps=void 0,iO.prototype.gatewayNodes=void 0,iO.prototype.activeGatewayNode=void 0,iO.prototype.$reserved=void 0,iO.prototype.$objectType=void 0,iO.prototype.$unknownFields=void 0;var dO=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.VpcDhcpOptions",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpcDhcpOptions"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("domainNameServers")&&null!==t.domainNameServers&&void 0!==t.domainNameServers){for(s=[],r=t.domainNameServers,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setDomainNameServers(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=uO({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getDomainNameServers",value:function(){return this.domainNameServers}},{key:"setDomainNameServers",value:function(e){this.domainNameServers=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return uO(uO({},!1===e?void 0!==this.getDomainNameServers()&&null!==this.getDomainNameServers()?{domainNameServers:this.getDomainNameServers().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getDomainNameServers()&&null!==this.getDomainNameServers()?{domainNameServers:this.getDomainNameServers().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("domainNameServers"===t){if(void 0===this.domainNameServers||null===this.domainNameServers)return new f("domainNameServers","undefined or null");if(!u.validateMaxItems(this.domainNameServers,32))return new f("domainNameServers","does not satisfy required maxItems constraint: 32")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&lO(t.prototype,n),r&&lO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function pO(e){return(pO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hO(Object(n),!0).forEach((function(t){vO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vO(e,t,n){return(t=bO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bO(r.key),r)}}function bO(e){var t=function(e,t){if("object"!==pO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pO(t)?t:String(t)}function wO(e,t){return(wO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$O(e);if(t){var o=$O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OO(this,n)}}function OO(e,t){if(t&&("object"===pO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $O(e){return($O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}dO.prototype.domainNameServers=void 0,dO.prototype.$reserved=void 0,dO.prototype.$objectType=void 0,dO.prototype.$unknownFields=void 0;var kO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wO(e,t)}(s,e);var t,n,r,o=mO(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this)).name=e,t.$objectType="networking.v4.config.Vpc",t.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Vpc"},t.$unknownFields={},t}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("commonDhcpOptions")&&null!==e.commonDhcpOptions&&void 0!==e.commonDhcpOptions&&t.setCommonDhcpOptions(dO.constructFromObject(e.commonDhcpOptions)),e.hasOwnProperty("snatIps")&&null!==e.snatIps&&void 0!==e.snatIps){for(i=[],n=e.snatIps,o=0;o<n.length;o++)r=Xe.constructFromObject(n[o],void 0),i.push(r);t.setSnatIps(i)}if(e.hasOwnProperty("externalSubnets")&&null!==e.externalSubnets&&void 0!==e.externalSubnets){for(i=[],n=e.externalSubnets,o=0;o<n.length;o++)r=iO.constructFromObject(n[o],void 0),i.push(r);t.setExternalSubnets(i)}if(e.hasOwnProperty("externalRoutingDomainReference")&&null!==e.externalRoutingDomainReference&&void 0!==e.externalRoutingDomainReference&&t.setExternalRoutingDomainReference(e.externalRoutingDomainReference),e.hasOwnProperty("externallyRoutablePrefixes")&&null!==e.externallyRoutablePrefixes&&void 0!==e.externallyRoutablePrefixes){for(i=[],n=e.externallyRoutablePrefixes,o=0;o<n.length;o++)r=bt.constructFromObject(n[o],void 0),i.push(r);t.setExternallyRoutablePrefixes(i)}if(!a)for(var u in t.$unknownFields=yO({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getCommonDhcpOptions",value:function(){return this.commonDhcpOptions}},{key:"setCommonDhcpOptions",value:function(e){this.commonDhcpOptions=e}},{key:"getSnatIps",value:function(){return this.snatIps}},{key:"setSnatIps",value:function(e){this.snatIps=e}},{key:"getExternalSubnets",value:function(){return this.externalSubnets}},{key:"setExternalSubnets",value:function(e){this.externalSubnets=e}},{key:"getExternalRoutingDomainReference",value:function(){return this.externalRoutingDomainReference}},{key:"setExternalRoutingDomainReference",value:function(e){this.externalRoutingDomainReference=e}},{key:"getExternallyRoutablePrefixes",value:function(){return this.externallyRoutablePrefixes}},{key:"setExternallyRoutablePrefixes",value:function(e){this.externallyRoutablePrefixes=e}},{key:"toJson",value:function(e){return yO(!1===e?yO(yO(yO(yO(yO(yO(yO(yO(yO(yO(yO({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getCommonDhcpOptions()&&null!==this.getCommonDhcpOptions()?{commonDhcpOptions:this.getCommonDhcpOptions().toJson(!1)}:{}),void 0!==this.getSnatIps()&&null!==this.getSnatIps()?{snatIps:this.getSnatIps().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExternalSubnets()&&null!==this.getExternalSubnets()?{externalSubnets:this.getExternalSubnets().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExternalRoutingDomainReference()&&null!==this.getExternalRoutingDomainReference()?{externalRoutingDomainReference:this.getExternalRoutingDomainReference()}:{}),void 0!==this.getExternallyRoutablePrefixes()&&null!==this.getExternallyRoutablePrefixes()?{externallyRoutablePrefixes:this.getExternallyRoutablePrefixes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):yO(yO(yO(yO(yO(yO(yO(yO(yO({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getCommonDhcpOptions()&&null!==this.getCommonDhcpOptions()?{commonDhcpOptions:this.getCommonDhcpOptions().toJson()}:{}),void 0!==this.getExternalSubnets()&&null!==this.getExternalSubnets()?{externalSubnets:this.getExternalSubnets().map((function(e){return e.toJson()}))}:{}),void 0!==this.getExternalRoutingDomainReference()&&null!==this.getExternalRoutingDomainReference()?{externalRoutingDomainReference:this.getExternalRoutingDomainReference()}:{}),void 0!==this.getExternallyRoutablePrefixes()&&null!==this.getExternallyRoutablePrefixes()?{externallyRoutablePrefixes:this.getExternallyRoutablePrefixes().map((function(e){return e.toJson()}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,128))return new f("name","does not satisfy required maxLength constraint: 128")}if("description"===t){if(void 0===this.description||null===this.description)return new f("description","undefined or null");if(!u.validateMaxLength(this.description,1e3))return new f("description","does not satisfy required maxLength constraint: 1000")}if("commonDhcpOptions"===t&&(void 0===this.commonDhcpOptions||null===this.commonDhcpOptions))return new f("commonDhcpOptions","undefined or null");if("snatIps"===t&&(void 0===this.snatIps||null===this.snatIps))return new f("snatIps","undefined or null");if("externalSubnets"===t&&(void 0===this.externalSubnets||null===this.externalSubnets))return new f("externalSubnets","undefined or null");if("externalRoutingDomainReference"===t){if(void 0===this.externalRoutingDomainReference||null===this.externalRoutingDomainReference)return new f("externalRoutingDomainReference","undefined or null");if(!u.validatePattern(this.externalRoutingDomainReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("externalRoutingDomainReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"externallyRoutablePrefixes"!==t||void 0!==this.externallyRoutablePrefixes&&null!==this.externallyRoutablePrefixes?new f(t,"no such property exists"):new f("externallyRoutablePrefixes","undefined or null")}}])&&gO(t.prototype,n),r&&gO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function jO(e){return(jO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function PO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PO(Object(n),!0).forEach((function(t){TO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TO(e,t,n){return(t=FO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FO(r.key),r)}}function FO(e){var t=function(e,t){if("object"!==jO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jO(t)?t:String(t)}function RO(e,t){return(RO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function DO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AO(e);if(t){var o=AO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return EO(this,n)}}function EO(e,t){if(t&&("object"===jO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function AO(e){return(AO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}kO.prototype.name=void 0,kO.prototype.description=void 0,kO.prototype.commonDhcpOptions=void 0,kO.prototype.snatIps=void 0,kO.prototype.externalSubnets=void 0,kO.prototype.externalRoutingDomainReference=void 0,kO.prototype.externallyRoutablePrefixes=void 0;var NO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RO(e,t)}(s,e);var t,n,r,o=DO(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.VpcApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpcApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.Vpc"===n)t.setData(kO.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=SO({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof kO?"networking.v4.config.Vpc":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return SO(!1===e?SO(SO({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):SO(SO({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&IO(t.prototype,n),r&&IO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function xO(e){return(xO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function MO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MO(Object(n),!0).forEach((function(t){LO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LO(e,t,n){return(t=JO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JO(r.key),r)}}function JO(e){var t=function(e,t){if("object"!==xO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xO(t)?t:String(t)}function VO(e,t){return(VO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function UO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BO(e);if(t){var o=BO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return GO(this,n)}}function GO(e,t){if(t&&("object"===xO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function BO(e){return(BO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}NO.prototype.metadata=void 0,NO.prototype.data=void 0,NO.prototype.$reserved=void 0,NO.prototype.$objectType=void 0,NO.prototype.$unknownFields=void 0;var qO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VO(e,t)}(s,e);var t,n,r,o=UO(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.VpcListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpcListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.Vpc>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=kO.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=CO({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof kO?"List<networking.v4.config.Vpc>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return CO(!1===e?CO(CO({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):CO(CO({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&_O(t.prototype,n),r&&_O(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function WO(e){return(WO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KO(Object(n),!0).forEach((function(t){zO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zO(e,t,n){return(t=XO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XO(r.key),r)}}function XO(e){var t=function(e,t){if("object"!==WO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==WO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===WO(t)?t:String(t)}qO.prototype.metadata=void 0,qO.prototype.data=void 0,qO.prototype.$reserved=void 0,qO.prototype.$objectType=void 0,qO.prototype.$unknownFields=void 0;var QO=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createVpc",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof kO&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createVpc");var o={},i={},s=HO(HO({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpcs","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteVpc",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteVpc");var r={extId:e},o={},i=HO(HO({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpcs/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getVpc",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getVpc");var r={extId:e},o={},i=HO(HO({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=NO;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpcs/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listVpcs",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=HO(HO(HO(HO({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=HO(HO({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=qO;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpcs","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateVpc",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof kO&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateVpc");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateVpc");var i={extId:e},s={},a=HO(HO({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpcs/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&YO(t.prototype,n),o&&YO(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ZO(e){return(ZO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e$(Object(n),!0).forEach((function(t){n$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function n$(e,t,n){return(t=o$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o$(r.key),r)}}function o$(e){var t=function(e,t){if("object"!==ZO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZO(t)?t:String(t)}function i$(e,t){return(i$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s$(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u$(e);if(t){var o=u$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a$(this,n)}}function a$(e,t){if(t&&("object"===ZO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u$(e){return(u$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i$(e,t)}(s,e);var t,n,r,o=s$(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.VpcNsStats",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.VpcNsStats"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,pu.constructFromObject(e,t,!0),e.hasOwnProperty("northSouthIngressBytesPerSec")&&null!==e.northSouthIngressBytesPerSec&&void 0!==e.northSouthIngressBytesPerSec){for(o=[],n=e.northSouthIngressBytesPerSec,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthIngressBytesPerSec(o)}if(e.hasOwnProperty("northSouthEgressBytesPerSec")&&null!==e.northSouthEgressBytesPerSec&&void 0!==e.northSouthEgressBytesPerSec){for(o=[],n=e.northSouthEgressBytesPerSec,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthEgressBytesPerSec(o)}if(e.hasOwnProperty("northSouthIngressPacketsPerSec")&&null!==e.northSouthIngressPacketsPerSec&&void 0!==e.northSouthIngressPacketsPerSec){for(o=[],n=e.northSouthIngressPacketsPerSec,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthIngressPacketsPerSec(o)}if(e.hasOwnProperty("northSouthEgressPacketsPerSec")&&null!==e.northSouthEgressPacketsPerSec&&void 0!==e.northSouthEgressPacketsPerSec){for(o=[],n=e.northSouthEgressPacketsPerSec,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthEgressPacketsPerSec(o)}if(e.hasOwnProperty("northSouthIngressBytesAbs")&&null!==e.northSouthIngressBytesAbs&&void 0!==e.northSouthIngressBytesAbs){for(o=[],n=e.northSouthIngressBytesAbs,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthIngressBytesAbs(o)}if(e.hasOwnProperty("northSouthEgressBytesAbs")&&null!==e.northSouthEgressBytesAbs&&void 0!==e.northSouthEgressBytesAbs){for(o=[],n=e.northSouthEgressBytesAbs,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthEgressBytesAbs(o)}if(e.hasOwnProperty("northSouthIngressPacketsAbs")&&null!==e.northSouthIngressPacketsAbs&&void 0!==e.northSouthIngressPacketsAbs){for(o=[],n=e.northSouthIngressPacketsAbs,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthIngressPacketsAbs(o)}if(e.hasOwnProperty("northSouthEgressPacketsAbs")&&null!==e.northSouthEgressPacketsAbs&&void 0!==e.northSouthEgressPacketsAbs){for(o=[],n=e.northSouthEgressPacketsAbs,r=0;r<n.length;r++)o.push(n[r]);t.setNorthSouthEgressPacketsAbs(o)}if(!i)for(var a in t.$unknownFields=t$({},e.$unknownFields),e)Object.keys(t).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(t.$unknownFields[a]=e[a])}return t}}],(n=[{key:"getNorthSouthIngressBytesPerSec",value:function(){return this.northSouthIngressBytesPerSec}},{key:"setNorthSouthIngressBytesPerSec",value:function(e){this.northSouthIngressBytesPerSec=e}},{key:"getNorthSouthEgressBytesPerSec",value:function(){return this.northSouthEgressBytesPerSec}},{key:"setNorthSouthEgressBytesPerSec",value:function(e){this.northSouthEgressBytesPerSec=e}},{key:"getNorthSouthIngressPacketsPerSec",value:function(){return this.northSouthIngressPacketsPerSec}},{key:"setNorthSouthIngressPacketsPerSec",value:function(e){this.northSouthIngressPacketsPerSec=e}},{key:"getNorthSouthEgressPacketsPerSec",value:function(){return this.northSouthEgressPacketsPerSec}},{key:"setNorthSouthEgressPacketsPerSec",value:function(e){this.northSouthEgressPacketsPerSec=e}},{key:"getNorthSouthIngressBytesAbs",value:function(){return this.northSouthIngressBytesAbs}},{key:"setNorthSouthIngressBytesAbs",value:function(e){this.northSouthIngressBytesAbs=e}},{key:"getNorthSouthEgressBytesAbs",value:function(){return this.northSouthEgressBytesAbs}},{key:"setNorthSouthEgressBytesAbs",value:function(e){this.northSouthEgressBytesAbs=e}},{key:"getNorthSouthIngressPacketsAbs",value:function(){return this.northSouthIngressPacketsAbs}},{key:"setNorthSouthIngressPacketsAbs",value:function(e){this.northSouthIngressPacketsAbs=e}},{key:"getNorthSouthEgressPacketsAbs",value:function(){return this.northSouthEgressPacketsAbs}},{key:"setNorthSouthEgressPacketsAbs",value:function(e){this.northSouthEgressPacketsAbs=e}},{key:"toJson",value:function(e){return t$(!1===e?t$(t$(t$(t$(t$(t$(t$(t$(t$(t$(t$(t$(t$({},void 0!==this.getNorthSouthIngressBytesPerSec()&&null!==this.getNorthSouthIngressBytesPerSec()?{northSouthIngressBytesPerSec:this.getNorthSouthIngressBytesPerSec()}:{}),void 0!==this.getNorthSouthEgressBytesPerSec()&&null!==this.getNorthSouthEgressBytesPerSec()?{northSouthEgressBytesPerSec:this.getNorthSouthEgressBytesPerSec()}:{}),void 0!==this.getNorthSouthIngressPacketsPerSec()&&null!==this.getNorthSouthIngressPacketsPerSec()?{northSouthIngressPacketsPerSec:this.getNorthSouthIngressPacketsPerSec()}:{}),void 0!==this.getNorthSouthEgressPacketsPerSec()&&null!==this.getNorthSouthEgressPacketsPerSec()?{northSouthEgressPacketsPerSec:this.getNorthSouthEgressPacketsPerSec()}:{}),void 0!==this.getNorthSouthIngressBytesAbs()&&null!==this.getNorthSouthIngressBytesAbs()?{northSouthIngressBytesAbs:this.getNorthSouthIngressBytesAbs()}:{}),void 0!==this.getNorthSouthEgressBytesAbs()&&null!==this.getNorthSouthEgressBytesAbs()?{northSouthEgressBytesAbs:this.getNorthSouthEgressBytesAbs()}:{}),void 0!==this.getNorthSouthIngressPacketsAbs()&&null!==this.getNorthSouthIngressPacketsAbs()?{northSouthIngressPacketsAbs:this.getNorthSouthIngressPacketsAbs()}:{}),void 0!==this.getNorthSouthEgressPacketsAbs()&&null!==this.getNorthSouthEgressPacketsAbs()?{northSouthEgressPacketsAbs:this.getNorthSouthEgressPacketsAbs()}:{}),void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):t$(t$(t$(t$(t$(t$(t$(t$(t$(t$(t$(t$({},void 0!==this.getNorthSouthIngressBytesPerSec()&&null!==this.getNorthSouthIngressBytesPerSec()?{northSouthIngressBytesPerSec:this.getNorthSouthIngressBytesPerSec()}:{}),void 0!==this.getNorthSouthEgressBytesPerSec()&&null!==this.getNorthSouthEgressBytesPerSec()?{northSouthEgressBytesPerSec:this.getNorthSouthEgressBytesPerSec()}:{}),void 0!==this.getNorthSouthIngressPacketsPerSec()&&null!==this.getNorthSouthIngressPacketsPerSec()?{northSouthIngressPacketsPerSec:this.getNorthSouthIngressPacketsPerSec()}:{}),void 0!==this.getNorthSouthEgressPacketsPerSec()&&null!==this.getNorthSouthEgressPacketsPerSec()?{northSouthEgressPacketsPerSec:this.getNorthSouthEgressPacketsPerSec()}:{}),void 0!==this.getNorthSouthIngressBytesAbs()&&null!==this.getNorthSouthIngressBytesAbs()?{northSouthIngressBytesAbs:this.getNorthSouthIngressBytesAbs()}:{}),void 0!==this.getNorthSouthEgressBytesAbs()&&null!==this.getNorthSouthEgressBytesAbs()?{northSouthEgressBytesAbs:this.getNorthSouthEgressBytesAbs()}:{}),void 0!==this.getNorthSouthIngressPacketsAbs()&&null!==this.getNorthSouthIngressPacketsAbs()?{northSouthIngressPacketsAbs:this.getNorthSouthIngressPacketsAbs()}:{}),void 0!==this.getNorthSouthEgressPacketsAbs()&&null!==this.getNorthSouthEgressPacketsAbs()?{northSouthEgressPacketsAbs:this.getNorthSouthEgressPacketsAbs()}:{}),void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"northSouthIngressBytesPerSec"!==t||void 0!==this.northSouthIngressBytesPerSec&&null!==this.northSouthIngressBytesPerSec?"northSouthEgressBytesPerSec"!==t||void 0!==this.northSouthEgressBytesPerSec&&null!==this.northSouthEgressBytesPerSec?"northSouthIngressPacketsPerSec"!==t||void 0!==this.northSouthIngressPacketsPerSec&&null!==this.northSouthIngressPacketsPerSec?"northSouthEgressPacketsPerSec"!==t||void 0!==this.northSouthEgressPacketsPerSec&&null!==this.northSouthEgressPacketsPerSec?"northSouthIngressBytesAbs"!==t||void 0!==this.northSouthIngressBytesAbs&&null!==this.northSouthIngressBytesAbs?"northSouthEgressBytesAbs"!==t||void 0!==this.northSouthEgressBytesAbs&&null!==this.northSouthEgressBytesAbs?"northSouthIngressPacketsAbs"!==t||void 0!==this.northSouthIngressPacketsAbs&&null!==this.northSouthIngressPacketsAbs?"northSouthEgressPacketsAbs"!==t||void 0!==this.northSouthEgressPacketsAbs&&null!==this.northSouthEgressPacketsAbs?new f(t,"no such property exists"):new f("northSouthEgressPacketsAbs","undefined or null"):new f("northSouthIngressPacketsAbs","undefined or null"):new f("northSouthEgressBytesAbs","undefined or null"):new f("northSouthIngressBytesAbs","undefined or null"):new f("northSouthEgressPacketsPerSec","undefined or null"):new f("northSouthIngressPacketsPerSec","undefined or null"):new f("northSouthEgressBytesPerSec","undefined or null"):new f("northSouthIngressBytesPerSec","undefined or null")}}])&&r$(t.prototype,n),r&&r$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(pu);function l$(e){return(l$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f$(Object(n),!0).forEach((function(t){p$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p$(e,t,n){return(t=y$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y$(r.key),r)}}function y$(e){var t=function(e,t){if("object"!==l$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l$(t)?t:String(t)}function v$(e,t){return(v$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g$(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w$(e);if(t){var o=w$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b$(this,n)}}function b$(e,t){if(t&&("object"===l$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w$(e){return(w$=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}c$.prototype.northSouthIngressBytesPerSec=void 0,c$.prototype.northSouthEgressBytesPerSec=void 0,c$.prototype.northSouthIngressPacketsPerSec=void 0,c$.prototype.northSouthEgressPacketsPerSec=void 0,c$.prototype.northSouthIngressBytesAbs=void 0,c$.prototype.northSouthEgressBytesAbs=void 0,c$.prototype.northSouthIngressPacketsAbs=void 0,c$.prototype.northSouthEgressPacketsAbs=void 0;var m$=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v$(e,t)}(s,e);var t,n,r,o=g$(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.VpcNsStatsApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.VpcNsStatsApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.stats.VpcNsStats"===n)t.setData(c$.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=d$({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof c$?"networking.v4.stats.VpcNsStats":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return d$(!1===e?d$(d$({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):d$(d$({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&h$(t.prototype,n),r&&h$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function O$(e){return(O$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$$(Object(n),!0).forEach((function(t){j$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j$(e,t,n){return(t=S$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S$(r.key),r)}}function S$(e){var t=function(e,t){if("object"!==O$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==O$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===O$(t)?t:String(t)}m$.prototype.metadata=void 0,m$.prototype.data=void 0,m$.prototype.$reserved=void 0,m$.prototype.$objectType=void 0,m$.prototype.$unknownFields=void 0;var T$=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"getVpcNsStats",value:function(e,t,n){var r=(arguments.length<=3?0:arguments.length-3)>0?arguments.length<=3?void 0:arguments[3]:{};n=n||{};var o=null;if(null==e)throw new Error("Missing the required parameter 'vpcUuid' when calling getVpcNsStats");if(null==t)throw new Error("Missing the required parameter 'extSubnetUuid' when calling getVpcNsStats");var i={vpcUuid:e,extSubnetUuid:t},s=k$(k$(k$(k$(k$({},n.hasOwnProperty("$startTime")?{$startTime:n.$startTime}:{}),n.hasOwnProperty("$endTime")?{$endTime:n.$endTime}:{}),n.hasOwnProperty("$samplingInterval")?{$samplingInterval:n.$samplingInterval}:{}),n.hasOwnProperty("$statType")?{$statType:n.$statType}:{}),n.hasOwnProperty("$select")?{$select:n.$select}:{}),a=k$(k$({},r.hasOwnProperty("If-Match")&&null!==r["If-Match"]?{"If-Match":r["If-Match"].toString()}:{}),r.hasOwnProperty("If-None-Match")&&null!==r["If-None-Match"]?{"If-None-Match":r["If-None-Match"].toString()}:{}),u={},c=["basicAuthScheme"],l=[],f=["application/json"],d=m$;return this.apiClient.callApi("/api/networking/v4.0.a1/stats/vpc/{vpcUuid}/external-subnets/{extSubnetUuid}","GET",i,s,a,u,o,c,l,f,d)}}])&&P$(t.prototype,n),o&&P$(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),I$={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RESTART:"RESTART",CLEAR:"CLEAR",HOLD:"HOLD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(I$).find((function(t){return I$[t]===e}));return null==t?I$.$UNKNOWN:I$[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case I$.$UNKNOWN:case I$.$REDACTED:case I$.RESTART:case I$.CLEAR:case I$.HOLD:return;default:throw new Error("Invalid : must be DpdOperation.{ $UNKNOWN|$REDACTED|RESTART|CLEAR|HOLD }")}}};Object.freeze(I$);var F$=I$;function R$(e){return(R$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D$(Object(n),!0).forEach((function(t){A$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A$(e,t,n){return(t=x$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x$(r.key),r)}}function x$(e){var t=function(e,t){if("object"!==R$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==R$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===R$(t)?t:String(t)}var M$=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.DpdConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.DpdConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("operation")&&null!==t.operation&&void 0!==t.operation&&n.setOperation(F$.constructFromObject(t.operation)),t.hasOwnProperty("intervalSecs")&&null!==t.intervalSecs&&void 0!==t.intervalSecs&&n.setIntervalSecs(t.intervalSecs),t.hasOwnProperty("timeoutSecs")&&null!==t.timeoutSecs&&void 0!==t.timeoutSecs&&n.setTimeoutSecs(t.timeoutSecs),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=E$({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getOperation",value:function(){return this.operation}},{key:"setOperation",value:function(e){this.operation=e}},{key:"getIntervalSecs",value:function(){return this.intervalSecs}},{key:"setIntervalSecs",value:function(e){this.intervalSecs=e}},{key:"getTimeoutSecs",value:function(){return this.timeoutSecs}},{key:"setTimeoutSecs",value:function(e){this.timeoutSecs=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return E$(E$(E$(E$({},void 0!==this.getOperation()&&null!==this.getOperation()?{operation:this.getOperation()}:{}),void 0!==this.getIntervalSecs()&&null!==this.getIntervalSecs()?{intervalSecs:this.getIntervalSecs()}:{}),void 0!==this.getTimeoutSecs()&&null!==this.getTimeoutSecs()?{timeoutSecs:this.getTimeoutSecs()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"operation"!==t||void 0!==this.operation&&null!==this.operation?"intervalSecs"!==t||void 0!==this.intervalSecs&&null!==this.intervalSecs?"timeoutSecs"!==t||void 0!==this.timeoutSecs&&null!==this.timeoutSecs?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("timeoutSecs","undefined or null"):new f("intervalSecs","undefined or null"):new f("operation","undefined or null")}}])&&N$(t.prototype,n),r&&N$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();M$.prototype.operation=void 0,M$.prototype.intervalSecs=void 0,M$.prototype.timeoutSecs=void 0,M$.prototype.$reserved=void 0,M$.prototype.$objectType=void 0,M$.prototype.$unknownFields=void 0;var C$={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INITIATOR:"INITIATOR",ACCEPTOR:"ACCEPTOR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(C$).find((function(t){return C$[t]===e}));return null==t?C$.$UNKNOWN:C$[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case C$.$UNKNOWN:case C$.$REDACTED:case C$.INITIATOR:case C$.ACCEPTOR:return;default:throw new Error("Invalid : must be GatewayRole.{ $UNKNOWN|$REDACTED|INITIATOR|ACCEPTOR }")}}};Object.freeze(C$);var L$=C$,_$={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MD5:"MD5",SHA1:"SHA1",SHA256:"SHA256",SHA384:"SHA384",SHA512:"SHA512",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(_$).find((function(t){return _$[t]===e}));return null==t?_$.$UNKNOWN:_$[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case _$.$UNKNOWN:case _$.$REDACTED:case _$.MD5:case _$.SHA1:case _$.SHA256:case _$.SHA384:case _$.SHA512:return;default:throw new Error("Invalid : must be AuthenticationAlgorithm.{ $UNKNOWN|$REDACTED|MD5|SHA1|SHA256|SHA384|SHA512 }")}}};Object.freeze(_$);var J$=_$,V$={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AES128:"AES128",AES256:"AES256",TRIPLE_DES:"TRIPLE_DES",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(V$).find((function(t){return V$[t]===e}));return null==t?V$.$UNKNOWN:V$[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case V$.$UNKNOWN:case V$.$REDACTED:case V$.AES128:case V$.AES256:case V$.TRIPLE_DES:return;default:throw new Error("Invalid : must be EncryptionAlgorithm.{ $UNKNOWN|$REDACTED|AES128|AES256|TRIPLE_DES }")}}};Object.freeze(V$);var U$=V$;function G$(e){return(G$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B$(Object(n),!0).forEach((function(t){W$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W$(e,t,n){return(t=H$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H$(r.key),r)}}function H$(e){var t=function(e,t){if("object"!==G$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==G$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===G$(t)?t:String(t)}var z$=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.preSharedKey=t,this.$objectType="networking.v4.config.IpsecConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IpsecConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("preSharedKey")&&null!==t.preSharedKey&&void 0!==t.preSharedKey&&n.setPreSharedKey(t.preSharedKey),t.hasOwnProperty("localVtiIp")&&null!==t.localVtiIp&&void 0!==t.localVtiIp&&n.setLocalVtiIp(Xe.constructFromObject(t.localVtiIp)),t.hasOwnProperty("remoteVtiIp")&&null!==t.remoteVtiIp&&void 0!==t.remoteVtiIp&&n.setRemoteVtiIp(Xe.constructFromObject(t.remoteVtiIp)),t.hasOwnProperty("localAuthenticationId")&&null!==t.localAuthenticationId&&void 0!==t.localAuthenticationId&&n.setLocalAuthenticationId(t.localAuthenticationId),t.hasOwnProperty("remoteAuthenticationId")&&null!==t.remoteAuthenticationId&&void 0!==t.remoteAuthenticationId&&n.setRemoteAuthenticationId(t.remoteAuthenticationId),t.hasOwnProperty("ikeLifetimeSecs")&&null!==t.ikeLifetimeSecs&&void 0!==t.ikeLifetimeSecs&&n.setIkeLifetimeSecs(t.ikeLifetimeSecs),t.hasOwnProperty("ipsecLifetimeSecs")&&null!==t.ipsecLifetimeSecs&&void 0!==t.ipsecLifetimeSecs&&n.setIpsecLifetimeSecs(t.ipsecLifetimeSecs),t.hasOwnProperty("espPfsDhGroupNumber")&&null!==t.espPfsDhGroupNumber&&void 0!==t.espPfsDhGroupNumber&&n.setEspPfsDhGroupNumber(t.espPfsDhGroupNumber),t.hasOwnProperty("ikeEncryptionAlgorithm")&&null!==t.ikeEncryptionAlgorithm&&void 0!==t.ikeEncryptionAlgorithm&&n.setIkeEncryptionAlgorithm(U$.constructFromObject(t.ikeEncryptionAlgorithm)),t.hasOwnProperty("ikeAuthenticationAlgorithm")&&null!==t.ikeAuthenticationAlgorithm&&void 0!==t.ikeAuthenticationAlgorithm&&n.setIkeAuthenticationAlgorithm(J$.constructFromObject(t.ikeAuthenticationAlgorithm)),t.hasOwnProperty("ipsecEncryptionAlgorithm")&&null!==t.ipsecEncryptionAlgorithm&&void 0!==t.ipsecEncryptionAlgorithm&&n.setIpsecEncryptionAlgorithm(U$.constructFromObject(t.ipsecEncryptionAlgorithm)),t.hasOwnProperty("ipsecAuthenticationAlgorithm")&&null!==t.ipsecAuthenticationAlgorithm&&void 0!==t.ipsecAuthenticationAlgorithm&&n.setIpsecAuthenticationAlgorithm(J$.constructFromObject(t.ipsecAuthenticationAlgorithm)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=q$({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPreSharedKey",value:function(){return this.preSharedKey}},{key:"setPreSharedKey",value:function(e){this.preSharedKey=e}},{key:"getLocalVtiIp",value:function(){return this.localVtiIp}},{key:"setLocalVtiIp",value:function(e){this.localVtiIp=e}},{key:"getRemoteVtiIp",value:function(){return this.remoteVtiIp}},{key:"setRemoteVtiIp",value:function(e){this.remoteVtiIp=e}},{key:"getLocalAuthenticationId",value:function(){return this.localAuthenticationId}},{key:"setLocalAuthenticationId",value:function(e){this.localAuthenticationId=e}},{key:"getRemoteAuthenticationId",value:function(){return this.remoteAuthenticationId}},{key:"setRemoteAuthenticationId",value:function(e){this.remoteAuthenticationId=e}},{key:"getIkeLifetimeSecs",value:function(){return this.ikeLifetimeSecs}},{key:"setIkeLifetimeSecs",value:function(e){this.ikeLifetimeSecs=e}},{key:"getIpsecLifetimeSecs",value:function(){return this.ipsecLifetimeSecs}},{key:"setIpsecLifetimeSecs",value:function(e){this.ipsecLifetimeSecs=e}},{key:"getEspPfsDhGroupNumber",value:function(){return this.espPfsDhGroupNumber}},{key:"setEspPfsDhGroupNumber",value:function(e){this.espPfsDhGroupNumber=e}},{key:"getIkeEncryptionAlgorithm",value:function(){return this.ikeEncryptionAlgorithm}},{key:"setIkeEncryptionAlgorithm",value:function(e){this.ikeEncryptionAlgorithm=e}},{key:"getIkeAuthenticationAlgorithm",value:function(){return this.ikeAuthenticationAlgorithm}},{key:"setIkeAuthenticationAlgorithm",value:function(e){this.ikeAuthenticationAlgorithm=e}},{key:"getIpsecEncryptionAlgorithm",value:function(){return this.ipsecEncryptionAlgorithm}},{key:"setIpsecEncryptionAlgorithm",value:function(e){this.ipsecEncryptionAlgorithm=e}},{key:"getIpsecAuthenticationAlgorithm",value:function(){return this.ipsecAuthenticationAlgorithm}},{key:"setIpsecAuthenticationAlgorithm",value:function(e){this.ipsecAuthenticationAlgorithm=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return q$(q$(q$(q$(q$(q$(q$(q$(q$(q$(!1===e?q$(q$(q$({},void 0!==this.getPreSharedKey()&&null!==this.getPreSharedKey()?{preSharedKey:this.getPreSharedKey()}:{}),void 0!==this.getLocalVtiIp()&&null!==this.getLocalVtiIp()?{localVtiIp:this.getLocalVtiIp().toJson(!1)}:{}),void 0!==this.getRemoteVtiIp()&&null!==this.getRemoteVtiIp()?{remoteVtiIp:this.getRemoteVtiIp().toJson(!1)}:{}):q$(q$(q$({},void 0!==this.getPreSharedKey()&&null!==this.getPreSharedKey()?{preSharedKey:this.getPreSharedKey()}:{}),void 0!==this.getLocalVtiIp()&&null!==this.getLocalVtiIp()?{localVtiIp:this.getLocalVtiIp().toJson()}:{}),void 0!==this.getRemoteVtiIp()&&null!==this.getRemoteVtiIp()?{remoteVtiIp:this.getRemoteVtiIp().toJson()}:{}),void 0!==this.getLocalAuthenticationId()&&null!==this.getLocalAuthenticationId()?{localAuthenticationId:this.getLocalAuthenticationId()}:{}),void 0!==this.getRemoteAuthenticationId()&&null!==this.getRemoteAuthenticationId()?{remoteAuthenticationId:this.getRemoteAuthenticationId()}:{}),void 0!==this.getIkeLifetimeSecs()&&null!==this.getIkeLifetimeSecs()?{ikeLifetimeSecs:this.getIkeLifetimeSecs()}:{}),void 0!==this.getIpsecLifetimeSecs()&&null!==this.getIpsecLifetimeSecs()?{ipsecLifetimeSecs:this.getIpsecLifetimeSecs()}:{}),void 0!==this.getEspPfsDhGroupNumber()&&null!==this.getEspPfsDhGroupNumber()?{espPfsDhGroupNumber:this.getEspPfsDhGroupNumber()}:{}),void 0!==this.getIkeEncryptionAlgorithm()&&null!==this.getIkeEncryptionAlgorithm()?{ikeEncryptionAlgorithm:this.getIkeEncryptionAlgorithm()}:{}),void 0!==this.getIkeAuthenticationAlgorithm()&&null!==this.getIkeAuthenticationAlgorithm()?{ikeAuthenticationAlgorithm:this.getIkeAuthenticationAlgorithm()}:{}),void 0!==this.getIpsecEncryptionAlgorithm()&&null!==this.getIpsecEncryptionAlgorithm()?{ipsecEncryptionAlgorithm:this.getIpsecEncryptionAlgorithm()}:{}),void 0!==this.getIpsecAuthenticationAlgorithm()&&null!==this.getIpsecAuthenticationAlgorithm()?{ipsecAuthenticationAlgorithm:this.getIpsecAuthenticationAlgorithm()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["preSharedKey"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"preSharedKey"!==t||void 0!==this.preSharedKey&&null!==this.preSharedKey?"localVtiIp"!==t||void 0!==this.localVtiIp&&null!==this.localVtiIp?"remoteVtiIp"!==t||void 0!==this.remoteVtiIp&&null!==this.remoteVtiIp?"localAuthenticationId"!==t||void 0!==this.localAuthenticationId&&null!==this.localAuthenticationId?"remoteAuthenticationId"!==t||void 0!==this.remoteAuthenticationId&&null!==this.remoteAuthenticationId?"ikeLifetimeSecs"!==t||void 0!==this.ikeLifetimeSecs&&null!==this.ikeLifetimeSecs?"ipsecLifetimeSecs"!==t||void 0!==this.ipsecLifetimeSecs&&null!==this.ipsecLifetimeSecs?"espPfsDhGroupNumber"!==t||void 0!==this.espPfsDhGroupNumber&&null!==this.espPfsDhGroupNumber?"ikeEncryptionAlgorithm"!==t||void 0!==this.ikeEncryptionAlgorithm&&null!==this.ikeEncryptionAlgorithm?"ikeAuthenticationAlgorithm"!==t||void 0!==this.ikeAuthenticationAlgorithm&&null!==this.ikeAuthenticationAlgorithm?"ipsecEncryptionAlgorithm"!==t||void 0!==this.ipsecEncryptionAlgorithm&&null!==this.ipsecEncryptionAlgorithm?"ipsecAuthenticationAlgorithm"!==t||void 0!==this.ipsecAuthenticationAlgorithm&&null!==this.ipsecAuthenticationAlgorithm?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipsecAuthenticationAlgorithm","undefined or null"):new f("ipsecEncryptionAlgorithm","undefined or null"):new f("ikeAuthenticationAlgorithm","undefined or null"):new f("ikeEncryptionAlgorithm","undefined or null"):new f("espPfsDhGroupNumber","undefined or null"):new f("ipsecLifetimeSecs","undefined or null"):new f("ikeLifetimeSecs","undefined or null"):new f("remoteAuthenticationId","undefined or null"):new f("localAuthenticationId","undefined or null"):new f("remoteVtiIp","undefined or null"):new f("localVtiIp","undefined or null"):new f("preSharedKey","undefined or null")}}])&&K$(t.prototype,n),r&&K$(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Y$(e){return(Y$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Q$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X$(Object(n),!0).forEach((function(t){Z$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z$(e,t,n){return(t=tk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ek(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tk(r.key),r)}}function tk(e){var t=function(e,t){if("object"!==Y$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Y$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Y$(t)?t:String(t)}z$.prototype.preSharedKey=void 0,z$.prototype.localVtiIp=void 0,z$.prototype.remoteVtiIp=void 0,z$.prototype.localAuthenticationId=void 0,z$.prototype.remoteAuthenticationId=void 0,z$.prototype.ikeLifetimeSecs=void 0,z$.prototype.ipsecLifetimeSecs=void 0,z$.prototype.espPfsDhGroupNumber=void 0,z$.prototype.ikeEncryptionAlgorithm=void 0,z$.prototype.ikeAuthenticationAlgorithm=void 0,z$.prototype.ipsecEncryptionAlgorithm=void 0,z$.prototype.ipsecAuthenticationAlgorithm=void 0,z$.prototype.$reserved=void 0,z$.prototype.$objectType=void 0,z$.prototype.$unknownFields=void 0;var nk=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.QosConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.QosConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ingressLimitMbps")&&null!==t.ingressLimitMbps&&void 0!==t.ingressLimitMbps&&n.setIngressLimitMbps(t.ingressLimitMbps),t.hasOwnProperty("egressLimitMbps")&&null!==t.egressLimitMbps&&void 0!==t.egressLimitMbps&&n.setEgressLimitMbps(t.egressLimitMbps),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Q$({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIngressLimitMbps",value:function(){return this.ingressLimitMbps}},{key:"setIngressLimitMbps",value:function(e){this.ingressLimitMbps=e}},{key:"getEgressLimitMbps",value:function(){return this.egressLimitMbps}},{key:"setEgressLimitMbps",value:function(e){this.egressLimitMbps=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Q$(Q$(Q$({},void 0!==this.getIngressLimitMbps()&&null!==this.getIngressLimitMbps()?{ingressLimitMbps:this.getIngressLimitMbps()}:{}),void 0!==this.getEgressLimitMbps()&&null!==this.getEgressLimitMbps()?{egressLimitMbps:this.getEgressLimitMbps()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ingressLimitMbps"!==t||void 0!==this.ingressLimitMbps&&null!==this.ingressLimitMbps?"egressLimitMbps"!==t||void 0!==this.egressLimitMbps&&null!==this.egressLimitMbps?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("egressLimitMbps","undefined or null"):new f("ingressLimitMbps","undefined or null")}}])&&ek(t.prototype,n),r&&ek(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rk(e){return(rk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ik(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ok(Object(n),!0).forEach((function(t){sk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sk(e,t,n){return(t=uk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ak(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uk(r.key),r)}}function uk(e){var t=function(e,t){if("object"!==rk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rk(t)?t:String(t)}function ck(e,t){return(ck=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dk(e);if(t){var o=dk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fk(this,n)}}function fk(e,t){if(t&&("object"===rk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dk(e){return(dk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}nk.prototype.ingressLimitMbps=void 0,nk.prototype.egressLimitMbps=void 0,nk.prototype.$reserved=void 0,nk.prototype.$objectType=void 0,nk.prototype.$unknownFields=void 0;var pk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ck(e,t)}(s,e);var t,n,r,o=lk(s);function s(e,t,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(i=o.call(this)).localNetworkGatewayReference=e,i.remoteNetworkGatewayReference=t,i.ipsecConfig=n,i.localGatewayRole=r,i.$objectType="networking.v4.config.VpnConnection",i.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpnConnection"},i.$unknownFields={},i}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("localNetworkGatewayReference")&&null!==e.localNetworkGatewayReference&&void 0!==e.localNetworkGatewayReference&&t.setLocalNetworkGatewayReference(e.localNetworkGatewayReference),e.hasOwnProperty("remoteNetworkGatewayReference")&&null!==e.remoteNetworkGatewayReference&&void 0!==e.remoteNetworkGatewayReference&&t.setRemoteNetworkGatewayReference(e.remoteNetworkGatewayReference),e.hasOwnProperty("ipsecConfig")&&null!==e.ipsecConfig&&void 0!==e.ipsecConfig&&t.setIpsecConfig(z$.constructFromObject(e.ipsecConfig)),e.hasOwnProperty("dpdConfig")&&null!==e.dpdConfig&&void 0!==e.dpdConfig&&t.setDpdConfig(M$.constructFromObject(e.dpdConfig)),e.hasOwnProperty("qosConfig")&&null!==e.qosConfig&&void 0!==e.qosConfig&&t.setQosConfig(nk.constructFromObject(e.qosConfig)),e.hasOwnProperty("localGatewayRole")&&null!==e.localGatewayRole&&void 0!==e.localGatewayRole&&t.setLocalGatewayRole(L$.constructFromObject(e.localGatewayRole)),e.hasOwnProperty("dynamicRoutePriority")&&null!==e.dynamicRoutePriority&&void 0!==e.dynamicRoutePriority&&t.setDynamicRoutePriority(e.dynamicRoutePriority),e.hasOwnProperty("advertisedPrefixes")&&null!==e.advertisedPrefixes&&void 0!==e.advertisedPrefixes){for(i=[],n=e.advertisedPrefixes,o=0;o<n.length;o++)r=bt.constructFromObject(n[o],void 0),i.push(r);t.setAdvertisedPrefixes(i)}if(e.hasOwnProperty("learnedPrefixes")&&null!==e.learnedPrefixes&&void 0!==e.learnedPrefixes){for(i=[],n=e.learnedPrefixes,o=0;o<n.length;o++)r=bt.constructFromObject(n[o],void 0),i.push(r);t.setLearnedPrefixes(i)}if(e.hasOwnProperty("ipsecTunnelStatus")&&null!==e.ipsecTunnelStatus&&void 0!==e.ipsecTunnelStatus&&t.setIpsecTunnelStatus(Mt.constructFromObject(e.ipsecTunnelStatus)),e.hasOwnProperty("ebgpStatus")&&null!==e.ebgpStatus&&void 0!==e.ebgpStatus&&t.setEbgpStatus(Mt.constructFromObject(e.ebgpStatus)),!a)for(var u in t.$unknownFields=ik({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getLocalNetworkGatewayReference",value:function(){return this.localNetworkGatewayReference}},{key:"setLocalNetworkGatewayReference",value:function(e){this.localNetworkGatewayReference=e}},{key:"getRemoteNetworkGatewayReference",value:function(){return this.remoteNetworkGatewayReference}},{key:"setRemoteNetworkGatewayReference",value:function(e){this.remoteNetworkGatewayReference=e}},{key:"getIpsecConfig",value:function(){return this.ipsecConfig}},{key:"setIpsecConfig",value:function(e){this.ipsecConfig=e}},{key:"getDpdConfig",value:function(){return this.dpdConfig}},{key:"setDpdConfig",value:function(e){this.dpdConfig=e}},{key:"getQosConfig",value:function(){return this.qosConfig}},{key:"setQosConfig",value:function(e){this.qosConfig=e}},{key:"getLocalGatewayRole",value:function(){return this.localGatewayRole}},{key:"setLocalGatewayRole",value:function(e){this.localGatewayRole=e}},{key:"getDynamicRoutePriority",value:function(){return this.dynamicRoutePriority}},{key:"setDynamicRoutePriority",value:function(e){this.dynamicRoutePriority=e}},{key:"getAdvertisedPrefixes",value:function(){return this.advertisedPrefixes}},{key:"setAdvertisedPrefixes",value:function(e){this.advertisedPrefixes=e}},{key:"getLearnedPrefixes",value:function(){return this.learnedPrefixes}},{key:"setLearnedPrefixes",value:function(e){this.learnedPrefixes=e}},{key:"getIpsecTunnelStatus",value:function(){return this.ipsecTunnelStatus}},{key:"setIpsecTunnelStatus",value:function(e){this.ipsecTunnelStatus=e}},{key:"getEbgpStatus",value:function(){return this.ebgpStatus}},{key:"setEbgpStatus",value:function(e){this.ebgpStatus=e}},{key:"toJson",value:function(e){return ik(!1===e?ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getLocalNetworkGatewayReference()&&null!==this.getLocalNetworkGatewayReference()?{localNetworkGatewayReference:this.getLocalNetworkGatewayReference()}:{}),void 0!==this.getRemoteNetworkGatewayReference()&&null!==this.getRemoteNetworkGatewayReference()?{remoteNetworkGatewayReference:this.getRemoteNetworkGatewayReference()}:{}),void 0!==this.getIpsecConfig()&&null!==this.getIpsecConfig()?{ipsecConfig:this.getIpsecConfig().toJson(!1)}:{}),void 0!==this.getDpdConfig()&&null!==this.getDpdConfig()?{dpdConfig:this.getDpdConfig().toJson(!1)}:{}),void 0!==this.getQosConfig()&&null!==this.getQosConfig()?{qosConfig:this.getQosConfig().toJson(!1)}:{}),void 0!==this.getLocalGatewayRole()&&null!==this.getLocalGatewayRole()?{localGatewayRole:this.getLocalGatewayRole()}:{}),void 0!==this.getDynamicRoutePriority()&&null!==this.getDynamicRoutePriority()?{dynamicRoutePriority:this.getDynamicRoutePriority()}:{}),void 0!==this.getAdvertisedPrefixes()&&null!==this.getAdvertisedPrefixes()?{advertisedPrefixes:this.getAdvertisedPrefixes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLearnedPrefixes()&&null!==this.getLearnedPrefixes()?{learnedPrefixes:this.getLearnedPrefixes().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getIpsecTunnelStatus()&&null!==this.getIpsecTunnelStatus()?{ipsecTunnelStatus:this.getIpsecTunnelStatus().toJson(!1)}:{}),void 0!==this.getEbgpStatus()&&null!==this.getEbgpStatus()?{ebgpStatus:this.getEbgpStatus().toJson(!1)}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik(ik({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getLocalNetworkGatewayReference()&&null!==this.getLocalNetworkGatewayReference()?{localNetworkGatewayReference:this.getLocalNetworkGatewayReference()}:{}),void 0!==this.getRemoteNetworkGatewayReference()&&null!==this.getRemoteNetworkGatewayReference()?{remoteNetworkGatewayReference:this.getRemoteNetworkGatewayReference()}:{}),void 0!==this.getIpsecConfig()&&null!==this.getIpsecConfig()?{ipsecConfig:this.getIpsecConfig().toJson()}:{}),void 0!==this.getDpdConfig()&&null!==this.getDpdConfig()?{dpdConfig:this.getDpdConfig().toJson()}:{}),void 0!==this.getQosConfig()&&null!==this.getQosConfig()?{qosConfig:this.getQosConfig().toJson()}:{}),void 0!==this.getLocalGatewayRole()&&null!==this.getLocalGatewayRole()?{localGatewayRole:this.getLocalGatewayRole()}:{}),void 0!==this.getDynamicRoutePriority()&&null!==this.getDynamicRoutePriority()?{dynamicRoutePriority:this.getDynamicRoutePriority()}:{}),void 0!==this.getIpsecTunnelStatus()&&null!==this.getIpsecTunnelStatus()?{ipsecTunnelStatus:this.getIpsecTunnelStatus().toJson()}:{}),void 0!==this.getEbgpStatus()&&null!==this.getEbgpStatus()?{ebgpStatus:this.getEbgpStatus().toJson()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["localNetworkGatewayReference","remoteNetworkGatewayReference","ipsecConfig","localGatewayRole"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,128))return new f("name","does not satisfy required maxLength constraint: 128")}if("description"===t){if(void 0===this.description||null===this.description)return new f("description","undefined or null");if(!u.validateMaxLength(this.description,1e3))return new f("description","does not satisfy required maxLength constraint: 1000")}if("localNetworkGatewayReference"===t){if(void 0===this.localNetworkGatewayReference||null===this.localNetworkGatewayReference)return new f("localNetworkGatewayReference","undefined or null");if(!u.validatePattern(this.localNetworkGatewayReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("localNetworkGatewayReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("remoteNetworkGatewayReference"===t){if(void 0===this.remoteNetworkGatewayReference||null===this.remoteNetworkGatewayReference)return new f("remoteNetworkGatewayReference","undefined or null");if(!u.validatePattern(this.remoteNetworkGatewayReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("remoteNetworkGatewayReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("ipsecConfig"===t&&(void 0===this.ipsecConfig||null===this.ipsecConfig))return new f("ipsecConfig","undefined or null");if("dpdConfig"===t&&(void 0===this.dpdConfig||null===this.dpdConfig))return new f("dpdConfig","undefined or null");if("qosConfig"===t&&(void 0===this.qosConfig||null===this.qosConfig))return new f("qosConfig","undefined or null");if("localGatewayRole"===t&&(void 0===this.localGatewayRole||null===this.localGatewayRole))return new f("localGatewayRole","undefined or null");if("dynamicRoutePriority"===t){if(void 0===this.dynamicRoutePriority||null===this.dynamicRoutePriority)return new f("dynamicRoutePriority","undefined or null");if(!u.validateMaximum(this.dynamicRoutePriority,1e3))return new f("dynamicRoutePriority","does not satisfy required maximum constraint: 1000");if(!u.validateMinimum(this.dynamicRoutePriority,10))return new f("dynamicRoutePriority","does not satisfy required minimum constraint: 10")}return"advertisedPrefixes"!==t||void 0!==this.advertisedPrefixes&&null!==this.advertisedPrefixes?"learnedPrefixes"!==t||void 0!==this.learnedPrefixes&&null!==this.learnedPrefixes?"ipsecTunnelStatus"!==t||void 0!==this.ipsecTunnelStatus&&null!==this.ipsecTunnelStatus?"ebgpStatus"!==t||void 0!==this.ebgpStatus&&null!==this.ebgpStatus?new f(t,"no such property exists"):new f("ebgpStatus","undefined or null"):new f("ipsecTunnelStatus","undefined or null"):new f("learnedPrefixes","undefined or null"):new f("advertisedPrefixes","undefined or null")}}])&&ak(t.prototype,n),r&&ak(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function hk(e){return(hk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yk(Object(n),!0).forEach((function(t){gk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gk(e,t,n){return(t=wk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wk(r.key),r)}}function wk(e){var t=function(e,t){if("object"!==hk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hk(t)?t:String(t)}function mk(e,t){return(mk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ok(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kk(e);if(t){var o=kk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $k(this,n)}}function $k(e,t){if(t&&("object"===hk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kk(e){return(kk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}pk.prototype.name=void 0,pk.prototype.description=void 0,pk.prototype.localNetworkGatewayReference=void 0,pk.prototype.remoteNetworkGatewayReference=void 0,pk.prototype.ipsecConfig=void 0,pk.prototype.dpdConfig=void 0,pk.prototype.qosConfig=void 0,pk.prototype.localGatewayRole=void 0,pk.prototype.dynamicRoutePriority=void 0,pk.prototype.advertisedPrefixes=void 0,pk.prototype.learnedPrefixes=void 0,pk.prototype.ipsecTunnelStatus=void 0,pk.prototype.ebgpStatus=void 0;var jk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mk(e,t)}(s,e);var t,n,r,o=Ok(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.VpnConnectionListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpnConnectionListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.VpnConnection>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=pk.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=vk({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof pk?"List<networking.v4.config.VpnConnection>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vk(!1===e?vk(vk({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):vk(vk({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&bk(t.prototype,n),r&&bk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Pk(e){return(Pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sk(Object(n),!0).forEach((function(t){Ik(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ik(e,t,n){return(t=Rk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rk(r.key),r)}}function Rk(e){var t=function(e,t){if("object"!==Pk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pk(t)?t:String(t)}function Dk(e,t){return(Dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ek(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nk(e);if(t){var o=Nk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ak(this,n)}}function Ak(e,t){if(t&&("object"===Pk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nk(e){return(Nk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}jk.prototype.metadata=void 0,jk.prototype.data=void 0,jk.prototype.$reserved=void 0,jk.prototype.$objectType=void 0,jk.prototype.$unknownFields=void 0;var xk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dk(e,t)}(s,e);var t,n,r,o=Ek(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.VpnConnectionApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpnConnectionApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.VpnConnection"===n)t.setData(pk.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Tk({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof pk?"networking.v4.config.VpnConnection":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Tk(!1===e?Tk(Tk({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Tk(Tk({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Fk(t.prototype,n),r&&Fk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Mk(e){return(Mk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ck(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ck(Object(n),!0).forEach((function(t){_k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ck(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _k(e,t,n){return(t=Vk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vk(r.key),r)}}function Vk(e){var t=function(e,t){if("object"!==Mk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mk(t)?t:String(t)}xk.prototype.metadata=void 0,xk.prototype.data=void 0,xk.prototype.$reserved=void 0,xk.prototype.$objectType=void 0,xk.prototype.$unknownFields=void 0;var Uk=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createVpnConnection",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==(n=e instanceof pk&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createVpnConnection");var o={},i={},s=Lk(Lk({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),a={};r.a.addEtagReferenceToHeader(e,s);var u=["basicAuthScheme"],c=["application/json"],l=["application/json"],f=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpn-connections","POST",o,i,s,a,n,u,c,l,f)}},{key:"deleteVpnConnection",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteVpnConnection");var r={extId:e},o={},i=Lk(Lk({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpn-connections/{extId}","DELETE",r,o,i,s,n,a,u,c,l)}},{key:"getVpnConnection",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getVpnConnection");var r={extId:e},o={},i=Lk(Lk({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=xk;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpn-connections/{extId}","GET",r,o,i,s,n,a,u,c,l)}},{key:"listVpnConnections",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},n=null,r={},o=Lk(Lk(Lk(Lk({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),i=Lk(Lk({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],c=["application/json"],l=jk;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpn-connections","GET",r,o,i,s,n,a,u,c,l)}},{key:"updateVpnConnection",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},o=null;if(null==(o=t instanceof pk&&"function"==typeof t.toJson?t.toJson():t))throw new Error("Invalid body when calling updateVpnConnection");if(null==e)throw new Error("Missing the required parameter 'extId' when calling updateVpnConnection");var i={extId:e},s={},a=Lk(Lk({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),u={};r.a.addEtagReferenceToHeader(t,a);var c=["basicAuthScheme"],l=["application/json"],f=["application/json"],d=Qn;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpn-connections/{extId}","PUT",i,s,a,u,o,c,l,f,d)}}])&&Jk(t.prototype,n),o&&Jk(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gk(e){return(Gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bk(Object(n),!0).forEach((function(t){Wk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wk(e,t,n){return(t=Hk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hk(r.key),r)}}function Hk(e){var t=function(e,t){if("object"!==Gk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gk(t)?t:String(t)}function zk(e,t){return(zk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qk(e);if(t){var o=Qk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xk(this,n)}}function Xk(e,t){if(t&&("object"===Gk(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qk(e){return(Qk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zk(e,t)}(s,e);var t,n,r,o=Yk(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.VpnConnectionStats",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.VpnConnectionStats"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,pu.constructFromObject(e,t,!0),e.hasOwnProperty("throughputRxKbps")&&null!==e.throughputRxKbps&&void 0!==e.throughputRxKbps){for(o=[],n=e.throughputRxKbps,r=0;r<n.length;r++)o.push(n[r]);t.setThroughputRxKbps(o)}if(e.hasOwnProperty("throughputTxKbps")&&null!==e.throughputTxKbps&&void 0!==e.throughputTxKbps){for(o=[],n=e.throughputTxKbps,r=0;r<n.length;r++)o.push(n[r]);t.setThroughputTxKbps(o)}if(!i)for(var a in t.$unknownFields=qk({},e.$unknownFields),e)Object.keys(t).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(t.$unknownFields[a]=e[a])}return t}}],(n=[{key:"getThroughputRxKbps",value:function(){return this.throughputRxKbps}},{key:"setThroughputRxKbps",value:function(e){this.throughputRxKbps=e}},{key:"getThroughputTxKbps",value:function(){return this.throughputTxKbps}},{key:"setThroughputTxKbps",value:function(e){this.throughputTxKbps=e}},{key:"toJson",value:function(e){return qk(!1===e?qk(qk(qk(qk(qk(qk(qk({},void 0!==this.getThroughputRxKbps()&&null!==this.getThroughputRxKbps()?{throughputRxKbps:this.getThroughputRxKbps()}:{}),void 0!==this.getThroughputTxKbps()&&null!==this.getThroughputTxKbps()?{throughputTxKbps:this.getThroughputTxKbps()}:{}),void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):qk(qk(qk(qk(qk(qk({},void 0!==this.getThroughputRxKbps()&&null!==this.getThroughputRxKbps()?{throughputRxKbps:this.getThroughputRxKbps()}:{}),void 0!==this.getThroughputTxKbps()&&null!==this.getThroughputTxKbps()?{throughputTxKbps:this.getThroughputTxKbps()}:{}),void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getStatType()&&null!==this.getStatType()?{statType:this.getStatType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"throughputRxKbps"!==t||void 0!==this.throughputRxKbps&&null!==this.throughputRxKbps?"throughputTxKbps"!==t||void 0!==this.throughputTxKbps&&null!==this.throughputTxKbps?new f(t,"no such property exists"):new f("throughputTxKbps","undefined or null"):new f("throughputRxKbps","undefined or null")}}])&&Kk(t.prototype,n),r&&Kk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(pu);function ej(e){return(ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rj(e,t,n){return(t=ij(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ij(r.key),r)}}function ij(e){var t=function(e,t){if("object"!==ej(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ej(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ej(t)?t:String(t)}function sj(e,t){return(sj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function aj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cj(e);if(t){var o=cj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uj(this,n)}}function uj(e,t){if(t&&("object"===ej(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function cj(e){return(cj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Zk.prototype.throughputRxKbps=void 0,Zk.prototype.throughputTxKbps=void 0;var lj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sj(e,t)}(s,e);var t,n,r,o=aj(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.stats.VpnConnectionStatsApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.stats.VpnConnectionStatsApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.stats.VpnConnectionStats"===n)t.setData(Zk.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=nj({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Zk?"networking.v4.stats.VpnConnectionStats":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return nj(!1===e?nj(nj({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):nj(nj({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&oj(t.prototype,n),r&&oj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function fj(e){return(fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dj(Object(n),!0).forEach((function(t){hj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hj(e,t,n){return(t=vj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vj(r.key),r)}}function vj(e){var t=function(e,t){if("object"!==fj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fj(t)?t:String(t)}lj.prototype.metadata=void 0,lj.prototype.data=void 0,lj.prototype.$reserved=void 0,lj.prototype.$objectType=void 0,lj.prototype.$unknownFields=void 0;var gj=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"getVpnConnectionStats",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var r=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getVpnConnectionStats");var o={extId:e},i=pj(pj(pj(pj(pj({},t.hasOwnProperty("$startTime")?{$startTime:t.$startTime}:{}),t.hasOwnProperty("$endTime")?{$endTime:t.$endTime}:{}),t.hasOwnProperty("$samplingInterval")?{$samplingInterval:t.$samplingInterval}:{}),t.hasOwnProperty("$statType")?{$statType:t.$statType}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),s=pj(pj({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),a={},u=["basicAuthScheme"],c=[],l=["application/json"],f=lj;return this.apiClient.callApi("/api/networking/v4.0.a1/stats/vpn-connections/{extId}","GET",o,i,s,a,r,u,c,l,f)}}])&&yj(t.prototype,n),o&&yj(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bj(e){return(bj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wj(Object(n),!0).forEach((function(t){Oj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oj(e,t,n){return(t=kj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kj(r.key),r)}}function kj(e){var t=function(e,t){if("object"!==bj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bj(t)?t:String(t)}var jj=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.VpnVendor",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpnVendor"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("deviceVersions")&&null!==t.deviceVersions&&void 0!==t.deviceVersions){for(i=[],r=t.deviceVersions,o=0;o<r.length;o++)i.push(r[o]);n.setDeviceVersions(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=mj({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDeviceVersions",value:function(){return this.deviceVersions}},{key:"setDeviceVersions",value:function(e){this.deviceVersions=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mj(mj(mj({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDeviceVersions()&&null!==this.getDeviceVersions()?{deviceVersions:this.getDeviceVersions()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"deviceVersions"!==t||void 0!==this.deviceVersions&&null!==this.deviceVersions?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("deviceVersions","undefined or null"):new f("name","undefined or null")}}])&&$j(t.prototype,n),r&&$j(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pj(e){return(Pj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sj(Object(n),!0).forEach((function(t){Ij(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ij(e,t,n){return(t=Rj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rj(r.key),r)}}function Rj(e){var t=function(e,t){if("object"!==Pj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pj(t)?t:String(t)}function Dj(e,t){return(Dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ej(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nj(e);if(t){var o=Nj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Aj(this,n)}}function Aj(e,t){if(t&&("object"===Pj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nj(e){return(Nj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}jj.prototype.name=void 0,jj.prototype.deviceVersions=void 0,jj.prototype.$reserved=void 0,jj.prototype.$objectType=void 0,jj.prototype.$unknownFields=void 0;var xj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dj(e,t)}(s,e);var t,n,r,o=Ej(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.VpnVendorListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.VpnVendorListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.VpnVendor>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=jj.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=Tj({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof jj?"List<networking.v4.config.VpnVendor>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Tj(!1===e?Tj(Tj({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):Tj(Tj({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Fj(t.prototype,n),r&&Fj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function Mj(e){return(Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cj(Object(n),!0).forEach((function(t){_j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _j(e,t,n){return(t=Vj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vj(r.key),r)}}function Vj(e){var t=function(e,t){if("object"!==Mj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mj(t)?t:String(t)}xj.prototype.metadata=void 0,xj.prototype.data=void 0,xj.prototype.$reserved=void 0,xj.prototype.$objectType=void 0,xj.prototype.$unknownFields=void 0;var Uj=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||r.a.instance}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"getVpnVendorConfig",value:function(e,t,n){var r=(arguments.length<=3?0:arguments.length-3)>0?arguments.length<=3?void 0:arguments[3]:{};n=n||{};var o=null;if(null==e)throw new Error("Missing the required parameter 'vpnConnectionId' when calling getVpnVendorConfig");if(null==t)throw new Error("Missing the required parameter 'vendorName' when calling getVpnVendorConfig");var i={vpnConnectionId:e},s=Lj(Lj({},{vendorName:t}),n.hasOwnProperty("deviceVersion")?{deviceVersion:n.deviceVersion}:{}),a=Lj(Lj({},r.hasOwnProperty("If-Match")&&null!==r["If-Match"]?{"If-Match":r["If-Match"].toString()}:{}),r.hasOwnProperty("If-None-Match")&&null!==r["If-None-Match"]?{"If-None-Match":r["If-None-Match"].toString()}:{}),u={},c=["basicAuthScheme"],l=[],f=["text/plain","application/json"],d=String;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpn-vendor-configs/{vpnConnectionId}","GET",i,s,a,u,o,c,l,f,d)}},{key:"listAvailableVpnVendorConfigs",value:function(e,t){var n=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};t=t||{};var r=null;if(null==e)throw new Error("Missing the required parameter 'vpnConnectionId' when calling listAvailableVpnVendorConfigs");var o={vpnConnectionId:e},i=Lj(Lj({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),s=Lj(Lj({},n.hasOwnProperty("If-Match")&&null!==n["If-Match"]?{"If-Match":n["If-Match"].toString()}:{}),n.hasOwnProperty("If-None-Match")&&null!==n["If-None-Match"]?{"If-None-Match":n["If-None-Match"].toString()}:{}),a={},u=["basicAuthScheme"],c=[],l=["application/json"],f=xj;return this.apiClient.callApi("/api/networking/v4.0.a1/config/vpn-vendor-configs/{vpnConnectionId}/available","GET",o,i,s,a,r,u,c,l,f)}}])&&Jj(t.prototype,n),o&&Jj(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gj(e){return(Gj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bj(Object(n),!0).forEach((function(t){Wj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wj(e,t,n){return(t=Hj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hj(r.key),r)}}function Hj(e){var t=function(e,t){if("object"!==Gj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gj(t)?t:String(t)}function zj(e,t){return(zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qj(e);if(t){var o=Qj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xj(this,n)}}function Xj(e,t){if(t&&("object"===Gj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qj(e){return(Qj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zj(e,t)}(s,e);var t,n,r,o=Yj(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.AncConfig",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AncConfig"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("configVersion")&&null!==e.configVersion&&void 0!==e.configVersion&&t.setConfigVersion(e.configVersion),e.hasOwnProperty("atlasNetworkingEnabled")&&null!==e.atlasNetworkingEnabled&&void 0!==e.atlasNetworkingEnabled&&t.setAtlasNetworkingEnabled(e.atlasNetworkingEnabled),e.hasOwnProperty("ancUrl")&&null!==e.ancUrl&&void 0!==e.ancUrl&&t.setAncUrl(e.ancUrl),e.hasOwnProperty("ovnRemoteAddress")&&null!==e.ovnRemoteAddress&&void 0!==e.ovnRemoteAddress&&t.setOvnRemoteAddress(e.ovnRemoteAddress),e.hasOwnProperty("ancDomainNameServerList")&&null!==e.ancDomainNameServerList&&void 0!==e.ancDomainNameServerList){for(i=[],n=e.ancDomainNameServerList,o=0;o<n.length;o++)r=Xe.constructFromObject(n[o],void 0),i.push(r);t.setAncDomainNameServerList(i)}if(!a)for(var u in t.$unknownFields=qj({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getConfigVersion",value:function(){return this.configVersion}},{key:"setConfigVersion",value:function(e){this.configVersion=e}},{key:"getAtlasNetworkingEnabled",value:function(){return this.atlasNetworkingEnabled}},{key:"setAtlasNetworkingEnabled",value:function(e){this.atlasNetworkingEnabled=e}},{key:"getAncUrl",value:function(){return this.ancUrl}},{key:"setAncUrl",value:function(e){this.ancUrl=e}},{key:"getOvnRemoteAddress",value:function(){return this.ovnRemoteAddress}},{key:"setOvnRemoteAddress",value:function(e){this.ovnRemoteAddress=e}},{key:"getAncDomainNameServerList",value:function(){return this.ancDomainNameServerList}},{key:"setAncDomainNameServerList",value:function(e){this.ancDomainNameServerList=e}},{key:"toJson",value:function(e){return qj(!1===e?qj(qj(qj(qj(qj(qj(qj(qj(qj({},void 0!==this.getConfigVersion()&&null!==this.getConfigVersion()?{configVersion:this.getConfigVersion()}:{}),void 0!==this.getAtlasNetworkingEnabled()&&null!==this.getAtlasNetworkingEnabled()?{atlasNetworkingEnabled:this.getAtlasNetworkingEnabled()}:{}),void 0!==this.getAncUrl()&&null!==this.getAncUrl()?{ancUrl:this.getAncUrl()}:{}),void 0!==this.getOvnRemoteAddress()&&null!==this.getOvnRemoteAddress()?{ovnRemoteAddress:this.getOvnRemoteAddress()}:{}),void 0!==this.getAncDomainNameServerList()&&null!==this.getAncDomainNameServerList()?{ancDomainNameServerList:this.getAncDomainNameServerList().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):qj(qj(qj(qj(qj(qj(qj(qj({},void 0!==this.getConfigVersion()&&null!==this.getConfigVersion()?{configVersion:this.getConfigVersion()}:{}),void 0!==this.getAtlasNetworkingEnabled()&&null!==this.getAtlasNetworkingEnabled()?{atlasNetworkingEnabled:this.getAtlasNetworkingEnabled()}:{}),void 0!==this.getAncUrl()&&null!==this.getAncUrl()?{ancUrl:this.getAncUrl()}:{}),void 0!==this.getOvnRemoteAddress()&&null!==this.getOvnRemoteAddress()?{ovnRemoteAddress:this.getOvnRemoteAddress()}:{}),void 0!==this.getAncDomainNameServerList()&&null!==this.getAncDomainNameServerList()?{ancDomainNameServerList:this.getAncDomainNameServerList().map((function(e){return e.toJson()}))}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"configVersion"!==t||void 0!==this.configVersion&&null!==this.configVersion?"atlasNetworkingEnabled"!==t||void 0!==this.atlasNetworkingEnabled&&null!==this.atlasNetworkingEnabled?"ancUrl"!==t||void 0!==this.ancUrl&&null!==this.ancUrl?"ovnRemoteAddress"!==t||void 0!==this.ovnRemoteAddress&&null!==this.ovnRemoteAddress?"ancDomainNameServerList"!==t||void 0!==this.ancDomainNameServerList&&null!==this.ancDomainNameServerList?new f(t,"no such property exists"):new f("ancDomainNameServerList","undefined or null"):new f("ovnRemoteAddress","undefined or null"):new f("ancUrl","undefined or null"):new f("atlasNetworkingEnabled","undefined or null"):new f("configVersion","undefined or null")}}])&&Kj(t.prototype,n),r&&Kj(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function eP(e){return(eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tP(Object(n),!0).forEach((function(t){rP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rP(e,t,n){return(t=iP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iP(r.key),r)}}function iP(e){var t=function(e,t){if("object"!==eP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eP(t)?t:String(t)}function sP(e,t){return(sP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function aP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cP(e);if(t){var o=cP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uP(this,n)}}function uP(e,t){if(t&&("object"===eP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function cP(e){return(cP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Zj.prototype.configVersion=void 0,Zj.prototype.atlasNetworkingEnabled=void 0,Zj.prototype.ancUrl=void 0,Zj.prototype.ovnRemoteAddress=void 0,Zj.prototype.ancDomainNameServerList=void 0;var lP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sP(e,t)}(s,e);var t,n,r,o=aP(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.AncConfigApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AncConfigApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.AncConfig"===n)t.setData(Zj.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=nP({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof Zj?"networking.v4.config.AncConfig":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return nP(!1===e?nP(nP({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):nP(nP({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&oP(t.prototype,n),r&&oP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function fP(e){return(fP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dP(Object(n),!0).forEach((function(t){hP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hP(e,t,n){return(t=vP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vP(r.key),r)}}function vP(e){var t=function(e,t){if("object"!==fP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fP(t)?t:String(t)}lP.prototype.metadata=void 0,lP.prototype.data=void 0,lP.prototype.$reserved=void 0,lP.prototype.$objectType=void 0,lP.prototype.$unknownFields=void 0;var gP=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.privateIp=t,this.publicIp=n,this.$objectType="networking.v4.config.PublicIpMapping",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.PublicIpMapping"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("privateIp")&&null!==t.privateIp&&void 0!==t.privateIp&&n.setPrivateIp(Xe.constructFromObject(t.privateIp)),t.hasOwnProperty("publicIp")&&null!==t.publicIp&&void 0!==t.publicIp&&n.setPublicIp(Xe.constructFromObject(t.publicIp)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=pP({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPrivateIp",value:function(){return this.privateIp}},{key:"setPrivateIp",value:function(e){this.privateIp=e}},{key:"getPublicIp",value:function(){return this.publicIp}},{key:"setPublicIp",value:function(e){this.publicIp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pP(!1===e?pP(pP({},void 0!==this.getPrivateIp()&&null!==this.getPrivateIp()?{privateIp:this.getPrivateIp().toJson(!1)}:{}),void 0!==this.getPublicIp()&&null!==this.getPublicIp()?{publicIp:this.getPublicIp().toJson(!1)}:{}):pP(pP({},void 0!==this.getPrivateIp()&&null!==this.getPrivateIp()?{privateIp:this.getPrivateIp().toJson()}:{}),void 0!==this.getPublicIp()&&null!==this.getPublicIp()?{publicIp:this.getPublicIp().toJson()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["privateIp","publicIp"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"privateIp"!==t||void 0!==this.privateIp&&null!==this.privateIp?"publicIp"!==t||void 0!==this.publicIp&&null!==this.publicIp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("publicIp","undefined or null"):new f("privateIp","undefined or null")}}])&&yP(t.prototype,n),r&&yP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bP(e){return(bP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wP(Object(n),!0).forEach((function(t){OP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OP(e,t,n){return(t=kP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kP(r.key),r)}}function kP(e){var t=function(e,t){if("object"!==bP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bP(t)?t:String(t)}gP.prototype.privateIp=void 0,gP.prototype.publicIp=void 0,gP.prototype.$reserved=void 0,gP.prototype.$objectType=void 0,gP.prototype.$unknownFields=void 0;var jP=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ipConfig=t,this.$objectType="networking.v4.config.AzureExternalSubnetConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AzureExternalSubnetConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ipConfig")&&null!==t.ipConfig&&void 0!==t.ipConfig&&n.setIpConfig(pg.constructFromObject(t.ipConfig)),t.hasOwnProperty("gatewayMacAddress")&&null!==t.gatewayMacAddress&&void 0!==t.gatewayMacAddress&&n.setGatewayMacAddress(t.gatewayMacAddress),t.hasOwnProperty("publicIpMappingList")&&null!==t.publicIpMappingList&&void 0!==t.publicIpMappingList){for(s=[],r=t.publicIpMappingList,i=0;i<r.length;i++)o=gP.constructFromObject(r[i],void 0),s.push(o);n.setPublicIpMappingList(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=mP({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getIpConfig",value:function(){return this.ipConfig}},{key:"setIpConfig",value:function(e){this.ipConfig=e}},{key:"getGatewayMacAddress",value:function(){return this.gatewayMacAddress}},{key:"setGatewayMacAddress",value:function(e){this.gatewayMacAddress=e}},{key:"getPublicIpMappingList",value:function(){return this.publicIpMappingList}},{key:"setPublicIpMappingList",value:function(e){this.publicIpMappingList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mP(!1===e?mP(mP(mP({},void 0!==this.getIpConfig()&&null!==this.getIpConfig()?{ipConfig:this.getIpConfig().toJson(!1)}:{}),void 0!==this.getGatewayMacAddress()&&null!==this.getGatewayMacAddress()?{gatewayMacAddress:this.getGatewayMacAddress()}:{}),void 0!==this.getPublicIpMappingList()&&null!==this.getPublicIpMappingList()?{publicIpMappingList:this.getPublicIpMappingList().map((function(e){return e.toJson(!1)}))}:{}):mP(mP(mP({},void 0!==this.getIpConfig()&&null!==this.getIpConfig()?{ipConfig:this.getIpConfig().toJson()}:{}),void 0!==this.getGatewayMacAddress()&&null!==this.getGatewayMacAddress()?{gatewayMacAddress:this.getGatewayMacAddress()}:{}),void 0!==this.getPublicIpMappingList()&&null!==this.getPublicIpMappingList()?{publicIpMappingList:this.getPublicIpMappingList().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["ipConfig"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("ipConfig"===t&&(void 0===this.ipConfig||null===this.ipConfig))return new f("ipConfig","undefined or null");if("gatewayMacAddress"===t){if(void 0===this.gatewayMacAddress||null===this.gatewayMacAddress)return new f("gatewayMacAddress","undefined or null");if(!u.validatePattern(this.gatewayMacAddress,/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/))return new f("gatewayMacAddress","does not satisfy required pattern: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/")}return"publicIpMappingList"!==t||void 0!==this.publicIpMappingList&&null!==this.publicIpMappingList?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("publicIpMappingList","undefined or null")}}])&&$P(t.prototype,n),r&&$P(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function PP(e){return(PP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SP(Object(n),!0).forEach((function(t){IP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IP(e,t,n){return(t=RP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RP(r.key),r)}}function RP(e){var t=function(e,t){if("object"!==PP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PP(t)?t:String(t)}jP.prototype.ipConfig=void 0,jP.prototype.gatewayMacAddress=void 0,jP.prototype.publicIpMappingList=void 0,jP.prototype.$reserved=void 0,jP.prototype.$objectType=void 0,jP.prototype.$unknownFields=void 0;var DP=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.externalSubnetConfigList=t,this.$objectType="networking.v4.config.AzureConfig",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AzureConfig"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("externalSubnetConfigList")&&null!==t.externalSubnetConfigList&&void 0!==t.externalSubnetConfigList){for(s=[],r=t.externalSubnetConfigList,i=0;i<r.length;i++)o=jP.constructFromObject(r[i],void 0),s.push(o);n.setExternalSubnetConfigList(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=TP({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getExternalSubnetConfigList",value:function(){return this.externalSubnetConfigList}},{key:"setExternalSubnetConfigList",value:function(e){this.externalSubnetConfigList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return TP(TP({},!1===e?void 0!==this.getExternalSubnetConfigList()&&null!==this.getExternalSubnetConfigList()?{externalSubnetConfigList:this.getExternalSubnetConfigList().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getExternalSubnetConfigList()&&null!==this.getExternalSubnetConfigList()?{externalSubnetConfigList:this.getExternalSubnetConfigList().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["externalSubnetConfigList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("externalSubnetConfigList"===t){if(void 0===this.externalSubnetConfigList||null===this.externalSubnetConfigList)return new f("externalSubnetConfigList","undefined or null");if(!u.validateMaxItems(this.externalSubnetConfigList,1))return new f("externalSubnetConfigList","does not satisfy required maxItems constraint: 1");if(!u.validateMinItems(this.externalSubnetConfigList,1))return new f("externalSubnetConfigList","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&FP(t.prototype,n),r&&FP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function EP(e){return(EP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AP(Object(n),!0).forEach((function(t){xP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xP(e,t,n){return(t=CP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CP(r.key),r)}}function CP(e){var t=function(e,t){if("object"!==EP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EP(t)?t:String(t)}DP.prototype.externalSubnetConfigList=void 0,DP.prototype.$reserved=void 0,DP.prototype.$objectType=void 0,DP.prototype.$unknownFields=void 0;var LP=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.routerPortMac=t,this.azureExternalNetworkPrefix=n,this.$objectType="networking.v4.config.AzureExternalSubnetBinding",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.AzureExternalSubnetBinding"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("routerPortMac")&&null!==t.routerPortMac&&void 0!==t.routerPortMac&&n.setRouterPortMac(t.routerPortMac),t.hasOwnProperty("azureExternalNetworkPrefix")&&null!==t.azureExternalNetworkPrefix&&void 0!==t.azureExternalNetworkPrefix&&n.setAzureExternalNetworkPrefix(bt.constructFromObject(t.azureExternalNetworkPrefix)),t.hasOwnProperty("peerToPeerNetworkPrefix")&&null!==t.peerToPeerNetworkPrefix&&void 0!==t.peerToPeerNetworkPrefix&&n.setPeerToPeerNetworkPrefix(bt.constructFromObject(t.peerToPeerNetworkPrefix)),t.hasOwnProperty("eniPrimaryIp")&&null!==t.eniPrimaryIp&&void 0!==t.eniPrimaryIp&&n.setEniPrimaryIp(Xe.constructFromObject(t.eniPrimaryIp)),t.hasOwnProperty("eniId")&&null!==t.eniId&&void 0!==t.eniId&&n.setEniId(t.eniId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=NP({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getRouterPortMac",value:function(){return this.routerPortMac}},{key:"setRouterPortMac",value:function(e){this.routerPortMac=e}},{key:"getAzureExternalNetworkPrefix",value:function(){return this.azureExternalNetworkPrefix}},{key:"setAzureExternalNetworkPrefix",value:function(e){this.azureExternalNetworkPrefix=e}},{key:"getPeerToPeerNetworkPrefix",value:function(){return this.peerToPeerNetworkPrefix}},{key:"setPeerToPeerNetworkPrefix",value:function(e){this.peerToPeerNetworkPrefix=e}},{key:"getEniPrimaryIp",value:function(){return this.eniPrimaryIp}},{key:"setEniPrimaryIp",value:function(e){this.eniPrimaryIp=e}},{key:"getEniId",value:function(){return this.eniId}},{key:"setEniId",value:function(e){this.eniId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return NP(NP(!1===e?NP(NP(NP(NP({},void 0!==this.getRouterPortMac()&&null!==this.getRouterPortMac()?{routerPortMac:this.getRouterPortMac()}:{}),void 0!==this.getAzureExternalNetworkPrefix()&&null!==this.getAzureExternalNetworkPrefix()?{azureExternalNetworkPrefix:this.getAzureExternalNetworkPrefix().toJson(!1)}:{}),void 0!==this.getPeerToPeerNetworkPrefix()&&null!==this.getPeerToPeerNetworkPrefix()?{peerToPeerNetworkPrefix:this.getPeerToPeerNetworkPrefix().toJson(!1)}:{}),void 0!==this.getEniPrimaryIp()&&null!==this.getEniPrimaryIp()?{eniPrimaryIp:this.getEniPrimaryIp().toJson(!1)}:{}):NP(NP(NP(NP({},void 0!==this.getRouterPortMac()&&null!==this.getRouterPortMac()?{routerPortMac:this.getRouterPortMac()}:{}),void 0!==this.getAzureExternalNetworkPrefix()&&null!==this.getAzureExternalNetworkPrefix()?{azureExternalNetworkPrefix:this.getAzureExternalNetworkPrefix().toJson()}:{}),void 0!==this.getPeerToPeerNetworkPrefix()&&null!==this.getPeerToPeerNetworkPrefix()?{peerToPeerNetworkPrefix:this.getPeerToPeerNetworkPrefix().toJson()}:{}),void 0!==this.getEniPrimaryIp()&&null!==this.getEniPrimaryIp()?{eniPrimaryIp:this.getEniPrimaryIp().toJson()}:{}),void 0!==this.getEniId()&&null!==this.getEniId()?{eniId:this.getEniId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["routerPortMac","azureExternalNetworkPrefix"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("routerPortMac"===t){if(void 0===this.routerPortMac||null===this.routerPortMac)return new f("routerPortMac","undefined or null");if(!u.validatePattern(this.routerPortMac,/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/))return new f("routerPortMac","does not satisfy required pattern: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/")}return"azureExternalNetworkPrefix"!==t||void 0!==this.azureExternalNetworkPrefix&&null!==this.azureExternalNetworkPrefix?"peerToPeerNetworkPrefix"!==t||void 0!==this.peerToPeerNetworkPrefix&&null!==this.peerToPeerNetworkPrefix?"eniPrimaryIp"!==t||void 0!==this.eniPrimaryIp&&null!==this.eniPrimaryIp?"eniId"!==t||void 0!==this.eniId&&null!==this.eniId?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("eniId","undefined or null"):new f("eniPrimaryIp","undefined or null"):new f("peerToPeerNetworkPrefix","undefined or null"):new f("azureExternalNetworkPrefix","undefined or null")}}])&&MP(t.prototype,n),r&&MP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _P(e){return(_P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JP(Object(n),!0).forEach((function(t){UP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UP(e,t,n){return(t=BP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BP(r.key),r)}}function BP(e){var t=function(e,t){if("object"!==_P(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_P(t)?t:String(t)}function qP(e,t){return(qP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function WP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HP(e);if(t){var o=HP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return KP(this,n)}}function KP(e,t){if(t&&("object"===_P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function HP(e){return(HP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}LP.prototype.routerPortMac=void 0,LP.prototype.azureExternalNetworkPrefix=void 0,LP.prototype.peerToPeerNetworkPrefix=void 0,LP.prototype.eniPrimaryIp=void 0,LP.prototype.eniId=void 0,LP.prototype.$reserved=void 0,LP.prototype.$objectType=void 0,LP.prototype.$unknownFields=void 0;var zP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qP(e,t)}(s,e);var t,n,r,o=WP(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.CloudNetwork",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.CloudNetwork"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("externalRoutingDomainReference")&&null!==e.externalRoutingDomainReference&&void 0!==e.externalRoutingDomainReference&&t.setExternalRoutingDomainReference(e.externalRoutingDomainReference),!n))for(var r in t.$unknownFields=VP({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getExternalRoutingDomainReference",value:function(){return this.externalRoutingDomainReference}},{key:"setExternalRoutingDomainReference",value:function(e){this.externalRoutingDomainReference=e}},{key:"toJson",value:function(e){return VP(!1===e?VP(VP(VP(VP(VP(VP({},void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getExternalRoutingDomainReference()&&null!==this.getExternalRoutingDomainReference()?{externalRoutingDomainReference:this.getExternalRoutingDomainReference()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):VP(VP(VP(VP(VP({},void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getExternalRoutingDomainReference()&&null!==this.getExternalRoutingDomainReference()?{externalRoutingDomainReference:this.getExternalRoutingDomainReference()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("description"===t&&(void 0===this.description||null===this.description))return new f("description","undefined or null");if("externalRoutingDomainReference"===t){if(void 0===this.externalRoutingDomainReference||null===this.externalRoutingDomainReference)return new f("externalRoutingDomainReference","undefined or null");if(!u.validatePattern(this.externalRoutingDomainReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("externalRoutingDomainReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new f(t,"no such property exists")}}])&&GP(t.prototype,n),r&&GP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function YP(e){return(YP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XP(Object(n),!0).forEach((function(t){ZP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZP(e,t,n){return(t=tS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tS(r.key),r)}}function tS(e){var t=function(e,t){if("object"!==YP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YP(t)?t:String(t)}function nS(e,t){return(nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iS(e);if(t){var o=iS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oS(this,n)}}function oS(e,t){if(t&&("object"===YP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function iS(e){return(iS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}zP.prototype.description=void 0,zP.prototype.externalRoutingDomainReference=void 0;var sS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nS(e,t)}(s,e);var t,n,r,o=rS(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.CloudNetworkApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.CloudNetworkApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.CloudNetwork"===n)t.setData(zP.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=QP({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof zP?"networking.v4.config.CloudNetwork":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return QP(!1===e?QP(QP({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):QP(QP({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&eS(t.prototype,n),r&&eS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function aS(e){return(aS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uS(Object(n),!0).forEach((function(t){lS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lS(e,t,n){return(t=dS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dS(r.key),r)}}function dS(e){var t=function(e,t){if("object"!==aS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==aS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===aS(t)?t:String(t)}function pS(e,t){return(pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vS(e);if(t){var o=vS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yS(this,n)}}function yS(e,t){if(t&&("object"===aS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vS(e){return(vS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}sS.prototype.metadata=void 0,sS.prototype.data=void 0,sS.prototype.$reserved=void 0,sS.prototype.$objectType=void 0,sS.prototype.$unknownFields=void 0;var gS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pS(e,t)}(s,e);var t,n,r,o=hS(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.CloudNetworkListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.CloudNetworkListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.CloudNetwork>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=zP.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=cS({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof zP?"List<networking.v4.config.CloudNetwork>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cS(!1===e?cS(cS({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):cS(cS({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&fS(t.prototype,n),r&&fS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function bS(e){return(bS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wS(Object(n),!0).forEach((function(t){OS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OS(e,t,n){return(t=kS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kS(r.key),r)}}function kS(e){var t=function(e,t){if("object"!==bS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bS(t)?t:String(t)}gS.prototype.metadata=void 0,gS.prototype.data=void 0,gS.prototype.$reserved=void 0,gS.prototype.$objectType=void 0,gS.prototype.$unknownFields=void 0;var jS=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.ClusterStatus",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ClusterStatus"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(t.clusterReference),t.hasOwnProperty("flowStatus")&&null!==t.flowStatus&&void 0!==t.flowStatus&&n.setFlowStatus(t.flowStatus),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=mS({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getFlowStatus",value:function(){return this.flowStatus}},{key:"setFlowStatus",value:function(e){this.flowStatus=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mS(mS(mS({},void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getFlowStatus()&&null!==this.getFlowStatus()?{flowStatus:this.getFlowStatus()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new f("clusterReference","undefined or null");if(!u.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"flowStatus"!==t||void 0!==this.flowStatus&&null!==this.flowStatus?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("flowStatus","undefined or null")}}])&&$S(t.prototype,n),r&&$S(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function PS(e){return(PS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SS(Object(n),!0).forEach((function(t){IS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IS(e,t,n){return(t=RS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RS(r.key),r)}}function RS(e){var t=function(e,t){if("object"!==PS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PS(t)?t:String(t)}jS.prototype.clusterReference=void 0,jS.prototype.flowStatus=void 0,jS.prototype.$reserved=void 0,jS.prototype.$objectType=void 0,jS.prototype.$unknownFields=void 0;var DS=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.ClusterFlowStatus",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ClusterFlowStatus"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("clusterStatusList")&&null!==t.clusterStatusList&&void 0!==t.clusterStatusList){for(s=[],r=t.clusterStatusList,i=0;i<r.length;i++)o=jS.constructFromObject(r[i],void 0),s.push(o);n.setClusterStatusList(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=TS({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getClusterStatusList",value:function(){return this.clusterStatusList}},{key:"setClusterStatusList",value:function(e){this.clusterStatusList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?TS(TS({},void 0!==this.getClusterStatusList()&&null!==this.getClusterStatusList()?{clusterStatusList:this.getClusterStatusList().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterStatusList"!==t||void 0!==this.clusterStatusList&&null!==this.clusterStatusList?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("clusterStatusList","undefined or null")}}])&&FS(t.prototype,n),r&&FS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ES(e){return(ES="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AS(Object(n),!0).forEach((function(t){xS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xS(e,t,n){return(t=CS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CS(r.key),r)}}function CS(e){var t=function(e,t){if("object"!==ES(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ES(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ES(t)?t:String(t)}function LS(e,t){return(LS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=VS(e);if(t){var o=VS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JS(this,n)}}function JS(e,t){if(t&&("object"===ES(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function VS(e){return(VS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}DS.prototype.clusterStatusList=void 0,DS.prototype.$reserved=void 0,DS.prototype.$objectType=void 0,DS.prototype.$unknownFields=void 0;var US=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LS(e,t)}(s,e);var t,n,r,o=_S(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.ClusterFlowStatusApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.ClusterFlowStatusApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.ClusterFlowStatus"===n)t.setData(DS.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=NS({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof DS?"networking.v4.config.ClusterFlowStatus":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return NS(!1===e?NS(NS({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):NS(NS({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&MS(t.prototype,n),r&&MS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);US.prototype.metadata=void 0,US.prototype.data=void 0,US.prototype.$reserved=void 0,US.prototype.$objectType=void 0,US.prototype.$unknownFields=void 0;var GS={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HEALTHY:"HEALTHY",DOWN:"DOWN",PROVISIONING:"PROVISIONING",MAINTENANCE:"MAINTENANCE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(GS).find((function(t){return GS[t]===e}));return null==t?GS.$UNKNOWN:GS[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case GS.$UNKNOWN:case GS.$REDACTED:case GS.HEALTHY:case GS.DOWN:case GS.PROVISIONING:case GS.MAINTENANCE:return;default:throw new Error("Invalid : must be FlowGatewayState.{ $UNKNOWN|$REDACTED|HEALTHY|DOWN|PROVISIONING|MAINTENANCE }")}}};Object.freeze(GS);var BS=GS;function qS(e){return(qS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WS(Object(n),!0).forEach((function(t){HS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HS(e,t,n){return(t=YS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YS(r.key),r)}}function YS(e){var t=function(e,t){if("object"!==qS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qS(t)?t:String(t)}var XS=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.FlowGatewayStatus",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FlowGatewayStatus"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("detail")&&null!==t.detail&&void 0!==t.detail&&n.setDetail(t.detail),t.hasOwnProperty("state")&&null!==t.state&&void 0!==t.state&&n.setState(BS.constructFromObject(t.state)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=KS({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getDetail",value:function(){return this.detail}},{key:"setDetail",value:function(e){this.detail=e}},{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){this.state=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return KS(KS(KS({},void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"detail"!==t||void 0!==this.detail&&null!==this.detail?"state"!==t||void 0!==this.state&&null!==this.state?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("state","undefined or null"):new f("detail","undefined or null")}}])&&zS(t.prototype,n),r&&zS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function QS(e){return(QS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZS(Object(n),!0).forEach((function(t){tT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tT(e,t,n){return(t=rT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rT(r.key),r)}}function rT(e){var t=function(e,t){if("object"!==QS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QS(t)?t:String(t)}function oT(e,t){return(oT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function iT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aT(e);if(t){var o=aT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sT(this,n)}}function sT(e,t){if(t&&("object"===QS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function aT(e){return(aT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}XS.prototype.detail=void 0,XS.prototype.state=void 0,XS.prototype.$reserved=void 0,XS.prototype.$objectType=void 0,XS.prototype.$unknownFields=void 0;var uT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oT(e,t)}(s,e);var t,n,r,o=iT(s);function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=o.call(this)).chassisUuid=e,n.azureExternalSubnetBindingList=t,n.$objectType="networking.v4.config.FlowGateway",n.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FlowGateway"},n.$unknownFields={},n}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("chassisUuid")&&null!==e.chassisUuid&&void 0!==e.chassisUuid&&t.setChassisUuid(e.chassisUuid),e.hasOwnProperty("azureExternalSubnetBindingList")&&null!==e.azureExternalSubnetBindingList&&void 0!==e.azureExternalSubnetBindingList){for(i=[],n=e.azureExternalSubnetBindingList,o=0;o<n.length;o++)r=LP.constructFromObject(n[o],void 0),i.push(r);t.setAzureExternalSubnetBindingList(i)}if(e.hasOwnProperty("gatewayStatus")&&null!==e.gatewayStatus&&void 0!==e.gatewayStatus&&t.setGatewayStatus(XS.constructFromObject(e.gatewayStatus)),e.hasOwnProperty("ovnControllerVersion")&&null!==e.ovnControllerVersion&&void 0!==e.ovnControllerVersion&&t.setOvnControllerVersion(e.ovnControllerVersion),!a)for(var u in t.$unknownFields=eT({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getChassisUuid",value:function(){return this.chassisUuid}},{key:"setChassisUuid",value:function(e){this.chassisUuid=e}},{key:"getAzureExternalSubnetBindingList",value:function(){return this.azureExternalSubnetBindingList}},{key:"setAzureExternalSubnetBindingList",value:function(e){this.azureExternalSubnetBindingList=e}},{key:"getGatewayStatus",value:function(){return this.gatewayStatus}},{key:"setGatewayStatus",value:function(e){this.gatewayStatus=e}},{key:"getOvnControllerVersion",value:function(){return this.ovnControllerVersion}},{key:"setOvnControllerVersion",value:function(e){this.ovnControllerVersion=e}},{key:"toJson",value:function(e){return eT(!1===e?eT(eT(eT(eT(eT(eT(eT(eT({},void 0!==this.getChassisUuid()&&null!==this.getChassisUuid()?{chassisUuid:this.getChassisUuid()}:{}),void 0!==this.getAzureExternalSubnetBindingList()&&null!==this.getAzureExternalSubnetBindingList()?{azureExternalSubnetBindingList:this.getAzureExternalSubnetBindingList().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getGatewayStatus()&&null!==this.getGatewayStatus()?{gatewayStatus:this.getGatewayStatus().toJson(!1)}:{}),void 0!==this.getOvnControllerVersion()&&null!==this.getOvnControllerVersion()?{ovnControllerVersion:this.getOvnControllerVersion()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):eT(eT(eT(eT(eT(eT({},void 0!==this.getChassisUuid()&&null!==this.getChassisUuid()?{chassisUuid:this.getChassisUuid()}:{}),void 0!==this.getAzureExternalSubnetBindingList()&&null!==this.getAzureExternalSubnetBindingList()?{azureExternalSubnetBindingList:this.getAzureExternalSubnetBindingList().map((function(e){return e.toJson()}))}:{}),void 0!==this.getGatewayStatus()&&null!==this.getGatewayStatus()?{gatewayStatus:this.getGatewayStatus().toJson()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["chassisUuid","azureExternalSubnetBindingList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("chassisUuid"===t){if(void 0===this.chassisUuid||null===this.chassisUuid)return new f("chassisUuid","undefined or null");if(!u.validatePattern(this.chassisUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("chassisUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("azureExternalSubnetBindingList"===t){if(void 0===this.azureExternalSubnetBindingList||null===this.azureExternalSubnetBindingList)return new f("azureExternalSubnetBindingList","undefined or null");if(!u.validateMaxItems(this.azureExternalSubnetBindingList,1))return new f("azureExternalSubnetBindingList","does not satisfy required maxItems constraint: 1");if(!u.validateMinItems(this.azureExternalSubnetBindingList,1))return new f("azureExternalSubnetBindingList","does not satisfy required minItems constraint: 1")}if("gatewayStatus"===t&&(void 0===this.gatewayStatus||null===this.gatewayStatus))return new f("gatewayStatus","undefined or null");if("ovnControllerVersion"===t){if(void 0===this.ovnControllerVersion||null===this.ovnControllerVersion)return new f("ovnControllerVersion","undefined or null");if(!u.validatePattern(this.ovnControllerVersion,/^(\\d+\\.)?(\\d+\\.)?(\\d+)$/))return new f("ovnControllerVersion","does not satisfy required pattern: /^(\\d+\\.)?(\\d+\\.)?(\\d+)$/")}return new f(t,"no such property exists")}}])&&nT(t.prototype,n),r&&nT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function cT(e){return(cT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lT(Object(n),!0).forEach((function(t){dT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dT(e,t,n){return(t=hT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hT(r.key),r)}}function hT(e){var t=function(e,t){if("object"!==cT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cT(t)?t:String(t)}function yT(e,t){return(yT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bT(e);if(t){var o=bT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gT(this,n)}}function gT(e,t){if(t&&("object"===cT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bT(e){return(bT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}uT.prototype.chassisUuid=void 0,uT.prototype.azureExternalSubnetBindingList=void 0,uT.prototype.gatewayStatus=void 0,uT.prototype.ovnControllerVersion=void 0;var wT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yT(e,t)}(s,e);var t,n,r,o=vT(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.FlowGatewayApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FlowGatewayApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.FlowGateway"===n)t.setData(uT.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=fT({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof uT?"networking.v4.config.FlowGateway":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fT(!1===e?fT(fT({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):fT(fT({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&pT(t.prototype,n),r&&pT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function mT(e){return(mT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function OT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OT(Object(n),!0).forEach((function(t){kT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kT(e,t,n){return(t=PT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PT(r.key),r)}}function PT(e){var t=function(e,t){if("object"!==mT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mT(t)?t:String(t)}function ST(e,t){return(ST=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function TT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FT(e);if(t){var o=FT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return IT(this,n)}}function IT(e,t){if(t&&("object"===mT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function FT(e){return(FT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}wT.prototype.metadata=void 0,wT.prototype.data=void 0,wT.prototype.$reserved=void 0,wT.prototype.$objectType=void 0,wT.prototype.$unknownFields=void 0;var RT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ST(e,t)}(s,e);var t,n,r,o=TT(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this)).chassisUuid=e,t.$objectType="networking.v4.config.FlowGatewayKeepAliveRequest",t.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FlowGatewayKeepAliveRequest"},t.$unknownFields={},t}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,we.constructFromObject(e,t,!0),e.hasOwnProperty("chassisUuid")&&null!==e.chassisUuid&&void 0!==e.chassisUuid&&t.setChassisUuid(e.chassisUuid),e.hasOwnProperty("gatewayStatus")&&null!==e.gatewayStatus&&void 0!==e.gatewayStatus&&t.setGatewayStatus(XS.constructFromObject(e.gatewayStatus)),e.hasOwnProperty("ovnControllerVersion")&&null!==e.ovnControllerVersion&&void 0!==e.ovnControllerVersion&&t.setOvnControllerVersion(e.ovnControllerVersion),e.hasOwnProperty("eniPrimaryIpList")&&null!==e.eniPrimaryIpList&&void 0!==e.eniPrimaryIpList){for(i=[],n=e.eniPrimaryIpList,o=0;o<n.length;o++)r=Xe.constructFromObject(n[o],void 0),i.push(r);t.setEniPrimaryIpList(i)}if(!a)for(var u in t.$unknownFields=$T({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return t}}],(n=[{key:"getChassisUuid",value:function(){return this.chassisUuid}},{key:"setChassisUuid",value:function(e){this.chassisUuid=e}},{key:"getGatewayStatus",value:function(){return this.gatewayStatus}},{key:"setGatewayStatus",value:function(e){this.gatewayStatus=e}},{key:"getOvnControllerVersion",value:function(){return this.ovnControllerVersion}},{key:"setOvnControllerVersion",value:function(e){this.ovnControllerVersion=e}},{key:"getEniPrimaryIpList",value:function(){return this.eniPrimaryIpList}},{key:"setEniPrimaryIpList",value:function(e){this.eniPrimaryIpList=e}},{key:"toJson",value:function(e){return $T(!1===e?$T($T($T($T($T($T($T({},void 0!==this.getChassisUuid()&&null!==this.getChassisUuid()?{chassisUuid:this.getChassisUuid()}:{}),void 0!==this.getGatewayStatus()&&null!==this.getGatewayStatus()?{gatewayStatus:this.getGatewayStatus().toJson(!1)}:{}),void 0!==this.getOvnControllerVersion()&&null!==this.getOvnControllerVersion()?{ovnControllerVersion:this.getOvnControllerVersion()}:{}),void 0!==this.getEniPrimaryIpList()&&null!==this.getEniPrimaryIpList()?{eniPrimaryIpList:this.getEniPrimaryIpList().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):$T($T($T($T($T($T({},void 0!==this.getChassisUuid()&&null!==this.getChassisUuid()?{chassisUuid:this.getChassisUuid()}:{}),void 0!==this.getGatewayStatus()&&null!==this.getGatewayStatus()?{gatewayStatus:this.getGatewayStatus().toJson()}:{}),void 0!==this.getOvnControllerVersion()&&null!==this.getOvnControllerVersion()?{ovnControllerVersion:this.getOvnControllerVersion()}:{}),void 0!==this.getEniPrimaryIpList()&&null!==this.getEniPrimaryIpList()?{eniPrimaryIpList:this.getEniPrimaryIpList().map((function(e){return e.toJson()}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["chassisUuid"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("chassisUuid"===t){if(void 0===this.chassisUuid||null===this.chassisUuid)return new f("chassisUuid","undefined or null");if(!u.validatePattern(this.chassisUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("chassisUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("gatewayStatus"===t&&(void 0===this.gatewayStatus||null===this.gatewayStatus))return new f("gatewayStatus","undefined or null");if("ovnControllerVersion"===t){if(void 0===this.ovnControllerVersion||null===this.ovnControllerVersion)return new f("ovnControllerVersion","undefined or null");if(!u.validatePattern(this.ovnControllerVersion,/^(\\d+\\.)?(\\d+\\.)?(\\d+)$/))return new f("ovnControllerVersion","does not satisfy required pattern: /^(\\d+\\.)?(\\d+\\.)?(\\d+)$/")}if("eniPrimaryIpList"===t){if(void 0===this.eniPrimaryIpList||null===this.eniPrimaryIpList)return new f("eniPrimaryIpList","undefined or null");if(!u.validateMaxItems(this.eniPrimaryIpList,1))return new f("eniPrimaryIpList","does not satisfy required maxItems constraint: 1");if(!u.validateMinItems(this.eniPrimaryIpList,1))return new f("eniPrimaryIpList","does not satisfy required minItems constraint: 1")}return new f(t,"no such property exists")}}])&&jT(t.prototype,n),r&&jT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(we);function DT(e){return(DT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ET(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ET(Object(n),!0).forEach((function(t){NT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ET(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NT(e,t,n){return(t=MT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MT(r.key),r)}}function MT(e){var t=function(e,t){if("object"!==DT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DT(t)?t:String(t)}function CT(e,t){return(CT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function LT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JT(e);if(t){var o=JT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _T(this,n)}}function _T(e,t){if(t&&("object"===DT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function JT(e){return(JT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}RT.prototype.chassisUuid=void 0,RT.prototype.gatewayStatus=void 0,RT.prototype.ovnControllerVersion=void 0,RT.prototype.eniPrimaryIpList=void 0;var VT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CT(e,t)}(s,e);var t,n,r,o=LT(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.FlowGatewayKeepAliveResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FlowGatewayKeepAliveResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,we.constructFromObject(e,t,!0),e.hasOwnProperty("keepAliveResponse")&&null!==e.keepAliveResponse&&void 0!==e.keepAliveResponse&&t.setKeepAliveResponse(e.keepAliveResponse),!n))for(var r in t.$unknownFields=AT({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getKeepAliveResponse",value:function(){return this.keepAliveResponse}},{key:"setKeepAliveResponse",value:function(e){this.keepAliveResponse=e}},{key:"toJson",value:function(e){return AT(!1===e?AT(AT(AT(AT({},void 0!==this.getKeepAliveResponse()&&null!==this.getKeepAliveResponse()?{keepAliveResponse:this.getKeepAliveResponse()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):AT(AT(AT({},void 0!==this.getKeepAliveResponse()&&null!==this.getKeepAliveResponse()?{keepAliveResponse:this.getKeepAliveResponse()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"keepAliveResponse"!==t||void 0!==this.keepAliveResponse&&null!==this.keepAliveResponse?new f(t,"no such property exists"):new f("keepAliveResponse","undefined or null")}}])&&xT(t.prototype,n),r&&xT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(we);function UT(e){return(UT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GT(Object(n),!0).forEach((function(t){qT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qT(e,t,n){return(t=KT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KT(r.key),r)}}function KT(e){var t=function(e,t){if("object"!==UT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==UT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===UT(t)?t:String(t)}function HT(e,t){return(HT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XT(e);if(t){var o=XT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return YT(this,n)}}function YT(e,t){if(t&&("object"===UT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function XT(e){return(XT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}VT.prototype.keepAliveResponse=void 0;var QT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&HT(e,t)}(s,e);var t,n,r,o=zT(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.FlowGatewayKeepAliveResponseApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FlowGatewayKeepAliveResponseApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.FlowGatewayKeepAliveResponse"===n)t.setData(VT.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=BT({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof VT?"networking.v4.config.FlowGatewayKeepAliveResponse":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return BT(!1===e?BT(BT({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):BT(BT({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&WT(t.prototype,n),r&&WT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function ZT(e){return(ZT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach((function(t){nI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nI(e,t,n){return(t=oI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oI(r.key),r)}}function oI(e){var t=function(e,t){if("object"!==ZT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZT(t)?t:String(t)}function iI(e,t){return(iI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uI(e);if(t){var o=uI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aI(this,n)}}function aI(e,t){if(t&&("object"===ZT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function uI(e){return(uI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}QT.prototype.metadata=void 0,QT.prototype.data=void 0,QT.prototype.$reserved=void 0,QT.prototype.$objectType=void 0,QT.prototype.$unknownFields=void 0;var cI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iI(e,t)}(s,e);var t,n,r,o=sI(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.FlowGatewayListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.FlowGatewayListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.FlowGateway>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=uT.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=tI({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof uT?"List<networking.v4.config.FlowGateway>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tI(!1===e?tI(tI({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):tI(tI({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&rI(t.prototype,n),r&&rI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function lI(e){return(lI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fI(Object(n),!0).forEach((function(t){pI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pI(e,t,n){return(t=yI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yI(r.key),r)}}function yI(e){var t=function(e,t){if("object"!==lI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lI(t)?t:String(t)}cI.prototype.metadata=void 0,cI.prototype.data=void 0,cI.prototype.$reserved=void 0,cI.prototype.$objectType=void 0,cI.prototype.$unknownFields=void 0;var vI=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.IpReserveOutput",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.IpReserveOutput"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("ipAddresses")&&null!==t.ipAddresses&&void 0!==t.ipAddresses){for(s=[],r=t.ipAddresses,i=0;i<r.length;i++)o=Xe.constructFromObject(r[i],void 0),s.push(o);n.setIpAddresses(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=dI({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getIpAddresses",value:function(){return this.ipAddresses}},{key:"setIpAddresses",value:function(e){this.ipAddresses=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return dI(dI({},!1===e?void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"ipAddresses"!==t||void 0!==this.ipAddresses&&null!==this.ipAddresses?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipAddresses","undefined or null")}}])&&hI(t.prototype,n),r&&hI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gI(e){return(gI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bI(Object(n),!0).forEach((function(t){mI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mI(e,t,n){return(t=$I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$I(r.key),r)}}function $I(e){var t=function(e,t){if("object"!==gI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gI(t)?t:String(t)}function kI(e,t){return(kI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SI(e);if(t){var o=SI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return PI(this,n)}}function PI(e,t){if(t&&("object"===gI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function SI(e){return(SI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}vI.prototype.ipAddresses=void 0,vI.prototype.$reserved=void 0,vI.prototype.$objectType=void 0,vI.prototype.$unknownFields=void 0;var TI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kI(e,t)}(s,e);var t,n,r,o=jI(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=o.call(this)).azureConfig=e,t.$objectType="networking.v4.config.NetworkCloudConfig",t.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkCloudConfig"},t.$unknownFields={},t}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,Re.constructFromObject(e,t,!0),e.hasOwnProperty("azureConfig")&&null!==e.azureConfig&&void 0!==e.azureConfig&&t.setAzureConfig(DP.constructFromObject(e.azureConfig)),!n))for(var r in t.$unknownFields=wI({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getAzureConfig",value:function(){return this.azureConfig}},{key:"setAzureConfig",value:function(e){this.azureConfig=e}},{key:"toJson",value:function(e){return wI(!1===e?wI(wI(wI(wI(wI({},void 0!==this.getAzureConfig()&&null!==this.getAzureConfig()?{azureConfig:this.getAzureConfig().toJson(!1)}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):wI(wI(wI(wI({},void 0!==this.getAzureConfig()&&null!==this.getAzureConfig()?{azureConfig:this.getAzureConfig().toJson()}:{}),void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["azureConfig"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"azureConfig"!==t||void 0!==this.azureConfig&&null!==this.azureConfig?new f(t,"no such property exists"):new f("azureConfig","undefined or null")}}])&&OI(t.prototype,n),r&&OI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(Re);function II(e){return(II="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FI(Object(n),!0).forEach((function(t){DI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DI(e,t,n){return(t=AI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AI(r.key),r)}}function AI(e){var t=function(e,t){if("object"!==II(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==II(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===II(t)?t:String(t)}function NI(e,t){return(NI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CI(e);if(t){var o=CI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MI(this,n)}}function MI(e,t){if(t&&("object"===II(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function CI(e){return(CI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}TI.prototype.azureConfig=void 0;var LI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NI(e,t)}(s,e);var t,n,r,o=xI(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkCloudConfigApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkCloudConfigApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.NetworkCloudConfig"===n)t.setData(TI.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=RI({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof TI?"networking.v4.config.NetworkCloudConfig":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return RI(!1===e?RI(RI({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):RI(RI({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&EI(t.prototype,n),r&&EI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function _I(e){return(_I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JI(Object(n),!0).forEach((function(t){UI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UI(e,t,n){return(t=BI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BI(r.key),r)}}function BI(e){var t=function(e,t){if("object"!==_I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_I(t)?t:String(t)}function qI(e,t){return(qI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function WI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=HI(e);if(t){var o=HI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return KI(this,n)}}function KI(e,t){if(t&&("object"===_I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function HI(e){return(HI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}LI.prototype.metadata=void 0,LI.prototype.data=void 0,LI.prototype.$reserved=void 0,LI.prototype.$objectType=void 0,LI.prototype.$unknownFields=void 0;var zI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qI(e,t)}(s,e);var t,n,r,o=WI(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NetworkCloudConfigListApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NetworkCloudConfigListApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.NetworkCloudConfig>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=TI.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=VI({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof TI?"List<networking.v4.config.NetworkCloudConfig>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return VI(!1===e?VI(VI({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):VI(VI({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&GI(t.prototype,n),r&&GI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function YI(e){return(YI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XI(Object(n),!0).forEach((function(t){ZI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZI(e,t,n){return(t=tF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tF(r.key),r)}}function tF(e){var t=function(e,t){if("object"!==YI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YI(t)?t:String(t)}zI.prototype.metadata=void 0,zI.prototype.data=void 0,zI.prototype.$reserved=void 0,zI.prototype.$objectType=void 0,zI.prototype.$unknownFields=void 0;var nF=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.extId=t,this.neverSchedulable=n,this.$objectType="networking.v4.config.NodeSchedulableStatus",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NodeSchedulableStatus"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("neverSchedulable")&&null!==t.neverSchedulable&&void 0!==t.neverSchedulable&&n.setNeverSchedulable(t.neverSchedulable),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=QI({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getNeverSchedulable",value:function(){return this.neverSchedulable}},{key:"setNeverSchedulable",value:function(e){this.neverSchedulable=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return QI(QI(QI({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getNeverSchedulable()&&null!==this.getNeverSchedulable()?{neverSchedulable:this.getNeverSchedulable()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["extId","neverSchedulable"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"neverSchedulable"!==t||void 0!==this.neverSchedulable&&null!==this.neverSchedulable?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("neverSchedulable","undefined or null")}}])&&eF(t.prototype,n),r&&eF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rF(e){return(rF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oF(Object(n),!0).forEach((function(t){sF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sF(e,t,n){return(t=uF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uF(r.key),r)}}function uF(e){var t=function(e,t){if("object"!==rF(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rF(t)?t:String(t)}function cF(e,t){return(cF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dF(e);if(t){var o=dF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fF(this,n)}}function fF(e,t){if(t&&("object"===rF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dF(e){return(dF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}nF.prototype.extId=void 0,nF.prototype.neverSchedulable=void 0,nF.prototype.$reserved=void 0,nF.prototype.$objectType=void 0,nF.prototype.$unknownFields=void 0;var pF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cF(e,t)}(s,e);var t,n,r,o=lF(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.NodeSchedulableStatusApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.NodeSchedulableStatusApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<networking.v4.config.NodeSchedulableStatus>"===a){for(i=[],n=e.data,o=0;o<n.length;o++)r=nF.constructFromObject(n[o],void 0),i.push(r);t.setData(i)}else{if("networking.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var c in t.$unknownFields=iF({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof nF?"List<networking.v4.config.NodeSchedulableStatus>":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return iF(!1===e?iF(iF({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):iF(iF({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&aF(t.prototype,n),r&&aF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function hF(e){return(hF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yF(Object(n),!0).forEach((function(t){gF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gF(e,t,n){return(t=wF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wF(r.key),r)}}function wF(e){var t=function(e,t){if("object"!==hF(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hF(t)?t:String(t)}pF.prototype.metadata=void 0,pF.prototype.data=void 0,pF.prototype.$reserved=void 0,pF.prototype.$objectType=void 0,pF.prototype.$unknownFields=void 0;var mF=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isRollingRestartRunning=t,this.$objectType="networking.v4.config.RollingRestartStatus",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RollingRestartStatus"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("isRollingRestartRunning")&&null!==t.isRollingRestartRunning&&void 0!==t.isRollingRestartRunning&&n.setIsRollingRestartRunning(t.isRollingRestartRunning),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=vF({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIsRollingRestartRunning",value:function(){return this.isRollingRestartRunning}},{key:"setIsRollingRestartRunning",value:function(e){this.isRollingRestartRunning=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vF(vF({},void 0!==this.getIsRollingRestartRunning()&&null!==this.getIsRollingRestartRunning()?{isRollingRestartRunning:this.getIsRollingRestartRunning()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["isRollingRestartRunning"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"isRollingRestartRunning"!==t||void 0!==this.isRollingRestartRunning&&null!==this.isRollingRestartRunning?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("isRollingRestartRunning","undefined or null")}}])&&bF(t.prototype,n),r&&bF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function OF(e){return(OF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$F(Object(n),!0).forEach((function(t){jF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jF(e,t,n){return(t=SF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SF(r.key),r)}}function SF(e){var t=function(e,t){if("object"!==OF(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==OF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===OF(t)?t:String(t)}function TF(e,t){return(TF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function IF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=RF(e);if(t){var o=RF(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return FF(this,n)}}function FF(e,t){if(t&&("object"===OF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function RF(e){return(RF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}mF.prototype.isRollingRestartRunning=void 0,mF.prototype.$reserved=void 0,mF.prototype.$objectType=void 0,mF.prototype.$unknownFields=void 0;var DF=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TF(e,t)}(s,e);var t,n,r,o=IF(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="networking.v4.config.RollingRestartStatusApiResponse",e.$reserved={$fqObjectType:"networking.v4.r0.a1.config.RollingRestartStatusApiResponse"},e.$unknownFields={},e}return t=s,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&kn.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(H.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(n=e.$dataItemDiscriminator))t.setData([]);else if("networking.v4.config.RollingRestartStatus"===n)t.setData(mF.constructFromObject(e.data,void 0));else{if("networking.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData($n.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=kF({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$dataItemDiscriminator",value:function(){return this.getData()instanceof mF?"networking.v4.config.RollingRestartStatus":this.getData()instanceof $n?"networking.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kF(!1===e?kF(kF({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):kF(kF({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{}),void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&PF(t.prototype,n),r&&PF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(kn.a);function EF(e){return(EF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function AF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AF(Object(n),!0).forEach((function(t){xF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xF(e,t,n){return(t=CF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CF(r.key),r)}}function CF(e){var t=function(e,t){if("object"!==EF(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==EF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===EF(t)?t:String(t)}DF.prototype.metadata=void 0,DF.prototype.data=void 0,DF.prototype.$reserved=void 0,DF.prototype.$objectType=void 0,DF.prototype.$unknownFields=void 0;var LF=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="networking.v4.config.Task",this.$reserved={$fqObjectType:"networking.v4.r0.a1.config.Task"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=NF({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return NF(NF({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],s=null;return r.forEach((function(t){(s=n.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!u.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&MF(t.prototype,n),r&&MF(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();LF.prototype.extId=void 0,LF.prototype.$reserved=void 0,LF.prototype.$objectType=void 0,LF.prototype.$unknownFields=void 0;t.default={ApiClient:r.a,BgpSessionApi:vr,FloatingIpApi:Lo,IPFIXExporterApi:xi,Layer2StretchApi:eu,Layer2StretchStatsApi:Uu,NetworkControllerApi:Ec,NetworkGatewayApi:yd,RouteTableApi:tp,RoutingPolicyApi:_y,RoutingPolicyStatsApi:Pv,SubnetApi:tb,SubnetMigrationApi:$b,SubnetReserveUnreserveIpApi:Ew,VirtualSwitchApi:qm,VpcApi:QO,VpcNsStatsApi:T$,VpnConnectionApi:Uk,VpnConnectionStatsApi:gj,VpnVendorConfigApi:Uj,EntityReference:ta,EntityType:Hs,Flag:b,IPAddress:Xe,IPv4Address:Ce,IPv6Address:Be,KVPair:P,Message:N,MessageSeverity:T,Metadata:te,TenantAwareModel:ue,ApiLink:V,ApiResponseMetadata:H,ExternalizableAbstractModel:we,DownSamplingOperator:nu,AddressAssignmentInfo:hw,AddressType:Op,AddressTypeObject:Ip,AncConfig:Zj,AncConfigApiResponse:lP,AssignedAddressInfo:Kb,AuthenticationAlgorithm:J$,AuthenticationType:il,AzureConfig:DP,AzureExternalSubnetBinding:LP,AzureExternalSubnetConfig:jP,BgpConfig:Wc,BgpSession:Kt,BgpSessionApiResponse:Nn,BgpSessionListApiResponse:cr,BondModeType:Nw,CloudNetwork:zP,CloudNetworkApiResponse:sS,CloudNetworkListApiResponse:gS,CloudSubstrate:Bu,Cluster:Hw,ClusterFlowStatus:DS,ClusterFlowStatusApiResponse:US,ClusterStatus:jS,ControllerStatus:Wu,DhcpOptions:Ev,DpdConfig:M$,DpdOperation:F$,EncryptionAlgorithm:U$,ExportScope:Ko,ExporterProtocol:zo,ExternalSubnet:iO,FloatingIPAddress:Cr,FloatingIPv4Address:kr,FloatingIPv6Address:Rr,FloatingIp:uo,FloatingIpApiResponse:Do,FloatingIpListApiResponse:mo,FlowGateway:uT,FlowGatewayApiResponse:wT,FlowGatewayKeepAliveRequest:RT,FlowGatewayKeepAliveResponse:VT,FlowGatewayKeepAliveResponseApiResponse:QT,FlowGatewayListApiResponse:cI,FlowGatewayState:BS,FlowGatewayStatus:XS,GatewayNodeReference:Qm,GatewayRole:L$,Host:Vw,ICMP:xp,ICMPObject:Up,IPConfig:pg,IPFIXExporter:si,IPFIXExporterApiResponse:gi,IPFIXExporterListApiResponse:Ii,IPSubnet:bt,IPSubnetObject:zp,IPv4Config:Wv,IPv4Pool:_v,IPv4Subnet:ot,IPv6Config:sg,IPv6Pool:Zv,IPv6Subnet:ft,IbgpConfig:rl,InternalRoutingConfig:wl,IpReserveInput:Db,IpReserveOutput:vI,IpUnreserveInput:Jb,IpsecConfig:z$,Layer2Stretch:js,Layer2StretchApiResponse:xs,Layer2StretchListApiResponse:Ws,Layer2StretchRelatedEntities:Ma,Layer2StretchRelatedEntitiesApiResponse:Ka,Layer2StretchSubnetInfo:ua,Layer2StretchVpnConnectionInfo:ya,Layer2StretchVtepGatewayInfo:Fa,LearnedAddressInfo:ew,LocalBgpService:_c,LocalNetworkServices:Jl,LocalVpnService:Sl,LocalVtepService:Al,MacAddress:Ui,NetworkCloudConfig:TI,NetworkCloudConfigApiResponse:LI,NetworkCloudConfigListApiResponse:zI,NetworkController:rc,NetworkControllerApiResponse:hc,NetworkControllerListApiResponse:Pc,NetworkGateway:Jf,NetworkGatewayApiResponse:ud,NetworkGatewayDeployment:ef,NetworkGatewayListApiResponse:Xf,NetworkGatewayManagementInterface:Kl,NetworkingBaseModel:Re,NexthopType:mt,NodeSchedulableStatus:nF,NodeSchedulableStatusApiResponse:pF,OspfConfig:dl,PortRange:fh,PrivateIpAssociation:Br,ProtocolNumberObject:nh,ProtocolType:oh,PublicIpMapping:gP,QosConfig:nk,RemoteBgpService:uf,RemoteNetworkServices:Ff,RemoteVpnService:yf,RemoteVtepService:$f,RemoteVtepStretchStatus:os,RerouteFallbackAction:rp,RerouteParam:lp,ReserveType:jb,ReservedAddressInfo:aw,RollingRestartStatus:mF,RollingRestartStatusApiResponse:DF,Route:Tt,RouteTable:Sd,RouteTableApiResponse:Hd,RouteTableListApiResponse:Cd,RoutingPolicy:ly,RoutingPolicyAction:wp,RoutingPolicyActionType:dp,RoutingPolicyApiResponse:Ey,RoutingPolicyListApiResponse:Oy,RoutingPolicyMatchCondition:Wh,RoutingPolicyRule:Zh,ScopeType:Jo,SiteParams:fs,State:Ft,Status:Mt,StretchConnectionType:ps,StretchState:Bi,StretchStatus:Xi,Subnet:Sg,SubnetAddressAssignmentListApiResponse:Pw,SubnetApiResponse:Hg,SubnetListApiResponse:Cg,SubnetMigration:yb,SubnetMigrationItem:ub,SubnetType:yg,TCP:bh,TCPObject:Ph,Task:LF,TaskReferenceApiResponse:Qn,UDP:Eh,UDPObject:_h,UnreserveType:Ab,VirtualSwitch:im,VirtualSwitchApiResponse:vm,VirtualSwitchListApiResponse:Lm,VirtualSwitchProjection:Tm,VmNicAssociation:Xr,Vpc:kO,VpcApiResponse:NO,VpcDhcpOptions:dO,VpcListApiResponse:qO,VpnConnection:pk,VpnConnectionApiResponse:xk,VpnConnectionListApiResponse:jk,VpnVendor:jj,VpnVendorListApiResponse:xj,Vtep:$a,AppMessage:en,ErrorResponse:$n,SchemaValidationError:yn,SchemaValidationErrorMessage:un,Layer2StretchStats:ju,Layer2StretchStatsApiResponse:xu,RoutingPolicyClearCounterResult:av,RoutingPolicyClearCountersApiResponse:bv,RoutingPolicyClearCountersBody:Yy,StatsQueryResponseBase:pu,VpcNsStats:c$,VpcNsStatsApiResponse:m$,VpnConnectionStats:Zk,VpnConnectionStatsApiResponse:lj,TaskReference:Vn}},function(e,t,n){"use strict";var r,o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var a=function(e){return"string"==typeof e&&s.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)}}]).default}));
|